Changeset 1792:3ad2e47ed52d
- Timestamp:
- 09/11/13 10:08:47 (11 years ago)
- Branch:
- default
- Children:
- 1793:a25f8d0fd400, 1829:db77f6bb5df9, 1899:840b0d73f60c
- Parents:
- 1790:13dd14dd5254 (diff), 1791:39acc93c9d30 (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. - Location:
- admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jquery/jquery.pageTabs.js
r1758 r1792 9 9 breakerClassName: 'clear' 10 10 }; 11 11 12 12 var index = start_tab ? start_tab : 0; 13 13 var hash = document.location.hash.split('#').join(''); -
admin/js/jquery/jquery.pageTabs.js
r1734 r1792 15 15 var index = hash; 16 16 } 17 17 18 18 this.params = jQuery.extend(defaults,settings); 19 19 this.divs = jQuery('div.'+this.params.className); … … 78 78 var i = 0; 79 79 var to_trigger = null; 80 var exists = false; 80 81 81 82 this.divs.each(function() { 82 83 if ((this.id != '' && this.id == index) || i == index) { 83 jQuery(this).show(0); 84 This.items[i].className = This.params.listClassName+'-active'; 85 to_trigger = i; 86 } else { 87 jQuery(this).hide(0); 88 This.items[i].className = ''; 84 exists = true; 89 85 } 90 91 86 i++; 92 87 }); 88 89 i = 0; 90 91 if( exists ) { 92 this.divs.each(function() { 93 if ((this.id != '' && this.id == index) || i == index) { 94 jQuery(this).show(0); 95 This.items[i].className = This.params.listClassName+'-active'; 96 to_trigger = i; 97 } else { 98 jQuery(this).hide(0); 99 This.items[i].className = ''; 100 } 101 102 i++; 103 }); 104 } 93 105 94 106 if (to_trigger != null) { -
admin/posts.php
r1772 r1792 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.')'; 49 $users_combo = array_merge( 50 array('-' => ''), 51 dcAdminCombos::getUsersCombo($users) 52 ); 53 54 $categories_combo = array_merge( 55 array( 56 new formSelectOption('-',''), 57 new formSelectOption(__('(No cat)'),'NULL')), 58 dcAdminCombos::getCategoriesCombo($categories,false) 59 ); 60 $categories_values = array(); 61 foreach ($categories_combo as $cat) { 62 if (isset($cat->value)) { 63 $categories_values[$cat->value]=true; 58 64 } 59 60 $users_combo[$user_cn] = $users->user_id; 61 } 62 63 $categories_values = array('NULL' => true); 64 $categories_combo[__('None')] = 'NULL'; 65 while ($categories->fetch()) { 66 $categories_combo[] = new formSelectOption( 67 str_repeat(' ',$categories->level-1).($categories->level-1 == 0 ? '' : '• '). 68 html::escapeHTML($categories->cat_title).' ('.$categories->nb_post.')', 69 $categories->cat_id 70 ); 71 $categories_values[$categories->cat_id] = true; 72 } 73 74 $status_combo = array( 75 '-' => '' 76 ); 77 foreach ($core->blog->getAllPostStatus() as $k => $v) { 78 $status_combo[$v] = (string) $k; 79 } 65 } 66 67 $status_combo = array_merge( 68 array('-' => ''), 69 dcAdminCombos::getPostStatusesCombo() 70 ); 80 71 81 72 $selected_combo = array( 82 73 '-' => '', 83 __(' selected') => '1',84 __(' not selected') => '0'74 __('Selected') => '1', 75 __('Not selected') => '0' 85 76 ); 86 77 87 78 # Months array 88 $dt_m_combo ['-'] = '';89 while ($dates->fetch()) {90 $dt_m_combo[dt::str('%B %Y',$dates->ts())] = $dates->year().$dates->month();91 }92 93 $lang_combo ['-'] = '';94 while ($langs->fetch()) {95 $lang_combo[$langs->post_lang] = $langs->post_lang;96 }79 $dt_m_combo = array_merge( 80 array('-' => ''), 81 dcAdminCombos::getDatesCombo($dates) 82 ); 83 84 $lang_combo = array_merge( 85 array('-' => ''), 86 dcAdminCombos::getLangsCombo($langs,false) 87 ); 97 88 98 89 $sortby_combo = array( … … 249 240 } 250 241 251 dcPage::open(__('Entries'),$starting_script); 252 242 dcPage::open(__('Entries'),$starting_script, 243 dcPage::breadcrumb( 244 array( 245 html::escapeHTML($core->blog->name) => '', 246 '<span class="page-title">'.__('Entries').'</span>' => '' 247 )) 248 ); 249 if (!empty($_GET['upd'])) { 250 dcPage::success(__('Selected entries have been successfully updated.')); 251 } elseif (!empty($_GET['del'])) { 252 dcPage::success(__('Selected entries have been successfully deleted.')); 253 } 253 254 if (!$core->error->flag()) 254 255 { 255 echo 256 '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.__('Entries').'</span></h2>'. 256 echo 257 257 '<p class="top-add"><a class="button add" href="post.php">'.__('New entry').'</a></p>'; 258 258 259 259 if (!$show_filters) { 260 260 echo '<p><a id="filter-control" class="form-control" href="#">'. 261 __('Filter s').'</a></p>';261 __('Filter posts list').'</a></p>'; 262 262 } 263 263 264 264 echo 265 265 '<form action="posts.php" method="get" id="filters-form">'. 266 '<fieldset><legend>'.__('Filters').'</legend>'. 267 '<div class="three-cols">'. 268 '<div class="col">'. 269 '<label for="user_id">'.__('Author:'). 270 form::combo('user_id',$users_combo,$user_id).'</label> '. 271 '<label for="cat_id">'.__('Category:'). 272 form::combo('cat_id',$categories_combo,$cat_id).'</label> '. 273 '<label for="status">'.__('Status:'). 274 form::combo('status',$status_combo,$status).'</label> '. 275 '</div>'. 276 277 '<div class="col">'. 278 '<label for="selected">'.__('Selected:'). 279 form::combo('selected',$selected_combo,$selected).'</label> '. 280 '<label for="month">'.__('Month:'). 281 form::combo('month',$dt_m_combo,$month).'</label> '. 282 '<label for="lang">'.__('Lang:'). 283 form::combo('lang',$lang_combo,$lang).'</label> '. 284 '</div>'. 285 286 '<div class="col">'. 287 '<p><label for="sortby">'.__('Order by:'). 288 form::combo('sortby',$sortby_combo,$sortby).'</label> '. 289 '<label for="order">'.__('Sort:'). 290 form::combo('order',$order_combo,$order).'</label></p>'. 291 '<p><label for="nb" class="classic">'. form::field('nb',3,3,$nb_per_page).' '. 292 __('Entries per page').'</label></p> '. 293 '<p><input type="submit" value="'.__('Apply filters').'" /></p>'. 294 '</div>'. 295 '</div>'. 296 '<br class="clear" />'. //Opera sucks 297 '</fieldset>'. 266 '<h3 class="hidden">'.__('Filter posts list').'</h3>'. 267 268 '<div class="table">'. 269 '<div class="cell">'. 270 '<h4>'.__('Filters').'</h4>'. 271 '<p><label for="user_id" class="ib">'.__('Author:').'</label> '. 272 form::combo('user_id',$users_combo,$user_id).'</p>'. 273 '<p><label for="cat_id" class="ib">'.__('Category:').'</label> '. 274 form::combo('cat_id',$categories_combo,$cat_id).'</p>'. 275 '<p><label for="status" class="ib">'.__('Status:').'</label> ' . 276 form::combo('status',$status_combo,$status).'</p> '. 277 '</div>'. 278 279 '<div class="cell filters-sibling-cell">'. 280 '<p><label for="selected" class="ib">'.__('Selected:').'</label> '. 281 form::combo('selected',$selected_combo,$selected).'</p>'. 282 '<p><label for="month" class="ib">'.__('Month:').'</label> '. 283 form::combo('month',$dt_m_combo,$month).'</p>'. 284 '<p><label for="lang" class="ib">'.__('Lang:').'</label> '. 285 form::combo('lang',$lang_combo,$lang).'</p> '. 286 '</div>'. 287 288 '<div class="cell filters-options">'. 289 '<h4>'.__('Display options').'</h4>'. 290 '<p><label for="sortby" class="ib">'.__('Order by:').'</label> '. 291 form::combo('sortby',$sortby_combo,$sortby).'</p>'. 292 '<p><label for="order" class="ib">'.__('Sort:').'</label> '. 293 form::combo('order',$order_combo,$order).'</p>'. 294 '<p><span class="label ib">'.__('Show').'</span> <label for="nb" class="classic">'. 295 form::field('nb',3,3,$nb_per_page).' '. 296 __('entries per page').'</label></p>'. 297 '</div>'. 298 '</div>'. 299 300 '<p><input type="submit" value="'.__('Apply filters and display options').'" />'. 301 '<br class="clear" /></p>'. //Opera sucks 298 302 '</form>'; 299 303 -
admin/update.php
r1732 r1792 174 174 dcPage::jsPageTabs($default_tab). 175 175 dcPage::jsLoad('js/_update.js') 176 : '') 176 : ''), 177 dcPage::breadcrumb( 178 array( 179 __('System') => '', 180 '<span class="page-title">'.__('Dotclear update').'</span>' => '' 181 )) 177 182 ); 178 183 179 184 if (!$core->error->flag()) { 180 echo '<h2>'.__('Dotclear update').'</h2>';181 182 185 if (!empty($_GET['nocache'])) { 183 dcPage:: message(__('Manual checking of update done successfully.'));186 dcPage::success(__('Manual checking of update done successfully.')); 184 187 } 185 188 } … … 200 203 echo 201 204 '<p class="static-msg">'.sprintf(__('Dotclear %s is available.'),$new_v). 202 ($version_info ? ' ('.sprintf(__('<a href="%s">Information about this version</a>.'),$version_info).')' : '').205 ($version_info ? ' <a href="'.$version_info.'">('.__('Information about this version').')</a>' : ''). 203 206 '</p>'. 204 207
Note: See TracChangeset
for help on using the changeset viewer.