<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><?= $titulo?></title>
	<?php
		$this->load->view('main/link');
		echo script_tag('js/modulos/xco.js?'.$_SESSION['app.gxc_sesion_version']);
	?>
	<script type="text/javascript">
		$(function () {
			fn_xco_listar();
		});
	</script>
</head>
<body>
	<div class="container">
		<div class="panel panel-primary">
			<?= $cabecera?>
			<?= $menu?>
			<div class="panel-body">
				<h3><b>LISTAR CONSULTORIO</b></h3>
			</div>
			<div class="panel-body">
				<form class="form-inline" id="form_buscar" method="post" action="javascript:fn_xco_listar();">
					<div class="form-group">
						<label for="txt_buscar">Buscar: </label>
						<input type="text" name="txt_bxco" id="txt_bxco" class="form-control">
					</div>
					<button type="submit" class="btn btn-default">
						<span class="glyphicon glyphicon-search"></span>
					</button>
					<button type="button" onclick="fn_xco_nuevo();" class="btn btn-primary">
						<span class="glyphicon glyphicon-plus"></span>
					</button>
				</form>
			</div>
			<div class="panel-body">
				<table id="xco_data" class="display table table-hover table-stripped responsive nowrap">
					<thead>
						<tr>
							<th>Descripción</th>
							<th>Acción</th>
						</tr>
					</thead>
					<tbody></tbody>
				</table>
			</div>
			<?= $pie?>
		</div>
	</div>
</body>
</html>