Changeset 2135:35a0194cdafa
- Timestamp:
- 09/27/13 20:16:29 (12 years ago)
- Branch:
- Ticket #1548
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blogs.php
r2107 r2135 69 69 /* DISPLAY 70 70 -------------------------------------------------------- */ 71 $starting_script = ''; 72 if (!$show_filters) { 73 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 74 } 71 $starting_script = dcPage::jsLoad('js/filter-controls.js'); 72 $starting_script .= 73 '<script type="text/javascript">'."\n". 74 "//<![CDATA["."\n". 75 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 76 dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 77 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 78 "//]]>". 79 "</script>"; 80 81 $form_filter_title = __('Filter blogs list and display options'); 82 75 83 dcPage::open(__('List of blogs'),$starting_script, 76 84 dcPage::breadcrumb( … … 89 97 if ($core->auth->isSuperAdmin()) { 90 98 echo '<p class="top-add"><a class="button add" href="blog.php">'.__('Create a new blog').'</a></p>'; 91 }92 93 if (!$show_filters) {94 echo '<p><a id="filter-control" class="form-control" href="#">'.__('Filter blogs list').'</a></p>';95 99 } 96 100 … … 124 128 if ($nb_blog == 0) 125 129 { 126 echo '<p><strong>'.__('No blog').'</strong></p>'; 130 if( $show_filters ) { 131 echo '<p><strong>'.__('No blog matches the filter').'</strong></p>'; 132 } else { 133 echo '<p><strong>'.__('No blog').'</strong></p>'; 134 } 127 135 } 128 136 else … … 134 142 echo 135 143 '<div class="table-outer">'. 136 '<table class="clear"><caption class="hidden">'.__('Blogs list').'</caption><tr>'. 144 '<table class="clear">'; 145 146 if( $show_filters ) { 147 echo '<caption>'.sprintf(__('List of %s blogs match the filter.'), $nb_blog).'</caption>'; 148 } else { 149 echo '<caption class="hidden">'.__('Blogs list').'</caption>'; 150 } 151 152 echo 153 '<tr>'. 137 154 '<th scope="col" class="nowrap">'.__('Blog id').'</th>'. 138 155 '<th scope="col">'.__('Blog name').'</th>'. -
admin/comments.php
r1999 r2135 152 152 /* DISPLAY 153 153 -------------------------------------------------------- */ 154 $starting_script = dcPage::jsLoad('js/_comments.js'); 155 if (!$show_filters) { 156 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 157 } 154 $starting_script = dcPage::jsLoad('js/_comments.js'); 155 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 156 $starting_script .= 157 '<script type="text/javascript">'."\n". 158 "//<![CDATA["."\n". 159 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 160 dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 161 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 162 "//]]>". 163 "</script>"; 164 165 $form_filter_title = __('Filter comments, trackbacks list and display options'); 158 166 159 167 dcPage::open(__('Comments and trackbacks'),$starting_script, … … 203 211 echo '</form>'; 204 212 } 205 206 # Filters207 if (!$show_filters) {208 echo '<p><a id="filter-control" class="form-control" href="#">'.209 __('Filter comments and trackbacks list').'</a></p>';210 }211 213 212 214 echo … … 269 271 '</div>'. 270 272 271 '</form>' 273 '</form>', 274 $show_filters 272 275 ); 273 276 } -
admin/posts.php
r2134 r2135 212 212 /* DISPLAY 213 213 -------------------------------------------------------- */ 214 215 dcPage::open(__('Entries'), 216 dcPage::jsLoad('js/_posts_list.js'). 217 dcPage::jsLoad('js/filter-controls.js'). 214 $starting_script = dcPage::jsLoad('js/_posts_list.js'); 215 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 216 $starting_script .= 218 217 '<script type="text/javascript">'."\n". 219 218 "//<![CDATA["."\n". 220 219 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 221 dcPage::jsVar('dotclear.msg.filter_posts_list', __('Filter posts list'))."\n".220 dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 222 221 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 223 222 "//]]>". 224 "</script>", 223 "</script>"; 224 225 $form_filter_title = __('Filter users list and display options'); 226 227 dcPage::open(__('Entries'),$starting_script, 225 228 dcPage::breadcrumb( 226 229 array( … … 239 242 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'. 240 243 '<form action="posts.php" method="get" id="filters-form">'. 241 '<h3 class="out-of-screen-if-js">'. __('Filters and display options').'</h3>'.244 '<h3 class="out-of-screen-if-js">'.$form_filter_title.'</h3>'. 242 245 243 246 '<div class="table">'. -
admin/users.php
r1912 r2135 89 89 /* DISPLAY 90 90 -------------------------------------------------------- */ 91 $starting_script = dcPage::jsLoad('js/_users.js'); 92 if (!$show_filters) { 93 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 94 } 91 $starting_script = dcPage::jsLoad('js/_users.js'); 92 $starting_script .= dcPage::jsLoad('js/filter-controls.js'); 93 $starting_script .= 94 '<script type="text/javascript">'."\n". 95 "//<![CDATA["."\n". 96 dcPage::jsVar('dotclear.msg.show_filters', $show_filters ? 'true':'false')."\n". 97 dcPage::jsVar('dotclear.msg.filter_posts_list',$form_filter_title)."\n". 98 dcPage::jsVar('dotclear.msg.cancel_the_filter',__('Cancel the filter'))."\n". 99 "//]]>". 100 "</script>"; 101 102 $form_filter_title = __('Filter users list and display options'); 95 103 96 104 dcPage::open(__('Users'),$starting_script, … … 112 120 113 121 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 122 '<p class="top-add"><strong><a class="button add" href="user.php">'.__('New user').'</a></strong></p>'. 121 123 '<form action="users.php" method="get" id="filters-form">'. 122 '<h3 class=" hidden">'.__('Filter users list').'</h3>'.124 '<h3 class="out-of-screen-if-js">'.$form_filter_title.'</h3>'. 123 125 124 126 '<div class="table">'. … … 166 168 '</p>'. 167 169 '</div>'. 168 '</form>' 170 '</form>', 171 $show_filters 169 172 ); 170 173 } -
inc/admin/lib.pager.php
r2134 r2135 170 170 } 171 171 } 172 $html_block =172 $html_block = 173 173 '<div class="table-outer">'. 174 '<table class="clear">';174 '<table>'; 175 175 176 176 if( $filter ) { … … 374 374 class adminCommentList extends adminGenericList 375 375 { 376 public function display($page,$nb_per_page,$enclose_block='' )376 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 377 377 { 378 378 if ($this->rs->isEmpty()) 379 379 { 380 echo '<p><strong>'.__('No comment').'</strong></p>'; 380 if( $filter ) { 381 echo '<p><strong>'.__('No comments or trackbacks matches the filter').'</strong></p>'; 382 } else { 383 echo '<p><strong>'.__('No comment').'</strong></p>'; 384 } 381 385 } 382 386 else … … 392 396 $html_block = 393 397 '<div class="table-outer">'. 394 '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. 398 '<table>'; 399 400 if( $filter ) { 401 $html_block .= '<caption>'.sprintf(__('List of %s Comments or trackbacks match the filter.'), $this->rs_count).'</caption>'; 402 } else { 403 $html_block .= '<caption class="hidden">'.__('Comments and trackbacks list').'</caption>'; 404 } 405 406 $html_block .= '<tr>'. 395 407 '<th colspan="2" scope="col" abbr="comm" class="first">'.__('Type').'</th>'. 396 408 '<th scope="col">'.__('Author').'</th>'. … … 489 501 class adminUserList extends adminGenericList 490 502 { 491 public function display($page,$nb_per_page,$enclose_block='' )503 public function display($page,$nb_per_page,$enclose_block='',$filter=false) 492 504 { 493 505 if ($this->rs->isEmpty()) 494 506 { 495 echo '<p><strong>'.__('No user').'</strong></p>'; 507 if( $filter ) { 508 echo '<p><strong>'.__('No user matches the filter').'</strong></p>'; 509 } else { 510 echo '<p><strong>'.__('No user').'</strong></p>'; 511 } 496 512 } 497 513 else … … 501 517 $html_block = 502 518 '<div class="table-outer clear">'. 503 '<table><caption class="hidden">'.__('Users list').'</caption><tr>'. 519 '<table>'; 520 521 if( $filter ) { 522 $html_block .= '<caption>'.sprintf(__('List of %s users match the filter.'), $this->rs_count).'</caption>'; 523 } else { 524 $html_block .= '<caption class="hidden">'.__('Users list').'</caption>'; 525 } 526 527 $html_block .= '<tr>'. 504 528 '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 505 529 '<th scope="col">'.__('First Name').'</th>'.
Note: See TracChangeset
for help on using the changeset viewer.