function manage_division() { global $wpdb; require_once 'controllers/manage-division.php'; $table = new Division(); $table->prepare_items(); $message = ''; if ('delete' === $table->current_action()) { $message = '<div class="updated below-h2" id="message"><p>' . sprintf(__('Items deleted: %d', 'policy_library_plugin'), count($_REQUEST['id'])) . '</p></div>'; } ?> <div class="wrap"> <div class="icon32 icon32-posts-post" id="icon-edit"><br></div> <h2><?php _e('Divisions', 'policy_library_plugin'); ?> <a class="add-new-h2" href="<?php echo get_admin_url(get_current_blog_id(), 'admin.php?page=divisions_form'); ?> "><?php _e('Add new', 'policy_library_plugin'); ?> </a> </h2> <?php echo $message; ?> <form id="divisions-table" method="GET"> <input type="hidden" name="page" value="<?php echo $_REQUEST['page']; ?> "/> <?php $table->display(); ?> </form> </div> <?php }