Changeset 1926:9e3008aad0ff
- Timestamp:
- 09/17/13 10:30:36 (11 years ago)
- Branch:
- default
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blogs.php
r1912 r1926 128 128 else 129 129 { 130 $pager = new pager($page,$nb_blog,$nb_per_page,10); 131 $pager->var_page = 'page'; 130 $pager = new dcPager($page,$nb_blog,$nb_per_page,10); 132 131 133 echo '<p class="pagination">'.__('Page(s)').' : '.$pager->getLinks().'</p>';132 echo $pager->getLinks(); 134 133 135 134 echo … … 148 147 echo '</table>'; 149 148 150 echo '<p class="pagination">'.__('Page(s)').' : '.$pager->getLinks().'</p>';149 echo $pager->getLinks(); 151 150 } 152 151 } -
admin/media.php
r1912 r1926 314 314 else 315 315 { 316 $pager = new pager($page,count($items),$nb_per_page,10); 317 $pager->html_prev = __($pager->html_prev); 318 $pager->html_next = __($pager->html_next); 316 $pager = new dcPager($page,count($items),$nb_per_page,10); 319 317 320 318 echo … … 326 324 '<input type="submit" value="'.__('Sort').'" /></p>'. 327 325 '</form>'. 328 329 '<p class="pagination">'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 326 $pager->getLinks(); 330 327 331 328 $dgroup = ''; … … 343 340 ($fgroup != '' ? '<div class="files-group">'.$fgroup.'</div>' : ''); 344 341 345 echo 346 '<p class="clear pagination">'.__('Page(s)').' : '.$pager->getLinks().'</p>'; 342 echo $pager->getLinks(); 347 343 } 348 344 if (!isset($pager)) { -
inc/admin/lib.pager.php
r1917 r1926 14 14 class dcPager extends pager 15 15 { 16 16 protected $form_action; 17 protected $form_hidden; 18 17 19 protected function getLink($li_class,$href,$img_src,$img_src_nolink,$img_alt,$enable_link) { 18 20 if ($enable_link) { … … 26 28 } 27 29 } 28 30 public function setURL() { 31 parent::setURL(); 32 $url = parse_url($_SERVER['REQUEST_URI']); 33 if (isset($url['query'])) { 34 parse_str($url['query'],$args); 35 } else { 36 $args=array(); 37 } 38 # Removing session information 39 if (session_id()) 40 { 41 if (isset($args[session_name()])) 42 unset($args[session_name()]); 43 } 44 if (isset($args[$this->var_page])) { 45 unset($args[$this->var_page]); 46 } 47 if (isset($args['ok'])) { 48 unset($args['ok']); 49 } 50 $this->form_hidden = ''; 51 foreach ($args as $k=>$v) { 52 $this->form_hidden .= form::hidden(array($k),$v); 53 } 54 $this->form_action = $url['path']; 55 } 56 29 57 /** 30 58 * Pager Links … … 78 106 form::field(array('page'),3,10)). 79 107 '<input type="submit" value="'.__('ok').'" class="reset" '. 80 'name="ok" /> </li>';108 'name="ok" />'.$this->form_hidden.'</li>'; 81 109 82 110 $res = 83 '<form action="'.$this-> page_url.'" method="get">'.111 '<form action="'.$this->form_action.'" method="get">'. 84 112 '<div class="pagination"><ul>'. 85 113 $htmlFirst. -
inc/prepend.php
r1719 r1926 59 59 $__autoload['adminCommentList'] = dirname(__FILE__).'/admin/lib.pager.php'; 60 60 $__autoload['adminUserList'] = dirname(__FILE__).'/admin/lib.pager.php'; 61 $__autoload['dcPager'] = dirname(__FILE__).'/admin/lib.pager.php'; 61 62 $__autoload['dcAdminCombos'] = dirname(__FILE__).'/admin/lib.admincombos.php'; 62 63 -
plugins/pages/list.php
r1912 r1926 25 25 else 26 26 { 27 $pager = new pager($page,$this->rs_count,$nb_per_page,10); 28 $pager->html_prev = $this->html_prev; 29 $pager->html_next = $this->html_next; 30 $pager->var_page = 'page'; 27 $pager = new dcPager($page,$this->rs_count,$nb_per_page,10); 31 28 32 29 $html_block = … … 44 41 } 45 42 46 echo '<p class="pagination">'.__('Page(s)').' : '.$pager->getLinks().'</p>';43 echo $pager->getLinks(); 47 44 48 45 $blocks = explode('%s',$html_block); … … 57 54 echo $blocks[1]; 58 55 59 echo '<p class="pagination">'.__('Page(s)').' : '.$pager->getLinks().'</p>';56 echo $pager->getLinks(); 60 57 } 61 58 }
Note: See TracChangeset
for help on using the changeset viewer.