<?php $curr_user_id = get_current_user_id(); $obj_gym = new Gym_management($curr_user_id); $obj_class = new Gmgtclassschedule(); $obj_notice = new Gmgtnotice(); $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'noticelist'; if (isset($_POST['save_notice'])) { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit') { $result = $obj_notice->gmgt_add_notice($_POST); if ($result) { wp_redirect(home_url() . '?dashboard=user&page=notice&tab=noticelist&message=2'); } } else { $result = $obj_notice->gmgt_add_notice($_POST); if ($result) { wp_redirect(home_url() . '?dashboard=user&page=notice&tab=noticelist&message=1'); } } } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'delete') { $result = $obj_notice->delete_notice($_REQUEST['notice_id']); if ($result) { wp_redirect(home_url() . '?dashboard=user&page=notice&tab=noticelist&message=3'); } } if (isset($_REQUEST['message'])) { $message = $_REQUEST['message']; if ($message == 1) { ?> <div id="message" class="updated below-h2 ">
<?php $obj_class = new Gmgtclassschedule(); $obj_notice = new Gmgtnotice(); $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'noticelist'; ?> <!-- View Popup Code --> <div class="popup-bg"> <div class="overlay-content"> <div class="notice_content"></div> </div> </div> <!-- End Popup --> <div class="page-inner" style="min-height:1631px !important"> <div class="page-title"> <h3><img src="<?php echo get_option('gmgt_system_logo'); ?> " class="img-circle head_logo" width="40" height="40" /><?php echo get_option('gmgt_system_name'); ?> </h3> </div> <?php if (isset($_POST['save_notice'])) { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit') { $result = $obj_notice->gmgt_add_notice($_POST); if ($result) { wp_redirect(admin_url() . 'admin.php?page=gmgt_notice&tab=noticelist&message=2'); } } else {