Changeset 16928 for trunk/admin/photos_add.php
- Timestamp:
- Jul 23, 2012, 1:50:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/photos_add.php
r16925 r16928 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();
Note: See TracChangeset
for help on using the changeset viewer.