<?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 ($plans as $plan) : ?>

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

  <tr>
    <td colspan="2" align="center"><br>-------------------План <b><?=$plan['name']; ?> (<?=$plan['id']; ?>)</b>------------------- <br><br><br></td>
  </tr> 

  <tr>
    <td><b>Название:</b></td>
    <td width="150" align="center"><input type="text" name="name" value="<?=$plan['name']; ?>" /></td>
  </tr>
    
  <tr>
    <td><b>Стоимость:</b></td>
    <td width="150" align="center"><input type="text" name="price" value="<?=$plan['price']; ?>" /></td>
  </tr>

  <tr>
    <td><b>Доход в час руб.:</b></td>
    <td width="150" align="center"><input type="text" name="perc" value="<?=$plan['perc']; ?>" /></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"); ?>