function showGeneralInfo($phpbms, $therecord) { ?> <div id="createmodifiedby" > <table> <tbody> <tr class="topRows"> <td class="cmTitles"> <input name="createdby" type="hidden" value="<?php $therecord["createdby"]; ?> " /> <input name="creationdate" type="hidden" value="<?php echo formatFromSQLDatetime($therecord["creationdate"]); ?> "/> created </td> <td><?php echo htmlQuotes($phpbms->getUserName($therecord["createdby"])); ?> </td> <td><?php echo formatFromSQLDatetime($therecord["creationdate"]); ?> </td> <td id="cmButtonContainer" rowspan="3"> <?php showSaveCancel(2); ?> </td> </tr> <tr class="topRows"> <td class="cmTitles"> <input name="modifiedby" type="hidden" value="<?php $therecord["modifiedby"]; ?> " /> <input id="cancelclick" name="cancelclick" type="hidden" value="0" /> <input name="modifieddate" type="hidden" value="<?php echo formatFromSQLDatetime($therecord["modifieddate"]); ?> "/> modified </td> <td><?php echo htmlQuotes($phpbms->getUserName($therecord["modifiedby"])); ?> </td> <td><?php echo formatFromSQLDatetime($therecord["modifieddate"]); ?> </td> </tr> <tr> <td class="cmTitles"> uuid / id <input name="uuid" id="uuid" type="hidden" value="<?php if (isset($therecord["uuid"])) { echo $therecord["uuid"]; } ?> " /> <input id="id" name="id" type="hidden" value="<?php echo $therecord["id"]; ?> " /> </td> <td colspan="2" id="cmIds"><span><?php echo isset($therecord["uuid"]) ? $therecord["uuid"] : ' '; ?> </span><span id="cmId"><?php echo $therecord["id"]; ?> </span></td> </tr> </tbody> </table> </div> <?php }
$theinput = new inputTextarea("memo", $therecord["memo"], NULL, false, 3, 48, false); $theform->addField($theinput); $thetable->getCustomFieldInfo(); $theform->prepCustomFields($db, $thetable->customFieldsQueryResult, $therecord); $theform->jsMerge(); //============================================================== include "header.php"; ?> <div class="bodyline"> <form action="<?php echo htmlentities($_SERVER["REQUEST_URI"]); ?> " method="post" name="record" id="record"> <div id="topButtons"><?php showSaveCancel(1); ?> </div> <h1 class="h1Title"><span><?php echo $pageTitle; ?> </span></h1> <div id="rightSide"> <fieldset> <legend>attributes</legend> <p><?php $theform->showField("theid"); ?>
<?php if (isset($db) && isset($therecord)) { ?> <div id="createmodifiedby" > <div id="savecancel2"><?php showSaveCancel(2); ?> </div> <table> <tr id="cmFirstRow"> <td class="cmTitles"> <input name="createdby" type="hidden" value="<?php $therecord["createdby"]; ?> " /> <input name="creationdate" type="hidden" value="<?php echo formatFromSQLDatetime($therecord["creationdate"]); ?> "/> created </td> <td><?php echo htmlQuotes($phpbms->getUserName($therecord["createdby"])); ?> </td> <td><?php echo formatFromSQLDatetime($therecord["creationdate"]); ?> </td> </tr>