%PDF- %PDF-
| Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/compras/ |
| Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/compras/content_papeleria_actualizar.php |
<?php $id_compra = $_GET['id_compra']; ?>
<div class="page-content">
<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">SELECCIONE TODOS LOS ARTICULOS a Actualizar en existencias por la COMPRA <?php echo $id_compra; ?> </div>
</div>
<div class="portlet-body">
<?php
if(1==1)
{
echo '<a href="page_add_articulo.php?app=1&opc=2&sub=2" class="btn btn-success">Agregar Articulo
<i class="fa fa-plus"></i></a> ';
}
?>
<form data-toggle="validator" action="page_articulo_actualizar.php" method="GET" role="form" enctype="multipart/form-data">
<br><br>
<div class="row mbm">
<div class="col-lg-12">
<div class="table-responsive">
<table style="border-bottom:1px solid #ddd" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Sel</th>
<th>Código</th>
<th>barcode</th>
<th>Nombre del Bien</th>
<th>Descripción</th>
<th>Giro</th></th>
<th>Existencia Actual</th>
<th>Foto</th>
</tr>
</thead>
<tbody>
<?php
$conf = new Configuracion();
$conf->conectarBD();
$consulta = "SELECT cp.id_articulo,cp.barcode,cp.codigo,cp.articulo,cp.descripcion,cp.existencia,cp.url_foto, cg.nombre as categoria
FROM compras_papeleria cp
JOIN compras_empresa_giro cg ON (cp.id_giro = cg.id_giro) WHERE habilitado = 1";
$rst1 = $conf->consulta($consulta);
for($i = 0; $i < count($rst1); $i++)
{
echo "<tr>";
echo '<td>'.'<input type="checkbox" name ="id_articulo[]" class="form-control" value="'.$rst1[$i]["id_articulo"].'">'.'</td>';
echo '<td>'.$rst1[$i]['codigo'].'</td>';
echo '<td>'.$rst1[$i]['barcode'].'</td>';
echo '<td>'.$rst1[$i]['articulo'].'</td>';
echo '<td>'.$rst1[$i]['descripcion'].'</td>';
echo '<td>'.$rst1[$i]['categoria'].'</td>';
echo '<td>'.$rst1[$i]['existencia'].'</td>';
echo '<td>';
echo '<a href="docs/'.$rst1[$i]["url_foto"].'" target="_BLANK" > <img src="docs/'.$rst1[$i]["url_foto"].'" title="foto" height="50" width="50" /> </a>';
echo '</td>';
echo '</tr>';
}
$conf->desconectarDB();
?>
</tbody>
</table>
</div>
<input type="hidden" id="custId" name="compraId"value="<?php echo $id_compra;?>">
<div class="form-actions">
<div class="col-md-offset-5 col-md-6">
<button type="submit" class="btn btn-success">Paso Siguiente <i class="fa fa-share"></i> </button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>