<?php
include_once("c_esmo_setting_mo.php");
class c_page_cab_esmo_setting_diagnoz extends c_page_cab_esmo_setting_mo
{
  public $h1='Признаки ЗиПР' ;

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

   ?><form class="basic"><input type="text" style="width:400px;" name="element_value" data-required placeholder="Новый диагноз" >&nbsp;
           <input type="submit" class="v2 fa fa-plus" list_id="IL_diagnoz" value="Создать" cmd=esmo_setting/list_element_create validate=form>&nbsp;&nbsp;&nbsp;<?
      if (_sizeof(_IL('IL_diagnoz')->recs)){?><button class="v2" cmd="esmo_setting/list_element_save" list_id="IL_diagnoz">Сохранить изменения</button>&nbsp;&nbsp;&nbsp;<?}

      if (_sizeof(_IL('IL_diagnoz')->recs))
        { ?><table class="basic fz_small auto"><tr><th>Выбор</th><th>Диагноз</th></tr><?
          foreach(_IL('IL_diagnoz')->recs as $rec)
            {   ?><tr class=item>
                    <td><input type="checkbox" name="_check[]" value="<?echo $rec['id']?>"></td>
                    <td class="left"><input type="text" style="width:400px;" name="list_items[<?echo $rec['id']?>]" value="<?echo htmlspecialchars($rec['obj_name'])?>"></td>
                </tr><?
            }
          ?></table><?
        }

     if (_sizeof(_IL('IL_diagnoz')->recs)){?><br><button class="v2" cmd="esmo_setting/list_element_remove" list_id="IL_diagnoz">Удалить выбранные элементы</button>&nbsp;&nbsp;&nbsp;<?}

     ?></form><?

 }
}


?>
