<?
function panel_MO_info($rec_MO,$options=array())
{ ?><div id="panel_MO_info"><h1>Информация по МО</h1><?
  if ($rec_MO['pkey'])
  {?><table class="table_tr_line">
         <tr><td>Дата проведения:</td><td><?echo date('d.m.Y H:i:s',$rec_MO['c_data'])?></td></tr>
         <tr><td>ID:</td><td><?echo $rec_MO['pkey']?></td></tr>
         <tr><td>Результат МО:</td><td class="status_<?echo $rec_MO['dopusk']?>"><?/*if ($rec_MO['dopusk']) echo $rec_MO['_dopusk_name_full'] ; else echo $rec_MO['_comment'] */ echo $rec_MO['_dopusk_status']?></td></tr>
         <tr><td>МО пройден на:</td><td><?echo $rec_MO['terminal_name']?></td></tr>
         <tr><td>МО провел:</td><td><?echo $rec_MO['_doctor_name']?></td></tr>
         <!--<tr><td>Допуск:</td><td><?echo $rec_MO['_dopusk_status']?></td></tr>-->
    </table>

    <table>
        <tr>
            <td><? if ($rec_MO['_member_img_auth']) {?><img width=100 src="<?echo $rec_MO['_member_img_auth']?>"><?}?></td>
            <td><? if ($rec_MO['_member_img_alco']) {?><img width=100 src="<?echo $rec_MO['_member_img_alco']?>"><?}?></td>
        </tr>
    </table>
  <?} else echo '<div class="alert_MO">МО не проводился</div>' ;
  ?></div>
    <script type="text/javascript">
        $j(document).ready(function()
        { $j('div#panel_MO_info img').hover(panel_image_preview_on,panel_image_preview_off) ;
        }) ;
    </script>


  <?

}

?>