<?
function panel_lamp_info($data,$options=array())
{
    include_once('panel_personal_info.php') ;
    ?>
    <table class="personal_info">
        <tr>
            <td colspan="3">
                <div id="panel_filter" class="one_row">
                   <form id="sky-form" class="sky-form">
                       <fieldset style="padding-right: 20px;">
                           <input type="hidden" name="personal_id" value="<?echo $data['data']['person']['pkey']?>">
                           <input type="hidden" name="mo_id" value="<?echo $data['data']['mo']['pkey']?>">
                           <div id="person_info" class="row">
                               <section class="col col-6">
                                   <label class="label">Номер лампы</label>
                                   <label class="input">
                                       <input autofocus name="lamp_number" id="lamp_number" type="text" value="<?echo ($data['data']['lamp']['obj_name']?$data['data']['lamp']['obj_name']:'')?>">
                                   </label>
                               </section>
                               <section class="col col-6 buttons">
                                   <button class="button v2" cmd="aspmo_rml/give_lamp">Выдать лампу</button>
                               </section>
                           </div>
                           <?
                           if ($GLOBALS['LS_lamp_not_give_away']) {
                               ?>
                               <div class="row">
                                   <section class="col col-6">
                                       <label class="checkbox">
                                           <input type="checkbox" name="not_give_lamp" value="1" <?if ($data['data']['person']['lamp_not_give']) echo "checked"?>><i></i>Без выдачи лампы
                                       </label>
                                   </section>
                               </div>
                               <?
                           }
                           ?>
                       </fieldset>
                   </form>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="3" class="title">
                <div class="mo_status green">Медицинский осмотр пройден</div>
                <div class="mo_status green"><?echo date('d.m.Y H:i',$data['data']['mo']['dopusk_time'])?></div>
            </td>
        </tr>
        <tr>
            <?panel_personal_info($data['data']['person']);?>
        </tr>
        <script type="text/javascript">
            $j('input#lamp_number')[0].focus() ;
            <?if ($GLOBALS['LS_lamp_auto_select_lamp_number']) {?>$j('input#lamp_number')[0].select() ; <?}?>

            $j(document).ready(function()
            {
                $j("body").stopTime('check_pass_number');
                $j("body").stopTime('set_focus');
                $j('body').everyTime(1000,'set_focus',function(){$j('input#lamp_number').focus();})
            });
        </script>
    </table>
    <?

}

?>