Changeset 1762:1ec1e9f0ed5d
- Timestamp:
- 09/08/13 19:34:30 (11 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/preferences.php
r1726 r1762 47 47 48 48 if (!empty($_GET['append']) || !empty($_GET['removed']) || !empty($_GET['neworder']) || 49 !empty($_GET['replaced']) || !empty($_POST['appendaction']) || !empty($_POST['removeaction'])) { 49 !empty($_GET['replaced']) || !empty($_POST['appendaction']) || !empty($_POST['removeaction']) || 50 !empty($_GET['db-updated'])) { 50 51 $default_tab = 'user-favorites'; 51 52 } elseif (!empty($_GET['updated'])) { … … 178 179 179 180 http::redirect('preferences.php?updated=1'); 181 } 182 catch (Exception $e) 183 { 184 $core->error->add($e->getMessage()); 185 } 186 } 187 188 # Dashboard options 189 if (isset($_POST['db-options'])) { 190 try 191 { 192 # --BEHAVIOR-- adminBeforeUserOptionsUpdate 193 $core->callBehavior('adminBeforeDashboardOptionsUpdate',$core->auth->userID()); 194 195 # Update user prefs 196 $core->auth->user_prefs->dashboard->put('doclinks',!empty($_POST['user_dm_doclinks']),'boolean'); 197 $core->auth->user_prefs->dashboard->put('dcnews',!empty($_POST['user_dm_dcnews']),'boolean'); 198 $core->auth->user_prefs->dashboard->put('quickentry',!empty($_POST['user_dm_quickentry']),'boolean'); 199 $core->auth->user_prefs->interface->put('iconset',(!empty($_POST['user_ui_iconset']) ? $_POST['user_ui_iconset'] : '')); 200 $core->auth->user_prefs->interface->put('nofavmenu',!empty($_POST['user_ui_nofavmenu']),'boolean'); 201 202 # --BEHAVIOR-- adminAfterUserOptionsUpdate 203 $core->callBehavior('adminAfterDashboardOptionsUpdate',$core->auth->userID()); 204 205 http::redirect('preferences.php?db-updated=1'); 180 206 } 181 207 catch (Exception $e) … … 369 395 dcPage::success(__('Personal options has been successfully updated.')); 370 396 } 397 if (!empty($_GET['db-updated'])) { 398 dcPage::success(__('Dashboard options has been successfully updated.')); 399 } 371 400 if (!empty($_GET['append'])) { 372 401 dcPage::success(__('Favorites have been successfully added.')); … … 501 530 502 531 echo 503 '</div>'. 504 505 '<div class="col">'. 506 '<h4>'.__('Dashboard and menu').'</h4>'. 507 508 '<p><label for="user_ui_nofavmenu" class="classic">'. 509 form::checkbox('user_ui_nofavmenu',1,$user_ui_nofavmenu).' '. 510 __('Hide My favorites menu').'</label></p>'; 511 512 if (count($iconsets_combo) > 1) { 513 echo 514 '<p><label for="user_ui_iconset" class="classic">'.__('Iconset:').'</label> '. 515 form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 516 } else { 517 form::hidden('user_ui_iconset',''); 518 } 519 520 echo 521 '<h5>'.('Dashboard modules').'</h5>'. 522 523 '<p><label for="user_dm_doclinks" class="classic">'. 524 form::checkbox('user_dm_doclinks',1,$user_dm_doclinks).' '. 525 __('Display documentation links').'</label></p>'. 526 527 '<p><label for="user_dm_dcnews" class="classic">'. 528 form::checkbox('user_dm_dcnews',1,$user_dm_dcnews).' '. 529 __('Display Dotclear news').'</label></p>'. 530 531 '<p><label for="user_dm_quickentry" class="classic">'. 532 form::checkbox('user_dm_quickentry',1,$user_dm_quickentry).' '. 533 __('Display quick entry form').'</label><br class="clear" />'. //Opera sucks 534 '</p>'; 535 536 echo 537 '</div>'. 532 '</div>'; 533 534 echo 538 535 '</div>'; 539 536 … … 547 544 548 545 # User favorites 549 echo '<div class="multi-part" id="user-favorites" title="'.__('My favorites').'">';546 echo '<div class="multi-part" id="user-favorites" title="'.__('My dashboard').'">'; 550 547 $ws = $core->auth->user_prefs->addWorkspace('favorites'); 551 548 echo '<form action="preferences.php" method="post" id="favs-form">'; … … 652 649 echo '</div>'; # Two-cols 653 650 echo '</form>'; 651 652 echo 653 '<div class="col">'. 654 '<form action="preferences.php" method="post" id="db-forms">'. 655 '<h4>'.__('Dashboard and menu').'</h4>'. 656 657 '<p><label for="user_ui_nofavmenu" class="classic">'. 658 form::checkbox('user_ui_nofavmenu',1,$user_ui_nofavmenu).' '. 659 __('Hide My favorites menu').'</label></p>'; 660 661 if (count($iconsets_combo) > 1) { 662 echo 663 '<p><label for="user_ui_iconset" class="classic">'.__('Iconset:').'</label> '. 664 form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 665 } else { 666 form::hidden('user_ui_iconset',''); 667 } 668 669 echo 670 '<h5>'.__('Dashboard modules').'</h5>'. 671 672 '<p><label for="user_dm_doclinks" class="classic">'. 673 form::checkbox('user_dm_doclinks',1,$user_dm_doclinks).' '. 674 __('Display documentation links').'</label></p>'. 675 676 '<p><label for="user_dm_dcnews" class="classic">'. 677 form::checkbox('user_dm_dcnews',1,$user_dm_dcnews).' '. 678 __('Display Dotclear news').'</label></p>'. 679 680 '<p><label for="user_dm_quickentry" class="classic">'. 681 form::checkbox('user_dm_quickentry',1,$user_dm_quickentry).' '. 682 __('Display quick entry form').'</label><br class="clear" />'. //Opera sucks 683 '</p>'; 684 685 echo 686 '<h4>'.__('Other options').'</h4>'; 687 688 # --BEHAVIOR-- adminDashboardOptionsForm 689 $core->callBehavior('adminDashboardOptionsForm',$core); 690 691 echo 692 '<p class="clear border-top">'. 693 form::hidden('db-options','-'). 694 $core->formNonce(). 695 '<input type="submit" accesskey="s" value="'.__('Save my dashboard options').'" /></p>'. 696 '</form>'; 697 698 echo '</div>'; 699 654 700 echo '</div>'; # user-favorites 655 701 -
locales/fr/main.po
r1760 r1762 3339 3339 msgid "The URL of blog or the URL scan method might not be well set (<code>%s</code> does not return an ATOM feed)." 3340 3340 msgstr "L'URL du blog ou la méthode de lecture de l'URL ne semblent pas être bien réglées (<code>%s</code> ne retourne pas un flux ATOM)" 3341 3342 msgid "Dashboard options has been successfully updated." 3343 msgstr "Les options du tableau de bord ont été enregistrées avec succès." 3344 3345 msgid "Save my dashboard options" 3346 msgstr "Enregistrer les options de mon tableau de bord"
Note: See TracChangeset
for help on using the changeset viewer.