| 1 |
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?> |
| 2 |
<div class="wrap"> |
| 3 |
<?php screen_icon(); ?> |
| 4 |
|
| 5 |
<h2><?php _e( 'Redirections', 'redirection' ); ?>:</h2> |
| 6 |
|
| 7 |
<?php $this->render( 'submenu', array( 'options' => $options ) ); ?> |
| 8 |
|
| 9 |
<form action="tools.php"> |
| 10 |
<input type="hidden" name="page" value="redirection.php"/> |
| 11 |
|
| 12 |
<?php $table->search_box( __( 'Search' ), 'search_id' ); ?> |
| 13 |
</form> |
| 14 |
|
| 15 |
<form method="POST" action=""> |
| 16 |
<?php $table->display(); ?> |
| 17 |
</form> |
| 18 |
|
| 19 |
<div style="clear: both"></div> |
| 20 |
</div> |
| 21 |
|
| 22 |
<?php $this->render( 'add', array( 'add_to_screen' => true, 'group' => $group, 'hidden' => false ) ); ?> |
| 23 |
|
| 24 |
<script type="text/javascript"> |
| 25 |
( function( $ ) { |
| 26 |
$( document ).ready( function() { |
| 27 |
var items = new Redirection_Items( $ ); |
| 28 |
var adder = new Redirection_Add( $, '#target', true ); |
| 29 |
|
| 30 |
adder.setup( 'select[name=red_action]', '#add' ); |
| 31 |
items.setup( 'table.items' ); |
| 32 |
} ); |
| 33 |
} )( jQuery ); |
| 34 |
</script> |
| 35 |
|