'configuration', 'label' => l10n('Configuration mode'), ), array( 'code' => 'map', 'label' => '1-'.l10n('Map mode'), ), array( 'code' => 'exif', 'label' => '2-'.l10n('Exif import'), ), array( 'code' => 'pin', 'label' => '3-'.l10n('Pin mode'), ), array( 'code' => 'zone', 'label' => '3-'.l10n('Zone mode'), ), array( 'code' => 'picture', 'label' => '4-'.l10n('Picture mode'), ), array( 'code' => 'batch', 'label' => '5-'.l10n('Batch association'), ), ); //******* Select mode ******* if (isset($_GET['mode'])) $page['tab'] = $_GET['mode']; else $page['tab'] = $tabs[0]['code']; //******* Add tabs to page ******* $tabsheet = new tabsheet(); foreach ($tabs as $tab) { $tabsheet->add( $tab['code'], $tab['label'], get_root_url().'admin.php?page=plugin&section='.str_replace("/","%2F",$_GET['section']).'&mode='.$tab['code'] ); } $tabsheet->select($page['tab']); $tabsheet->assign(); // Go to selected tab switch ($page['tab']) { case 'configuration': include(PSLI_BINGMAPS_ADMIN_CONF_PHP); break; case 'map': include(PSLI_BINGMAPS_ADMIN_MAP_PHP); break; case 'pin': include(PSLI_BINGMAPS_ADMIN_PIN_PHP); break; case 'zone': include(PSLI_BINGMAPS_ADMIN_ZONE_PHP); break; case 'picture': include(PSLI_BINGMAPS_ADMIN_PICTURE_PHP); break; case 'exif': include(PSLI_BINGMAPS_ADMIN_EXIF_PHP); break; case 'batch': include(PSLI_BINGMAPS_ADMIN_BATCH_PHP); break; } ?>