| 1 |
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?> |
| 2 |
<div class="wrap"> |
| 3 |
<?php screen_icon(); ?> |
| 4 |
|
| 5 |
<h2><?php _e ('Redirection Log', 'redirection'); ?></h2> |
| 6 |
|
| 7 |
<?php $this->render_admin( 'submenu', array( 'options' => $options ) ); ?> |
| 8 |
|
| 9 |
<form method="POST" action=""> |
| 10 |
<?php $table->search_box( __( 'Search' ), 'search_id' ); ?> |
| 11 |
<?php $table->display(); ?> |
| 12 |
</form> |
| 13 |
|
| 14 |
<div style="clear: both"></div> |
| 15 |
</div> |
| 16 |
|
| 17 |
<?php $this->render_admin ('add', array ('hidden' => true))?> |
| 18 |
|
| 19 |
<div class="wrap"> |
| 20 |
<h2><?php _e( 'Process Current Logs', 'redirection' ); ?></h2> |
| 21 |
<p><?php _e( 'These actions will affect all currently available logs (i.e. your search phrase will restrict the log items).', 'redirection' ); ?></p> |
| 22 |
|
| 23 |
<form action="" method="post" accept-charset="utf-8"> |
| 24 |
<?php wp_nonce_field ('redirection-process_logs'); ?> |
| 25 |
|
| 26 |
<?php if ( isset( $_POST['s'] ) ): ?> |
| 27 |
<input type="hidden" name="s" value="<?php echo esc_attr( $_POST['s'] ); ?>" /> |
| 28 |
<?php endif; ?> |
| 29 |
|
| 30 |
<input class="button-primary" type="submit" name="deleteall" value="<?php esc_attr_e( 'Delete Logs', 'redirection' ); ?>"/> |
| 31 |
</form> |
| 32 |
</div> |
| 33 |
|
| 34 |
<script type="text/javascript"> |
| 35 |
var redirection; |
| 36 |
|
| 37 |
jQuery(document).ready( function() { |
| 38 |
redirection = new Redirection( { |
| 39 |
progress: '<img src="<?php echo $this->url () ?>/images/progress.gif" alt="loading" width="50" height="16"/>', |
| 40 |
ajaxurl: '<?php echo admin_url( 'admin-ajax.php' ) ?>', |
| 41 |
nonce: '<?php echo wp_create_nonce( 'redirection-items' ); ?>', |
| 42 |
none_select: '<?php echo esc_js( __( 'No items have been selected', 'redirection' ) ); ?>', |
| 43 |
are_you_sure: '<?php echo esc_js( __( 'Are you sure?', 'redirection') ); ?>', |
| 44 |
}); |
| 45 |
redirection.logs(); |
| 46 |
}); |
| 47 |
</script> |
| 48 |
|