File "administracion_cheques - copia.php"
Full path: /home/wwwitravel/public_html/sistema/vistas/administracion_cheques - copia.php
File
size: 0.01 KB (6.7 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('cobrar','pendiente','DOLAR');
$montos=$administracion->getMontoCheq();
?>
<script>
$(document).ajaxStop(function () {
$('table tr td:nth-child(6)').hide();
});
$(document).ready(function() {
$('table tr td:nth-child(6)').hide();
});
</script>
<div class="row contenido">
<div id="dialog-editarcheque" title="Modificar">
<input type="hidden" name="mod_id" value="">
<label>Rut Girador</label>
<input type="text" class="form-control" name="mod_rut_gira">
<label>Nombre Girador</label>
<input type="text" class="form-control" name="mod_nombre_gira">
<label>Banco</label>
<input type="text" class="form-control" name="mod_banco_gira">
<label>Nº Cuenta</label>
<input type="text" 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">
<label>PAX</label>
<input type="text" class="form-control" name="mod_pax">
</div>
<div class="col-md-12">
<a href="administracion_cheques2.php"><button type="button" class="btn btn-primary"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> Ver Cheques girados</button></a>
</div>
<div class="col-md-6">
<h4>Pesos</h4>
Total pendientes de cobro $ <span id="pendientes_pesos"><?=number_format($montos['pendientepeso'], 0, ",", ".")?></span><br>
Total Cobrados $ <span id="cobrado_pesos"><?=number_format($montos['cobradopeso'], 0, ",", ".")?></span><br>
</div>
<div class="col-md-6">
<h4>Dolares</h4>
Total pendientes de cobro $<span id="pendientes_dolar"><?=number_format($montos['pendientedolar'], 0, ",", ".")?></span><br>
Total Cobrados $<span id="cobrado_dolar"><?=number_format($montos['cobradodolar'], 0, ",", ".")?></span><br>
</div>
<div class="col-md-12">
<div id="tab-containerc" class="tab-container">
<ul class='etabs'>
<li class='tab'><a href="#tabsc1" id="tab1" class="getcheques">Pendientes de cobro Dolar</a></li>
<li class='tab'><a href="#tabsc2" id="tab2" class="getcheques">Pendientes de cobro Peso</a></li>
<li class='tab'><a href="#tabsc5" id="tab5" class="getcheques">Cobrados Dolar</a></li>
<li class='tab'><a href="#tabsc6" id="tab6" class="getcheques">Cobrados Peso</a></li>
</ul>
<div id="tabsc1">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla1">
<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']?>"><?=$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'){
?>
<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="tabsc2">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla2">
<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="tabsc5">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla5">
<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>Controles</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="tabsc6">
<table style="font-size:11px;" class="table table-bordered table-hover" id="tabla6">
<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');?>