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

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" AutoEventWireup="false" CodeFile="tblLPRFixtureLocationdelete.aspx.vb" Inherits="tblLPRFixtureLocationdelete" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <script type="text/javascript">
  4. <!--
  5. // Create page object
  6. var tblLPRFixtureLocation_delete = new ew_Page("tblLPRFixtureLocation_delete");
  7. // page properties
  8. tblLPRFixtureLocation_delete.PageID = "delete"; // page ID
  9. var EW_PAGE_ID = tblLPRFixtureLocation_delete.PageID; // for backward compatibility
  10. <% If EW_CLIENT_VALIDATE Then %>
  11. tblLPRFixtureLocation_delete.ValidateRequired = true; // uses JavaScript validation
  12. <% Else %>
  13. tblLPRFixtureLocation_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 = tblLPRFixtureLocation_delete.LoadRecordset()
  28. If tblLPRFixtureLocation_delete.lTotalRecs <= 0 Then ' No record found, exit
  29.     Rs.Close()
  30.     Rs.Dispose()
  31.     tblLPRFixtureLocation_delete.Page_Terminate("tblLPRFixtureLocationlist.aspx") ' Return to list
  32. End If
  33. %>
  34. <p><span class="aspnetmaker">Delete From TABLE: LPR Fixture Location<br /><br />
  35. <a href="<%= tblLPRFixtureLocation.ReturnUrl %>">Go Back</a></span></p>
  36. <% tblLPRFixtureLocation_delete.ShowMessage() %>
  37. <form method="post">
  38. <p />
  39. <input type="hidden" name="t" id="t" value="tblLPRFixtureLocation" />
  40. <input type="hidden" name="a_delete" id="a_delete" value="D" />
  41. <% For i As Integer = 0 to tblLPRFixtureLocation_delete.arRecKeys.GetUpperBound(0) %>
  42. <input type="hidden" name="key_m" id="key_m" value="<%= Server.HtmlEncode(Convert.ToString(tblLPRFixtureLocation_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. <%= tblLPRFixtureLocation.TableCustomInnerHTML %>
  48.     <thead>
  49.     <tr class="ewTableHeader">
  50.         <td valign="top">Description</td>
  51.     </tr>
  52.     </thead>
  53.     <tbody>
  54. <%
  55. tblLPRFixtureLocation_delete.lRecCnt = 0
  56. Do While Rs.Read()
  57.     tblLPRFixtureLocation_delete.lRecCnt = tblLPRFixtureLocation_delete.lRecCnt + 1
  58.  
  59.     ' Set row properties
  60.     tblLPRFixtureLocation.CssClass = ""
  61.     tblLPRFixtureLocation.CssStyle = ""
  62.     tblLPRFixtureLocation.RowType = EW_ROWTYPE_VIEW ' view
  63.  
  64.     ' Get the field contents
  65.     tblLPRFixtureLocation_delete.LoadRowValues(Rs)
  66.  
  67.     ' Render row
  68.     tblLPRFixtureLocation_delete.RenderRow()
  69. %>
  70.     <tr<%= tblLPRFixtureLocation.RowAttributes %>>
  71.         <td<%= tblLPRFixtureLocation.floDescription.CellAttributes %>>
  72. <div<%= tblLPRFixtureLocation.floDescription.ViewAttributes %>><%= tblLPRFixtureLocation.floDescription.ListViewValue %></div>
  73. </td>
  74.     </tr>
  75. <%
  76. Loop
  77. Rs.Close()
  78. Rs.Dispose()
  79. %>
  80.     </tbody>
  81. </table>
  82. </div>
  83. </td></tr></table>
  84. <p />
  85. <input type="submit" name="Action" id="Action" value="Confirm Delete" />
  86. </form>
  87. <script language="JavaScript" type="text/javascript">
  88. <!--
  89. // Write your table-specific startup script here
  90. // document.write("page loaded");
  91. //-->
  92. </script>
  93. </asp:Content>
  94.