Changeset 2309:850b5f27bcad for admin
- Timestamp:
- 10/08/13 00:15:04 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r2305 r2309 76 76 ); 77 77 78 $attachment_combo = array( 79 '-' => '', 80 __('With attachments') => '1', 81 __('Without attachments') => '0' 82 ); 83 78 84 # Months array 79 85 $dt_m_combo = array_merge( … … 118 124 $status = isset($_GET['status']) ? $_GET['status'] : ''; 119 125 $selected = isset($_GET['selected']) ? $_GET['selected'] : ''; 126 $attachment = isset($_GET['attachment']) ? $_GET['attachment'] : ''; 120 127 $month = !empty($_GET['month']) ? $_GET['month'] : ''; 121 128 $lang = !empty($_GET['lang']) ? $_GET['lang'] : ''; … … 168 175 } else { 169 176 $selected=''; 177 } 178 179 # - Selected filter 180 if ($attachment !== '' && in_array($attachment,$attachment_combo)) { 181 $params['media'] = $attachment; 182 $show_filters = true; 183 } else { 184 $attachment=''; 170 185 } 171 186 … … 260 275 '<p><label for="selected" class="ib">'.__('Selected:').'</label> '. 261 276 form::combo('selected',$selected_combo,$selected).'</p>'. 277 '<p><label for="attachment" class="ib">'.__('Attachments:').'</label> '. 278 form::combo('attachment',$attachment_combo,$attachment).'</p>'. 262 279 '<p><label for="month" class="ib">'.__('Month:').'</label> '. 263 280 form::combo('month',$dt_m_combo,$month).'</p>'. … … 298 315 form::hidden(array('status'),$status). 299 316 form::hidden(array('selected'),$selected). 317 form::hidden(array('attachment'),$attachment). 300 318 form::hidden(array('month'),$month). 301 319 form::hidden(array('lang'),$lang).
Note: See TracChangeset
for help on using the changeset viewer.