<?php
// Set tab navigation so that we re-direct to the correct page
$tab = $this->current_posttype;
if( $tab ){
    $this->set_option( array( 'current_posttype' => $this->current_posttype ) );
    $link_url = admin_url( 'admin.php?page=aow_hub_node&tab=' . $tab . '&compare=clear', 'https' );
}else{
    $link_url = admin_url( 'admin.php?page=aow_hub_node&compare=clear', 'https' );
}
?>
<div class="postbox aow-page-inner-header"><div class="inside">
	
   <?php if( isset( $this->section_settings[ 'compare' ] ) ): ?>
	<a class="aow-compare-back" href="<?php echo $link_url; ?>">Back To All <?php echo $this->section_settings[ 'title' ]; ?> Info</a>
	<?php endif; ?>
	<h2>All <?php echo $this->section_settings[ 'title' ]; ?> Info</h2>
	<?php if( $this->section_settings[ 'data_new' ] ): ?>
    <input type="submit" class="alignright aow-hub-node-button button-warning aow-hub-node-group" name="data" value="Apply New Data" />
	<?php endif; ?>
	<?php if( $this->section_settings[ 'data' ] ): ?>
	<input type="submit" class="alignright aow-hub-node-button button-primary aow-hub-node-group" name="data" value="Get New Data" />
	<?php else: ?>
	<input type="submit" class="alignright aow-hub-node-button button-primary aow-hub-node-group" name="data" value="Get Data"  />
	<?php endif; ?>
	<?php if( $this->section_settings[ 'data_new' ] ): ?>
	<input type="submit" class="alignright aow-hub-node-button button-secondary aow-hub-node-group" name="data" value="Clear New Data" />
	<?php endif; ?>
	
<div class="clear"></div></div></div>
    <?php echo $this->section_settings[ 'data_table' ]; ?>