本文整理汇总了PHP中FormHandler::create_toppage方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHandler::create_toppage方法的具体用法?PHP FormHandler::create_toppage怎么用?PHP FormHandler::create_toppage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormHandler
的用法示例。
在下文中一共展示了FormHandler::create_toppage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkamount
$amount = 0;
if ($item_type = "invoice" && is_numeric($item_id)) {
$table_invoice = new Table("cc_invoice", "status,paid_status");
$clause_invoice = "id = " . $item_id;
$result = $table_invoice->Get_list($DBHandle, $clause_invoice);
if (is_array($result) && $result[0]['status'] == 1 && $result[0]['paid_status'] == 0) {
$table_invoice_item = new Table("cc_invoice_item", "COALESCE(SUM(price*(1+(vat/100))),0)");
$clause_invoice_item = "id_invoice = " . $item_id;
$result = $table_invoice_item->Get_list($DBHandle, $clause_invoice_item);
$amount = $result[0][0];
$static_amount = true;
}
}
$smarty->display('main.tpl');
$HD_Form->create_toppage($form_action);
$payment_modules = new payment;
?>
<script language="javascript">
function checkamount()
{
if (document.checkout_amount.amount == "")
{
alert('Please enter some amount.');
return false;
}
return true;
}
</script>
<script language="javascript"><!--