woocommerce/includes/admin/views/html-admin-page-status-logs...

35 lines
830 B
PHP
Raw Normal View History

2016-11-20 18:16:18 +00:00
<?php
/**
* Admin View: Page - Status Database Logs
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<form method="get" id="mainform" action="">
<?php $log_table_list->views(); ?>
2016-11-20 18:43:26 +00:00
<?php $log_table_list->search_box( __( 'Search tag', 'woocommerce' ), 'tag' ); ?>
2016-11-20 18:16:18 +00:00
<?php $log_table_list->display(); ?>
<input type="hidden" name="page" value="wc-status" />
<input type="hidden" name="tab" value="logs-db" />
2016-11-26 19:05:59 +00:00
</form>
<form method="post" action="">
<?php
wp_nonce_field( 'flush-logs' );
submit_button( __( 'Flush all logs', 'woocommerce' ), 'delete', 'flush-logs' );
?>
2016-11-20 18:16:18 +00:00
</form>
2016-11-27 18:15:13 +00:00
<?php
wc_enqueue_js( "
jQuery( '#flush-logs' ).click( function() {
if ( window.confirm('" . esc_js( __( 'Are you sure you want to clear all logs from the database?', 'woocommerce' ) ) . "') ) {
return true;
}
return false;
});
" );