Changeset 3117:6f7f1a16d59a for admin/posts.php
- Timestamp:
- 10/18/15 17:01:05 (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r3105 r3117 78 78 ); 79 79 80 $comment_combo = array( 81 '-' => '', 82 __('Opened') => '1', 83 __('Closed') => '0' 84 ); 85 86 $trackback_combo = array( 87 '-' => '', 88 __('Opened') => '1', 89 __('Closed') => '0' 90 ); 91 80 92 $attachment_combo = array( 81 93 '-' => '', … … 146 158 $password = isset($_GET['password']) ? $_GET['password'] : ''; 147 159 $selected = isset($_GET['selected']) ? $_GET['selected'] : ''; 160 $comment = isset($_GET['comment']) ? $_GET['comment'] : ''; 161 $trackback = isset($_GET['trackback']) ? $_GET['trackback'] : ''; 148 162 $attachment = isset($_GET['attachment']) ? $_GET['attachment'] : ''; 149 163 $month = !empty($_GET['month']) ? $_GET['month'] : ''; … … 207 221 } else { 208 222 $selected=''; 223 } 224 225 # - Comment filter 226 if ($comment !== '' && in_array($comment,$comment_combo)) { 227 $params['where'] .= " AND post_open_comment = '".$comment."' "; 228 $show_filters = true; 229 } else { 230 $comment=''; 231 } 232 233 # - Comment filter 234 if ($trackback !== '' && in_array($trackback,$trackback_combo)) { 235 $params['where'] .= " AND post_open_tb = '".$trackback."' "; 236 $show_filters = true; 237 } else { 238 $trackback=''; 209 239 } 210 240 … … 326 356 '<p><label for="lang" class="ib">'.__('Lang:').'</label> '. 327 357 form::combo('lang',$lang_combo,$lang).'</p> '. 358 '<p><label for="comment" class="ib">'.__('Comments:').'</label> '. 359 form::combo('comment',$comment_combo,$comment).'</p>'. 360 '<p><label for="trackback" class="ib">'.__('Trackbacks:').'</label> '. 361 form::combo('trackback',$trackback_combo,$trackback).'</p>'. 328 362 '</div>'. 329 363 … … 361 395 form::hidden(array('password'),$password). 362 396 form::hidden(array('selected'),$selected). 397 form::hidden(array('comment'),$comment). 398 form::hidden(array('trackback'),$trackback). 363 399 form::hidden(array('attachment'),$attachment). 364 400 form::hidden(array('month'),$month).
Note: See TracChangeset
for help on using the changeset viewer.