Ejemplo n.º 1
0
<?php

include_once '../../_framework.php';
require 'ExpertoVentas.php';
$oData = $oRequestData = $_POST ? $_POST : $_GET;
$desde = "2012-09-01";
$hasta = "2012-09-30";
$exp = new ExpertoVentas();
$data = $exp->getVeltasOldSystem($desde, $hasta);
?>

<html>
    <head>
        <!-- FORMS -->
        <script language="javascript" src="<?php 
echo $lib_js;
?>
mainFormba.js"></script>
        <link rel="stylesheet" type="text/css" href="<?php 
echo $style_form;
?>
styleForm.css">

        <!-- BÁSICO DHTMLX -->
        <link rel="stylesheet" type="text/css" href="<?php 
echo $dhtmlx;
?>
dhtmlxGrid/codebase/dhtmlxgrid.css">
        <link rel="stylesheet" type="text/css" href="<?php 
echo $dhtmlx;
?>
Ejemplo n.º 2
0
<?php

include_once 'ExpertoVentas.php';
$oData = $oRequestData = $_POST ? $_POST : $_GET;
$exp = new ExpertoVentas();
switch ($oData["behavior"]) {
    case "reloadListAll":
        $fecha_fin = $oData["fecha_fin"];
        $fecha_inicio = $oData["fecha_inicio"];
        $data = $exp->getVeltasOldSystem($fecha_inicio, $fecha_fin);
        echo "<script>       var data = \"{$data}\";\r\n                            parent.mygrid.clearAll();\r\n                            parent.mygrid.parse(data, 'xml');\r\n                            parent.mygrid.filterByAll();\r\n                    </script>";
        exit;
        break;
}
exit;