<?php echo $header; ?>
<script type="text/javascript">
//-----------------------------------------
// Confirm Actions (delete, uninstall)
//-----------------------------------------
$(document).ready(function(){    	
    // Confirm Uninstall
    $('a').click(function(){
        if ($(this).attr('href') != null && $(this).attr('href').indexOf('install_sample', 1) != -1) {
            if (!confirm('<?php echo $text_confirm; ?>')) {
                return false;
            }
        }
    });
});
</script>
<script type="text/javascript">
//-----------------------------------------
// Confirm Actions (delete, uninstall)
//-----------------------------------------
$(document).ready(function(){    	
    // Confirm Uninstall
    $('a').click(function(){
        if ($(this).attr('href') != null && $(this).attr('href').indexOf('empty_db', 1) != -1) {
            if (!confirm('<?php echo $text_confirm_empty; ?>')) {
                return false;
            }
        }
    });
});
</script>
<script type="text/javascript">
//-----------------------------------------
// Confirm Actions (delete, uninstall)
//-----------------------------------------
$(document).ready(function(){    	
    // Confirm Uninstall
    $('a').click(function(){
        if ($(this).attr('href') != null && $(this).attr('href').indexOf('drop_db', 1) != -1) {
            if (!confirm('<?php echo $text_confirm_drop; ?>')) {
                return false;
            }
        }
    });
});
</script>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
    <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
<?php echo $shortcut_route;?> 
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/setting.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a></div>
    </div>
    <div class="content">
    
     <?php echo $shortcut_module;?> 
       <?php if ($this->config->get('config_news_sample_installed')) {?>
      <div class="overview">
        <div class="dashboard-heading"><?php echo $text_news_overview; ?></div>
        <div class="dashboard-content">
          <table>
            <tr>
              <td width="35%;"><?php echo $text_total_category; ?><div style="float:right;color:#F00; font-weight:bold;">(<?php echo $total_category; ?>)</div></td>
              <td>
              
              <a href="<?php echo $category;?>" class="button"><span>Get List</span></a>
              <a href="index.php?route=news/category/insert&token=<?php echo $this->session->data['token'];?>" class="button"><span>Insert</span></a>
              </td>
            </tr>
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_total_article; ?><div style="float:right;color:#F00; font-weight:bold;">(<?php echo $total_article; ?>)</div></td>
              <td>
              
              <a href="<?php echo $article;?>" class="button"><span>Get List</span></a>
              <a href="index.php?route=news/article/insert&token=<?php echo $this->session->data['token'];?>" class="button"><span>Insert</span></a>
              
              </td>
            </tr>
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_total_author; ?><div style="float:right;color:#F00; font-weight:bold;">(<?php echo $total_author; ?>)</div></td>
              <td>              
              <a href="../index.php?route=news/author" target="_blank" class="button"><span>View all author</span></a>
              <a href="<?php echo $author;?>" class="button"><span>Get List</span></a>
              <a href="index.php?route=news/author/insert&token=<?php echo $this->session->data['token'];?>" class="button"><span>Insert</span></a>
              </td>
            </tr> <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_total_poll; ?><div style="float:right;color:#F00; font-weight:bold;">(<?php echo $total_poll; ?>)</div></td>
               <td><a href="<?php echo $poll;?>" class="button"><span>Get List</span></a>
              <a href="index.php?route=news/poll/insert&token=<?php echo $this->session->data['token'];?>" class="button"><span>Insert</span></a></td>
            </tr>     
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_total_download; ?><div style="float:right;color:#F00; font-weight:bold;">(<?php echo $total_download; ?>)</div></td>
              <td>
              
              <a href="<?php echo $download;?>" class="button"><span>Get List</span></a>
              <a href="index.php?route=news/download/insert&token=<?php echo $this->session->data['token'];?>" class="button"><span>Insert</span></a>
              </td>
            </tr>
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_total_comment; ?><div style="float:right;color:#F00; font-weight:bold;">(<?php echo $total_comment; ?>)</div></td>
              <td><a href="<?php echo $comment;?>" class="button"><span>Get List</span></a>
              <a href="index.php?route=news/comment/insert&token=<?php echo $this->session->data['token'];?>" class="button"><span>Insert</span></a></td>
            </tr>      
           
              
          </table>
        </div>
      </div>
      <div class="overview" style="margin-left:10px;">
        <div class="dashboard-heading">Database</div>
        <div class="dashboard-content">
          <table>
            <tr>
              <td><?php echo $text_uninstall_module; ?>:</td>
              <td>
              <a href="<?php echo $uninstall_module;?>" class="button"><span><?php echo $text_uninstall;?> </span></a>     
              
              </td>
            </tr> <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_optimize_db; ?>: </td>
              <td>
              <a href="<?php echo $optimize;?>" class="button"><span><?php echo $text_optimize;?></span></a>
              </td>
            </tr>
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_empty_db; ?>: </td>
              <td>
              <a href="<?php echo $empty_db;?>" class="button"><span><?php echo $text_empty;?></span></a>
              </td>
            </tr>
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td><?php echo $text_drop_db; ?>:</td>
              <td>
              <a href="<?php echo $drop_db;?>" class="button"><span><?php echo $text_drop;?></span></a>
              
              </td>
            </tr>
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td>Thank you for purchasing this extension!</td>
              <td>
              </td>
            </tr>  
             <tr>
              <td colspan="2"><hr size="1" /></td>
            </tr>
            <tr>
              <td colspan="2">If you require any assistance, please contact us via email: <a href="mailto:luavietcms@gmail.com" style="color:#F00;">luavietcms@gmail.com</a> </td>
              
            </tr>
            </tr>
             <tr>
              <td colspan="2"> <hr size="1" /></td>
            </tr>
            <tr>
              <td>Website:</td>
              <td>
              <a target="_blank" href="http://www.opencart.com/index.php?route=extension/extension/info&extension_id=8806" class="button"><span>Opencart Extension</span></a>
              <a target="_blank" href="http://www.opencartplus.com" class="button"><span>OpencartPlus.com</span></a>
              </td>
            </tr>  
          </table>
        </div>
      </div>
      
      <?php } ?>
    </div>
  </div>
</div>
<script type="text/javascript"><!--
$('.breadcrumb .opencartplus').remove();
$('title').html('Easy News Setting');
//--></script> 
<?php echo $footer; ?>