Example #1
0
?>



<?php 
include_once "cTarifa.php";
if ($_POST['txtclave'] == '') {
    $sql = "Select * from configuraciondetalles where vazio is null";
    mysql_query($sql, $link) or die("Error en la linea " . __LINE__ . " Llamar a webmaster <br> {$sql}");
    $res = mysql_query($sql, $link);
    $row = mysql_fetch_array($res);
    $_POST['txtclave'] = $row['id_folio'];
}
//consulta todos los empleados
$objempleado = new ctarifa();
$consulta = $objempleado->consultar2($_POST['txtclave']);
//muestra los datos consultados
//haremos uso de tabla para tabular los resultados
?>


<table width=570 border=0 cellspacing=0 cellpadding=0>
<tr>
     	<td  width="200px"  height="40px"  align="center" class="estilo_relleno">
        
         	<input type=text size=20 value="     Tarifas KG/Zona" class="estilo_relleno2"> 
        </td> 


<?
$vpcol=0;
Example #2
0
<?
	require_once("conexion2.php");
	$link=conexion();
?>



<?php 
include_once "ctarifa.php";
//consulta todos los empleados
$objempleado = new ctarifa();
$consulta = $objempleado->consultar2();
//muestra los datos consultados
//haremos uso de tabla para tabular los resultados
?>


<table  border=0 cellspacing=0 cellpadding=0>
<tr>
     	<td align="center" class="estilo_relleno">
        
         	<input type=text size=20 value="     Tarifas KG/Zona" class="estilo_relleno2"> 
        </td> 


<?
$vpcol=0;
while($row=mysql_fetch_array($consulta)){?>
            
                
	        <td height="30px" width="100"  class="estilo_relleno" align=center>