home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
tblLPRsrch.aspx
< prev
next >
Wrap
Text File
|
2010-08-24
|
18KB
|
398 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" AutoEventWireup="false" CodeFile="tblLPRsrch.aspx.vb" Inherits="tblLPRsrch" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var tblLPR_search = new ew_Page("tblLPR_search");
// page properties
tblLPR_search.PageID = "search"; // page ID
var EW_PAGE_ID = tblLPR_search.PageID; // for backward compatibility
// extend page with validate function for search
tblLPR_search.ValidateSearch = function(fobj) {
if (!this.ValidateRequired)
return true; // ignore validation
var infix = "";
elm = fobj.elements["x" + infix + "_lprDate"];
if (elm && !ew_CheckUSDate(elm.value))
return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - Date");
elm = fobj.elements["x" + infix + "_lprFixtureNumber"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Incorrect integer - Fixture Number");
elm = fobj.elements["x" + infix + "_lprChannelNumber"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Incorrect integer - Channel Number");
for (var i=0;i<fobj.elements.length;i++) {
var elem = fobj.elements[i];
if (elem.name.substring(0,2) == "s_" || elem.name.substring(0,3) == "sv_")
elem.value = "";
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
tblLPR_search.ValidateRequired = true; // uses JavaScript validation
<% Else %>
tblLPR_search.ValidateRequired = false; // no JavaScript validation
<% End If %>
// search highlight properties
tblLPR_search.ShowHighlightText = "Show highlight";
tblLPR_search.HideHighlightText = "Hide highlight";
//-->
</script>
<link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-1.css" title="win2k-1" />
<script type="text/javascript" src="calendar/calendar.js"></script>
<script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="calendar/calendar-setup.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js");
//-->
</script>
<p><span class="aspnetmaker">Search TABLE: Lighting Problem Reporting<br /><br />
<a href="<%= tblLPR.ReturnUrl %>">Back to List</a></span></p>
<% tblLPR_search.ShowMessage() %>
<form name="ftblLPRsearch" id="ftblLPRsearch" method="post" onsubmit="this.action=location.pathname;return tblLPR_search.ValidateSearch(this);">
<p />
<input type="hidden" name="t" id="t" value="tblLPR" />
<input type="hidden" name="a_search" id="a_search" value="S" />
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<tr<%= tblLPR.lprEmpID.RowAttributes %>>
<td class="ewTableHeader">Employee</td>
<td<%= tblLPR.lprEmpID.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprEmpID" id="z_lprEmpID" value="=" /></span></td>
<td<%= tblLPR.lprEmpID.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<% If Not Security.IsAdmin And Security.IsLoggedIn() Then ' Non system admin %>
<div<%= tblLPR.lprEmpID.ViewAttributes %>><%= tblLPR.lprEmpID.EditValue %></div>
<input type="hidden" name="x_lprEmpID" id="x_lprEmpID" value="<%= ew_HTMLEncode(tblLPR.lprEmpID.AdvancedSearch.SearchValue) %>" />
<% Else %>
<select id="x_lprEmpID" name="x_lprEmpID"<%= tblLPR.lprEmpID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprEmpID.EditValue) Then
arwrk = tblLPR.lprEmpID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprEmpID.AdvancedSearch.SearchValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
<% End If %>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprDate.RowAttributes %>>
<td class="ewTableHeader">Date</td>
<td<%= tblLPR.lprDate.CellAttributes %>><span class="ewSearchOpr">>=<input type="hidden" name="z_lprDate" id="z_lprDate" value=">=" /></span></td>
<td<%= tblLPR.lprDate.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprDate" id="x_lprDate" value="<%= tblLPR.lprDate.EditValue %>"<%= tblLPR.lprDate.EditAttributes %> />
<img src="images/calendar.png" id="cal_x_lprDate" name="cal_x_lprDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
<script type="text/javascript">
Calendar.setup({
inputField : "x_lprDate", // ID of the input field
ifFormat : "%m/%d/%Y", // the date format
button : "cal_x_lprDate" // ID of the button
});
</script>
</span></td>
<td><span class="ewSearchOpr" id="btw0_lprDate" name="btw0_lprDate"><label><input type="radio" name="v_lprDate" id="v_lprDate" value="AND"<% If tblLPR.lprDate.AdvancedSearch.SearchCondition <> "OR" Then Response.Write(" checked=""checked""") %> />and</label> <label><input type="radio" name="v_lprDate" id="v_lprDate" value="OR"<% If tblLPR.lprDate.AdvancedSearch.SearchCondition = "OR" Then Response.Write(" checked=""checked""") %> />or </label></span></td>
<td><span class="ewSearchOpr" id="btw0_lprDate" name="btw0_lprDate" ><=<input type="hidden" name="w_lprDate" id="w_lprDate" value="<=" /></span></td>
<td><span class="aspnetmaker">
<input type="text" name="y_lprDate" id="y_lprDate" value="<%= tblLPR.lprDate.EditValue2 %>"<%= tblLPR.lprDate.EditAttributes %> />
<img src="images/calendar.png" id="cal_y_lprDate" name="cal_y_lprDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
<script type="text/javascript">
Calendar.setup({
inputField : "y_lprDate", // ID of the input field
ifFormat : "%m/%d/%Y", // the date format
button : "cal_y_lprDate" // ID of the button
});
</script>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprLocationID.RowAttributes %>>
<td class="ewTableHeader">Location</td>
<td<%= tblLPR.lprLocationID.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprLocationID" id="z_lprLocationID" value="=" /></span></td>
<td<%= tblLPR.lprLocationID.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<select id="x_lprLocationID" name="x_lprLocationID"<%= tblLPR.lprLocationID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprLocationID.EditValue) Then
arwrk = tblLPR.lprLocationID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprLocationID.AdvancedSearch.SearchValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprFixtureLocationID.RowAttributes %>>
<td class="ewTableHeader">Fixture Location</td>
<td<%= tblLPR.lprFixtureLocationID.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprFixtureLocationID" id="z_lprFixtureLocationID" value="=" /></span></td>
<td<%= tblLPR.lprFixtureLocationID.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<select id="x_lprFixtureLocationID" name="x_lprFixtureLocationID"<%= tblLPR.lprFixtureLocationID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprFixtureLocationID.EditValue) Then
arwrk = tblLPR.lprFixtureLocationID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprFixtureLocationID.AdvancedSearch.SearchValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprFixtureTypeID.RowAttributes %>>
<td class="ewTableHeader">Fixture Type</td>
<td<%= tblLPR.lprFixtureTypeID.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprFixtureTypeID" id="z_lprFixtureTypeID" value="=" /></span></td>
<td<%= tblLPR.lprFixtureTypeID.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<select id="x_lprFixtureTypeID" name="x_lprFixtureTypeID"<%= tblLPR.lprFixtureTypeID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprFixtureTypeID.EditValue) Then
arwrk = tblLPR.lprFixtureTypeID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprFixtureTypeID.AdvancedSearch.SearchValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprFixtureNumber.RowAttributes %>>
<td class="ewTableHeader">Fixture Number</td>
<td<%= tblLPR.lprFixtureNumber.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lprFixtureNumber" id="z_lprFixtureNumber" value="LIKE" /></span></td>
<td<%= tblLPR.lprFixtureNumber.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprFixtureNumber" id="x_lprFixtureNumber" size="30" maxlength="255" value="<%= tblLPR.lprFixtureNumber.EditValue %>"<%= tblLPR.lprFixtureNumber.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprChannelNumber.RowAttributes %>>
<td class="ewTableHeader">Channel Number</td>
<td<%= tblLPR.lprChannelNumber.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprChannelNumber" id="z_lprChannelNumber" value="=" /></span></td>
<td<%= tblLPR.lprChannelNumber.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprChannelNumber" id="x_lprChannelNumber" size="30" value="<%= tblLPR.lprChannelNumber.EditValue %>"<%= tblLPR.lprChannelNumber.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprPriority.RowAttributes %>>
<td class="ewTableHeader">Priority</td>
<td<%= tblLPR.lprPriority.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprPriority" id="z_lprPriority" value="=" /></span></td>
<td<%= tblLPR.lprPriority.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<select id="x_lprPriority" name="x_lprPriority"<%= tblLPR.lprPriority.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprPriority.EditValue) Then
arwrk = tblLPR.lprPriority.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprPriority.AdvancedSearch.SearchValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprShortDesc.RowAttributes %>>
<td class="ewTableHeader">Short Desc</td>
<td<%= tblLPR.lprShortDesc.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lprShortDesc" id="z_lprShortDesc" value="LIKE" /></span></td>
<td<%= tblLPR.lprShortDesc.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprShortDesc" id="x_lprShortDesc" size="30" maxlength="255" value="<%= tblLPR.lprShortDesc.EditValue %>"<%= tblLPR.lprShortDesc.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprSTID.RowAttributes %>>
<td class="ewTableHeader">Status</td>
<td<%= tblLPR.lprSTID.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprSTID" id="z_lprSTID" value="=" /></span></td>
<td<%= tblLPR.lprSTID.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<select id="x_lprSTID" name="x_lprSTID"<%= tblLPR.lprSTID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprSTID.EditValue) Then
arwrk = tblLPR.lprSTID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprSTID.AdvancedSearch.SearchValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprSTChangedBy.RowAttributes %>>
<td class="ewTableHeader">Status Changed By</td>
<td<%= tblLPR.lprSTChangedBy.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lprSTChangedBy" id="z_lprSTChangedBy" value="LIKE" /></span></td>
<td<%= tblLPR.lprSTChangedBy.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprSTChangedBy" id="x_lprSTChangedBy" size="30" maxlength="255" value="<%= tblLPR.lprSTChangedBy.EditValue %>"<%= tblLPR.lprSTChangedBy.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprDesc.RowAttributes %>>
<td class="ewTableHeader">Description</td>
<td<%= tblLPR.lprDesc.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lprDesc" id="z_lprDesc" value="LIKE" /></span></td>
<td<%= tblLPR.lprDesc.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<textarea name="x_lprDesc" id="x_lprDesc" cols="35" rows="4"<%= tblLPR.lprDesc.EditAttributes %>><%= tblLPR.lprDesc.EditValue %></textarea>
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprCreatedBy.RowAttributes %>>
<td class="ewTableHeader">Created By</td>
<td<%= tblLPR.lprCreatedBy.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lprCreatedBy" id="z_lprCreatedBy" value="LIKE" /></span></td>
<td<%= tblLPR.lprCreatedBy.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprCreatedBy" id="x_lprCreatedBy" size="30" maxlength="255" value="<%= tblLPR.lprCreatedBy.EditValue %>"<%= tblLPR.lprCreatedBy.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprCreatedOn.RowAttributes %>>
<td class="ewTableHeader">Created On</td>
<td<%= tblLPR.lprCreatedOn.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprCreatedOn" id="z_lprCreatedOn" value="=" /></span></td>
<td<%= tblLPR.lprCreatedOn.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprCreatedOn" id="x_lprCreatedOn" value="<%= tblLPR.lprCreatedOn.EditValue %>"<%= tblLPR.lprCreatedOn.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprModifiedBy.RowAttributes %>>
<td class="ewTableHeader">Modified By</td>
<td<%= tblLPR.lprModifiedBy.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lprModifiedBy" id="z_lprModifiedBy" value="LIKE" /></span></td>
<td<%= tblLPR.lprModifiedBy.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprModifiedBy" id="x_lprModifiedBy" size="30" maxlength="255" value="<%= tblLPR.lprModifiedBy.EditValue %>"<%= tblLPR.lprModifiedBy.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
<tr<%= tblLPR.lprModifiedOn.RowAttributes %>>
<td class="ewTableHeader">Modified On</td>
<td<%= tblLPR.lprModifiedOn.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lprModifiedOn" id="z_lprModifiedOn" value="=" /></span></td>
<td<%= tblLPR.lprModifiedOn.CellAttributes %>>
<table cellspacing="0" class="ewItemTable"><tr>
<td><span class="aspnetmaker">
<input type="text" name="x_lprModifiedOn" id="x_lprModifiedOn" value="<%= tblLPR.lprModifiedOn.EditValue %>"<%= tblLPR.lprModifiedOn.EditAttributes %> />
</span></td>
</tr></table>
</td>
</tr>
</table>
</div>
</td></tr></table>
<p />
<input type="submit" name="Action" id="Action" value=" Search " />
<input type="button" name="Reset" id="Reset" value=" Reset " onclick="ew_ClearForm(this.form);" />
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
</asp:Content>