<!-- Modal -->
<div id="modalTimeClock" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel"><?php echo $_translator->_getTranslation('Reloj checador');?></h3>            
        </div> 
        <div class="modal-body">              
            <div id="flashmessenger-timeclock" style="height: 70px"></div>
                <div class="col-md-8 col-md-offset-2" style="margin-bottom: 70px">
                    <div class="input-group">
                        <input type="password" id="nip_user" class="form-control text-center" placeholder="<?php echo $_translator->_getTranslation('NIP de empleado');?>" />
                        <span class="input-group-btn">
                        <button id="btn_punch" class="btn btn-primary" type="button"><span class="fa fa-download" aria-hidden="true">
                        </span> <?php echo $_translator->_getTranslation('Checar');?></button>
                        </span>
                    </div>
                </div>        
            <div class="clear"></div>                
            <!--
            <table id="tbl-punchstimeclock" class="table table-hove table-condensed table-striped table-bordered">
                <caption class="text-center"><?php echo $_translator->_getTranslation('Ultimas checadas');?></caption>
                <thead>
                    <tr>
                        <th class="text-center"><?php echo $_translator->_getTranslation('Entrada');?></th>
                        <th class="text-center"><?php echo $_translator->_getTranslation('Salida');?></th>
                        <th class="text-center"><?php echo $_translator->_getTranslation('Total');?></th>
                    </tr>
                </thead>
                <tbody></tbody>                
            </table>
            -->
            <div class="clear"></div>        
        </div>
        <div class="modal-footer">
            <div class="col-lg-12 col-md-12 col-sm-12">
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true"><?php echo $_translator->_getTranslation('Cerrar')?></button>
            </div>
        </div>
    </div>           
    </div>
    <script type="text/javascript">      
        $('#nip_user').on('keypress',function(e) {
            if(e.which === 13) {
               setPunchTimeClock();
            }
        });
        
        $('#btn_punch').on('click',function(){
            setPunchTimeClock();
        });
        
        $('#modalTimeClock').on('shown.bs.modal',function(){$('#nip_user').focus();});
    </script>
</div>