$theform->addField($theinput); if (isset($_GET["tabledefid"]) && !isset($therecord["id"])) { $theinput = new inputSmartSearch($db, "fileid", "Pick File", "", "exisiting file", false, 40); $theform->addField($theinput); } //end if $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 id="roleidP"><?php $theform->showField("roleid"); ?> </p> <p><?php $theform->showField("type"); ?> </p> </fieldset>