Changeset 509:dbad98223895
- Timestamp:
- 07/04/11 14:51:09 (14 years ago)
- Branch:
- formfilters
- Children:
- 517:7a334cf98e87, 519:c508ff281bad
- Parents:
- 508:7dbb15fcd538 (diff), 507:7e4ad7faf881 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r507 r509 86 86 $lang_combo[$langs->post_lang] = $langs->post_lang; 87 87 } 88 89 $sortby_combo = array(90 __('Date') => 'post_dt',91 __('Title') => 'post_title',92 __('Category') => 'cat_title',93 __('Author') => 'user_id',94 __('Status') => 'post_status',95 __('Selected') => 'post_selected'96 );97 98 $order_combo = array(99 __('Descending') => 'desc',100 __('Ascending') => 'asc'101 );102 88 } 103 89 … … 146 132 $params['limit'] = array((($page-1)*$nb_per_page),$nb_per_page); 147 133 $params['no_content'] = true; 134 135 # - Sortby and order filter 136 $sortby = !empty($_GET['sortby']) ? $_GET['sortby'] : 'post_dt'; 137 $order = !empty($_GET['order']) ? $_GET['order'] : 'desc'; 138 if ($sortby !== '') { 139 if ($order !== '') { 140 $params['order'] = $sortby.' '.$order; 141 } 142 } 148 143 149 144 $filterSet = new dcFilterSet('posts','posts.php'); -
admin/posts.php
r508 r509 166 166 $core->callBehavior('adminPostsFilters',$filterSet); 167 167 168 $filterSet->set Values($_GET);168 $filterSet->setFormValues($_GET); 169 169 170 170 # Get posts
Note: See TracChangeset
for help on using the changeset viewer.