home *** CD-ROM | disk | FTP | other *** search
/ 66.142.0.142 / 66.142.0.142.tar / 66.142.0.142 / ltgFixtureMasteredit.aspx < prev    next >
Text File  |  2014-01-25  |  9KB  |  188 lines

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="ltgFixtureMasteredit.aspx.vb" Inherits="ltgFixtureMasteredit" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <script type="text/javascript">
  4. <!--
  5. // Create page object
  6. var ltgFixtureMaster_edit = new ew_Page("ltgFixtureMaster_edit");
  7. // page properties
  8. ltgFixtureMaster_edit.PageID = "edit"; // page ID
  9. var EW_PAGE_ID = ltgFixtureMaster_edit.PageID; // for backward compatibility
  10. // extend page with ValidateForm function
  11. ltgFixtureMaster_edit.ValidateForm = function(fobj) {
  12.     if (!this.ValidateRequired)
  13.         return true; // ignore validation
  14.     if (fobj.a_confirm && fobj.a_confirm.value == "F")
  15.         return true;
  16.     var i, elm, aelm, infix;
  17.     var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
  18.     for (i=0; i<rowcnt; i++) {
  19.         infix = (fobj.key_count) ? String(i+1) : "";
  20.     }
  21.     return true;
  22. }
  23. <% If EW_CLIENT_VALIDATE Then %>
  24. ltgFixtureMaster_edit.ValidateRequired = true; // uses JavaScript validation
  25. <% Else %>
  26. ltgFixtureMaster_edit.ValidateRequired = false; // no JavaScript validation
  27. <% End If %>
  28. //-->
  29. </script>
  30. <script language="JavaScript" type="text/javascript">
  31. <!--
  32. // Write your client script here, no need to add script tags.
  33. // To include another .js script, use:
  34. // ew_ClientScriptInclude("my_javascript.js"); 
  35. //-->
  36. </script>
  37. <p><span class="aspnetmaker">Edit TABLE: ltg Fixture Master<br /><br />
  38. <a href="<%= ltgFixtureMaster.ReturnUrl %>">Go Back</a></span></p>
  39. <% ltgFixtureMaster_edit.ShowMessage() %>
  40. <form name="fltgFixtureMasteredit" id="fltgFixtureMasteredit" method="post" onsubmit="this.action=location.pathname;return ltgFixtureMaster_edit.ValidateForm(this);">
  41. <p />
  42. <input type="hidden" name="a_table" id="a_table" value="ltgFixtureMaster" />
  43. <input type="hidden" name="a_edit" id="a_edit" value="U" />
  44. <table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
  45. <div class="ewGridMiddlePanel">
  46. <table cellspacing="0" class="ewTable">
  47. <% If ltgFixtureMaster.lfxCode.Visible Then ' lfxCode %>
  48.     <tr<%= ltgFixtureMaster.lfxCode.RowAttributes %>>
  49.         <td class="ewTableHeader">Code</td>
  50.         <td<%= ltgFixtureMaster.lfxCode.CellAttributes %>><span id="el_lfxCode">
  51. <input type="text" name="x_lfxCode" id="x_lfxCode" size="30" maxlength="50" value="<%= ltgFixtureMaster.lfxCode.EditValue %>"<%= ltgFixtureMaster.lfxCode.EditAttributes %> />
  52. </span><%= ltgFixtureMaster.lfxCode.CustomMsg %></td>
  53.     </tr>
  54. <% End If %>
  55. <% If ltgFixtureMaster.lfxDescription.Visible Then ' lfxDescription %>
  56.     <tr<%= ltgFixtureMaster.lfxDescription.RowAttributes %>>
  57.         <td class="ewTableHeader">Description</td>
  58.         <td<%= ltgFixtureMaster.lfxDescription.CellAttributes %>><span id="el_lfxDescription">
  59. <input type="text" name="x_lfxDescription" id="x_lfxDescription" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxDescription.EditValue %>"<%= ltgFixtureMaster.lfxDescription.EditAttributes %> />
  60. </span><%= ltgFixtureMaster.lfxDescription.CustomMsg %></td>
  61.     </tr>
  62. <% End If %>
  63. <% If ltgFixtureMaster.lfxMFG.Visible Then ' lfxMFG %>
  64.     <tr<%= ltgFixtureMaster.lfxMFG.RowAttributes %>>
  65.         <td class="ewTableHeader">MFG</td>
  66.         <td<%= ltgFixtureMaster.lfxMFG.CellAttributes %>><span id="el_lfxMFG">
  67. <input type="text" name="x_lfxMFG" id="x_lfxMFG" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxMFG.EditValue %>"<%= ltgFixtureMaster.lfxMFG.EditAttributes %> />
  68. </span><%= ltgFixtureMaster.lfxMFG.CustomMsg %></td>
  69.     </tr>
  70. <% End If %>
  71. <% If ltgFixtureMaster.lfxModel.Visible Then ' lfxModel %>
  72.     <tr<%= ltgFixtureMaster.lfxModel.RowAttributes %>>
  73.         <td class="ewTableHeader">Model</td>
  74.         <td<%= ltgFixtureMaster.lfxModel.CellAttributes %>><span id="el_lfxModel">
  75. <input type="text" name="x_lfxModel" id="x_lfxModel" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxModel.EditValue %>"<%= ltgFixtureMaster.lfxModel.EditAttributes %> />
  76. </span><%= ltgFixtureMaster.lfxModel.CustomMsg %></td>
  77.     </tr>
  78. <% End If %>
  79. <% If ltgFixtureMaster.lfxSerialNumber.Visible Then ' lfxSerialNumber %>
  80.     <tr<%= ltgFixtureMaster.lfxSerialNumber.RowAttributes %>>
  81.         <td class="ewTableHeader">Serial Number</td>
  82.         <td<%= ltgFixtureMaster.lfxSerialNumber.CellAttributes %>><span id="el_lfxSerialNumber">
  83. <input type="text" name="x_lfxSerialNumber" id="x_lfxSerialNumber" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxSerialNumber.EditValue %>"<%= ltgFixtureMaster.lfxSerialNumber.EditAttributes %> />
  84. </span><%= ltgFixtureMaster.lfxSerialNumber.CustomMsg %></td>
  85.     </tr>
  86. <% End If %>
  87. <% If ltgFixtureMaster.lfxLamp.Visible Then ' lfxLamp %>
  88.     <tr<%= ltgFixtureMaster.lfxLamp.RowAttributes %>>
  89.         <td class="ewTableHeader">Lamp</td>
  90.         <td<%= ltgFixtureMaster.lfxLamp.CellAttributes %>><span id="el_lfxLamp">
  91. <input type="text" name="x_lfxLamp" id="x_lfxLamp" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxLamp.EditValue %>"<%= ltgFixtureMaster.lfxLamp.EditAttributes %> />
  92. </span><%= ltgFixtureMaster.lfxLamp.CustomMsg %></td>
  93.     </tr>
  94. <% End If %>
  95. <% If ltgFixtureMaster.lfxFixtureTypeID.Visible Then ' lfxFixtureTypeID %>
  96.     <tr<%= ltgFixtureMaster.lfxFixtureTypeID.RowAttributes %>>
  97.         <td class="ewTableHeader">Fixture Type</td>
  98.         <td<%= ltgFixtureMaster.lfxFixtureTypeID.CellAttributes %>><span id="el_lfxFixtureTypeID">
  99. <select id="x_lfxFixtureTypeID" name="x_lfxFixtureTypeID"<%= ltgFixtureMaster.lfxFixtureTypeID.EditAttributes %>>
  100. <%
  101. emptywrk = True
  102. If ew_IsArrayList(ltgFixtureMaster.lfxFixtureTypeID.EditValue) Then
  103.     arwrk = ltgFixtureMaster.lfxFixtureTypeID.EditValue
  104.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  105.         If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureMaster.lfxFixtureTypeID.CurrentValue) Then
  106.             selwrk = " selected=""selected"""
  107.             emptywrk = False
  108.         Else
  109.             selwrk = ""
  110.         End If
  111. %>
  112. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  113. <%= arwrk(rowcntwrk)(1) %>
  114. </option>
  115. <%
  116.     Next
  117. End If
  118. %>
  119. </select>
  120. </span><%= ltgFixtureMaster.lfxFixtureTypeID.CustomMsg %></td>
  121.     </tr>
  122. <% End If %>
  123. <% If ltgFixtureMaster.lfxLocationID.Visible Then ' lfxLocationID %>
  124.     <tr<%= ltgFixtureMaster.lfxLocationID.RowAttributes %>>
  125.         <td class="ewTableHeader">Location</td>
  126.         <td<%= ltgFixtureMaster.lfxLocationID.CellAttributes %>><span id="el_lfxLocationID">
  127. <select id="x_lfxLocationID" name="x_lfxLocationID"<%= ltgFixtureMaster.lfxLocationID.EditAttributes %>>
  128. <%
  129. emptywrk = True
  130. If ew_IsArrayList(ltgFixtureMaster.lfxLocationID.EditValue) Then
  131.     arwrk = ltgFixtureMaster.lfxLocationID.EditValue
  132.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  133.         If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureMaster.lfxLocationID.CurrentValue) Then
  134.             selwrk = " selected=""selected"""
  135.             emptywrk = False
  136.         Else
  137.             selwrk = ""
  138.         End If
  139. %>
  140. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  141. <%= arwrk(rowcntwrk)(1) %>
  142. </option>
  143. <%
  144.     Next
  145. End If
  146. %>
  147. </select>
  148. </span><%= ltgFixtureMaster.lfxLocationID.CustomMsg %></td>
  149.     </tr>
  150. <% End If %>
  151. <% If ltgFixtureMaster.lfxChannel.Visible Then ' lfxChannel %>
  152.     <tr<%= ltgFixtureMaster.lfxChannel.RowAttributes %>>
  153.         <td class="ewTableHeader">Channel</td>
  154.         <td<%= ltgFixtureMaster.lfxChannel.CellAttributes %>><span id="el_lfxChannel">
  155. <input type="text" name="x_lfxChannel" id="x_lfxChannel" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxChannel.EditValue %>"<%= ltgFixtureMaster.lfxChannel.EditAttributes %> />
  156. </span><%= ltgFixtureMaster.lfxChannel.CustomMsg %></td>
  157.     </tr>
  158. <% End If %>
  159. <% If ltgFixtureMaster.lfxIsActive.Visible Then ' lfxIsActive %>
  160.     <tr<%= ltgFixtureMaster.lfxIsActive.RowAttributes %>>
  161.         <td class="ewTableHeader">Is Active</td>
  162.         <td<%= ltgFixtureMaster.lfxIsActive.CellAttributes %>><span id="el_lfxIsActive">
  163. <%
  164. If ew_SameStr(ltgFixtureMaster.lfxIsActive.CurrentValue, "1") Then
  165.     selwrk = " checked=""checked"""
  166. Else
  167.     selwrk = ""
  168. End If
  169. %>
  170. <input type="checkbox" name="x_lfxIsActive" id="x_lfxIsActive" value="1"<%= selwrk %><%= ltgFixtureMaster.lfxIsActive.EditAttributes %> />
  171. </span><%= ltgFixtureMaster.lfxIsActive.CustomMsg %></td>
  172.     </tr>
  173. <% End If %>
  174. </table>
  175. </div>
  176. </td></tr></table>
  177. <input type="hidden" name="x_lfxID" id="x_lfxID" value="<%= ew_HTMLEncode(ltgFixtureMaster.lfxID.CurrentValue) %>" />
  178. <p />
  179. <input type="submit" name="btnAction" id="btnAction" value="   Edit   " />
  180. </form>
  181. <script language="JavaScript" type="text/javascript">
  182. <!--
  183. // Write your table-specific startup script here
  184. // document.write("page loaded");
  185. //-->
  186. </script>
  187. </asp:Content>
  188.