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

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" AutoEventWireup="false" CodeFile="tblScheduledelete.aspx.vb" Inherits="tblScheduledelete" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <script type="text/javascript">
  4. <!--
  5. // Create page object
  6. var tblSchedule_delete = new ew_Page("tblSchedule_delete");
  7. // page properties
  8. tblSchedule_delete.PageID = "delete"; // page ID
  9. var EW_PAGE_ID = tblSchedule_delete.PageID; // for backward compatibility
  10. tblSchedule_delete.SelectAllKey = function(elem) {
  11.     ew_SelectAll(elem);
  12. }
  13. <% If EW_CLIENT_VALIDATE Then %>
  14. tblSchedule_delete.ValidateRequired = true; // uses JavaScript validation
  15. <% Else %>
  16. tblSchedule_delete.ValidateRequired = false; // no JavaScript validation
  17. <% End If %>
  18. // search highlight properties
  19. tblSchedule_delete.ShowHighlightText = "Show highlight"; 
  20. tblSchedule_delete.HideHighlightText = "Hide highlight";
  21. //-->
  22. </script>
  23. <script language="JavaScript" type="text/javascript">
  24. <!--
  25. // Write your client script here, no need to add script tags.
  26. // To include another .js script, use:
  27. // ew_ClientScriptInclude("my_javascript.js"); 
  28. //-->
  29. </script>
  30. <%
  31.  
  32. ' Load records for display
  33. Rs = tblSchedule_delete.LoadRecordset()
  34. If tblSchedule_delete.lTotalRecs <= 0 Then ' No record found, exit
  35.     Rs.Close()
  36.     Rs.Dispose()
  37.     tblSchedule_delete.Page_Terminate("tblSchedulelist.aspx") ' Return to list
  38. End If
  39. %>
  40. <p><span class="aspnetmaker">Delete From TABLE: Schedule<br /><br />
  41. <a href="<%= tblSchedule.ReturnUrl %>">Go Back</a></span></p>
  42. <% tblSchedule_delete.ShowMessage() %>
  43. <form method="post">
  44. <p />
  45. <input type="hidden" name="t" id="t" value="tblSchedule" />
  46. <input type="hidden" name="a_delete" id="a_delete" value="D" />
  47. <% For i As Integer = 0 to tblSchedule_delete.arRecKeys.GetUpperBound(0) %>
  48. <input type="hidden" name="key_m" id="key_m" value="<%= Server.HtmlEncode(Convert.ToString(tblSchedule_delete.arRecKeys(i))) %>" />
  49. <% Next %>
  50. <table class="ewGrid"><tr><td class="ewGridContent">
  51. <div class="ewGridMiddlePanel">
  52. <table cellspacing="0" class="ewTable ewTableSeparate">
  53. <%= tblSchedule.TableCustomInnerHTML %>
  54.     <thead>
  55.     <tr class="ewTableHeader">
  56.         <td valign="top">Date</td>
  57.         <td valign="top">Event</td>
  58.         <td valign="top">Part</td>
  59.         <td valign="top">Call Time</td>
  60.         <td valign="top">Start Time</td>
  61.         <td valign="top">End Time</td>
  62.         <td valign="top">Out Time</td>
  63.         <td valign="top">Location</td>
  64.         <td valign="top">Employee</td>
  65.         <td valign="top">Position</td>
  66.         <td valign="top">Type</td>
  67.         <td valign="top">Actual Start</td>
  68.         <td valign="top">Actual End</td>
  69.         <td valign="top">Dbl Bkd</td>
  70.         <td valign="top">Status</td>
  71.     </tr>
  72.     </thead>
  73.     <tbody>
  74. <%
  75. tblSchedule_delete.lRecCnt = 0
  76. Do While Rs.Read()
  77.     tblSchedule_delete.lRecCnt = tblSchedule_delete.lRecCnt + 1
  78.  
  79.     ' Set row properties
  80.     tblSchedule.CssClass = ""
  81.     tblSchedule.CssStyle = ""
  82.     tblSchedule.RowType = EW_ROWTYPE_VIEW ' view
  83.  
  84.     ' Get the field contents
  85.     tblSchedule_delete.LoadRowValues(Rs)
  86.  
  87.     ' Render row
  88.     tblSchedule_delete.RenderRow()
  89. %>
  90.     <tr<%= tblSchedule.RowAttributes %>>
  91.         <td<%= tblSchedule.schDate.CellAttributes %>>
  92. <div<%= tblSchedule.schDate.ViewAttributes %>><%= tblSchedule.schDate.ListViewValue %></div>
  93. </td>
  94.         <td<%= tblSchedule.schEvtID.CellAttributes %>>
  95. <div<%= tblSchedule.schEvtID.ViewAttributes %>><%= tblSchedule.schEvtID.ListViewValue %></div>
  96. </td>
  97.         <td<%= tblSchedule.schPartsID.CellAttributes %>>
  98. <div<%= tblSchedule.schPartsID.ViewAttributes %>><%= tblSchedule.schPartsID.ListViewValue %></div>
  99. </td>
  100.         <td<%= tblSchedule.schCallTime.CellAttributes %>>
  101. <div<%= tblSchedule.schCallTime.ViewAttributes %>><%= tblSchedule.schCallTime.ListViewValue %></div>
  102. </td>
  103.         <td<%= tblSchedule.schStartTime.CellAttributes %>>
  104. <div<%= tblSchedule.schStartTime.ViewAttributes %>><%= tblSchedule.schStartTime.ListViewValue %></div>
  105. </td>
  106.         <td<%= tblSchedule.schEndTime.CellAttributes %>>
  107. <div<%= tblSchedule.schEndTime.ViewAttributes %>><%= tblSchedule.schEndTime.ListViewValue %></div>
  108. </td>
  109.         <td<%= tblSchedule.schOutTime.CellAttributes %>>
  110. <div<%= tblSchedule.schOutTime.ViewAttributes %>><%= tblSchedule.schOutTime.ListViewValue %></div>
  111. </td>
  112.         <td<%= tblSchedule.schLocID.CellAttributes %>>
  113. <div<%= tblSchedule.schLocID.ViewAttributes %>><%= tblSchedule.schLocID.ListViewValue %></div>
  114. </td>
  115.         <td<%= tblSchedule.schEmpID.CellAttributes %>>
  116. <div<%= tblSchedule.schEmpID.ViewAttributes %>><%= tblSchedule.schEmpID.ListViewValue %></div>
  117. </td>
  118.         <td<%= tblSchedule.schPosID.CellAttributes %>>
  119. <div<%= tblSchedule.schPosID.ViewAttributes %>><%= tblSchedule.schPosID.ListViewValue %></div>
  120. </td>
  121.         <td<%= tblSchedule.schTypID.CellAttributes %>>
  122. <div<%= tblSchedule.schTypID.ViewAttributes %>><%= tblSchedule.schTypID.ListViewValue %></div>
  123. </td>
  124.         <td<%= tblSchedule.schActualStart.CellAttributes %>>
  125. <div<%= tblSchedule.schActualStart.ViewAttributes %>><%= tblSchedule.schActualStart.ListViewValue %></div>
  126. </td>
  127.         <td<%= tblSchedule.schActualEnd.CellAttributes %>>
  128. <div<%= tblSchedule.schActualEnd.ViewAttributes %>><%= tblSchedule.schActualEnd.ListViewValue %></div>
  129. </td>
  130.         <td<%= tblSchedule.schDoubleBooked.CellAttributes %>>
  131. <% If Convert.ToString(tblSchedule.schDoubleBooked.CurrentValue) = "1" Then %>
  132. <input type="checkbox" value="<%= tblSchedule.schDoubleBooked.ListViewValue %>" checked onclick="this.form.reset();" disabled="disabled" />
  133. <% Else %>
  134. <input type="checkbox" value="<%= tblSchedule.schDoubleBooked.ListViewValue %>" onclick="this.form.reset();" disabled="disabled" />
  135. <% End If %></td>
  136.         <td<%= tblSchedule.schStatus.CellAttributes %>>
  137. <div<%= tblSchedule.schStatus.ViewAttributes %>><%= tblSchedule.schStatus.ListViewValue %></div>
  138. </td>
  139.     </tr>
  140. <%
  141. Loop
  142. Rs.Close()
  143. Rs.Dispose()
  144. %>
  145.     </tbody>
  146. </table>
  147. </div>
  148. </td></tr></table>
  149. <p />
  150. <input type="submit" name="Action" id="Action" value="Confirm Delete" />
  151. </form>
  152. <script language="JavaScript" type="text/javascript">
  153. <!--
  154. // Write your table-specific startup script here
  155. // document.write("page loaded");
  156. //-->
  157. </script>
  158. </asp:Content>
  159.