-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproyectos.php
60 lines (37 loc) · 1.34 KB
/
proyectos.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
require_once("../validatesession_json.php");
require_once("../conexion/funciones.php");
$func = new funciones();
$PERMISOS=array();
$PERMISOS=$func->ISAUTORIZED($_SESSION['SESS_PERFILID'], 'AREA-GUIADESPACHO');
if (!$PERMISOS['VER_DOCUMENTO']=='1'){
$message="Gu’a de Despacho :: VER_DOCUMENTO :: Acceso denegado.";
print "<script>alert('$message');window.history.back();</script>";
die;
}
/***/
//Import the PhpJasperLibrary
include_once("tcpdf/tcpdf.php");
include_once("PHPJasperXML.inc.php");
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
//database connection details
$server="localhost";
$db="inoxpoblete";
$user="inoxpoblete";
$pass="9v8nbR69c3Yb4q2j";
$version="0.8b";
$mysqlport=3306;
$pchartfolder="./pchart2";
$contador = $_GET["contador"]; // parametro de la URL de ordencrud_main.php
//$contador = "1";
//display errors should be off in the php.ini file
ini_set('display_errors', 0);
//setting the path to the created jrxml file
$xml = simplexml_load_file("rp_proyectos.jrxml");
$PHPJasperXML = new PHPJasperXML();
$PHPJasperXML->debugsql=false;
$PHPJasperXML->arrayParameter=array("id"=>$contador);
$PHPJasperXML->xml_dismantle($xml);
$PHPJasperXML->transferDBtoArray($server,$user,$pass,$db);
$PHPJasperXML->outpage("I"); //page output method I:standard output D:Download file
?>