Ejemplo n.º 1
0
<div class="jumbotron">
</div>
	
<?php 
//obtener el valor de ID que viene del metodo GET a traves de HTTP
$codeProd = $_GET["codeProd"];
include_once "ProductoDatos.php";
include_once "Producto.php";
$ProductoDatosObj = new ProductoDatos();
?>
	
<div class="fondoPantalla" style ="width = 100%">
  <div class="container">				
<h2>Edicion de Producto</h2>
<?php 
foreach ($ProductoDatosObj->consultaEspecific($codeProd) as $Obj) {
    ?>
	<form action="ProductoEditar.php" method="post" >
		<table class="table table-striped-edwin"  BORDER=10>
			<thead class="CaberaSuperiorTablaStriped">
				<tr ALIGN=center>
					<th>Nombre</th>
					<th>Texto</th>
				</tr>
			</thead>
			<tbody class="fuente">
									<tr>
										<td>Codigo:</td>
										<td><input type="decimal" class="input" name="codigo_producto" value="<?php 
    echo $Obj->getCodigo_producto();
    ?>
Ejemplo n.º 2
0
						<!--TD><INPUT type="checkbox" NAME="chk"/></TD-->
						<!--td><input type="button" value="x" onclick="Eliminar(this.parentNode.parentNode.rowIndex)"/></td-->
						<td style="display:none"><?php 
    echo $c->getSecuencia();
    ?>
 </td>
						<td><?php 
    echo $c->getCantidad();
    ?>
 </td>
						
						<?php 
    $idDetalle = $c->getSecuencia();
    $idPro = $c->getCodigo_producto();
    $numero_factura = $c->getNumero_factura();
    foreach ($ProductoDatosObj->consultaEspecific($idPro) as $e) {
        ?>
							<td><?php 
        echo $e->getDescripcion();
        ?>
 </td>
						<?php 
    }
    ?>
						
						
						<td><?php 
    echo $c->getPrecio_unitario();
    ?>
</td>
						<td><?php