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

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" AutoEventWireup="false" CodeFile="tblFixtureMastersrch.aspx.vb" Inherits="tblFixtureMastersrch" 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_search = new ew_Page("tblFixtureMaster_search");
  7. // page properties
  8. tblFixtureMaster_search.PageID = "search"; // page ID
  9. var EW_PAGE_ID = tblFixtureMaster_search.PageID; // for backward compatibility
  10. // extend page with validate function for search
  11. tblFixtureMaster_search.ValidateSearch = function(fobj) {
  12.     if (!this.ValidateRequired)
  13.         return true; // ignore validation
  14.     var infix = "";
  15.     elm = fobj.elements["x" + infix + "_lfxChannel"];
  16.     if (elm && !ew_CheckInteger(elm.value))
  17.         return ew_OnError(this, elm, "Incorrect integer - Channel");
  18.     for (var i=0;i<fobj.elements.length;i++) {
  19.         var elem = fobj.elements[i];
  20.         if (elem.name.substring(0,2) == "s_" || elem.name.substring(0,3) == "sv_")
  21.             elem.value = "";
  22.     }
  23.     return true;
  24. }
  25. <% If EW_CLIENT_VALIDATE Then %>
  26. tblFixtureMaster_search.ValidateRequired = true; // uses JavaScript validation
  27. <% Else %>
  28. tblFixtureMaster_search.ValidateRequired = false; // no JavaScript validation
  29. <% End If %>
  30. //-->
  31. </script>
  32. <script language="JavaScript" type="text/javascript">
  33. <!--
  34. // Write your client script here, no need to add script tags.
  35. // To include another .js script, use:
  36. // ew_ClientScriptInclude("my_javascript.js"); 
  37. //-->
  38. </script>
  39. <p><span class="aspnetmaker">Search TABLE: Fixture Master<br /><br />
  40. <a href="<%= tblFixtureMaster.ReturnUrl %>">Back to List</a></span></p>
  41. <% tblFixtureMaster_search.ShowMessage() %>
  42. <form name="ftblFixtureMastersearch" id="ftblFixtureMastersearch" method="post" onsubmit="this.action=location.pathname;return tblFixtureMaster_search.ValidateSearch(this);">
  43. <p />
  44. <input type="hidden" name="t" id="t" value="tblFixtureMaster" />
  45. <input type="hidden" name="a_search" id="a_search" value="S" />
  46. <table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
  47. <div class="ewGridMiddlePanel">
  48. <table cellspacing="0" class="ewTable">
  49.     <tr<%= tblFixtureMaster.lfxMFG.RowAttributes %>>
  50.         <td class="ewTableHeader">Manufacturer</td>
  51.         <td<%= tblFixtureMaster.lfxMFG.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxMFG" id="z_lfxMFG" value="LIKE" /></span></td>
  52.         <td<%= tblFixtureMaster.lfxMFG.CellAttributes %>>
  53.             <table cellspacing="0" class="ewItemTable"><tr>
  54.                 <td><span class="aspnetmaker">
  55. <input type="text" name="x_lfxMFG" id="x_lfxMFG" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxMFG.EditValue %>"<%= tblFixtureMaster.lfxMFG.EditAttributes %> />
  56. </span></td>
  57.             </tr></table>
  58.         </td>
  59.     </tr>
  60.     <tr<%= tblFixtureMaster.lfxModelType.RowAttributes %>>
  61.         <td class="ewTableHeader">Model / Type</td>
  62.         <td<%= tblFixtureMaster.lfxModelType.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxModelType" id="z_lfxModelType" value="LIKE" /></span></td>
  63.         <td<%= tblFixtureMaster.lfxModelType.CellAttributes %>>
  64.             <table cellspacing="0" class="ewItemTable"><tr>
  65.                 <td><span class="aspnetmaker">
  66. <input type="text" name="x_lfxModelType" id="x_lfxModelType" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxModelType.EditValue %>"<%= tblFixtureMaster.lfxModelType.EditAttributes %> />
  67. </span></td>
  68.             </tr></table>
  69.         </td>
  70.     </tr>
  71.     <tr<%= tblFixtureMaster.lfxSerialNumber.RowAttributes %>>
  72.         <td class="ewTableHeader">Serial Number</td>
  73.         <td<%= tblFixtureMaster.lfxSerialNumber.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxSerialNumber" id="z_lfxSerialNumber" value="LIKE" /></span></td>
  74.         <td<%= tblFixtureMaster.lfxSerialNumber.CellAttributes %>>
  75.             <table cellspacing="0" class="ewItemTable"><tr>
  76.                 <td><span class="aspnetmaker">
  77. <input type="text" name="x_lfxSerialNumber" id="x_lfxSerialNumber" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxSerialNumber.EditValue %>"<%= tblFixtureMaster.lfxSerialNumber.EditAttributes %> />
  78. </span></td>
  79.             </tr></table>
  80.         </td>
  81.     </tr>
  82.     <tr<%= tblFixtureMaster.lfxLamp.RowAttributes %>>
  83.         <td class="ewTableHeader">Lamp</td>
  84.         <td<%= tblFixtureMaster.lfxLamp.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxLamp" id="z_lfxLamp" value="LIKE" /></span></td>
  85.         <td<%= tblFixtureMaster.lfxLamp.CellAttributes %>>
  86.             <table cellspacing="0" class="ewItemTable"><tr>
  87.                 <td><span class="aspnetmaker">
  88. <input type="text" name="x_lfxLamp" id="x_lfxLamp" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxLamp.EditValue %>"<%= tblFixtureMaster.lfxLamp.EditAttributes %> />
  89. </span></td>
  90.             </tr></table>
  91.         </td>
  92.     </tr>
  93.     <tr<%= tblFixtureMaster.lfxLocationID.RowAttributes %>>
  94.         <td class="ewTableHeader">Location</td>
  95.         <td<%= tblFixtureMaster.lfxLocationID.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lfxLocationID" id="z_lfxLocationID" value="=" /></span></td>
  96.         <td<%= tblFixtureMaster.lfxLocationID.CellAttributes %>>
  97.             <table cellspacing="0" class="ewItemTable"><tr>
  98.                 <td><span class="aspnetmaker">
  99. <select id="x_lfxLocationID" name="x_lfxLocationID"<%= tblFixtureMaster.lfxLocationID.EditAttributes %>>
  100. <%
  101. emptywrk = True
  102. If ew_IsArrayList(tblFixtureMaster.lfxLocationID.EditValue) Then
  103.     arwrk = tblFixtureMaster.lfxLocationID.EditValue
  104.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  105.         If ew_SameStr(arwrk(rowcntwrk)(0), tblFixtureMaster.lfxLocationID.AdvancedSearch.SearchValue) Then
  106.             selwrk = " selected=""selected"""
  107.             emptywrk = False
  108.         Else
  109.             selwrk = ""
  110.         End If
  111. %>
  112. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  113. <%= arwrk(rowcntwrk)(1) %>
  114. </option>
  115. <%
  116.     Next
  117. End If
  118. %>
  119. </select>
  120. </span></td>
  121.             </tr></table>
  122.         </td>
  123.     </tr>
  124.     <tr<%= tblFixtureMaster.lfxHangPos.RowAttributes %>>
  125.         <td class="ewTableHeader">Hang Pos</td>
  126.         <td<%= tblFixtureMaster.lfxHangPos.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxHangPos" id="z_lfxHangPos" value="LIKE" /></span></td>
  127.         <td<%= tblFixtureMaster.lfxHangPos.CellAttributes %>>
  128.             <table cellspacing="0" class="ewItemTable"><tr>
  129.                 <td><span class="aspnetmaker">
  130. <input type="text" name="x_lfxHangPos" id="x_lfxHangPos" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxHangPos.EditValue %>"<%= tblFixtureMaster.lfxHangPos.EditAttributes %> />
  131. </span></td>
  132.             </tr></table>
  133.         </td>
  134.     </tr>
  135.     <tr<%= tblFixtureMaster.lfxChannel.RowAttributes %>>
  136.         <td class="ewTableHeader">Channel</td>
  137.         <td<%= tblFixtureMaster.lfxChannel.CellAttributes %>><span class="ewSearchOpr">=<input type="hidden" name="z_lfxChannel" id="z_lfxChannel" value="=" /></span></td>
  138.         <td<%= tblFixtureMaster.lfxChannel.CellAttributes %>>
  139.             <table cellspacing="0" class="ewItemTable"><tr>
  140.                 <td><span class="aspnetmaker">
  141. <input type="text" name="x_lfxChannel" id="x_lfxChannel" size="30" value="<%= tblFixtureMaster.lfxChannel.EditValue %>"<%= tblFixtureMaster.lfxChannel.EditAttributes %> />
  142. </span></td>
  143.             </tr></table>
  144.         </td>
  145.     </tr>
  146.     <tr<%= tblFixtureMaster.lfxNotes.RowAttributes %>>
  147.         <td class="ewTableHeader">Notes</td>
  148.         <td<%= tblFixtureMaster.lfxNotes.CellAttributes %>><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxNotes" id="z_lfxNotes" value="LIKE" /></span></td>
  149.         <td<%= tblFixtureMaster.lfxNotes.CellAttributes %>>
  150.             <table cellspacing="0" class="ewItemTable"><tr>
  151.                 <td><span class="aspnetmaker">
  152. <textarea name="x_lfxNotes" id="x_lfxNotes" cols="35" rows="4"<%= tblFixtureMaster.lfxNotes.EditAttributes %>><%= tblFixtureMaster.lfxNotes.EditValue %></textarea>
  153. </span></td>
  154.             </tr></table>
  155.         </td>
  156.     </tr>
  157. </table>
  158. </div>
  159. </td></tr></table>
  160. <p />
  161. <input type="submit" name="Action" id="Action" value="  Search  " />
  162. <input type="button" name="Reset" id="Reset" value="   Reset   " onclick="ew_ClearForm(this.form);" />
  163. </form>
  164. <script language="JavaScript" type="text/javascript">
  165. <!--
  166. // Write your table-specific startup script here
  167. // document.write("page loaded");
  168. //-->
  169. </script>
  170. </asp:Content>
  171.