Changeset 1719:b8c48f380463 for admin/posts.php
- Timestamp:
- 09/04/13 14:57:03 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/posts.php
r1596 r1719 47 47 { 48 48 # Filter form we'll put in html_block 49 $users_combo = $categories_combo = array(); 50 $users_combo['-'] = $categories_combo['-'] = ''; 51 while ($users->fetch()) 52 { 53 $user_cn = dcUtils::getUserCN($users->user_id,$users->user_name, 54 $users->user_firstname,$users->user_displayname); 55 56 if ($user_cn != $users->user_id) { 57 $user_cn .= ' ('.$users->user_id.')'; 58 } 59 60 $users_combo[$user_cn] = $users->user_id; 61 } 62 49 $users_combo = array_merge( 50 array('-' => ''), 51 dcAdminCombos::getUsersCombo($users) 52 ); 53 54 $categories_combo = array_merge( 55 array('-' => ''), 56 dcAdminCombos::getCategoriesCombo($categories) 57 ); 63 58 $categories_combo[__('(No cat)')] = 'NULL'; 64 while ($categories->fetch()) { 65 $categories_combo[str_repeat(' ',$categories->level-1).($categories->level-1 == 0 ? '' : '• '). 66 html::escapeHTML($categories->cat_title). 67 ' ('.$categories->nb_post.')'] = $categories->cat_id; 68 } 69 70 $status_combo = array( 71 '-' => '' 72 ); 73 foreach ($core->blog->getAllPostStatus() as $k => $v) { 74 $status_combo[$v] = (string) $k; 75 } 59 60 $status_combo = array_merge( 61 array('-' => ''), 62 dcAdminCombos::getPostStatusesCombo() 63 ); 76 64 77 65 $selected_combo = array( … … 82 70 83 71 # Months array 84 $dt_m_combo ['-'] = '';85 while ($dates->fetch()) {86 $dt_m_combo[dt::str('%B %Y',$dates->ts())] = $dates->year().$dates->month();87 }88 89 $lang_combo ['-'] = '';90 while ($langs->fetch()) {91 $lang_combo[$langs->post_lang] = $langs->post_lang;92 }72 $dt_m_combo = array_merge( 73 array('-' => ''), 74 dcAdminCombos::getDatesCombo($dates) 75 ); 76 77 $lang_combo = array_merge( 78 array('-' => ''), 79 dcAdminCombos::getLangsCombo($langs,false) 80 ); 93 81 94 82 $sortby_combo = array(
Note: See TracChangeset
for help on using the changeset viewer.