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

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" AutoEventWireup="false" CodeFile="tblFixtureMasterdelete.aspx.vb" Inherits="tblFixtureMasterdelete" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <script type="text/javascript">
  4. <!--
  5. // Create page object
  6. var tblFixtureMaster_delete = new ew_Page("tblFixtureMaster_delete");
  7. // page properties
  8. tblFixtureMaster_delete.PageID = "delete"; // page ID
  9. var EW_PAGE_ID = tblFixtureMaster_delete.PageID; // for backward compatibility
  10. <% If EW_CLIENT_VALIDATE Then %>
  11. tblFixtureMaster_delete.ValidateRequired = true; // uses JavaScript validation
  12. <% Else %>
  13. tblFixtureMaster_delete.ValidateRequired = false; // no JavaScript validation
  14. <% End If %>
  15. //-->
  16. </script>
  17. <script language="JavaScript" type="text/javascript">
  18. <!--
  19. // Write your client script here, no need to add script tags.
  20. // To include another .js script, use:
  21. // ew_ClientScriptInclude("my_javascript.js"); 
  22. //-->
  23. </script>
  24. <%
  25.  
  26. ' Load records for display
  27. Rs = tblFixtureMaster_delete.LoadRecordset()
  28. If tblFixtureMaster_delete.lTotalRecs <= 0 Then ' No record found, exit
  29.     Rs.Close()
  30.     Rs.Dispose()
  31.     tblFixtureMaster_delete.Page_Terminate("tblFixtureMasterlist.aspx") ' Return to list
  32. End If
  33. %>
  34. <p><span class="aspnetmaker">Delete From TABLE: Fixture Master<br /><br />
  35. <a href="<%= tblFixtureMaster.ReturnUrl %>">Go Back</a></span></p>
  36. <% tblFixtureMaster_delete.ShowMessage() %>
  37. <form method="post">
  38. <p />
  39. <input type="hidden" name="t" id="t" value="tblFixtureMaster" />
  40. <input type="hidden" name="a_delete" id="a_delete" value="D" />
  41. <% For i As Integer = 0 to tblFixtureMaster_delete.arRecKeys.GetUpperBound(0) %>
  42. <input type="hidden" name="key_m" id="key_m" value="<%= Server.HtmlEncode(Convert.ToString(tblFixtureMaster_delete.arRecKeys(i))) %>" />
  43. <% Next %>
  44. <table class="ewGrid"><tr><td class="ewGridContent">
  45. <div class="ewGridMiddlePanel">
  46. <table cellspacing="0" class="ewTable ewTableSeparate">
  47. <%= tblFixtureMaster.TableCustomInnerHTML %>
  48.     <thead>
  49.     <tr class="ewTableHeader">
  50.         <td valign="top">Manufacturer</td>
  51.         <td valign="top">Model / Type</td>
  52.         <td valign="top">Serial Number</td>
  53.         <td valign="top">Lamp</td>
  54.         <td valign="top">Location</td>
  55.         <td valign="top">Hang Pos</td>
  56.         <td valign="top">Channel</td>
  57.     </tr>
  58.     </thead>
  59.     <tbody>
  60. <%
  61. tblFixtureMaster_delete.lRecCnt = 0
  62. Do While Rs.Read()
  63.     tblFixtureMaster_delete.lRecCnt = tblFixtureMaster_delete.lRecCnt + 1
  64.  
  65.     ' Set row properties
  66.     tblFixtureMaster.CssClass = ""
  67.     tblFixtureMaster.CssStyle = ""
  68.     tblFixtureMaster.RowType = EW_ROWTYPE_VIEW ' view
  69.  
  70.     ' Get the field contents
  71.     tblFixtureMaster_delete.LoadRowValues(Rs)
  72.  
  73.     ' Render row
  74.     tblFixtureMaster_delete.RenderRow()
  75. %>
  76.     <tr<%= tblFixtureMaster.RowAttributes %>>
  77.         <td<%= tblFixtureMaster.lfxMFG.CellAttributes %>>
  78. <div<%= tblFixtureMaster.lfxMFG.ViewAttributes %>><%= tblFixtureMaster.lfxMFG.ListViewValue %></div>
  79. </td>
  80.         <td<%= tblFixtureMaster.lfxModelType.CellAttributes %>>
  81. <div<%= tblFixtureMaster.lfxModelType.ViewAttributes %>><%= tblFixtureMaster.lfxModelType.ListViewValue %></div>
  82. </td>
  83.         <td<%= tblFixtureMaster.lfxSerialNumber.CellAttributes %>>
  84. <div<%= tblFixtureMaster.lfxSerialNumber.ViewAttributes %>><%= tblFixtureMaster.lfxSerialNumber.ListViewValue %></div>
  85. </td>
  86.         <td<%= tblFixtureMaster.lfxLamp.CellAttributes %>>
  87. <div<%= tblFixtureMaster.lfxLamp.ViewAttributes %>><%= tblFixtureMaster.lfxLamp.ListViewValue %></div>
  88. </td>
  89.         <td<%= tblFixtureMaster.lfxLocationID.CellAttributes %>>
  90. <div<%= tblFixtureMaster.lfxLocationID.ViewAttributes %>><%= tblFixtureMaster.lfxLocationID.ListViewValue %></div>
  91. </td>
  92.         <td<%= tblFixtureMaster.lfxHangPos.CellAttributes %>>
  93. <div<%= tblFixtureMaster.lfxHangPos.ViewAttributes %>><%= tblFixtureMaster.lfxHangPos.ListViewValue %></div>
  94. </td>
  95.         <td<%= tblFixtureMaster.lfxChannel.CellAttributes %>>
  96. <div<%= tblFixtureMaster.lfxChannel.ViewAttributes %>><%= tblFixtureMaster.lfxChannel.ListViewValue %></div>
  97. </td>
  98.     </tr>
  99. <%
  100. Loop
  101. Rs.Close()
  102. Rs.Dispose()
  103. %>
  104.     </tbody>
  105. </table>
  106. </div>
  107. </td></tr></table>
  108. <p />
  109. <input type="submit" name="Action" id="Action" value="Confirm Delete" />
  110. </form>
  111. <script language="JavaScript" type="text/javascript">
  112. <!--
  113. // Write your table-specific startup script here
  114. // document.write("page loaded");
  115. //-->
  116. </script>
  117. </asp:Content>
  118.