<?php echo "<td><a href='list_personal.php'>show List</a></td>"; ?> </tr> <tr> <td><hr color='black'></td> </tr> <?php endPrettyTable(); ?> </td> <td valign=top align=center width='65%'> <?php openForm("enter Personal", $PHP_SELF); beginPrettyTable("2", "enter Personal"); makeHiddenField("emp_id3", $edit["EMP_ID3"]); makeTextField("emp_name", $edit["EMP_NAME"], "Employer Name"); makeDropBox("desig_id", $desig_array, "Designation", $edit["DESIG_ID"]); makeDropBox("status", array("Y" => "Y", "N" => "N", "UNKNOWN" => ""), "Status", $edit["STATUS"]); makeTextField("ac_no", $edit["AC_NO"], "Account Number"); makeTextField("conf_dt", $edit["CONF_DT"], "Conf_Date"); makeTextField("join_dt", $edit["JOIN_DT"], "Join Date"); makeSubmitter(); endPrettyTable(); closeForm(); ?> </td> </table> <?php } endDocument();
function searchBar() { global $lSearch, $lLast, $lAddress, $lEmail; openForm("searcher", "search.php"); beginPrettyTable("2"); echo "<tr><td>\n"; echo "<b>{$lSearch}</b>: <input name='tosearch' type='text'>\n"; echo "</td><td valign='center'>\n"; echo "<select name='searcher' type='text'>\n"; echo " <option value='last'>{$lLast}\n"; echo " <option value='address'>{$lAddress}\n"; echo " <option value='email'>{$lEmail}\n"; echo "</select>\n"; echo "<input type='image' align='center' src='images/go.gif' value='submit' border=0>\n"; echo "</td></tr>\n"; endPrettyTable(); closeForm(); }