コード例 #1
0
          <td width="142"  align="left"><input name="fecha2" type="text" id="fecha2" value="<?php 
echo $_REQUEST['fecha2'];
?>
" size="10"  onkeyup='fn(this.form,this)' class="date-pick"/></td>
          <td width="126"  align="left"><input name="button2" type="button" class="btn" id="button2" value="Listar" onclick='enviar_form("POST","ingresos_reporte.php","")' /></td>
          <td width="154"  align="left"><input name="button" type="button" class="btn" id="button" value="Imprimir Reporte" onclick="vista_previa()" /></td>
        </tr>
      </table>
      <table width="800" border="0">
        <tr class="fondonegro">
          <td width="18%" align="center">Fecha</td>
          <td width="69%" align="center">Producto</td>
          <td width="13%" align="center">Cantidad</td>
          </tr>
        <?php 
$rs = $ingreso->ingresos_listar_fecha($_REQUEST['fecha'], $_REQUEST['fecha2']);
if ($rs) {
    $j = 1;
    while ($campo = mysql_fetch_array($rs)) {
        ?>
        <tr bgcolor="#FFFFFF" style="cursor: hand" onmouseover="bgColor='#F3E212'" onmouseout ="bgColor='#FFFFFF'">
          <td align="center"><?php 
        echo $ingreso->_util->obtiene_fecha($campo['ing_fecha']);
        ?>
</td>
          <td align="center"><?php 
        echo $campo['pro_descripcion'];
        ?>
</td>
          <td align="center"><?php 
        echo $campo['ing_cantidad'];