/* m0003.php buscar/listar datos jDalioGF Marzo/7/2011 */
session_start(); /* control de sesion */
?>
echo "" . "Reporte de ventas diarias en quintales" . "";
?>
if ($_POST['cancelar'] == 'Cancelar') {
// include 'm0000.php';
exit;
}
$today = getdate();
$aa_cpu = ($today['year']);
$dd_cpu = ($today['mday']);
$mm_cpu = ($today['mon']);
if ($_SESSION['aax'] == 0 or $aa_documento == '') {
$_SESSION['aax'] = 1;
$anox = ($today['year']);
$diax = ($today['mday']);
$mesx = ($today['mon']);
} else {
$anox = $aa_documento;
$diax = $dd_documento;
$mesx = $mm_documento;
}
if ($_POST['dd_desde'] != '') { $_SESSION['dd_desde'] = $_POST['dd_desde']; }
if ($_POST['mm_desde'] != '') { $_SESSION['mm_desde'] = $_POST['mm_desde']; }
if ($_POST['aa_desde'] != '') { $_SESSION['aa_desde'] = $_POST['aa_desde']; }
if ($_POST['dd_hasta'] != '') { $_SESSION['dd_hasta'] = $_POST['dd_hasta']; }
if ($_POST['mm_hasta'] != '') { $_SESSION['mm_hasta'] = $_POST['mm_hasta']; }
if ($_POST['aa_hasta'] != '') { $_SESSION['aa_hasta'] = $_POST['aa_hasta']; }
//include 'p9901.php'; /* realizar conexión a dbms */
$e0 = $e1 = $e2 = $e3 = $e4 = $e5 = TRUE; /* inicializar variables */
if ($_POST['aceptar'] == 'Aceptar') {
include 'm0002.php'; /* version imprimible */
exit;
}
?>
|
echo 'Molino Harinero Sula, S.A. | ';
?>
|
|
echo 'Reporte de ventas diarias en quintales | ';
?>
|
if (!$e0) {
echo '
Favor corrija errores resaltados.
+Explicación: ';
if (!$e1) { echo 'Aqui un mensaje de error. '; }
echo ' |
';
}
?>