| 1 |
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?> |
| 2 |
<div class="item" style="width:70%"> |
| 3 |
<form method="post" accept-charset="utf-8" action="<?php echo admin_url( 'admin-ajax.php' ) ?>"> |
| 4 |
<table class="edit"> |
| 5 |
<tr> |
| 6 |
<th width="70"><?php _e ('Name', 'redirection'); ?>:</th> |
| 7 |
<td><input style="width: 95%" type="text" name="name" value="<?php echo esc_attr( $group->name ) ?>"/></td> |
| 8 |
</tr> |
| 9 |
<tr> |
| 10 |
<th width="70"><?php _e ('Tracked', 'redirection'); ?>:</th> |
| 11 |
<td><label><input type="checkbox" name="tracking"<?php echo $this->checked ($group->tracking) ?>/> <span class="sub"><?php _e ('Whether to track \'hits\' to items', 'redirection'); ?></span></label></td> |
| 12 |
</tr> |
| 13 |
<tr> |
| 14 |
<th width="70"><?php _e ('Enabled', 'redirection'); ?>:</th> |
| 15 |
<td><label><input type="checkbox" name="status"<?php if ($group->status == 'enabled') echo ' checked="checked"' ?>/> <span class="sub"><?php _e ('Disabling a group will disable all items contained within it', 'redirection'); ?></span></label></td> |
| 16 |
</tr> |
| 17 |
<tr> |
| 18 |
<th width="70"></th> |
| 19 |
<td> |
| 20 |
<input class="button-primary" type="submit" name="save" value="<?php _e ('Save', 'redirection'); ?>"/> |
| 21 |
<input class="button-secondary" type="submit" name="cancel" value="<?php _e ('Cancel', 'redirection'); ?>"/> |
| 22 |
<img class="loader" src="<?php echo $this->url(); ?>/images/progress.gif" alt="loading" width="50" height="16" style="display: none"/> |
| 23 |
|
| 24 |
<input type="hidden" name="action" value="red_group_save"/> |
| 25 |
<input type="hidden" name="id" value="<?php echo $group->id; ?>"/> |
| 26 |
<input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce ('redirection-group_save_'.$group->id); ?>"/> |
| 27 |
</td> |
| 28 |
</tr> |
| 29 |
</table> |
| 30 |
</form> |
| 31 |
</div> |
| 32 |
|