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

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="tblLocationsadd.aspx.vb" Inherits="tblLocationsadd" 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_add = new ew_Page("tblLocations_add");
  7. // page properties
  8. tblLocations_add.PageID = "add"; // page ID
  9. var EW_PAGE_ID = tblLocations_add.PageID; // for backward compatibility
  10. // extend page with ValidateForm function
  11. tblLocations_add.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_add.ValidateRequired = true; // uses JavaScript validation
  25. <% Else %>
  26. tblLocations_add.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">Add to TABLE: Locations<br /><br />
  38. <a href="<%= tblLocations.ReturnUrl %>">Go Back</a></span></p>
  39. <% tblLocations_add.ShowMessage() %>
  40. <form name="ftblLocationsadd" id="ftblLocationsadd" method="post" onsubmit="this.action=location.pathname;return tblLocations_add.ValidateForm(this);">
  41. <p />
  42. <input type="hidden" name="t" id="t" value="tblLocations" />
  43. <input type="hidden" name="a_add" id="a_add" value="A" />
  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. <p />
  74. <input type="submit" name="btnAction" id="btnAction" value="    Add    " />
  75. </form>
  76. <script language="JavaScript" type="text/javascript">
  77. <!--
  78. // Write your table-specific startup script here
  79. // document.write("page loaded");
  80. //-->
  81.     document.all('x_locDescription').focus();
  82. </script>
  83. </asp:Content>
  84.