<%@include file="templates/validar.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <%@include file="templates/header.jsp" %>
        <!--template-core-->
        <!--css de la pagina-->

        <!--css-->
    </head>
    <body>
        <%@include file="templates/header-body.jsp" %>
        <!--  content -->
        <div class="col-md-6 col-md-offset-3">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h5 class="panel-title">Control de Asistencia de Administrativos</h5>
                </div>

                <form id="frmAsistencia" onsubmit="return false;" autocomplete="off">
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-3 form-group">
                                <label>Busqueda por</label>
                                <select class="form-control" id="cboCriterio">
                                    <option>SEDE</option>
                                    <option>APELLIDOS</option>
                                    <option>DNI</option>
                                </select>
                            </div>
                            <div class="col-md-9 form-group">
                                <!--                                <label>Busqueda</label>
                                                                <input type="text" class="form-control"/>-->
                                <div id="divCriterio"><label>Sede</label>
                                    <select class="form-control" id="cboSedes">
                                        <option>LINCE</option>
                                        <option>AREQUIPA</option>
                                        <option>LINCE</option>
                                        <option>MONTESORI</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-6 form-group">
                                <label>Fecha Inicio</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="icon-calendar"></i></span>
                                    <input type="text" class="form-control" id="dpFechaInicio" name="dpFechaInicio" placeholder="Fecha inicio &hellip;">
                                </div>

                            </div>
                            <div class="col-md-6 form-group">
                                <label>Fecha Fin</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="icon-calendar"></i></span>
                                    <input type="text" class="form-control" id="dpFechaFin" name="dpFechaFin" placeholder="Fecha fin &hellip;">
                                </div>

                            </div>
                        </div>


                        <div class="row">
                            <div class="col-md-10 form-group">
                                <label>Estado</label>
                                <select class="selectpicker form-control" name="cboSedes" id="cboSedes" multiple>
                                    <option>PENDIENTE</option>
                                    <option>FCA</option>
                                    <option>FSA</option>
                                    <option>TEMPRANO</option>
                                    <option>TARDANZA</option>
                                    <option>NO MARCÓ</option>
                                </select>
                            </div>
                        </div>

                    </div>
                    <div class="panel-footer">
                        <div class="text-center">
                            <button class="btn btn-primary" id="btnBuscar"><i class="fa fa-search"></i> Buscar</button>&nbsp;
                            <button class="btn btn-warning" id="btnLimpiar"><i class="fa fa-eraser"></i> Limpiar</button>
                        </div>
                    </div>

                </form>

            </div>
        </div>


        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-primary card-3" style="margin-top: 30px"> 
                <div class="panel-heading" style="padding: 8px 15px">
                    <h6 class="panel-title" style="font-size: 15px; font-family: inherit"><i class="icon icon-search4"></i>&nbsp; LISTADO DE ASISTENCIAS</h6>
                </div>
                <div>
                    <table class="table dataTable table-striped table-hover table-sm table-bordered" id="tblAsistencias">                                                 
                        <thead>
                            <tr>
                                <th>Nº</th>
                                <th>APELLIDOS Y NOMBRES</th>
                                <th>CARGO</th>
                                <th>HORARIO</th>
                                <th>FECHA</th>
                                <th>HORA MARCACIÓN</th>
                                <th>ESTADO</th>
                                <th>ACCIONES</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>




        <div id="modal_entrada_pendiente" class="modal fade">
            <div class="modal-dialog modal-sm">
                <div class="modal-content">
                    <div class="modal-header bg-primary">
                        <h5 class="modal-title">Registrar Asistencia</h5>
                    </div>

                    <div class="modal-body">
                        <div>
                            <div class="row">
                                <div class="form-group col-md-12">
                                    <label>Fecha de asistencia</label>
                                    <div class="input-group">
                                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                        <input class="datepicker form-control" type="text" id="txtFechaAsistencia" value="12/08/2018" disabled>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="form-group col-md-12">
                                    <label>Policia</label>
                                    <span class="label label-left border-left-primary label-striped form-control">ACUÑA LAZO CYNTHYA ESTEFANI</span>
                                </div>
                            </div>


                            <div class="row">
                                <div class="form-group col-md-12">
                                    <label style="font-size: small">
                                        Tipo de registro:
                                    </label>
                                    <span class="text-danger"> (*)</span>
                                    <select id="cboTipoAsistencia" class="form-control">
                                        <option value="0">[SELECCIONE]</option>
                                        <option value="1">Registro Autorizado</option>
                                        <option value="3">Falta con Aviso</option>
                                        <option value="4">Falta sin Aviso</option>
                                    </select>
                                </div>
                            </div>

                            <div class="row" id="divFiltro">

                            </div>

                        </div>

                    </div>

                    <div class="modal-footer text-center">
                        <button class="btn btn-success" id="btnGuardarCambios" data-dismiss="modal"><i class="fa fa-search"></i> Guardar Cambios</button>&nbsp;
                        <button type="button" class="btn btn-warning" id="btnCancelar" data-dismiss="modal"><i class="fa fa-eraser"></i> Cancelar</button>
                    </div>
                </div>
            </div>
        </div>
        <!-- / content -->

        <%@include file="templates/footer-body.jsp"%>
        <!--js de la pagina-->
        <script src="../plantilla/assets/js/plugins/tables/datatables/datatables.min.js" type="text/javascript"></script>
        <script src="../plantilla/assets/js/plugins/ui/moment/moment.min.js" type="text/javascript"></script>
        <script src="../plantilla/assets/js/plugins/pickers/daterangepicker.js" type="text/javascript" ></script>
        <script src="../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js" type="text/javascript"></script>
        <script src="../js/lib/bootstrap-select/bootstrap-select.min.js" type="text/javascript"></script>
        <script src="../js/lib/lodash.js" type="text/javascript"></script>
        <script src="../js/lib/axios.min.js" type="text/javascript"></script>
        <script src="../js/pages/control_asistencia_administrativa.js" type="text/javascript"></script>
        <!--js-->   

    </body>
</html>