| 1 |
<?php if( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?> |
| 2 |
<td class="logo"> |
| 3 |
<a href="edit.php?page=redirection.php&sub=groups&id=<?php echo $module->id ?>"> |
| 4 |
<?php if( $module->type == 'apache' ) : ?> |
| 5 |
<img src="<?php echo $this->url() ?>/images/modules/apache.png" width="55" height="56" alt="Apache"/> |
| 6 |
<?php elseif( $module->type == 'wp' ) : ?> |
| 7 |
<img src="<?php echo $this->url() ?>/images/modules/wordpress.png" width="64" height="64" alt="Wordpress"/> |
| 8 |
<?php elseif( $module->type == '404' ) : ?> |
| 9 |
<img src="<?php echo $this->url() ?>/images/modules/404.png" width="64" height="64" alt="Wordpress"/> |
| 10 |
<?php endif; ?> |
| 11 |
</a> |
| 12 |
</td> |
| 13 |
|
| 14 |
<td colspan="5" class="edit"> |
| 15 |
<form action="<?php echo admin_url( 'admin-ajax.php' ) ?>" method="post" accept-charset="utf-8"> |
| 16 |
<table class="edit"> |
| 17 |
<tr> |
| 18 |
<th><?php _e( 'Name', 'redirection' ); ?>:</th> |
| 19 |
<td><input type="text" name="name" value="<?php echo esc_attr( $module->name ) ?>" style="width: 95%"/></td> |
| 20 |
</tr> |
| 21 |
|
| 22 |
<?php $module->config(); ?> |
| 23 |
|
| 24 |
<tr> |
| 25 |
<th></th> |
| 26 |
<td> |
| 27 |
<input class="button-primary" type="submit" name="save" value="<?php _e( 'Save', 'redirection' ); ?>"/> |
| 28 |
<input class="button-secondary" type="submit" name="cancel" value="<?php _e( 'Cancel', 'redirection' ); ?>"/> |
| 29 |
<img class="loader" src="<?php echo $this->url(); ?>/images/progress.gif" alt="loading" width="50" height="16" style="display: none"/> |
| 30 |
|
| 31 |
<input type="hidden" name="action" value="red_module_save"/> |
| 32 |
<input type="hidden" name="id" value="<?php echo $module->id; ?>"/> |
| 33 |
<input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce( 'redirection-module_save_'.$module->id ); ?>"/> |
| 34 |
</td> |
| 35 |
</tr> |
| 36 |
</table> |
| 37 |
</form> |
| 38 |
</td> |
| 39 |
|