function sheet($_POST) { # get vars foreach ($_POST as $key => $value) { ${$key} = $value; } if ($summary == 'yes') { $oerep = new grp_report("oe", "Equity & Liabilities", "credit - debit"); $asrep = new grp_report("as", "Assets", "debit - credit"); } else { $oerep = new acc_report("oe", "Equity & Liabilities", "credit - debit"); $asrep = new acc_report("as", "Assets", "debit - credit"); } /* -- Final Layout -- */ $details = "<center>\n\t<h3>\n\t " . COMP_NAME . " Balance sheet as at<br>\n\t " . date("Y-m-d") . "\n\t</h3>\n\t<b>Author:</b> " . USER_NAME . "\n\t<form action='" . SELF . "' method=post name=form1>\n\t<input type=hidden name=key value=update>\n\t<table cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' border=0 width=600>\n\t<tr><th width=15%></th><th width=25%></th><th width=40%></th><th width=20%></th></tr>\n\t" . $oerep->getREport() . "\n\t<tr><td colspan=4><br></td></tr>\n\t" . $asrep->getREport() . "\n\t<tr><td><br></td></tr>\n\t</table></form>\n\t<p>\n\t<table border=0 cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' width=25%>\n\t\t<tr><th>Quick Links</th></tr>\n\t\t<tr class=datacell><td align=center><a target=_blank href='../core/acc-new2.php'>Add account (New Window)</a></td></tr>\n\t\t<script>document.write(getQuicklinkSpecial());</script>\n\t</table></center>"; return $details; }
function sheet($_POST) { # get vars foreach ($_POST as $key => $value) { ${$key} = $value; } if ($summary == 'yes') { $oerep = new grp_report("oe", "Equity & Liabilities", "credit - debit"); $asrep = new grp_report("as", "Assets", "debit - credit"); } else { $oerep = new acc_report("oe", "Equity & Liabilities", "credit - debit"); $asrep = new acc_report("as", "Assets", "debit - credit"); } /* -- Final Layout -- */ $details = "Balance sheet\r\n\t<table cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' border=0 width=600>\r\n\t<tr><th width=15%></th><th width=25%></th><th width=40%></th><th width=20%></th></tr>\r\n\t" . $oerep->getREport() . "\r\n\t<tr><td colspan=4><br></td></tr>\r\n\t" . $asrep->getREport() . "\r\n\t<tr><td><br></td></tr>\r\n\t</table>"; return $details; }