Пример #1
0
                        $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();
Пример #2
0
    <?php 
    }
    ?>
    <tr>
    	<td colspan="2" class="analysis">TOTAL DEDUCTIONS</td>
        <td colspan="8"></td>
        <td align="right" class="analysis"><?php 
    echo CollectionReport::calcTotalDeductionsForPeriod($prop_id, $start_date, $end_date);
    ?>
</td>
    </tr> 
    <tr>
    	<td colspan="2" class="analysis">LANDLORD BALANCE</td>
        <td colspan="8"></td>
        <td align="right" class="analysis"><?php 
    echo CollectionReport::calcNetBanking($prop_id, $start_date, $end_date);
    ?>
</td>
    </tr>
    </tbody>
    </table><br /><br />
    <div id="director">
    <p>DIRECTOR</p>
    <p>Sign</p>
    _______________________________
    </div>
    
    <div id="landlord">
    <p>LANDLORD</p>
    <p>Sign</p>
    _______________________________