Log viewer via html template

This commit is contained in:
Jon Surrell 2016-11-20 19:16:18 +01:00
parent bc3f788507
commit 30fdca65a9
2 changed files with 19 additions and 12 deletions

View File

@ -104,18 +104,7 @@ class WC_Admin_Status {
$log_table_list = new WC_Admin_Log_Table_List();
$log_table_list->prepare_items();
echo '<form method="get" id="mainform" action="" enctype="multipart/form-data">';
echo '<input type="hidden" name="page" value="wc-status" />';
echo '<input type="hidden" name="tab" value="logs-db" />';
$log_table_list->views();
$log_table_list->search_box( __( 'Search message', 'woocommerce' ), 'message' );
$log_table_list->display();
wp_nonce_field( 'woocommerce-status-db-log' );
echo '</form>';
include_once( 'views/html-admin-page-status-logs-db.php' );
}
/**

View File

@ -0,0 +1,18 @@
<?php
/**
* Admin View: Page - Status Database Logs
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<form method="get" id="mainform" action="">
<?php $log_table_list->views(); ?>
<?php $log_table_list->search_box( __( 'Search message', 'woocommerce' ), 'message' ); ?>
<?php $log_table_list->display(); ?>
<input type="hidden" name="page" value="wc-status" />
<input type="hidden" name="tab" value="logs-db" />
</form>