- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/users.php
r1912 r2137 38 38 $core->callBehavior('adminUsersActionsCombo',array(&$combo_action)); 39 39 40 $show_filters = false; 40 41 41 42 #?Get users … … 44 45 45 46 if (!empty($_GET['nb']) && (integer) $_GET['nb'] > 0) { 47 if ($nb_per_page != $_GET['nb']) { 48 $show_filters = true; 49 } 46 50 $nb_per_page = $_GET['nb']; 47 51 } … … 53 57 $params['limit'] = array((($page-1)*$nb_per_page),$nb_per_page); 54 58 55 $show_filters = false;56 59 57 60 # - Search filter … … 89 92 /* DISPLAY 90 93 -------------------------------------------------------- */ 91 $starting_script = dcPage::jsLoad('js/_users.js'); 92 if (!$show_filters) { 93 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 94 } 94 95 $form_filter_title = __('Filter users list and display options'); 96 $starting_script = dcPage::jsLoad('js/_users.js'); 97 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 98 $starting_script .= 99 '<script type="text/javascript">'."\n". 100 "//<![CDATA["."\n". 101 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 102 dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 103 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 104 "//]]>". 105 "</script>"; 95 106 96 107 dcPage::open(__('Users'),$starting_script, … … 112 123 113 124 echo 114 '<p class="top-add"><strong><a class="button add" href="user.php">'.__('New user').'</a></strong></p>'; 115 116 if (!$show_filters) { 117 echo '<p><a id="filter-control" class="form-control" href="#">'.__('Filter users list').'</a></p>'; 118 } 119 120 echo 125 '<p class="top-add"><strong><a class="button add" href="user.php">'.__('New user').'</a></strong></p>'. 121 126 '<form action="users.php" method="get" id="filters-form">'. 122 '<h3 class=" hidden">'.__('Filter users list').'</h3>'.127 '<h3 class="out-of-screen-if-js">'.$form_filter_title.'</h3>'. 123 128 124 129 '<div class="table">'. … … 166 171 '</p>'. 167 172 '</div>'. 168 '</form>' 173 '</form>', 174 $show_filters 169 175 ); 170 176 }
Note: See TracChangeset
for help on using the changeset viewer.