} } } if (isset($_GET['page_num'])) { $page_num = (int) $_GET['page_num']; } else { $page_num = 1; } if (isset($_GET['s'])) { $ticketssearch = $_GET['s']; } else { $ticketssearch = ''; } $wp_tickets_search = new TC_Tickets_Search($ticketssearch, $page_num); $fields = $tickets->get_ticket_fields(); $columns = $tickets->get_columns(); ?> <div class="wrap tc_wrap"> <h2><?php echo $tickets->form_title; if (isset($_GET['action']) && $_GET['action'] == 'edit') { ?> <a href="admin.php?page=<?php echo $_GET['page']; ?> " class="add-new-h2"><?php _e('Add New', 'tc'); ?> </a><?php } ?>