Exemplo n.º 1
0
//==============================================================
$theform = new phpbmsForm();
$theinput = new inputField("theid", $therecord["id"], "id", false, NULL, 11);
$theinput->setAttribute("readonly", "readonly");
$theinput->setAttribute("class", "uneditable");
$theform->addField($theinput);
$theinput = new inputDatePicker("receiptdate", $therecord["receiptdate"], "date", true);
$theform->addField($theinput);
$theinput = new inputBasicList("status", $therecord["status"], array("open" => "open", "collected" => "collected"));
$theform->addField($theinput);
$theinput = new inputCheckBox("readytopost", $therecord["readytopost"], "ready to post");
$theform->addField($theinput);
$theinput = new inputCheckBox("posted", $therecord["posted"], "posted");
$theinput->setAttribute("disabled", "disabled");
$theform->addField($theinput);
$theinput = new inputSmartSearch($db, "clientid", "Pick Client With Credit", $therecord["clientid"], "client", true, 51);
$theinput->setAttribute("class", "important");
$theform->addField($theinput);
$theinput = new inputCurrency("amount", $therecord["amount"], "amount", true);
$theinput->setAttribute("class", "important");
$theform->addField($theinput);
$theinput = new inputComparisonField("ccnumber", $therecord["ccnumber"], "card number", false, false, 28, 40);
$theform->addField($theinput);
$theinput = new inputComparisonField("ccexpiration", $therecord["ccexpiration"], "expiration", false, false, 8, 10);
$theform->addField($theinput);
$theinput = new inputComparisonField("ccverification", $therecord["ccverification"], "verification/pin", false, false, 8, 7);
$theform->addField($theinput);
$theinput = new inputField("bankname", $therecord["bankname"], "bank name", false, false, 30, 64);
$theform->addField($theinput);
$theinput = new inputField("checkno", $therecord["checkno"], "check number", false, false, 20, 32);
$theform->addField($theinput);
Exemplo n.º 2
0
    if ($therecord["times"]) {
        $thevalue = "after";
    } elseif ($therecord["until"]) {
        $thevalue = "on date";
    }
}
$theinput = new inputBasiclist("end", $thevalue, $temparray, "end");
$theinput->setAttribute("onchange", "changeEnd();");
$theform->addField($theinput);
$theinput = new inputField("times", $therecord["times"], "repeat until number of times", false, "integer", 3, 5, false);
$theform->addField($theinput);
$theinput = new inputDatePicker("until", $therecord["until"], "repeat until date", false, 10, 15, false);
$theform->addField($theinput);
$theinput = new inputCheckbox("includepaymenttype", $therecord["includepaymenttype"], "include payment type from original invoice");
$theform->addField($theinput);
$theinput = new inputSmartSearch($db, "assignedtoid", "Pick Active User", $therecord["assignedtoid"], "assigned to", false, 36);
$theinput->setAttribute("size", "30");
$theform->addField($theinput);
//$thetable->getCustomFieldInfo();
//$theform->prepCustomFields($db, $thetable->customFieldsQueryResult, $therecord);
$theform->jsMerge();
//==============================================================
include "header.php";
$phpbms->showTabs("invoices entry", "tab:d303321e-7ff5-fe4b-29ec-fe3eb0305576", $_GET["id"]);
?>
<div class="bodyline">
<form action="<?php 
echo htmlentities($_SERVER["REQUEST_URI"]);
?>
"
	method="post" name="record" id="record"