function i_world_map_manage() { $alert = ""; $alertred = ""; if (isset($_GET['action']) && $_GET['action'] == 'delete') { delete_i_world_map($_GET['map']); $alert = "Map Deleted"; } if (isset($_GET['action']) && $_GET['action'] == 'duplicate') { duplicate_i_world_map($_GET['map']); $alert = "Map Duplicated"; } $dbversion = get_option('i_world_map_db_version'); $iwm_db_version = 5; if ($dbversion != $iwm_db_version) { $alertred = "Seems you might have changed the plugin files. Please desactivate and activate the plugin again to make sure there are no errors."; } $iwmaptable = new i_world_map_manage_table(); $iwmaptable->prepare_items(); ?> <div class="wrap"> <div id="interactive-world-maps" class="icon32"></div> <h2>Manage Maps</h2> <?php if ($alert != "") { i_world_map_message($alert); } ?> <?php if ($alertred != "") { i_world_map_message_red($alertred); } ?> <form id="iwm-filter" method="get"> <input type="hidden" name="page" value="<?php echo $_REQUEST['page']; ?> " /> <?php $iwmaptable->display(); ?> </form> <br /> <br /> <?php $iwm_blog_id = get_current_blog_id(); ?> <a href="<?php echo get_admin_url($iwm_blog_id, 'admin.php?page=iwm_add'); ?> " class="button-primary">Add New Map</a> <br /> <br /> </div> <?php }
function i_world_map_manage() { $alert = ""; if (isset($_GET['action']) && $_GET['action'] == 'delete') { delete_i_world_map($_GET['map']); $alert = "Map Deleted"; } $iwmaptable = new i_world_map_manage_table(); $iwmaptable->prepare_items(); ?> <div class="wrap"> <div id="interactive-world-maps" class="icon32"></div> <h2>Manage Maps</h2> <?php if ($alert != "") { i_world_map_message($alert); } ?> <form id="movies-filter" method="get"> <input type="hidden" name="page" value="<?php echo $_REQUEST['page']; ?> " /> <?php $iwmaptable->display(); ?> </form> <br /> <br /> <a href="<?php echo $_SERVER['PHP_SELF']; ?> ?page=iwm_add" class="button-primary">Add New Map</a> <br /> <br /> </div> <?php }