<?php require_once(ROOT . "/views/admin/layouts/_header_admin.php"); ?>

<div class="s-bk-lf">
	<div class="acc-title">Гонка лидеров</div>
</div>
<div class="silver-bk"><div class="clr"></div>	

<?php if(isset($errors)) echo $errors; ?>

<table width="100%" border="0">

<?php foreach ($leads as $lead) : ?>

<form action="" method="post">
  <input type="hidden" name="_tocken" value="<?=Session::$tocken; ?>">
  <input type="hidden" name="id" value="<?=$lead['id']; ?>">

  <tr>
    <td colspan="2" align="center"><br>-------------------Гонка <b><?=$lead['term']; ?> дней (день)</b>------------------- <br><br><br></td>
  </tr> 

  <tr>
    <td><b>Длительность:</b></td>
    <td width="150" align="center"><input type="text" name="term" value="<?=$lead['term']; ?>" /></td>
  </tr>

  <tr>
    <td><b>Награда за 1-ое место (%):</b></td>
    <td width="150" align="center"><input type="text" name="1m" value="<?=$lead['1m']; ?>" /></td>
  </tr>

  <tr>
    <td><b>Награда за 2-ое место (%):</b></td>
    <td width="150" align="center"><input type="text" name="2m" value="<?=$lead['2m']; ?>" /></td>
  </tr>

  <tr>
    <td><b>Награда за 3-ое место (%):</b></td>
    <td width="150" align="center"><input type="text" name="3m" value="<?=$lead['3m']; ?>" /></td>
  </tr>

  <tr>
    <td><b>Награда за 4-ое место (%):</b></td>
    <td width="150" align="center"><input type="text" name="4m" value="<?=$lead['4m']; ?>" /></td>
  </tr>

  <tr>
    <td><b>Награда за 5-ое место (%):</b></td>
    <td width="150" align="center"><input type="text" name="5m" value="<?=$lead['5m']; ?>" /></td>
  </tr>

  <tr>
    <td><b>Дата окончания (UNIX):</b></td>
    <td width="150" align="center"><input type="text" name="next_date" value="<?=$lead['next_date']; ?>" /></td>
  </tr>

  <tr> 
    <td colspan="2" align="center"><input name="yes" type="submit" value="Сохранить" /></td> 
  </tr>
</form>

<?php endforeach; ?>

</table>



</div>
<div class="clr"></div>	

<?php require_once(ROOT . "/views/admin/layouts/_footer_admin.php"); ?>