%PDF- %PDF-
Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/proveedores/ |
Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/proveedores/content_find_facturas.php |
<?php $conf = new Configuracion(); $conf->conectarBD(); ?> <div class="page-content"> <a href="page_compras.php" class="btn btn-pink">Regresar <i class="fa fa-mail-reply"></i></a> <div class="row"> <div class="col-md-13"> <div id="generalTabContent" class="tab-content"> <div id="tab-messages" class="tab-pane fade in active"> <div class="portlet box"> <div class="portlet-header"> <div class="caption">Lista de <strong> Compras Realizadas</strong> </div> </div> <div class="portlet-body"> <form role="form" class="form-horizontal form-separated"> <div class="form-group"><label class="col-md-3 control-label"></label> <div class="col-md-9"> <div class="btn btn-blue reportrange"> <i class="fa fa-calendar"></i> <span></span> <i class="fa fa-angle-down"></i> <input type="hidden" name="datestart"/> <input type="hidden" name="endstart"/> </div> <input type="hidden" name="app" value= "<?php echo $_REQUEST['app']; ?>"/> <input type="hidden" name="opc" value= "<?php echo $_REQUEST['opc']; ?>"/> <input type="hidden" name="sub" value= "<?php echo $_REQUEST['sub']; ?>"/> <button type="submit" class="btn btn-blue" ><i class="fa fa-filter"></i> Filtrar </button> </div> </div> </form> <?php if(1==1) { echo ' <a href="page_add_compra.php?app=1&opc=2&sub=2" class="btn btn-success">Agregar Compra <i class="fa fa-plus"></i></a> </div> </div> </div>'; } ?> <div class="row mbm"> <div class="col-lg-12"> <div class="table-responsive"> <table id="table_id" style="border-bottom:1px solid #ddd" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>#</th> <th>Nombre de la Compra</th> <th>Total</th> <th>Factura</th> <th>Proveedor</th> <th>Fecha</th> <th>Tipo</th> <th>Estatus</th> <th>FACTURA</th> <th>PDF COMPRA</th> <th></th> </tr> </thead> <tbody> <?php $consulta = "SELECT c.url_compra,c.fecha_registro,ce.id_estatus,c.total,c.folio,ce.nombre as estatus,ct.id_tipo,ct.nombre tipo,c.id_compra,c.nombre,p.nombre as proveedor,c.url_factura FROM compras_compras c JOIN compras_empresa p ON (c.id_empresa = p.id_empresa) JOIN compras_estatus ce ON (ce.id_estatus = c.id_estatus) JOIN compras_tipo ct ON (c.id_tipo = ct.id_tipo) WHERE 1=1 ORDER BY c.id_compra desc"; $rst1 = $conf->consulta($consulta); for($i = 0; $i < count($rst1); $i++) { echo "<tr>"; echo "<td>".$rst1[$i]["id_compra"]."</td>"; echo "<td>".$rst1[$i]["nombre"]."</td>"; echo "<td>".$rst1[$i]["total"]."</td>"; echo "<td>".$rst1[$i]["folio"]."</td>"; echo "<td>".$rst1[$i]["proveedor"]."</td>"; echo "<td>".$rst1[$i]["fecha_registro"]."</td>"; echo "<td>".$rst1[$i]["tipo"]."</td>"; echo "<td>".$rst1[$i]["estatus"]."</td>"; echo '<td><a href="adjuntos/'.$rst1[$i]["url_factura"].'" target="_BLANK" > <img src="../../common/images/pdf.png" height="50" width="50" /> </a></td>'; if($rst1[$i]["id_tipo"]==1) { echo '<td><a href="documentos/'.$rst1[$i]["url_compra"].'" target="_BLANK" > <img src="../../common/images/pdf.png" height="50" width="50" /> </a></td>'; } else { echo '<td> No aplica</td>'; } echo '<td>'; echo '<div class="btn-group"> <button data-toggle="dropdown" class="btn btn-sm dropdown-toggle btn-blue"> <i class="fa fa-cog"></i> Opciones <span class="caret"></span> </button> <ul class="dropdown-menu pull-right">'; if($rst1[$i]["id_estatus"]==1) { echo '<li><a href="page_papeleria_actualizar.php?id_compra='.$rst1[$i]['id_compra'].'&app=1"> <i class="fa fa-edit"></i> <span class="divider-text"></span>Cargar Existencias de los Productos</a></li>'; } echo '</ul> </div>'; echo '</td>'; echo '</tr>'; } $conf->desconectarDB(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>