<?
  // вывод списока водителей
  function list_driving_table_img(&$list_recs,$options=array())
  { global $member ;
    $id=($options['id'])? 'id='.$options['id']:'' ;
    ?><table class=list_personal_table_img <?echo $id?>>
        <colgroup><col id="c1"><col id="c2"><col id="c3"><col id="c4"></colgroup>
        <tr><th>Вод.удостоверение</th><th>Фото</th><th>ФИО</th><th>Дата рождения</th><th>Возраст</th><th>Организация</th><th>Автопарк</th><th>Дата выдачи<br>мед.справка</th></tr><? ;
        if (_sizeof($list_recs)) foreach($list_recs as $rec)
        { ?><tr class=item>
                <td class="id"><?echo $rec['driving']?><?if ($rec['demo_access']){?><div class="demo_access" title="Сотрудник может проходить неограниченное число МО"></div><?}?></td>
                <td class="img"><a  href="<?echo $rec['__href']?>" class="new_window" target="_blank" title="win_second"><img src="<?echo img_clone($rec,'small')?>"></a></td>
                <td class="name"><a href="<?echo $rec['__href']?>" class="new_window" target="_blank" title="win_second"><?echo $rec['obj_name']?></a></td>
                <td class="dr"><?echo $rec['dr']?></td>
                <td class="age"><?echo $rec['age']?></td>
                <td class="org"><?echo $rec['_org_name']?></td>
                <td class="otdel"><?echo $rec['_otdel_name']?></td>
                <td class="otdel"><?if ($rec['s_medspravka']) echo date('d.m.Y',$rec['s_medspravka'])?></td>
                <!--<td class="state"><?echo _IL('IL_works')->recs[$rec['working']]['obj_name']?></td>-->
            </tr><?
        }
      ?></table><?
      //damp_array($rec) ;
  }

?>
