BDG Scenario 3

Person.htm

<html>
<head>
<title LID="tit12">Personal Information Form</title>
<meta http-equiv="content-type" />
<link href="../forms.css" rel="stylesheet" type="text/css">
</head>
<body scroll="auto" rightmargin="20" leftmargin="20" onBeforeUnload="return checkDirty()">
<OBJECT classid=clsid:550dda30-0541-11d2-9ca9-0060b0ec3d39 codeBase="" height=0 
name=xmldso width=0 VIEWASTEXT></OBJECT>

<script LANGUAGE="JavaScript" SRC="../Scripts/GetParam.js"></script>
<script LANGUAGE="JavaScript" SRC="../Scripts/IsValid.js"></script>
<script LANGUAGE="JavaScript" SRC="../Scripts/IsDirty.js"></script>
<script LANGUAGE="JavaScript" SRC="../Scripts/Person.js"></script>

<script LANGUAGE="JavaScript" LID="scr1">
var L_ConfirmDelete = 'Are you sure you wish to delete this record from the database?';
var L_MaxSizeExceeded = "A group's maximum size may not exceed occupancy of the location.";
var L_PageIsDirty = 'Some fields have been updated. Click Change to save your changes to the database.';
var L_Empty = "Entry is required for: ";
var L_Invalid ='Entry is not valid for: ';
</script>

<div style="BACKGROUND-COLOR: black; FONT-SIZE: x-small; MARGIN-LEFT: -20px">.</div>

<form name="frmPerson" action="../Scripts/postIt.asp" method="post" target="postIt" onSubmit="return update()" onReset="refresh()">
<input name="tableName" type="hidden" value="person">
<input name="procName" type="hidden" value="lw_changePerson">
<input name="actionBtn" type="hidden" value="CHANGE">
<input name="PersonId" TYPE="hidden" DATASRC="#xmldso" DATAFLD="PersonId">
<input name="ID" TYPE="hidden" DATASRC="#xmldso" DATAFLD="PersonId">
<input name="ReleaseInfo" TYPE="hidden" DATASRC="#xmldso" DATAFLD="ReleaseInfo">
<table WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="1">
   <thead>
    <tr>
        <td class="Label" nowrap width="45%"><label LID="lbl73">Personal Information</label></td>
        <td class="LabelXXSmall" width="5%"><label LID="lbl74">Release? (Y/N):</label></td>
        <td>&nbsp;</td>
        <td class="Label" nowrap width="45%"><label LID="lbl75">Contact Information</label></td>
        <td class="LabelXXSmall" width="5%"><label LID="lbl74">Release? (Y/N):</label></td>
    </tr>
    </thead>
    <tr>
        <td vAlign="top" COLSPAN="2">
      <table border="0" cellPadding="1" cellSpacing="1" width="100%" DATASRC="#xmldso" DATAPAGESIZE="1">
       <tbody>
        <tr>
          <td class="LabelSmall" nowrap><label class="LabelBold" LID="lbl76"><u>F</u>irst Name:</label></td>
          <td valign="top"><input name="FirstName" tabIndex="1" accessKey="f" DATAFLD="FirstName" maxlength="50" onKeypress="setDirty()" TITLE="Maximum length 50 characters." LID="inp76" validator="isAlpha" required="true" L_NAME="FirstName"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseFirstName" tabIndex="10" CHECKED onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label class="LabelBold" LID="lbl77"><u>L</u>ast Name:</label></td>
          <td valign="top"><input name="LastName" tabIndex="2" accessKey="l" DATAFLD="LastName" maxlength="50" onKeypress="setDirty()" TITLE="Maximum length 50 characters." LID="inp77" validator="isAlpha" required="true" L_NAME="LastName"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseLastName" tabIndex="11" CHECKED onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl78"><u>I</u>D Number:</label></td>
          <td valign="top"><input name="StudentId" tabIndex="3" accessKey="i" DATAFLD="StudentId" maxlength="12" onKeypress="setDirty()" LID="inp78"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseIDNumber" tabIndex="12" onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl61">E-<u>m</u>ail Name:</label></td>
          <td valign="top"><input name="Email" tabIndex="4" accessKey="m" DATAFLD="Email" maxlength="50" onKeypress="setDirty()" TITLE="Maximum length 50 characters." LID="inp61" validator="isEmail" L_NAME="Email"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseEmailName" tabIndex="13" CHECKED onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl62">Tele<u>p</u>hone:</label></td>
          <td valign="top"><input name="Phone" tabIndex="5" accessKey="p" DATAFLD="Phone" maxlength="24" onKeypress="setDirty()" TITLE="Maximum length 24 characters." LID="inp62" validator="isPhone" L_NAME="Phone"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseTelephone" tabIndex="14" onClick="setDirty()"></td></tr>
        
        <tr><td COLSPAN="3">&nbsp;</td></tr>
        <tr><td COLSPAN="3" class="Label" nowrap><label LID="lbl58">Address</label></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl63">Str<u>e</u>et:</label></td>
          <td valign="top"><input name="Street" tabIndex="5" accessKey="e" DATAFLD="Street" maxlength="64" onKeypress="setDirty()" TITLE="Maximum length 64 characters." LID="inp63"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseStreet" tabIndex="15" onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl64"><u>C</u>ity:</label></td>
          <td valign="top"><input name="City" tabIndex="6" accessKey="c" DATAFLD="City" maxlength="32" onKeypress="setDirty()" TITLE="Maximum length 32 characters." LID="inp64" validator="isAlpha" L_NAME="City"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseCity" tabIndex="16" onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl65">Re<u>g</u>ion:</label></td>
          <td valign="top"><input name="Region" tabIndex="7" accessKey="g" DATAFLD="Region" maxlength="32" onKeypress="setDirty()" TITLE="Maximum length 32 characters." LID="inp65" validator="isAlpha" L_NAME="Region"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseRegion" tabIndex="17" onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl66">Pos<u>t</u>al Code:</label></td>
          <td valign="top"><input name="PostalCode" tabIndex="8" accessKey="t" DATAFLD="PostalCode" maxlength="20" onKeypress="setDirty()" TITLE="Maximum length 20 characters." LID="inp66" validator="isWord" L_NAME="PostalCode"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleasePostalCode" tabIndex="18" onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl67">Cou<u>n</u>try:</label></td>
          <td valign="top"><input name="Country" tabIndex="9" accessKey="n" DATAFLD="Country" maxlength="32" onKeypress="setDirty()" TITLE="Maximum length 32 characters." LID="inp67" validator="isAlpha" L_NAME="Country"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseCountry" tabIndex="19" onClick="setDirty()"></td></tr>
      </tbody>
      </table>
      </td>
        <td>&nbsp;</td>
        <td vAlign="top" COLSPAN="2">
      <table id="PersonRecord" border="0" cellPadding="1" cellSpacing="1" width="100%" DATASRC="#xmldso" DATAPAGESIZE="1">
      <tbody>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl79">F<u>u</u>ll Name:</label></td>
          <td valign="top"><input name="Contact" tabIndex="20" accessKey="u" DATAFLD="Contact" maxlength="50" onKeypress="setDirty()" LID="inp79" validator="isAlpha" L_NAME  
             ="Full Name"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseContactFullName" tabIndex="23" onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl80">Telep<u>h</u>one:</label></td>
          <td valign="top"><input name="ContactPhone" tabIndex="21" accessKey="h" DATAFLD="ContactPhone" maxlength="24" onKeypress="setDirty()" LID="inp80" validator="isPhone" L_NAME="ContactPhone"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseContactTelephone" tabIndex="24" onClick="setDirty()"></td></tr>
        <tr>
          <td class="LabelSmall" nowrap><label LID="lbl81"><u>R</u>elationship:</label></td>
          <td valign="top"><input name="ContactRelationship" tabIndex="22" accessKey="r" DATAFLD="ContactRelationship" maxlength="24" onKeypress="setDirty()" LID="inp81" validator="isAlpha" L_NAME="Relationship"></td>
          <td align="left"><input TYPE="checkbox" name="chkReleaseContactRelationship" tabIndex="25" onClick="setDirty()"></td></tr>
          <tr><td COLSPAN="3">&nbsp;</td></tr>
       </tbody>
      </table>
      </td>
    </tr>
    <tr><td colspan="5">&nbsp;</td>
    <tr>
        <td colspan="3">&nbsp;</td>
        <td colspan="2">
      <table width="100%">
        <tr>
          <td>
            <table BORDER="0" cellPadding="0" cellSpacing="2" width="100%">
            <tr>
              <td vAlign="top" width="33%">
                <button id="cmdSubmit" class="button" type="submit" style="WIDTH: 100%" tabIndex="26" LID="btn1">Change</button></td>
              <td vAlign="top" width="33%">
                <button class="button" type="reset" style="WIDTH: 100%" tabIndex="27" DISABLED LID="btn2">New</button></td>
              <td vAlign="top" width="33%">
                <button class="button" style="WIDTH: 100%" tabIndex="28" DISABLED onClick="remove()" LID="btn3">Delete</button></td></tr>
            </table>
          </td></tr>
        <tr>
          <td vAlign="top" width="100%">
            <button id="btnClass" class="Button" tabIndex="29" style="WIDTH: 100%" onClick="viewSchedule()" disabled LID="btn6">View Schedule of Classes</button></td></tr>
        </table></td>
    </tr>
</table>
</form>

<iframe NAME="postIt" ID="postIt" FRAMEBORDER="1" NORESIZE SCROLLING="none" style="DISPLAY: none"></iframe>

</body>
</html>