$lineCtr = 0; $pageCtr++; } $lineCtr++; $recordCtr++; $ypos = $ypos - $decrementYposBy; } $this->tpl->parse("templatePage", "rptsTemplate"); $this->tpl->finish("templatePage"); } else { exit("no collections to list for " . $this->formArray["year"]); } } else { exit("no collections to list for " . $this->formArray["year"]); } $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); } } } page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth")); $obj = new CollectionReport($sess, $HTTP_POST_VARS); $obj->Main(); page_close();