コード例 #1
0
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
        */
        $this->tpl->set_var("today", date("F j, Y", strtotime($this->now)));
        $this->setLguDetails();
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $testpdf = new PDFWriter();
        $testpdf->setOutputXML($this->tpl->get("templatePage"), "test");
        if (isset($this->formArray["print"])) {
            $testpdf->writePDF($name);
            //,$this->formArray["print"]);
        } else {
            $testpdf->writePDF($name);
        }
        //		header("location: ".$testpdf->pdfPath);
        exit;
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$ownerList = new RPTOPDetails($HTTP_POST_VARS, $sess, $rptopID);
$ownerList->main();
page_close();
コード例 #2
0
ファイル: PrintRPTOPDetails.php プロジェクト: armic/erpts
                $doc = $rptop->getDomDocument();
                $xmlStr = $doc->dump_mem(true);
                //echo $xmlStr;
                if (!($ret = $RPTOPEncode->updateRPTOPtotals($xmlStr))) {
                    echo "ret=" . $ret;
                }
                //echo $ret;
            }
        }
        $this->setForm();
        $this->setPageDetailPerms();
        $this->tpl->set_var("uname", $this->user["uname"]);
        $this->tpl->set_var("today", date("F j, Y"));
        $this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("rptopID" => $this->formArray["rptopID"], "ownerID" => $this->formArray["ownerID"])));
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$rptopDetails = new RPTOPDetails($HTTP_POST_VARS, $sess, $rptopID);
$rptopDetails->Main();
page_close();