<?
  // шаблон - вывод ссылками без разделитея
  function list_tabel(&$list_recs,$options=array())
  { global $member ;
    $id=($options['id'])? 'id='.$options['id']:'' ;
    ?><table class=list_tabel <?echo $id?>>
        <colgroup><col id="c1"><col id="c2"><col id="c3"><col id="c4"></colgroup>
        <tr><th>№ пропуска</th><th>ФИО</th><?
            if (_sizeof($options['dates'])) foreach($options['dates'] as $date)  echo '<th>'.date('d.m.Y',$date).'</th>' ;
            ?></tr><? ;
        if (_sizeof($list_recs)) foreach($list_recs as $rec)
        { ?><tr class=item>
                <td class="id"><?echo $rec['propusk']?></td>
                <td class="name"><a href="<?echo $rec['__href']?>"><?echo $rec['name']?></a>
                    <?if ($rec['alert']) echo '<div class="alert">'.$rec['alert'].'</div>'?>
                </td>
                <? if (_sizeof($options['dates'])) foreach($options['dates'] as $date)  echo '<td>'.$rec[$date].'</td>' ;?>
            </tr><?
        }
      ?></table><?
  }

?>
