<?php
include_once(_DIR_EXT."/esmo_setting/c_esmo_setting_terminal.php");
class c_page_cab_esmo_setting_terminal_profile extends c_page_cab_esmo_setting_terminal
{
  public $h1='Профили терминалов' ;

 function block_main()
 {
   $this->page_title() ;
  ?>
     <div id="panel_filter">
         <form id="sky-form" class="sky-form">
             <table class="basic">
                 <th></th>
                 <th>Название</th>
                 <th>Видео</th>
                 <th>Тонометр</th>
                 <th>Термометр</th>
                 <th>Алкотестер</th>
                 <th>Пупилометр</th>
                 <?
                 if (_sizeof(_IL('IL_term_prof')->recs)) foreach(_IL('IL_term_prof')->recs as $rec) {
                     ?>
                     <tr>
                         <td><input name="profile_id[<?echo $rec['id']?>]" value="1" type="checkbox"></td>
                         <td><input name="profile[<?echo $rec['id']?>][name]" type="text" value="<?echo $rec['obj_name']?>" style="width: 400px;"></td>
                         <td><input name="profile[<?echo $rec['id']?>][video]" type="checkbox" <?if ($rec['video']) echo "checked"?> value="1"></td>
                         <td><input name="profile[<?echo $rec['id']?>][tonometer]" type="checkbox" <?if ($rec['tonometer']) echo "checked"?> value="1"></td>
                         <td><input name="profile[<?echo $rec['id']?>][thermometer]" type="checkbox" <?if ($rec['thermometer']) echo "checked"?> value="1"></td>
                         <td><input name="profile[<?echo $rec['id']?>][alcotester]" type="checkbox" <?if ($rec['alcotester']) echo "checked"?> value="1"></td>
                         <td><input name="profile[<?echo $rec['id']?>][pupilometer]" type="checkbox" <?if ($rec['pupilometer']) echo "checked"?> value="1"></td>
                     </tr>
                     <?
                 }
                 ?>
             </table>
             <div id="panel_buttons">
                 <button class="button v2" cmd="esmo_setting/terminal_profile_save">Сохранить</button>
                 <button class="button v2" cmd="esmo_setting/terminal_profile_add">Добавить новый профиль</button>
                 <button class="button v2" cmd="esmo_setting/terminal_profile_delete">Удалить выбранные записи</button>
             </div>
         </form>
     </div>

  <?
 }



}



?>
