<?php
include_once("c_esmo_master.php");
class c_page_cab_esmo_master_setting_smena extends c_page_cab_esmo_master
{
  public $h1='Рабочее место мастера - Настройка смен' ;

 function block_main()
 { $this->page_title() ;
   $this->panel_setting_smena() ;

 }






function panel_setting_smena()
 {


     ?><div id="panel_smena_setting"><form><table class="basic fz_small">
        <tr><th>Смена</th><th>День</th><th>Начало</th><th>Окончание</th></tr>
     <?
     for($i=0;$i<=10;$i++)
     {   $rec_smena=(isset($this->arr_smena))? $this->arr_smena[$i]:array() ;
         ?> <tr><td><input type="text" name="name" value="<?echo $rec_smena['name']?>"></td>
             <td><input type="text" name="day" value="<?echo $rec_smena['day']?>"></td>
             <td><input type="text" name="from" value="<?echo $rec_smena['from_h'].':'.$rec_smena['from_m']?>"></td>
             <td><input type="text" name="to_h" value="<?echo $rec_smena['to_h'].':'.$rec_smena['to_m']?>"></td>
         </tr><?
     }
     ?>
   </table><br>
     <input type="submit" class="v2" cmd="esmo_master/save_smena_setting" value="сохранить">&nbsp;&nbsp;&nbsp;&nbsp;
     <button type="submit" class="v2" cmd="esmo_master/copy_smena_from_admin">Загрузить смены из admin</button>
     </form><?

   ?></div>
   <style type="text/css">
       div#panel_smena_setting input[type="text"]{width:50px;text-align:center;}
   </style>

   <?
 }


}



?>