Example #1
0
                $this->displayAssessedValues($landList, $plantsTreesList, $improvementsBuildingsList, $machineriesList);
                $this->displayLGUInfo();
            }
        }
        $this->setForm();
        $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("TDSummary.pdf");
            //,$this->formArray["print"]);
        } else {
            $testpdf->writePDF("TDSummary.pdf");
        }
        //		header("location: ".$testpdf->pdfPath);
        exit;
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth"));
//*/
$tdDetails = new TDDetails($http_post_vars, $sess, $odID, $ownerID, $afsID, $print);
$tdDetails->Main();
page_close();