File "administracion_cheques2 - copia.php"
Full path: /home/wwwitravel/public_html/00sistema.cymchiletours.cl/vistas/administracion_cheques2 - copia.php
File
size: 0.01 KB (6.88 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
include('header.php');
$administracion = new administracion();
$cheques=$administracion->getCheques('girado','emitido','DOLAR');
$montos=$administracion->getMontoCheq();
?>
<script>
$(document).ajaxStop(function () {
$('table tr td:nth-child(4)').hide();
$('table tr td:nth-child(5)').hide();
$('table tr td:nth-child(7)').hide();
$('table tr td:nth-child(8)').hide();
});
$(document).ready(function() {
$('table tr td:nth-child(4)').hide();
$('table tr td:nth-child(5)').hide();
$('table tr td:nth-child(7)').hide();
$('table tr td:nth-child(8)').hide();
});
</script>
<div class="row contenido">
<div id="dialog-editarcheque" title="Modificar">
<input type="hidden" name="mod_id" value="">
<input type="hidden" class="form-control" name="mod_rut_gira">
<input type="hidden" class="form-control" name="mod_nombre_gira">
<input type="hidden" class="form-control" name="mod_banco_gira">
<input type="hidden" class="form-control" name="mod_cuenta">
<label>Nº Cheque</label>
<input type="text" class="form-control" name="mod_n_che">
<label>Fecha Cobro</label>
<input type="text" class="form-control" id="mod_fecha_cobro" name="mod_fecha_cobro">
<input type="hidden" class="form-control" name="mod_pax">
</div>
<div class="col-md-12">
<a href="administracion_cheques.php"><button type="button" class="btn btn-primary"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Ver por cobrar</button></a>
</div>
<div class="col-md-6">
<h4>Pesos</h4>
Total Cheques Girados $<span id="girado_pesos"><?=number_format($montos['giradopeso'], 0, ",", ".")?></span><br>
Total Cheques Girados Cobrados $<span id="girado_pesos_cobrado"><?=number_format($montos['girado_cobrado_peso'], 0, ",", ".")?></span><br>
</div>
<div class="col-md-6">
<h4>Dolares</h4>
Total Cheques Girados $<span id="girado_dolar"><?=number_format($montos['giradodolar'], 0, ",", ".")?></span><br>
Total Cheques Girados Cobrados $<span id="girado_dolar_cobrado"><?=number_format($montos['girado_cobrado_dolar'], 0, ",", ".")?></span><br>
</div>
<div class="col-md-12">
<div id="tab-containerc" class="tab-container">
<ul class='etabs'>
<li class='tab'><a href="#tabsc3" id="tab3" class="getcheques">Girados Dolar</a></li>
<li class='tab'><a href="#tabsc4" id="tab4" class="getcheques">Girados Peso</a></li>
<li class='tab'><a href="#tabsc7" id="tab7" class="getcheques">Girados Cobrados Dolar</a></li>
<li class='tab'><a href="#tabsc8" id="tab8" class="getcheques">Girados Cobrados Peso</a></li>
</ul>
<div id="tabsc3">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla3">
<thead>
<tr>
<td>ID</td>
<td>Ingresado</td>
<td width="7%">Fecha</td>
<td width="8%">Rut Girador</td>
<td>Nombre Girador</td>
<td>Receptor</td>
<td>Banco</td>
<td width="9%">N° Cuenta</td>
<td width="7%">N° Cheque</td>
<td width="9%">Monto</td>
<td width="7%">Fecha Cobro</td>
<td>Estado</td>
<td>PAX</td>
<td>Tipo Cuenta</td>
<td>Origen</td>
<td width="7%">Controles</td>
</tr>
</thead>
<tbody>
<?php
foreach($cheques as $val){
?>
<tr id="tr<?=$val['id']?>">
<td><?=$val['id']?></td>
<td><?=$val['usuario']?></td>
<td><?=$val['fecha_crea']?></td>
<td><?=$val['rut_girador']?></td>
<td><?=$val['nombre_girador']?></td>
<td><a href="<?=$val['link_receptor']?>" target="blank"><?=$val['nombre_receptor']?></a></td>
<td><?=$val['banco']?></td>
<td><?=$val['n_cuenta']?></td>
<td><?=$val['n_cheque']?></td>
<td><input type="hidden" class="precio" value="<?=$val['monto']?>"><?=number_format($val['monto'], 0, ",", ".")?></td>
<td><?=($val['fecha_cobro']=="0000-00-00")?'Sin asignar':$val['fecha_cobro']?></td>
<td><?=$val['estado']?></td>
<td><?=$val['pax']?></td>
<td><?=$val['tipo_cuenta']?></td>
<td>
<?php
if($val['nom_tabla']=='pagos_negocio_cli'){echo "Pago Cliente";}
if($val['nom_tabla']=='pagos_serv'){echo "Pago Servicio";}
if($val['nom_tabla']=='gastos'){echo "Pago Gasto/Oficina";}
?>
</td>
<td>
<?php
if($val['nom_tabla']=='pagos_negocio_cli' || $val['nom_tabla']=='pagos_serv'){
?>
<a href="javascript:void(0);" onclick="moverCheque(<?=$val['id']?>);"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a>
<?php
}
?>
<a href="javascript:void(0);" onclick="editCheque(<?=$val['id']?>);"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
<a href="javascript:void(0);" onclick="verOrigenCheque('<?=$val['nom_tabla']?>',<?=$val['id_tabla_aso']?>);"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span></a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div id="tabsc4">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla4">
<thead>
<tr>
<td>ID</td>
<td>Ingresado</td>
<td width="7%">Fecha</td>
<td width="8%">Rut Girador</td>
<td>Nombre Girador</td>
<td>Receptor</td>
<td>Banco</td>
<td width="9%">N° Cuenta</td>
<td width="7%">N° Cheque</td>
<td width="9%">Monto</td>
<td width="7%">Fecha Cobro</td>
<td>Estado</td>
<td>PAX</td>
<td>Tipo Cuenta</td>
<td>Origen</td>
<td width="7%">Controles</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="tabsc7">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla7">
<thead>
<tr>
<td>ID</td>
<td>Ingresado</td>
<td width="7%">Fecha</td>
<td width="8%">Rut Girador</td>
<td>Nombre Girador</td>
<td>Receptor</td>
<td>Banco</td>
<td width="9%">N° Cuenta</td>
<td width="7%">N° Cheque</td>
<td width="9%">Monto</td>
<td width="7%">Fecha Cobro</td>
<td>Estado</td>
<td>PAX</td>
<td>Tipo Cuenta</td>
<td>Origen</td>
<td width="7%">Controles</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="tabsc8">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla8">
<thead>
<tr>
<td>ID</td>
<td>Ingresado</td>
<td width="7%">Fecha</td>
<td width="8%">Rut Girador</td>
<td>Nombre Girador</td>
<td>Receptor</td>
<td>Banco</td>
<td width="9%">N° Cuenta</td>
<td width="7%">N° Cheque</td>
<td width="9%">Monto</td>
<td width="7%">Fecha Cobro</td>
<td>Estado</td>
<td>PAX</td>
<td>Tipo Cuenta</td>
<td>Origen</td>
<td width="7%">Controles</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php include('footer.php');?>