<?php if( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
<td class="logo">
	<a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=groups&amp;id=<?php echo $module->id ?>">
	<?php if( $module->type == 'apache' ) : ?>
	<img src="<?php echo $this->url() ?>/images/modules/apache.png" width="55" height="56" alt="Apache"/>
	<?php elseif( $module->type == 'wp' ) : ?>
	<img src="<?php echo $this->url() ?>/images/modules/wordpress.png" width="64" height="64" alt="Wordpress"/>
	<?php elseif( $module->type == '404' ) : ?>
	<img src="<?php echo $this->url() ?>/images/modules/404.png" width="64" height="64" alt="Wordpress"/>
	<?php endif; ?>
	</a>
</td>

<td valign="top">
	<h4>
		<a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=groups&amp;id=<?php echo $module->id ?>"><?php echo esc_html( $module->name ); ?></a>
	</h4>
	
	<?php $module->options(); ?>
	
	<?php if ( $module->is_valid() ) : ?>
		<div class="toolbar">
			<strong><?php _e( 'View as', 'redirection' ); ?>:</strong>
			
			<a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=csv&amp;module=<?php echo $module->id ?>&amp;token=<?php echo $token ?>"><?php _e( 'CSV', 'redirection' ); ?></a>
			<a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=xml&amp;module=<?php echo $module->id ?>&amp;token=<?php echo $token ?>"><?php _e( 'XML', 'redirection' ); ?></a>
			<a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=apache&amp;module=<?php echo $module->id ?>&amp;token=<?php echo $token ?>"><?php _e( 'Apache', 'redirection' ); ?></a>
			<a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=rss&amp;module=<?php echo $module->id ?>&amp;token=<?php echo $token ?>"><?php _e( 'RSS', 'redirection' ); ?></a>
		</div>
	<?php endif; ?>
</td>

<td class="center"><a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=groups&amp;id=<?php echo $module->id ?>"><?php echo $module->groups(); ?></a></td>
<td class="center"><?php echo $module->redirects(); ?></td>
<td class="center"><a href="<?php echo $this->base(); ?>?page=redirection.php&amp;sub=log&amp;module=<?php echo $module->id ?>"><?php echo number_format_i18n( $module->hits() ); ?></a></td>

<?php $nonce = wp_create_nonce( 'redirection-module_manage-'.$module->id ); ?>

<td id="info_<?php echo $module->id ?>" class="operations">
	<div>
		<a class="edit" href="<?php echo admin_url( 'admin-ajax.php'  ); ?>?action=red_module_edit&amp;id=<?php echo $module->id; ?>&amp;_ajax_nonce=<?php echo wp_create_nonce( 'redirection-module_'.$module->id  ); ?>"><?php _e( 'edit', 'redirection' ); ?></a>
		|
		<a class="rdelete" href="<?php echo admin_url( 'admin-ajax.php'  ); ?>?action=red_module_delete&amp;id=<?php echo $module->id; ?>&amp;_ajax_nonce=<?php echo wp_create_nonce( 'redirection-module_'.$module->id  ); ?>"><?php _e( 'delete', 'redirection' ); ?></a>
		|
		<a class="reset" href="<?php echo admin_url( 'admin-ajax.php'  ); ?>?action=red_module_reset&amp;id=<?php echo $module->id; ?>&amp;_ajax_nonce=<?php echo wp_create_nonce( 'redirection-module_'.$module->id  ); ?>"><?php _e( 'reset', 'redirection' ); ?></a>
	</div>
	
	<img class="loader" src="<?php echo $this->url(); ?>/images/progress.gif" alt="loading" width="50" height="16" style="display: none"/>
</td>





