home *** CD-ROM | disk | FTP | other *** search
/ 66.142.0.142 / 66.142.0.142.tar / 66.142.0.142 / tblLocationsedit.aspx < prev    next >
Text File  |  2010-08-26  |  4KB  |  84 lines

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="tblLocationsedit.aspx.vb" Inherits="tblLocationsedit" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <script type="text/javascript">
  4. <!--
  5. // Create page object
  6. var tblLocations_edit = new ew_Page("tblLocations_edit");
  7. // page properties
  8. tblLocations_edit.PageID = "edit"; // page ID
  9. var EW_PAGE_ID = tblLocations_edit.PageID; // for backward compatibility
  10. // extend page with ValidateForm function
  11. tblLocations_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. tblLocations_edit.ValidateRequired = true; // uses JavaScript validation
  25. <% Else %>
  26. tblLocations_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: Locations<br /><br />
  38. <a href="<%= tblLocations.ReturnUrl %>">Go Back</a></span></p>
  39. <% tblLocations_edit.ShowMessage() %>
  40. <form name="ftblLocationsedit" id="ftblLocationsedit" method="post" onsubmit="this.action=location.pathname;return tblLocations_edit.ValidateForm(this);">
  41. <p />
  42. <input type="hidden" name="a_table" id="a_table" value="tblLocations" />
  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 tblLocations.locDescription.Visible Then ' locDescription %>
  48.     <tr<%= tblLocations.locDescription.RowAttributes %>>
  49.         <td class="ewTableHeader">Description</td>
  50.         <td<%= tblLocations.locDescription.CellAttributes %>><span id="el_locDescription">
  51. <input type="text" name="x_locDescription" id="x_locDescription" size="30" maxlength="50" value="<%= tblLocations.locDescription.EditValue %>"<%= tblLocations.locDescription.EditAttributes %> />
  52. </span><%= tblLocations.locDescription.CustomMsg %></td>
  53.     </tr>
  54. <% End If %>
  55. <% If tblLocations.locLighting.Visible Then ' locLighting %>
  56.     <tr<%= tblLocations.locLighting.RowAttributes %>>
  57.         <td class="ewTableHeader">loc Lighting</td>
  58.         <td<%= tblLocations.locLighting.CellAttributes %>><span id="el_locLighting">
  59. <%
  60. If ew_SameStr(tblLocations.locLighting.CurrentValue, "1") Then
  61.     selwrk = " checked=""checked"""
  62. Else
  63.     selwrk = ""
  64. End If
  65. %>
  66. <input type="checkbox" name="x_locLighting" id="x_locLighting" value="1"<%= selwrk %><%= tblLocations.locLighting.EditAttributes %> />
  67. </span><%= tblLocations.locLighting.CustomMsg %></td>
  68.     </tr>
  69. <% End If %>
  70. </table>
  71. </div>
  72. </td></tr></table>
  73. <input type="hidden" name="x_locID" id="x_locID" value="<%= ew_HTMLEncode(tblLocations.locID.CurrentValue) %>" />
  74. <p />
  75. <input type="submit" name="btnAction" id="btnAction" value="  Submit  " />
  76. </form>
  77. <script language="JavaScript" type="text/javascript">
  78. <!--
  79. // Write your table-specific startup script here
  80. // document.write("page loaded");
  81. //-->
  82. </script>
  83. </asp:Content>
  84.