*
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
/**
 *     \file       /reports/report.php
 *     \ingroup    2report
 *     \brief      Page to launch a report
 *     \author	   Juanjo Menent
 */
require "./pre.inc.php";
require_once "./includes/reportico/reportico.php";
$langs->load("reports@reports");
$mode = GETPOST("execute_mode");
$report = GETPOST("xmlin");
$leftmenu = GETPOST("leftmenu");
$helpurl = 'EN:Module_Reports|FR:Module_Reports_FR|ES:M&oacute;dulo_Reports';
llxHeader('', '', $helpurl);
$a = new reportico();
$a->embedded_report = true;
$a->forward_url_get_parameters = "leftmenu=" . $leftmenu . "&execute_mode=" . $mode . "&project=Dolibarr&xmlin=" . $report;
$_SESSION['reportico']['forward_url_get_parameters'] = "leftmenu=" . $leftmenu . "&execute_mode=" . $mode . "&project=Dolibarr&xmlin=" . $report;
$a->execute();
llxFooter();
$db->close();
Esempio n. 2
0
File: run.php Progetto: GLUD/EcoHack
//$q->static_menu = array ();
// Required PDF Engine set -- to tcpdf ( default ) or fpdf
//$q->pdf_engine = "tcpdf";
// Dropdown Menu definition
// ========================
// Menu items for the drop down menu
// Enter definition for the the dropdown menu options across the top of the page
// Each array element represents a dropdown menu across the page and sub array items for each drop down
// You must specifiy a project folder for each project entry and the reportfile definitions must point to a valid xml report file
// within the specified project
//$q->dropdown_menu = array(
//                array (
//                    "project" => "projectname",
//                    "title" => "dropdown menu 1 title",
//                    "items" => array (
//                        array ( "reportfile" => "report" ),
//                        array ( "reportfile" => "anotherreport" ),
//                        )
//                    ),
//                array (
//                    "project" => "projectname",
//                    "title" => "dropdown menu 2 title",
//                    "items" => array (
//                        array ( "reportfile" => "report" ),
//                        array ( "reportfile" => "anotherreport" ),
//                        )
//                    ),
//            );
// Run the report
$q->execute();
//ob_end_flush();
$atributos["nombreFormulario"] = $nombreFormulario;
$verificarFormulario = "1";
echo $this->miFormulario->formulario("inicio", $atributos);
//-------------Control Mensaje-----------------------
// ------------------Division para los botones-------------------------
require_once 'blocks/docencia/gestorReportes/script/reportico/reportico.php';
// Set the timezone according to system defaults
date_default_timezone_set(@date_default_timezone_get());
// Reserver 100Mb for running
ini_set("memory_limit", "100M");
// Allow a good time for long reports to run. Set to 0 to allow unlimited time
ini_set("max_execution_time", "90");
$conexion = "estructura";
$esteRecursoDB = $this->miConfigurador->fabricaConexiones->getRecursoDB($conexion);
$cadena_sql = $this->sql->cadena_sql("consultarDB", $conexion);
$acceso_bd = $esteRecursoDB->ejecutarAcceso($cadena_sql, "busqueda");
define('SW_FRAMEWORK_DB_DRIVER', 'pdo_mysql');
define('SW_FRAMEWORK_DB_USER', "'" . $acceso_bd[0]["usuario"] . "'");
define('SW_FRAMEWORK_DB_PASSWORD', "'" . $acceso_bd[0]["password"] . "'");
define('SW_FRAMEWORK_DB_HOST', "'" . $acceso_bd[0]["servidor"] . "'");
// Use ip:port to specifiy a non standard port
define('SW_FRAMEWORK_DB_DATABASE', "'" . $acceso_bd[0]["db"] . "'");
$reporte = new reportico();
$reporte->initial_project = "kyron";
$reporte->embedded_report = true;
$reporte->execute();
// Modificamos el archivo swutil.php para obtener el path correctamente, línea 956
//swoutput linea 3216
//Fin del Formulario
echo $this->miFormulario->formulario("fin");
ob_end_flush();
Esempio n. 4
0
* File:        run.php
*
* Reportico runner script
* !!! Note this script will run reports in FULL design mode
* !!! This means that users of the reports will be able to 
* !!! modify reports and save those modifications
*
* @link http://www.reportico.org/
* @copyright 2010-2012 Peter Deed
* @author Peter Deed <*****@*****.**>
* @package Reportico
* @version $Id: run.php,v 1.8 2012-04-11 21:35:04 root Exp $
*/
// set error reporting level
error_reporting(E_ALL);
// Set the timezone according to system defaults
date_default_timezone_set(@date_default_timezone_get());
// Reserver 100Mb for running
ini_set("memory_limit", "100M");
ini_set("max_execution_time", "90");
//header("Content-Type: text/html; charset=utf-8");
//ob_start();
require_once 'reportico.php';
$q = new reportico();
$q->allow_debug = true;
$q->forward_url_get_parameters = "";
$_SESSION["template"] = "dropmenu";
$q->dropdown_menu = array(array("project" => "tutorials", "title" => "Listings", "items" => array(array("reportfile" => "tut1_films.xml"), array("reportfile" => "tut2_loanhistory.xml"))), array("project" => "tutorials", "title" => "Analysis Reports", "items" => array(array("reportfile" => "tut2_1_loanhistory.xml"), array("reportfile" => "tut4_1_lateness.xml"))));
$q->execute($q->get_execute_mode(), true);
//ob_end_flush();