BDG Scenario 3

Location.htm

<html>
<head>
<title LID="tit9">Location Form</title>
<meta http-equiv="content-type" />
<link HREF="../forms.css" REL="stylesheet" TYPE="text/css">
</head>
<body scroll="auto" leftmargin="20" rightmargin="20" onBeforeUnload="return checkDirty()">
<OBJECT classid=clsid:550dda30-0541-11d2-9ca9-0060b0ec3d39 height=0 id=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/Location.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="frmLocation" ACTION="../Scripts/postIt.asp" METHOD="post" TARGET="postIt" onSubmit="return update()" onReset="refresh()">
<input NAME="tableName" TYPE="hidden" VALUE="Location">
<input TYPE="hidden" NAME="procName" VALUE="lw_changeLocation">
<input TYPE="hidden" NAME="actionBtn" VALUE="CHANGE">
<input NAME="ID" TYPE="hidden" DATASRC="#xmldso" DATAFLD="LocationId">
<input NAME="LocationId" TYPE="hidden" DATASRC="#xmldso" DATAFLD="LocationId">
               
<table DATASRC="#xmldso" DATAPAGESIZE="1" width="100%">
<thead>
<tr>
   <td width="50%"><label LID="lbl57">Location Information</label></td>
   <td width="50%"><label LID="lbl58">Address</label></td>
</tr>
</thead>
<tr><td align="top">
  <table DATASRC="#xmldso" DATAPAGESIZE="1" width="100%">
  <tbody>
  <tr>
     <td CLASS="LabelSmall"><label class="LabelBold" LID="lbl59"><u>L</u>ocation Name:</label></td> 
     <td width="100%"><input NAME="Name" DATAFLD="Name" style="WIDTH: 100%" TABINDEX="1" ACCESSKEY="L" maxlength="50" onKeypress="setDirty()" TITLE="Maximum length 50 characters." LID="inp59" L_NAME="Name" validator="isWord" required="true"></td>
  </tr>
  <tr>
     <td CLASS="LabelSmall"><label LID="lbl3">C<u>o</u>mments:</label></td>
     <td><TEXTAREA accessKey=C dataFld=Comment name=Comment onkeypress=setDirty() rows=4 style="WIDTH: 100%" tabIndex=2 LID="txa3"></TEXTAREA></td>
  </tr>
  <tr>
     <td CLASS="LabelSmall" nowrap><label LID="lbl61">E-<u>m</u>ail Name:</label></td>
     <td><input NAME="Email" DATAFLD="Email" style="WIDTH: 100%" TABINDEX="3" ACCESSKEY="E" maxlength="128" onKeypress="setDirty()" TITLE="Maximum length 128 characters." LID="inp61" L_NAME="Email" validator="isEmail"></td>  
  </tr>         
  <tr>
    <td CLASS="LabelSmall"><label LID="lbl62">Tele<u>p</u>hone:</label></td>
    <td><input NAME="Phone" DATAFLD="Phone" style="WIDTH: 100%" TABINDEX="4" ACCESSKEY="T" maxlength="24" onKeypress="setDirty()" TITLE="Maximum length 24 characters." LID="inp62" L_NAME="Phone" validator="isPhone"></td>  
  </tr>
  </tbody>
</table></td>
<td align="top">
   <table DATASRC="#xmldso" DATAPAGESIZE="1" width="100%">
   <tbody>
   <tr>
      <td CLASS="LabelSmall" width="20%"><label LID="lbl63">Str<u>e</u>et:</label></td>
     <td width="30%"><input NAME="Street" DATAFLD="Street" style="WIDTH: 100%" TABINDEX="5" ACCESSKEY="S" maxlength="64" onKeypress="setDirty()" TITLE="Maximum length 64 characters." LID="inp63"></td>
   </tr>
   <tr>       
     <td CLASS="LabelSmall"><label LID="lbl64"><u>C</u>ity:</label></td>
     <td><input NAME="City" DATAFLD="City" style="WIDTH: 100%" TABINDEX="6" ACCESSKEY="I" maxlength="32" onKeypress="setDirty()" TITLE="Maximum length 32 characters." LID="inp64" L_NAME="City" validator="isAlpha"></td>     
   </tr>
   <tr>
     <td CLASS="LabelSmall"><label LID="lbl65">Re<u>g</u>ion:</label></td>
     <td><input NAME="Region" DATAFLD="Region" style="WIDTH: 100%" TABINDEX="7" ACCESSKEY="R" maxlength="32" onKeypress="setDirty()" TITLE="Maximum length 32 characters." LID="inp65" L_NAME="Region" validator="isAlpha"></td>    
   </tr>
   <tr>
     <td CLASS="LabelSmall"><label LID="lbl66">Pos<u>t</u>al Code:</label></td>
     <td><input NAME="PostalCode" DATAFLD="PostalCode" style="WIDTH: 100%" TABINDEX="8" ACCESSKEY="P" maxlength="20" onKeypress="setDirty()" TITLE="Maximum length 20 characters." LID="inp66" L_NAME="PostalCode" validator="isWord"></td>    
   </tr>
   <tr>
     <td CLASS="LabelSmall"><label LID="lbl67">Cou<u>n</u>try:</label></td>
     <td><input NAME="Country" DATAFLD="Country" style="WIDTH: 100%" TABINDEX="9" ACCESSKEY="U" maxlength="32" onKeypress="setDirty()" TITLE="Maximum length 32 characters." LID="inp67" L_NAME="Country" validator="isAlpha"></td>         
   </tr>
   <tr>
     <td CLASS="LabelSmall"><label class="LabelBold" LID="lbl68">Ma<u>x</u>imum<br>Occupancy:</label></td>
     <td><input NAME="MaxOccupancy" DATAFLD="MaxOccupancy" style="WIDTH: 100%" TABINDEX="10" ACCESSKEY="X" onKeypress="setDirty()" MAXLENGTH="10" TITLE="Maximum Value is 32767." LID="inp68" L_NAME="MaxOccupancy" validator="isSmallInt" required="true"></td>         
   </tr>
   </tbody>
   </table></td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td></td><td>
  <table border="0" cellPadding="0" cellSpacing="2" width="100%">
  <tr>
     <td vAlign="top" width="33%">
       <button id="cmdSubmit" type="submit" class="Button" tabIndex="11" style="WIDTH: 100%" LID="btn1">Change</button></td>
     <td vAlign="top" width="33%">
       <button type="reset" class="Button" tabIndex="12" style="WIDTH: 100%" DISABLED LID="btn2">New</button></td>
     <td vAlign="top" width="33%">
       <button class="Button" tabIndex="13" style="WIDTH: 100%" onClick="remove()" DISABLED LID="btn3">Delete</button></td></tr>
  </table></td></tr>
</table> 

</form>

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

</body>
</html>