home *** CD-ROM | disk | FTP | other *** search
/ 66.142.0.142 / 66.142.0.142.tar / 66.142.0.142 / askLPRReportform.aspx < prev    next >
Text File  |  2012-02-19  |  7KB  |  159 lines

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="askLPRReportform.aspx.vb" Inherits="askLPRReportform" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <%@ MasterType virtualPath="~/MasterPage.master"%>
  4.  
  5. <script type="text/javascript">
  6. <!--
  7. // Create page object
  8. var askLPRReport_form = new ew_Page("askLPRReport_form");
  9. // page properties
  10. askLPRReport_form.PageID = "list"; // page ID
  11. var EW_PAGE_ID = askLPRReport_form.PageID; // for backward compatibility
  12. // extend page with validate function for search
  13. askLPRReport_form.ValidateSearch = function(fobj) {
  14.     var i, elm, aelm, infix;
  15. // Start Date
  16. //    elm = document.getElementById("<%= x_StartDate.ClientID %>");
  17. //    if (elm && !ew_CheckUSDate(elm.value))
  18. //        return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - Starting Date");
  19. //    if (elm && !ew_HasValue(elm))
  20. //        return ew_OnError(this, elm, "Please enter required field - Starting Date");
  21. //
  22. // End Date
  23.     elm = document.getElementById("<%= x_EndDate.ClientID %>");
  24.     if (elm && !ew_CheckUSDate(elm.value))
  25.         return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - Ending Date");
  26.     if (elm && !ew_HasValue(elm))
  27.         return ew_OnError(this, elm, "Please enter required field - Ending Date");
  28. //
  29. // Employee
  30. //    elm = document.getElementById("<%= ddlEmployee.ClientID %>");
  31. //    if (elm && !ew_HasValue(elm))
  32. //        return ew_OnError(this, elm, "Please enter required field - Employee");
  33. //
  34. // Location
  35. //    elm = document.getElementById("<%= ddlLocation.ClientID %>");
  36. //    if (elm && !ew_HasValue(elm))
  37. //        return ew_OnError(this, elm, "Please enter required field - Location");
  38. //
  39. // LPRStatus
  40. //    elm = document.getElementById("<%= ddlLPRStatus.ClientID %>");
  41. //    if (elm && !ew_HasValue(elm))
  42. //        return ew_OnError(this, elm, "Please enter required field - Status");
  43. //
  44.     return true;
  45. }
  46. <% If EW_CLIENT_VALIDATE Then %>
  47. askLPRReport_form.ValidateRequired = true; // uses JavaScript validation
  48. <% Else %>
  49. askLPRReport_form.ValidateRequired = false; // no JavaScript validation
  50. <% End If %>
  51. //-->
  52. </script>
  53. <link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-1.css" title="win2k-1" />
  54. <script type="text/javascript" src="calendar/calendar.js"></script>
  55. <script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
  56. <script type="text/javascript" src="calendar/calendar-setup.js"></script>
  57.  
  58. <p><span class="aspnetmaker" style="white-space: nowrap;">REPORTS: Lighting Problem Report
  59. </span></p>
  60.  
  61. <form id="frmaskLPRReport" name="frmaskLPRReport" method="post" runat="server" onsubmit="return askLPRReport_form.ValidateSearch(this);">
  62.  
  63. <input type="hidden" id="t" name="t" value="askLPRReport" />
  64. <table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
  65. <div class="ewGridMiddlePanel">
  66. <table cellspacing="0" class="ewTable">
  67. <!-- Start Date -->
  68.     <tr>
  69.         <td class="ewTableHeader">Starting Date<span class="ewRequired"> *</span></td>
  70.         <td><span id="Span2">
  71.  
  72. <input type="text" name="x_StartDate" id="x_StartDate" value="" runat="server" />
  73.  <img src="images/calendar.png" id="Img1" name="cal_x_StartDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
  74. <script type="text/javascript">
  75.     Calendar.setup({
  76.         inputField: document.getElementById("<%= x_StartDate.ClientID %>"), // ID of the input field
  77.         ifFormat: "%m/%d/%Y", // the date format
  78.         button: "cal_x_StartDate" // ID of the button
  79.     });
  80. </script>
  81.         </span></td>
  82.     </tr>
  83. <!-- End Date -->
  84.     <tr>
  85.         <td class="ewTableHeader">Ending Date<span class="ewRequired"> *</span></td>
  86.         <td><span id="Span1">
  87.  
  88. <input type="text" name="x_EndDate" id="x_EndDate" value="" runat="server" />
  89.  <img src="images/calendar.png" id="Img2" name="cal_x_EndDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
  90. <script type="text/javascript">
  91.     Calendar.setup({
  92.         inputField: document.getElementById("<%= x_EndDate.ClientID %>"), // ID of the input field
  93.         ifFormat: "%m/%d/%Y", // the date format
  94.         button: "cal_x_EndDate" // ID of the button
  95.     });
  96. </script>
  97.         </span></td>
  98.     </tr>
  99. <!-- Employee -->
  100. <%  If Session("tfpssnet_Status_UserLevel") = -1 Or Session("tfpssnet_Status_Userlevel") = 3 Or Session("tfpssnet_Status_Userlevel") = 4 Then%>
  101.     <tr>
  102.         <td class="ewTableHeader">Employee<span class="ewRequired"> *</span></td>
  103.         <td><span id="el_depID">
  104.             <asp:DropDownList ID="ddlEmployee" name="ddlEmployee" DataSourceID = "srcEmployee"
  105.                 DataTextField = "empName" DataValueField = "empID" runat="server" AppendDataBoundItems="True">
  106.                 <asp:ListItem Value="0">All</asp:ListItem>
  107.             </asp:DropDownList>
  108.         </span></td>
  109.     </tr>
  110. <% end if %>
  111. <!-- Location -->
  112.     <tr>
  113.         <td class="ewTableHeader">Location<span class="ewRequired"> *</span></td>
  114.         <td><span id="Span3">
  115.             <asp:DropDownList ID="ddlLocation" name="ddlLocation" DataSourceID = "srcLocation"
  116.                 DataTextField = "locDescription" DataValueField = "locID" runat="server" AppendDataBoundItems="True">
  117.                 <asp:ListItem Value="0">All</asp:ListItem>
  118.             </asp:DropDownList>
  119.         </span></td>
  120.     </tr>
  121. <!-- LPR Status -->
  122.     <tr>
  123.         <td class="ewTableHeader">Status<span class="ewRequired"> *</span></td>
  124.         <td><span id="Span4">
  125.             <asp:DropDownList ID="ddlLPRStatus" name="ddlLPRStatus" DataSourceID = "srcLPRStatus"
  126.                 DataTextField = "lstDescription" DataValueField = "lstID" runat="server" AppendDataBoundItems="True">
  127.                 <asp:ListItem Value="0">All</asp:ListItem>
  128.             </asp:DropDownList>
  129.         </span></td>
  130.     </tr>
  131. <!-- end of table -->
  132. </table>
  133.     </div>
  134.     </td></tr>
  135. </table>
  136.  
  137. <p />
  138.  
  139. <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" UseSubmitBehavior="false" />
  140.  
  141. </form>
  142.  
  143. <asp:SqlDataSource ID="srcEmployee" SelectCommand="SELECT empID, empName FROM tblEmployees WHERE empIsActive=True ORDER BY empFirstName" 
  144.     ConnectionString=""
  145.     runat="server" ProviderName="System.Data.OleDb">
  146. </asp:SqlDataSource>
  147.  
  148. <asp:SqlDataSource ID="srcLocation" SelectCommand="SELECT locID, locDescription FROM tblLocations WHERE locLighting=True AND locIsActive=True ORDER BY locDescription" 
  149.     ConnectionString=""
  150.     runat="server" ProviderName="System.Data.OleDb">
  151. </asp:SqlDataSource>
  152.  
  153. <asp:SqlDataSource ID="srcLPRStatus" SelectCommand="SELECT lstID, lstDescription FROM tblLPRStatus WHERE lstIsActive=True ORDER BY lstDescription" 
  154.     ConnectionString=""
  155.     runat="server" ProviderName="System.Data.OleDb">
  156. </asp:SqlDataSource>
  157.  
  158. </asp:Content>
  159.