<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="edit">
	<h3 style="position:relative;left:-185px;"><?php echo 'MY CONTESTS'; ?></h3>
	<hr style="margin-left:-190px;">
  
  <div class="content" id="tab-allcontests" style="background:none;border:none;">

	<div style="border:1px solid #EDEDED;height: 30px;border-radius:3px;box-shadow: -2px 8px 11px -8px grey;margin-bottom: 5px;width:125px;float:left;">
		<span style="position: relative; top: 8px;left:30px;font-family:calibri;">Contest Id</span>
   </div>
   <div style="border:1px solid #EDEDED;height: 30px;border-radius:3px;box-shadow: -2px 8px 11px -8px grey;margin-bottom: 5px;width:250px;float:left;">
		<span style="position: relative; top: 8px; left:18px;font-family:calibri;">Description</span>
   </div>
   <div style="border:1px solid #EDEDED;height: 30px;border-radius:3px;box-shadow: -2px 8px 11px -8px grey;margin-bottom: 5px;width:125px;float:left;">
		<span style="position: relative; top: 8px;left:40px;font-family:calibri;">Status</span>
   </div>
   <div style="	border:1px solid #EDEDED;height: 30px;border-radius:3px;box-shadow: -2px 8px 11px -8px grey;margin-bottom: 5px;width:125px;float:left;">
		<span style="position: relative; top: 8px;left:40px;font-family:calibri;">Entries</span>
   </div>
   <div style="border:1px solid #EDEDED;height: 30px;border-radius:3px;box-shadow: -2px 8px 11px -8px grey;margin-bottom: 5px;width:125px;float:left;margin-right:20px;">
		<span style="position: relative; top: 8px;left:30px;font-family:calibri;">Feedback</span>
   </div>

   
   
      <?php if ($contests) { ?>
            <?php foreach ($contests as $contest) { ?> 
   <div style="position:relative;top:10px;bottom:10px;height:65px;">
	<div style="height: 30px;border-radius:3px;margin-bottom: 5px;width:125px;float:left;">
		<span style="position: relative; top: 8px;left:45px;">#<?php echo $contest['contest_id']; ?></span>
   </div>
   <div style="height: 30px;border-radius:3px;margin-bottom: 5px;width:250px;float:left;">
		<span style="position: relative; top: 8px; left:18px;">
		<span style="color:#0000FF;font-weight:bold;">
		<a style="color:#0000FF;margin-bottom:10px;" href="http://www.tresorjewellery.com.au/index.php?route=account/overall&cid=<?php echo $contest['contest_id']; ?>"><?php echo $contest['customer_id']; ?></a> 
		</span>
		<br><?php //echo $contest['description']; ?></span>
   </div>
   <div style="height: 30px;border-radius:3px;margin-bottom: 5px;width:125px;float:left;">
		<span style="position: relative; top: 8px;left:23px;"><?php echo $contest['status']; ?></span>
   </div>
   <div style="height: 30px;border-radius:3px;margin-bottom: 5px;width:125px;float:left;">
		<span style="position: relative; top: 8px;left:60px;"><?php echo $contest['contest_entries']; ?></span>
   </div>
   <div style="height: 30px;border-radius:3px;margin-bottom: 5px;width:125px;float:left;">
		<span style="position: relative; top: 8px;left:60px;"><?php echo $contest['contest_feedback']; ?></span>
   </div>
   </div>
     <?php } ?>
            <?php } else { ?>
            <tr>
              <td class="center" colspan="9">
			  <br><br><br>
			  You have no active contest. <br><br>
			  
			  Create your dream design- submit requirement <a href="http://www.tresorjewellery.com.au/index.php?route=information/myown"> here</a>.
			  </td>
            </tr>
            <?php } ?>

  
  </div>
  


  </form>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>
<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script> 