-
Notifications
You must be signed in to change notification settings - Fork 18
/
outmenu.php
executable file
·42 lines (40 loc) · 1.54 KB
/
outmenu.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
<?php
require_once("PHPReportMaker.php");
require_once("PHPReportsUtil.php");
/******************************************************************************
* *
* Use this file to check how the output plugins works. *
* Please see PHPReportConvert.php also. *
* It need to be placed on a directory reached by the web server. *
* *
******************************************************************************/
$sXML = tempnam(getPHPReportsTmpPath(),"phprpt").".xml";
$sBase= basename($sXML);
$oRpt = new PHPReportMaker();
$oRpt->setUser("taq");
$oRpt->setPassword("******");
$oRpt->setXML("sales.xml");
$oRpt->setXMLOutputFile($sXML);
$oOut = $oRpt->createOutputPlugin("default");
$oOut->setClean(false);
$oOut->setOutput("/dev/null");
$oRpt->setOutputPlugin($oOut);
$oRpt->run();
?>
<html>
<head>
<title>PHPReports exchanging formats</title>
<link rel="stylesheet" type="text/css" href="css/phpreports.css">
</head>
<body>
<p class="REGULAR" style="margin:15px;">
<?php
print "converting <b>$sBase</b> to<br><br>";
print "<a href='PHPReportConvert.php?output=default&file=$sBase' target='MAIN'>default html</a><br>";
print "<a href='PHPReportConvert.php?output=page&file=$sBase' target='MAIN'>page to page</a><br>";
print "<a href='PHPReportConvert.php?output=txt&file=$sBase' target='MAIN'>text file</a><br>";
print "<a href='PHPReportConvert.php?output=bookmarks&file=$sBase' target='MAIN'>bookmarks file</a><br>";
?>
</p>
</body>
</html>