<!DOCTYPE html>

<html lang="en">

<head>

	<meta charset="UTF-8">

	<title><?= $titulo?></title>

	<?php

		$this->load->view('main/link');

		echo script_tag('js/modulos/xan.js?'.$_SESSION['app.gxc_sesion_version']);

	?>

	<script type="text/javascript">

		$(function () {

			fn_xan_pdiario_listar();

			$('.date').datepicker({

                autoclose   : true,

                format      : 'dd/mm/yyyy'

            });

		});

	</script>

</head>

<body>

	<div class="container-fluid">

		<div class="panel panel-primary">

			<?= $cabecera?>

			<?= $menu?>

			<div class="panel-body" style="text-align: center;">

				<h3><b>PARTE DIARIO</b></h3>

			</div>

			<div class="panel-body">

				<form class="form-inline" id="form_buscar" method="post" action="javascript:fn_xan_pdiario_listar();">

					<div class="form-group">

						<label for="cbo_xco">Consultorio: </label>

						<select name="cbo_xco" id="cbo_xco" class="form-control" onchange="fn_xan_pdiario_listar();">

							<?= $xco?>

						</select>

					</div>

					<div class="form-group">

						<label for="txt_fecha">Fecha</label>

						<div class="input-group date">

							<input type="text" id="txt_fecha" name="txt_fecha" onchange="fn_xan_pdiario_listar();" value="<?= date('d/m/Y')?>" readonly class="form-control" autocomplete="off">

							<span class="input-group-addon">

								<span class="glyphicon glyphicon-calendar"></span>

							</span>

						</div>

					</div>

					<button type="submit" class="btn btn-default">

						<span class="glyphicon glyphicon-search"></span>

					</button>

				</form>

			</div>

			<div class="panel-body">

				<div class="row">

					<div class="col-md-6">

						<table id="xan_pdiario_data_c" class="display table table-hover table-bordered table-condensed table-stripped responsive nowrap">

							<thead>

								<tr>

									<th>DNI</th>

									<th>Apellidos y Nombres</th>

									<th>Acción</th>
								</tr>

							</thead>

							<tbody></tbody>

						</table>

					</div>

					<div class="col-md-6">

						<table id="xan_pdiario_data_a" class="display table table-hover table-bordered table-condensed table-stripped responsive nowrap">

							<thead>

								<tr>

									<th>DNI</th>

									<th>Apellidos y Nombres</th>

									<th>Editar</th>

									<th>Receta</th>

									<th>Exámenes</th>

									<th>Firma Digital</th>
								
								</tr>

							</thead>

							<tbody></tbody>

						</table>

					</div>

				</div>

			</div>

			<?= $pie?>

		</div>

	</div>

</body>
<!-- ESTRUCTURA DEL MODAL DE BOOTSTRAP -->
	<div id="signatureModal" class="modal fade" role="dialog">
	  <div class="modal-dialog">

	    <!-- Contenido del Modal-->
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
	        <h4 class="modal-title">Firma Digital</h4>
	      </div>
	      <div class="modal-body" style="text-align: center;">
	        <!-- Mensaje exacto solicitado -->
	        <p>Ingrese su Clave</p>
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
	      </div>
	    </div>

	  </div>
	</div>
	<!-- FIN: ESTRUCTURA DEL MODAL DE BOOTSTRAP -->


</html>