<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><?= $titulo?></title>
	<?php
		$this->load->view('link');
		echo script_tag('js/modulos/xmto.js?'.$_SESSION['app.soptec_sesion_version']);
	?>
	<style type="text/css">
	</style>
	<script type="text/javascript">
		$(function () {
			$('.date').datepicker({
                autoclose   : true,
                format      : 'dd/mm/yyyy'
            });
		});
	</script>
</head>
<body>
	<div class="container">
		<div class="panel panel-primary">
			<?= $cabecera?>
			<div class="panel-body">
				<ol class="breadcrumb">
  					<li><a href="<?= base_url()?>">Inicio</a></li>
  					<li class="active">Mantenimiento</li>
				</ol>
			</div>
			<div class="panel-body">
				<form class="form-inline" action="javascript:fn_xmto_listar();">
					<div class="row">
						<div class="col-md-12">
							<div class="form-group">
								<label for="txt_desde">Desde</label>
								<div class="input-group date">
									<input type="text" id="txt_desde" name="txt_desde" value="<?= date('d/m/Y')?>" placeholder="Ingrese el asunto" readonly class="form-control" autocomplete="off">
									<span class="input-group-addon">
										<span class="glyphicon glyphicon-calendar"></span>
									</span>
								</div>
							</div>
							<div class="form-group">
								<label for="txt_hasta">Hasta</label>
								<div class="input-group date">
									<input type="text" id="txt_hasta" name="txt_hasta" value="<?= date('d/m/Y')?>" placeholder="Ingrese el asunto" readonly class="form-control" autocomplete="off">
									<span class="input-group-addon">
										<span class="glyphicon glyphicon-calendar"></span>
									</span>
								</div>
							</div>
							<div class="form-group">
								<label for="cbo_xeqo">Equipo</label>
								<select name="cbo_xeqo" id="cbo_xeqo" class="form-control">
									<?= $xeqo?>
								</select>
								<input type="radio" id="rb_bandeja_1" name="rb_bandeja" checked value="0" style="display: none;">
							</div>
							<div class="form-group">
								<label for="cbo_destino">Destino</label>
            				    <select name="cbo_destino" id="cbo_destino" class="form-control" onchange="fn_xmto_listar();">
            				        <option value="2" selected>SOPORTE OSI RALL</option>
            				        <option value="1">SOPORTE OSI LOCAL</option>
            				    </select>
           					</div>
						</div>
					</div>
					<div class="row" style="margin-top: 5px;">
						<div class="col-md-12">
							<button type="submit" class="btn btn-primary">
                   				<span class="glyphicon glyphicon-search"></span>
                   			</button>
                   			<a href="<?= base_url('soporte/xmto/nuevo')?>" class="btn btn-default">
                   				<span class="glyphicon glyphicon-plus"></span>
                   			</a>
						</div>
					</div>
				</form>
			</div>
			<div class="panel-body">
				<table id="xmto_data" class="display responsive nowrap" cellspacing="0" width="100%">
					<thead>
						<tr>
							<th>Acción</th>
							<th>Equipo</th>
							<th>En espera</th>
							<th>En recepcionado</th>
							<th>Diagnósticado</th>
							<th>Reparado</th>
							<th>Establecimiento</th>
							<th>Asunto</th>
						</tr>
					</thead>
					<tbody></tbody>
				</table>
			</div>
			<?= $pie?>
		</div>
	</div>
</body>
</html>