Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r2386 r2566  
    1616     protected $form_action; 
    1717     protected $form_hidden; 
    18       
     18 
    1919     protected function getLink($li_class,$href,$img_src,$img_src_nolink,$img_alt,$enable_link) { 
    2020          if ($enable_link) { 
     
    6060          $this->form_action = $url['path']; 
    6161     } 
    62       
     62 
    6363     /** 
    6464     * Pager Links 
     
    103103               ($this->env < $this->nb_pages) 
    104104          ); 
    105           $htmlCurrent =  
     105          $htmlCurrent = 
    106106               '<li class="active"><strong>'. 
    107107               sprintf(__('Page %s / %s'),$this->env,$this->nb_pages). 
    108108               '</strong></li>'; 
    109                 
    110           $htmlDirect =  
     109 
     110          $htmlDirect = 
    111111               ($this->nb_pages > 1 ? 
    112112                    sprintf('<li class="direct-access">'.__('Direct access page %s'), 
     
    114114                    '<input type="submit" value="'.__('ok').'" class="reset" '. 
    115115                    'name="ok" />'.$this->form_hidden.'</li>' : ''); 
    116            
    117           $res =     
     116 
     117          $res = 
    118118               '<form action="'.$this->form_action.'" method="get">'. 
    119119               '<div class="pager"><ul>'. 
     
    128128               '</form>' 
    129129          ; 
    130            
     130 
    131131          return $this->nb_elements > 0 ? $res : ''; 
    132132     } 
     
    138138     protected $rs; 
    139139     protected $rs_count; 
    140       
     140 
    141141     public function __construct($core,$rs,$rs_count) 
    142142     { 
     
    173173               '<div class="table-outer">'. 
    174174               '<table>'; 
    175                 
     175 
    176176               if( $filter ) { 
    177177                    $html_block .= '<caption>'.sprintf(__('List of %s entries match the filter.'), $this->rs_count).'</caption>'; 
     
    179179                    $html_block .= '<caption class="hidden">'.__('Entries list').'</caption>'; 
    180180               } 
    181                           
     181 
    182182               $html_block .= '<tr>'. 
    183183               '<th colspan="2" class="first">'.__('Title').'</th>'. 
     
    189189               '<th scope="col">'.__('Status').'</th>'. 
    190190               '</tr>%s</table></div>'; 
    191                 
     191 
    192192               if ($enclose_block) { 
    193193                    $html_block = sprintf($enclose_block,$html_block); 
    194194               } 
    195                 
    196                echo $pager->getLinks(); 
    197                 
     195 
     196               echo $pager->getLinks(); 
     197 
    198198               $blocks = explode('%s',$html_block); 
    199                 
     199 
    200200               echo $blocks[0]; 
    201                 
     201 
    202202               while ($this->rs->fetch()) 
    203203               { 
    204204                    echo $this->postLine(isset($entries[$this->rs->post_id])); 
    205205               } 
    206                 
     206 
    207207               echo $blocks[1]; 
    208                 
    209                echo $pager->getLinks(); 
    210           } 
    211      } 
    212       
     208 
     209               echo $pager->getLinks(); 
     210          } 
     211     } 
     212 
    213213     private function postLine($checked) 
    214214     { 
     
    218218               $cat_link = '%2$s'; 
    219219          } 
    220            
     220 
    221221          if ($this->rs->cat_title) { 
    222222               $cat_title = sprintf($cat_link,$this->rs->cat_id, 
     
    225225               $cat_title = __('(No cat)'); 
    226226          } 
    227            
     227 
    228228          $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 
    229229          switch ($this->rs->post_status) { 
     
    241241                    break; 
    242242          } 
    243            
     243 
    244244          $protected = ''; 
    245245          if ($this->rs->post_password) { 
    246246               $protected = sprintf($img,__('Protected'),'locker.png'); 
    247247          } 
    248            
     248 
    249249          $selected = ''; 
    250250          if ($this->rs->post_selected) { 
    251251               $selected = sprintf($img,__('Selected'),'selected.png'); 
    252252          } 
    253            
     253 
    254254          $attach = ''; 
    255255          $nb_media = $this->rs->countMedia(); 
     
    258258               $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png'); 
    259259          } 
    260            
     260 
    261261          $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. 
    262262          ' id="p'.$this->rs->post_id.'">'; 
    263            
     263 
    264264          $res .= 
    265265          '<td class="nowrap">'. 
     
    274274          '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 
    275275          '</tr>'; 
    276            
     276 
    277277          return $res; 
    278278     } 
     
    290290          { 
    291291               $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 
    292                 
     292 
    293293               $html_block = 
    294294               '<div class="table-outer clear">'. 
     
    299299               '<th scope="col">'.__('Status').'</th>'. 
    300300               '</tr>%s</table></div>'; 
    301                 
     301 
    302302               if ($enclose_block) { 
    303303                    $html_block = sprintf($enclose_block,$html_block); 
    304304               } 
    305                 
    306                echo $pager->getLinks(); 
    307                 
     305 
     306               echo $pager->getLinks(); 
     307 
    308308               $blocks = explode('%s',$html_block); 
    309                 
     309 
    310310               echo $blocks[0]; 
    311                 
     311 
    312312               while ($this->rs->fetch()) 
    313313               { 
    314314                    echo $this->postLine(); 
    315315               } 
    316                 
     316 
    317317               echo $blocks[1]; 
    318                 
    319                echo $pager->getLinks(); 
    320           } 
    321      } 
    322       
     318 
     319               echo $pager->getLinks(); 
     320          } 
     321     } 
     322 
    323323     private function postLine() 
    324324     { 
     
    338338                    break; 
    339339          } 
    340            
     340 
    341341          $protected = ''; 
    342342          if ($this->rs->post_password) { 
    343343               $protected = sprintf($img,__('Protected'),'locker.png'); 
    344344          } 
    345            
     345 
    346346          $selected = ''; 
    347347          if ($this->rs->post_selected) { 
    348348               $selected = sprintf($img,__('Selected'),'selected.png'); 
    349349          } 
    350            
     350 
    351351          $attach = ''; 
    352352          $nb_media = $this->rs->countMedia(); 
     
    355355               $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png'); 
    356356          } 
    357            
     357 
    358358          $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. 
    359359          ' id="p'.$this->rs->post_id.'">'; 
    360            
     360 
    361361          $res .= 
    362362          '<td scope="row" class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'" '. 
     
    367367          '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'. 
    368368          '</tr>'; 
    369            
     369 
    370370          return $res; 
    371371     } 
     
    387387          { 
    388388               $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 
    389                 
     389 
    390390               $comments = array(); 
    391391               if (isset($_REQUEST['comments'])) { 
     
    393393                         $comments[(integer)$v]=true; 
    394394                    } 
    395                }               
     395               } 
    396396               $html_block = 
    397397               '<div class="table-outer">'. 
    398398               '<table>'; 
    399                 
     399 
    400400               if( $filter ) { 
    401401                    $html_block .= '<caption>'. 
     
    408408                    $html_block .= '<caption class="hidden">'.__('Comments and trackbacks list').'</caption>'; 
    409409               } 
    410                           
     410 
    411411               $html_block .= '<tr>'. 
    412412               '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 
     
    420420                    $html_block = sprintf($enclose_block,$html_block); 
    421421               } 
    422                 
    423                echo $pager->getLinks(); 
    424                 
     422 
     423               echo $pager->getLinks(); 
     424 
    425425               $blocks = explode('%s',$html_block); 
    426                 
     426 
    427427               echo $blocks[0]; 
    428                 
     428 
    429429               while ($this->rs->fetch()) 
    430430               { 
    431431                    echo $this->commentLine(isset($comments[$this->rs->comment_id])); 
    432432               } 
    433                 
     433 
    434434               echo $blocks[1]; 
    435                 
    436                echo $pager->getLinks(); 
    437           } 
    438      } 
    439       
     435 
     436               echo $pager->getLinks(); 
     437          } 
     438     } 
     439 
    440440     private function commentLine($checked=false) 
    441441     { 
    442442          global $author, $status, $sortby, $order, $nb_per_page; 
    443            
     443 
    444444          $author_url = 
    445445          'comments.php?n='.$nb_per_page. 
     
    448448          '&amp;order='.$order. 
    449449          '&amp;author='.rawurlencode($this->rs->comment_author); 
    450            
     450 
    451451          $post_url = $this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id); 
    452            
     452 
    453453          $comment_url = 'comment.php?id='.$this->rs->comment_id; 
    454            
     454 
    455455          $comment_dt = 
    456456          dt::dt2str($this->core->blog->settings->system->date_format.' - '. 
    457457          $this->core->blog->settings->system->time_format,$this->rs->comment_dt); 
    458            
     458 
    459459          $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 
    460460          switch ($this->rs->comment_status) { 
     
    472472                    break; 
    473473          } 
    474            
     474 
    475475          $post_title = html::escapeHTML($this->rs->post_title); 
    476476          if (mb_strlen($post_title) > 70) { 
     
    480480               $this->rs->comment_trackback ? __('trackback') : __('comment'), 
    481481               html::escapeHTML($this->rs->comment_author)); 
    482            
     482 
    483483          $res = '<tr class="line'.($this->rs->comment_status != 1 ? ' offline' : '').'"'. 
    484484          ' id="c'.$this->rs->comment_id.'">'; 
    485            
     485 
    486486          $res .= 
    487487          '<td class="nowrap">'. 
     
    497497          html::escapeHTML($post_title).'</a>'. 
    498498          ($this->rs->post_type != 'post' ? ' ('.html::escapeHTML($this->rs->post_type).')' : '').'</td>'; 
    499            
     499 
    500500          $res .= '</tr>'; 
    501            
     501 
    502502          return $res; 
    503503     } 
     
    519519          { 
    520520               $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 
    521                 
     521 
    522522               $html_block = 
    523523               '<div class="table-outer clear">'. 
    524524               '<table>'; 
    525                 
     525 
    526526               if( $filter ) { 
    527527                    $html_block .= '<caption>'.sprintf(__('List of %s users match the filter.'), $this->rs_count).'</caption>'; 
     
    529529                    $html_block .= '<caption class="hidden">'.__('Users list').'</caption>'; 
    530530               } 
    531                           
     531 
    532532               $html_block .= '<tr>'. 
    533533               '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 
     
    537537               '<th scope="col" class="nowrap">'.__('Entries (all types)').'</th>'. 
    538538               '</tr>%s</table></div>'; 
    539                 
     539 
    540540               if ($enclose_block) { 
    541541                    $html_block = sprintf($enclose_block,$html_block); 
    542542               } 
    543                 
    544                echo $pager->getLinks(); 
    545                 
     543 
     544               echo $pager->getLinks(); 
     545 
    546546               $blocks = explode('%s',$html_block); 
    547                 
     547 
    548548               echo $blocks[0]; 
    549                 
     549 
    550550               while ($this->rs->fetch()) 
    551551               { 
    552552                    echo $this->userLine(); 
    553553               } 
    554                 
     554 
    555555               echo $blocks[1]; 
    556                 
    557                echo $pager->getLinks(); 
    558           } 
    559      } 
    560       
     556 
     557               echo $pager->getLinks(); 
     558          } 
     559     } 
     560 
    561561     private function userLine() 
    562562     { 
    563563          $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />'; 
    564564          $img_status = ''; 
    565            
     565 
    566566          $p = $this->core->getUserPermissions($this->rs->user_id); 
    567            
     567 
    568568          if (isset($p[$this->core->blog->id]['p']['admin'])) { 
    569569               $img_status = sprintf($img,__('admin'),'admin.png'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map