$theinput = new inputField("displayorder", $therecord["displayorder"], "display order", true, NULL, 10, 10); $theform->addField($theinput); $theinput = new inputBasicList("type", $therecord["type"], array("Report" => "report", "PDF Report" => "PDF Report", "Export" => "export")); $theform->addField($theinput); $theinput = new inputRolesList($db, "roleid", $therecord["roleid"], "access (role)"); $theform->addField($theinput); if ($therecord["id"]) { $theinput = new inputField("reportfile", $therecord["reportfile"], "report file", true, NULL, 64, 128); $theinput->setAttribute("readonly", "readonly"); $theinput->setAttribute("class", "uneditable"); $theform->addField($theinput); } //endif $theinput = new inputTextarea("description", $therecord["description"], NULL, false, 3, 48); $theform->addField($theinput); $thetable->getCustomFieldInfo(); $theform->prepCustomFields($db, $thetable->customFieldsQueryResult, $therecord); $theform->jsMerge(); //============================================================== //End Form Elements include "header.php"; ?> <div class="bodyline"> <?php $theform->startForm($pageTitle); ?> <fieldset id="fsAttributes"> <legend>Attributes</legend> <p><?php $theform->showField("type");