[ PHPXref.com ] [ Generated: Sun Jul 20 19:53:36 2008 ] [ PHPReports 0.4.7 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> outmenu.php (source)

   1  <?php
   2      require_once ("PHPReportMaker.php");
   3      require_once ("PHPReportsUtil.php");
   4  
   5      /******************************************************************************
   6      *                                                                                                        *
   7      *    Use this file to check how the output plugins works.                                *
   8      *    Please see PHPReportConvert.php also.                                                    *
   9      *    It need to be placed on a directory reached by the web server.                    *
  10      *                                                                                                        *
  11      ******************************************************************************/
  12      $sXML = tempnam(getPHPReportsTmpPath(),"phprpt").".xml";
  13      $sBase= basename($sXML);
  14      
  15      $oRpt = new PHPReportMaker();
  16      $oRpt->setUser("taq");
  17      $oRpt->setPassword("******");
  18      $oRpt->setXML("sales.xml");
  19      $oRpt->setXMLOutputFile($sXML);
  20      $oOut = $oRpt->createOutputPlugin("default");
  21      $oOut->setClean(false);
  22      $oOut->setOutput("/dev/null");
  23      $oRpt->setOutputPlugin($oOut);
  24      $oRpt->run();
  25  ?>
  26  <html>
  27      <head>
  28          <title>PHPReports exchanging formats</title>
  29          <link rel="stylesheet" type="text/css" href="css/phpreports.css">
  30      </head>
  31      <body>
  32          <p class="REGULAR" style="margin:15px;">
  33          <?php
  34              print "converting <b>$sBase</b> to<br><br>";
  35              print "<a href='PHPReportConvert.php?output=default&file=$sBase'     target='MAIN'>default html</a><br>";
  36              print "<a href='PHPReportConvert.php?output=page&file=$sBase'         target='MAIN'>page to page</a><br>";
  37              print "<a href='PHPReportConvert.php?output=txt&file=$sBase'         target='MAIN'>text file</a><br>";
  38              print "<a href='PHPReportConvert.php?output=bookmarks&file=$sBase' target='MAIN'>bookmarks file</a><br>";
  39          ?>
  40          </p>
  41      </body>
  42  </html>    


[ Powered by PHPXref - Served by Debian GNU/Linux ]