admin_url( 'admin-ajax.php' ) ) ); } /** * Menu item will allow us to load the page to display the table */ public function zt_dcfcf_admin_table_list_page() { add_menu_page( __( 'ASDS CF7', ZT_DCFCF_TEXTDOMAIN ), __( 'ASDS CF7', ZT_DCFCF_TEXTDOMAIN ), 'manage_options' , 'zt-dcfcf-list', array($this, 'zt_dcfcf_table_list_page'), 'dashicons-excerpt-view' ); add_submenu_page('zt-dcfcf-list', 'Settings', 'Settings', 'manage_options' , 'zt-dcfcf-settings', array($this, 'zt_dcfcf_settings') ); } function zt_dcfcf_settings() { require_once 'inc/settings.php'; } /** * Display the list table page * */ public function zt_dcfcf_table_list_page() { $fid = empty($_GET['fid']) ? 0 : (int) $_GET['fid']; $ufid = empty($_GET['ufid']) ? 0 : (int) $_GET['ufid']; $trash = empty($_GET['status']) ? '' : $_GET['status']; if ( !empty($fid) && empty($_GET['ufid']) ) { $this->zt_dcf_form_post_id = (int) $_GET['fid']; $ListTable = new ZT_DCFCF_Main_List_Table(); $ListTable->prepare_items(); ?> views(); ?>
| '.$key.' | '. nl2br($arr_str_data) .' |
|---|---|
| '.$key.' | '.$originalName.'.'.$ext.' |
| '.$key.' | '.nl2br($data).' |
| Date | '. $results[0]->zt_dcf_form_date .' |