Changeset 16929
- Timestamp:
- Jul 23, 2012, 1:52:18 PM (12 years ago)
- Location:
- branches/2.4
- Files:
-
- 19 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/admin.php
r15230 r16929 32 32 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 33 33 include_once(PHPWG_ROOT_PATH.'admin/include/functions_plugins.inc.php'); 34 include_once(PHPWG_ROOT_PATH.'admin/include/add_core_tabs.inc.php'); 34 35 35 36 trigger_action('loc_begin_admin'); -
branches/2.4/admin/album.php
r16926 r16929 64 64 $tabsheet = new tabsheet(); 65 65 $tabsheet->set_id('album'); 66 $tabsheet->add('properties', l10n('Properties'), $admin_album_base_url.'-properties');67 $tabsheet->add('sort_order', l10n('Manage photo ranks'), $admin_album_base_url.'-sort_order');68 $tabsheet->add('permissions', l10n('Permissions'), $admin_album_base_url.'-permissions');69 $tabsheet->add('notification', l10n('Notification'), $admin_album_base_url.'-notification');70 66 $tabsheet->select($page['tab']); 71 67 $tabsheet->assign(); -
branches/2.4/admin/batch_manager.php
r16926 r16929 351 351 // | Tabs | 352 352 // +-----------------------------------------------------------------------+ 353 354 $tabs = array( 355 array( 356 'code' => 'global', 357 'label' => l10n('global mode'), 358 ), 359 array( 360 'code' => 'unit', 361 'label' => l10n('unit mode'), 362 ), 363 ); 364 365 $tab_codes = array_map( 366 create_function('$a', 'return $a["code"];'), 367 $tabs 368 ); 353 $manager_link = get_root_url().'admin.php?page=batch_manager&mode='; 369 354 370 355 if (isset($_GET['mode'])) … … 374 359 else 375 360 { 376 $page['tab'] = $tabs[0]['code']; 377 } 378 379 if (in_array($page['tab'], $tab_codes)) 380 { 381 $tabsheet = new tabsheet(); 382 $tabsheet->set_id('batch_manager'); 383 foreach ($tabs as $tab) 384 { 385 $tabsheet->add( 386 $tab['code'], 387 $tab['label'], 388 get_root_url().'admin.php?page='.$_GET['page'].'&mode='.$tab['code'] 389 ); 390 } 391 $tabsheet->select($page['tab']); 392 $tabsheet->assign(); 361 $page['tab'] = 'global'; 362 } 363 364 $tabsheet = new tabsheet(); 365 $tabsheet->set_id('batch_manager'); 366 $tabsheet->select($page['tab']); 367 $tabsheet->assign(); 393 368 394 369 // +-----------------------------------------------------------------------+ … … 406 381 // +-----------------------------------------------------------------------+ 407 382 408 include(PHPWG_ROOT_PATH.'admin/batch_manager_'.$page['tab'].'.php'); 409 } 383 include(PHPWG_ROOT_PATH.'admin/batch_manager_'.$page['tab'].'.php'); 410 384 ?> -
branches/2.4/admin/cat_options.php
r16926 r16929 140 140 $tabsheet = new tabsheet(); 141 141 $tabsheet->set_id('cat_options'); 142 // TabSheet initialization143 $opt_link = $link_start.'cat_options&section=';144 $tabsheet->add('status', l10n('Public / Private'), $opt_link.'status');145 $tabsheet->add('visible', l10n('Lock'), $opt_link.'visible');146 if ($conf['activate_comments'])147 {148 $tabsheet->add('comments', l10n('Comments'), $opt_link.'comments');149 }150 if ($conf['allow_random_representative'])151 {152 $tabsheet->add('representative', l10n('Representative'), $opt_link.'representative');153 }154 // TabSheet selection155 142 $tabsheet->select($page['section']); 156 // Assign tabsheet to template157 143 $tabsheet->assign(); 158 144 -
branches/2.4/admin/comments.php
r16926 r16929 100 100 $tabsheet = new tabsheet(); 101 101 $tabsheet->set_id('comments'); 102 $tabsheet->add('', l10n('User comments validation'), '');103 102 $tabsheet->select(''); 104 103 $tabsheet->assign(); -
branches/2.4/admin/configuration.php
r16926 r16929 288 288 $tabsheet = new tabsheet(); 289 289 $tabsheet->set_id('configuration'); 290 // TabSheet initialization291 $tabsheet->add('main', l10n('Main'), $conf_link.'main');292 $tabsheet->add('sizes', l10n('Photo sizes'), $conf_link.'sizes');293 $tabsheet->add('watermark', l10n('Watermark'), $conf_link.'watermark');294 $tabsheet->add('display', l10n('Display'), $conf_link.'display');295 $tabsheet->add('comments', l10n('Comments'), $conf_link.'comments');296 $tabsheet->add('default', l10n('Guest Settings'), $conf_link.'default');297 // TabSheet selection298 290 $tabsheet->select($page['section']); 299 // Assign tabsheet to template300 291 $tabsheet->assign(); 301 292 -
branches/2.4/admin/help.php
r16926 r16929 30 30 check_status(ACCESS_ADMINISTRATOR); 31 31 32 $ link = get_root_url().'admin.php?page=help§ion=';32 $help_link = get_root_url().'admin.php?page=help§ion='; 33 33 $selected = null; 34 $help_section_title = null;35 36 $tabs = array();37 $tabs[] = array(38 'code' => 'add_photos',39 'label' => l10n('Add Photos'),40 );41 $tabs[] = array(42 'code' => 'permissions',43 'label' => l10n('Permissions'),44 );45 $tabs[] = array(46 'code' => 'groups',47 'label' => l10n('Groups'),48 );49 $tabs[] = array(50 'code' => 'virtual_links',51 'label' => l10n('Virtual Links'),52 );53 $tabs[] = array(54 'code' => 'misc',55 'label' => l10n('Miscellaneous'),56 );57 34 58 35 if (!isset($_GET['section'])) 59 36 { 60 $se ction = $tabs[0]['code'];37 $selected = 'add_photos'; 61 38 } 62 39 else 63 40 { 64 $se ction= $_GET['section'];41 $selected = $_GET['section']; 65 42 } 66 43 67 44 $tabsheet = new tabsheet(); 68 45 $tabsheet->set_id('help'); 69 foreach ($tabs as $tab)70 {71 if ($tab['code'] == $section)72 {73 $selected_tab = $tab['code'];74 $help_section_title = $tab['label'];75 }76 77 $tabsheet->add($tab['code'], $tab['label'], $link.$tab['code']);78 }79 $tabsheet->select($selected_tab);80 46 $tabsheet->assign(); 81 47 … … 85 51 array( 86 52 'HELP_CONTENT' => load_language( 87 'help/help_'.$ selected_tab.'.html',53 'help/help_'.$tabsheet->selected.'.html', 88 54 '', 89 55 array('return'=>true) 90 56 ), 91 'HELP_SECTION_TITLE' => $ help_section_title,57 'HELP_SECTION_TITLE' => $tabsheet->sheets[ $tabsheet->selected ]['caption'], 92 58 ) 93 59 ); -
branches/2.4/admin/include/albums_tab.inc.php
r16926 r16929 27 27 28 28 $tabsheet = new tabsheet(); 29 $tabsheet->set_id('cat_list'); 30 $tabsheet->add('list', l10n('List'), $my_base_url.'cat_list'); 31 $tabsheet->add('move', l10n('Move'), $my_base_url.'cat_move'); 32 $tabsheet->add('permalinks', l10n('Permalinks'), $my_base_url.'permalinks'); 29 $tabsheet->set_id('albums'); 33 30 $tabsheet->select($page['tab']); 34 31 $tabsheet->assign(); -
branches/2.4/admin/include/functions_history.inc.php
r16926 r16929 31 31 $tabsheet = new tabsheet(); 32 32 $tabsheet->set_id('history'); 33 // TabSheet initialization34 $tabsheet->add('stats', l10n('Statistics'), $link_start.'stats');35 $tabsheet->add('history', l10n('Search'), $link_start.'history');36 // TabSheet selection37 33 $tabsheet->select($page['page']); 38 // Assign tabsheet to template39 34 $tabsheet->assign(); 40 35 } -
branches/2.4/admin/include/tabsheet.class.php
r16926 r16929 90 90 { 91 91 $this->sheets = trigger_event('tabsheet_before_select', $this->sheets, $this->uniqid); 92 if (!array_key_exists($name, $this->sheets)) 93 { 94 $keys = array_keys($this->sheets); 95 $name = $keys[0]; 96 } 92 97 $this->selected = $name; 93 98 } -
branches/2.4/admin/languages.php
r16926 r16929 36 36 $page['tab'] = 'installed'; 37 37 38 $tabsheet = new tabsheet(); 39 $tabsheet->set_id('languages'); 40 $tabsheet->add('installed', l10n('Installed Languages'), $my_base_url.'&tab=installed'); 41 $tabsheet->add('update', l10n('Check for updates'), $my_base_url.'&tab=update'); 42 $tabsheet->add('new', l10n('Add New Language'), $my_base_url.'&tab=new'); 38 $tabsheet = new tabsheet('languages'); 43 39 $tabsheet->select($page['tab']); 44 40 $tabsheet->assign(); -
branches/2.4/admin/notification_by_mail.php
r16926 r16929 590 590 $tabsheet = new tabsheet(); 591 591 $tabsheet->set_id('nbm'); 592 // TabSheet initialization593 $tabsheet->add('param', l10n('Parameter'),594 add_url_params($base_url.get_query_string_diff(array('mode', 'select')),595 array('mode' => 'param')));596 $tabsheet->add('subscribe', l10n('Subscribe'),597 add_url_params($base_url.get_query_string_diff(array('mode', 'select')),598 array('mode' => 'subscribe')));599 $tabsheet->add('send', l10n('Send'),600 add_url_params($base_url.get_query_string_diff(array('mode', 'select')),601 array('mode' => 'send')));602 // TabSheet selection603 592 $tabsheet->select($page['mode']); 604 // Assign tabsheet to template605 593 $tabsheet->assign(); 606 594 } -
branches/2.4/admin/photo.php
r16926 r16929 63 63 $tabsheet = new tabsheet(); 64 64 $tabsheet->set_id('photo'); 65 $tabsheet->add('properties', l10n('Properties'), $admin_photo_base_url.'-properties');66 $tabsheet->add('coi', l10n('Center of interest'), $admin_photo_base_url.'-coi');67 68 65 $tabsheet->select($page['tab']); 69 66 $tabsheet->assign(); -
branches/2.4/admin/photos_add.php
r16926 r16929 50 50 // | Tabs | 51 51 // +-----------------------------------------------------------------------+ 52 53 $tabs = array( 54 array( 55 'code' => 'direct', 56 'label' => l10n('Web Form'), 57 ), 58 array( 59 'code' => 'applications', 60 'label' => l10n('Applications'), 61 ), 62 ); 63 64 if ($conf['enable_synchronization']) 65 { 66 array_push( 67 $tabs, 68 array( 69 'code' => 'ftp', 70 'label' => l10n('FTP + Synchronization'), 71 ) 72 ); 73 } 74 75 $tab_codes = array_map( 76 create_function('$a', 'return $a["code"];'), 77 $tabs 78 ); 79 80 if (isset($_GET['section']) and in_array($_GET['section'], $tab_codes)) 52 if (isset($_GET['section'])) 81 53 { 82 54 $page['tab'] = $_GET['section']; … … 84 56 else 85 57 { 86 $page['tab'] = $tabs[0]['code'];58 $page['tab'] = 'direct'; 87 59 } 88 60 89 61 $tabsheet = new tabsheet(); 90 62 $tabsheet->set_id('photos_add'); 91 foreach ($tabs as $tab)92 {93 $tabsheet->add(94 $tab['code'],95 $tab['label'],96 PHOTOS_ADD_BASE_URL.'&section='.$tab['code']97 );98 }99 63 $tabsheet->select($page['tab']); 100 64 $tabsheet->assign(); -
branches/2.4/admin/plugins.php
r16926 r16929 38 38 $tabsheet = new tabsheet(); 39 39 $tabsheet->set_id('plugins'); 40 $tabsheet->add('installed', l10n('Plugin list'), $my_base_url.'&tab=installed');41 $tabsheet->add('update', l10n('Check for updates'), $my_base_url.'&tab=update');42 $tabsheet->add('new', l10n('Other plugins'), $my_base_url.'&tab=new');43 40 $tabsheet->select($page['tab']); 44 41 $tabsheet->assign(); -
branches/2.4/admin/rating.php
r16926 r16929 38 38 $tabsheet = new tabsheet(); 39 39 $tabsheet->set_id('rating'); 40 $tabsheet->add('rating', l10n('Photos'), get_root_url().'admin.php?page=rating');41 $tabsheet->add('rating_user', l10n('Users'), get_root_url().'admin.php?page=rating_user');42 40 $tabsheet->select('rating'); 43 41 $tabsheet->assign(); -
branches/2.4/admin/rating_user.php
r16926 r16929 27 27 $tabsheet = new tabsheet(); 28 28 $tabsheet->set_id('rating'); 29 $tabsheet->add('rating', l10n('Photos'), get_root_url().'admin.php?page=rating');30 $tabsheet->add('rating_user', l10n('Users'), get_root_url().'admin.php?page=rating_user');31 29 $tabsheet->select('rating_user'); 32 30 $tabsheet->assign(); -
branches/2.4/admin/themes.php
r16926 r16929 38 38 $tabsheet = new tabsheet(); 39 39 $tabsheet->set_id('themes'); 40 $tabsheet->add('installed', l10n('Installed Themes'), $my_base_url.'&tab=installed');41 $tabsheet->add('update', l10n('Check for updates'), $my_base_url.'&tab=update');42 $tabsheet->add('new', l10n('Add New Theme'), $my_base_url.'&tab=new');43 40 $tabsheet->select($page['tab']); 44 41 $tabsheet->assign(); -
branches/2.4/admin/updates.php
r16926 r16929 36 36 $tabsheet = new tabsheet(); 37 37 $tabsheet->set_id('updates'); 38 $tabsheet->add('pwg', l10n('Piwigo Update'), $my_base_url);39 $tabsheet->add('ext', l10n('Extensions Update'), $my_base_url.'&tab=ext');40 38 $tabsheet->select($page['tab']); 41 39 $tabsheet->assign();
Note: See TracChangeset
for help on using the changeset viewer.