
<div class="container eqsl">
<div class="card">
  <div class="card-header">
  	<h5 class="card-title"><?php echo $page_title; ?></h5>
    <ul class="nav nav-tabs card-header-tabs">
      <li class="nav-item">
        <a class="nav-link" href="<?php echo site_url('eqsl/import');?>">Download QSOs</a>
      </li>
      <li class="nav-item">
        <a class="nav-link active" href="<?php echo site_url('eqsl/Export');?>">Upload QSOs</a>
      </li>
    </ul>
  </div>

  <div class="card-body">
  <?php $this->load->view('layout/messages'); ?>

<?php
	if (isset($eqsl_table))
	{
    	echo "<p>The following QSOs have not been sent to eQSL.cc</p>";
    	echo $eqsl_table;
    	echo "<p>Clicking \"Upload QSOs\" will send QSO information to eQSL.cc.</p>";
		echo form_open('eqsl/export');
		echo "<input type=\"hidden\" name=\"eqslexport\" id=\"eqslexport\" value=\"export\" />";
		echo "<input class=\"btn primary\" type=\"submit\" value=\"Upload QSOs\" /></form>";
	}
	else
	{
		if (isset($eqsl_results_table))
		{
			echo "<p>The following QSOs were sent to eQSL.cc</p>";
			echo $eqsl_results_table;
		}
		else
		{
			echo "<p>There are no QSOs that need to be sent to eQSL.cc at this time. Go log some more QSOs!</p>";
		}
	}
?>
</div>

</div>