home *** CD-ROM | disk | FTP | other *** search
/ 66.142.0.142 / 66.142.0.142.tar / 66.142.0.142 / ltgFixtureMasterlist.aspx < prev    next >
Text File  |  2014-01-25  |  25KB  |  517 lines

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="ltgFixtureMasterlist.aspx.vb" Inherits="ltgFixtureMasterlist" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <% If ltgFixtureMaster.Export = "" Then %>
  4. <script type="text/javascript">
  5. <!--
  6. // Create page object
  7. var ltgFixtureMaster_list = new ew_Page("ltgFixtureMaster_list");
  8. // page properties
  9. ltgFixtureMaster_list.PageID = "list"; // page ID
  10. var EW_PAGE_ID = ltgFixtureMaster_list.PageID; // for backward compatibility
  11. // extend page with validate function for search
  12. ltgFixtureMaster_list.ValidateSearch = function(fobj) {
  13.     if (!this.ValidateRequired)
  14.         return true; // ignore validation
  15.     var infix = "";
  16.     for (var i=0;i<fobj.elements.length;i++) {
  17.         var elem = fobj.elements[i];
  18.         if (elem.name.substring(0,2) == "s_" || elem.name.substring(0,3) == "sv_")
  19.             elem.value = "";
  20.     }
  21.     return true;
  22. }
  23. <% If EW_CLIENT_VALIDATE Then %>
  24. ltgFixtureMaster_list.ValidateRequired = true; // uses JavaScript validation
  25. <% Else %>
  26. ltgFixtureMaster_list.ValidateRequired = false; // no JavaScript validation
  27. <% End If %>
  28. //-->
  29. </script>
  30. <script language="JavaScript" type="text/javascript">
  31. <!--
  32. // Write your client script here, no need to add script tags.
  33. // To include another .js script, use:
  34. // ew_ClientScriptInclude("my_javascript.js"); 
  35. //-->
  36. </script>
  37. <% End If %>
  38. <% If ltgFixtureMaster.Export = "" Then %>
  39. <% End If %>
  40. <%
  41.  
  42. ' Load recordset
  43. Rs = ltgFixtureMaster_list.LoadRecordset()
  44.     ltgFixtureMaster_list.lStartRec = 1
  45.     If ltgFixtureMaster_list.lDisplayRecs <= 0 Then ' Display all records
  46.         ltgFixtureMaster_list.lDisplayRecs = ltgFixtureMaster_list.lTotalRecs
  47.     End If
  48.     If Not (ltgFixtureMaster.ExportAll AndAlso ltgFixtureMaster.Export <> "") Then
  49.         ltgFixtureMaster_list.SetUpStartRec() ' Set up start record position
  50.     End If
  51. %>
  52. <p><span class="aspnetmaker" style="white-space: nowrap;">TABLE: ltg Fixture Master
  53. </span></p>
  54. <% If Security.CanSearch Then %>
  55. <% If ltgFixtureMaster.Export = "" AndAlso ltgFixtureMaster.CurrentAction = "" Then %>
  56. <a href="javascript:ew_ToggleSearchPanel(ltgFixtureMaster_list);" style="text-decoration: none;"><img id="ltgFixtureMaster_list_SearchImage" src="images/collapse.gif" alt="" width="9" height="9" border="0"></a><span class="aspnetmaker"> Search</span><br>
  57. <div id="ltgFixtureMaster_list_SearchPanel">
  58. <form name="fltgFixtureMasterlistsrch" id="fltgFixtureMasterlistsrch" class="ewForm" onsubmit="return ltgFixtureMaster_list.ValidateSearch(this);">
  59. <input type="hidden" id="t" name="t" value="ltgFixtureMaster" />
  60. <%
  61. If gsSearchError = "" Then
  62.     ltgFixtureMaster_list.LoadAdvancedSearch() ' Load advanced search
  63. End If
  64.  
  65. ' Render for search
  66. ltgFixtureMaster.RowType = EW_ROWTYPE_SEARCH
  67.  
  68. ' Render row
  69. ltgFixtureMaster_list.RenderRow()
  70. %>
  71. <table class="ewBasicSearch">
  72.     <tr>
  73.         <td><span class="aspnetmaker">Code</span></td>
  74.         <td><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxCode" id="z_lfxCode" value="LIKE" /></span></td>
  75.         <td>            
  76.             <table cellspacing="0" class="ewItemTable"><tr>
  77.                 <td><span class="aspnetmaker">
  78. <input type="text" name="x_lfxCode" id="x_lfxCode" size="30" maxlength="50" value="<%= ltgFixtureMaster.lfxCode.EditValue %>"<%= ltgFixtureMaster.lfxCode.EditAttributes %> />
  79. </span></td>
  80.             </tr></table>            
  81.         </td>
  82.     </tr>
  83.     <tr>
  84.         <td><span class="aspnetmaker">Description</span></td>
  85.         <td><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxDescription" id="z_lfxDescription" value="LIKE" /></span></td>
  86.         <td>            
  87.             <table cellspacing="0" class="ewItemTable"><tr>
  88.                 <td><span class="aspnetmaker">
  89. <input type="text" name="x_lfxDescription" id="x_lfxDescription" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxDescription.EditValue %>"<%= ltgFixtureMaster.lfxDescription.EditAttributes %> />
  90. </span></td>
  91.             </tr></table>            
  92.         </td>
  93.     </tr>
  94.     <tr>
  95.         <td><span class="aspnetmaker">MFG</span></td>
  96.         <td><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxMFG" id="z_lfxMFG" value="LIKE" /></span></td>
  97.         <td>            
  98.             <table cellspacing="0" class="ewItemTable"><tr>
  99.                 <td><span class="aspnetmaker">
  100. <input type="text" name="x_lfxMFG" id="x_lfxMFG" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxMFG.EditValue %>"<%= ltgFixtureMaster.lfxMFG.EditAttributes %> />
  101. </span></td>
  102.             </tr></table>            
  103.         </td>
  104.     </tr>
  105.     <tr>
  106.         <td><span class="aspnetmaker">Model</span></td>
  107.         <td><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxModel" id="z_lfxModel" value="LIKE" /></span></td>
  108.         <td>            
  109.             <table cellspacing="0" class="ewItemTable"><tr>
  110.                 <td><span class="aspnetmaker">
  111. <input type="text" name="x_lfxModel" id="x_lfxModel" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxModel.EditValue %>"<%= ltgFixtureMaster.lfxModel.EditAttributes %> />
  112. </span></td>
  113.             </tr></table>            
  114.         </td>
  115.     </tr>
  116.     <tr>
  117.         <td><span class="aspnetmaker">Serial Number</span></td>
  118.         <td><span class="ewSearchOpr">contains<input type="hidden" name="z_lfxSerialNumber" id="z_lfxSerialNumber" value="LIKE" /></span></td>
  119.         <td>            
  120.             <table cellspacing="0" class="ewItemTable"><tr>
  121.                 <td><span class="aspnetmaker">
  122. <input type="text" name="x_lfxSerialNumber" id="x_lfxSerialNumber" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxSerialNumber.EditValue %>"<%= ltgFixtureMaster.lfxSerialNumber.EditAttributes %> />
  123. </span></td>
  124.             </tr></table>            
  125.         </td>
  126.     </tr>
  127.     <tr>
  128.         <td><span class="aspnetmaker">Fixture Type</span></td>
  129.         <td><span class="ewSearchOpr">=<input type="hidden" name="z_lfxFixtureTypeID" id="z_lfxFixtureTypeID" value="=" /></span></td>
  130.         <td>            
  131.             <table cellspacing="0" class="ewItemTable"><tr>
  132.                 <td><span class="aspnetmaker">
  133. <select id="x_lfxFixtureTypeID" name="x_lfxFixtureTypeID"<%= ltgFixtureMaster.lfxFixtureTypeID.EditAttributes %>>
  134. <%
  135. emptywrk = True
  136. If ew_IsArrayList(ltgFixtureMaster.lfxFixtureTypeID.EditValue) Then
  137.     arwrk = ltgFixtureMaster.lfxFixtureTypeID.EditValue
  138.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  139.         If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureMaster.lfxFixtureTypeID.AdvancedSearch.SearchValue) Then
  140.             selwrk = " selected=""selected"""
  141.             emptywrk = False
  142.         Else
  143.             selwrk = ""
  144.         End If
  145. %>
  146. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  147. <%= arwrk(rowcntwrk)(1) %>
  148. </option>
  149. <%
  150.     Next
  151. End If
  152. %>
  153. </select>
  154. </span></td>
  155.             </tr></table>            
  156.         </td>
  157.     </tr>
  158.     <tr>
  159.         <td><span class="aspnetmaker">Location</span></td>
  160.         <td><span class="ewSearchOpr">=<input type="hidden" name="z_lfxLocationID" id="z_lfxLocationID" value="=" /></span></td>
  161.         <td>            
  162.             <table cellspacing="0" class="ewItemTable"><tr>
  163.                 <td><span class="aspnetmaker">
  164. <select id="x_lfxLocationID" name="x_lfxLocationID"<%= ltgFixtureMaster.lfxLocationID.EditAttributes %>>
  165. <%
  166. emptywrk = True
  167. If ew_IsArrayList(ltgFixtureMaster.lfxLocationID.EditValue) Then
  168.     arwrk = ltgFixtureMaster.lfxLocationID.EditValue
  169.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  170.         If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureMaster.lfxLocationID.AdvancedSearch.SearchValue) Then
  171.             selwrk = " selected=""selected"""
  172.             emptywrk = False
  173.         Else
  174.             selwrk = ""
  175.         End If
  176. %>
  177. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  178. <%= arwrk(rowcntwrk)(1) %>
  179. </option>
  180. <%
  181.     Next
  182. End If
  183. %>
  184. </select>
  185. </span></td>
  186.             </tr></table>            
  187.         </td>
  188.     </tr>
  189. </table>
  190. <table class="ewBasicSearch">
  191.     <tr>
  192.         <td><span class="aspnetmaker">
  193.             <input type="text" name="<%= EW_TABLE_BASIC_SEARCH %>" id="<%= EW_TABLE_BASIC_SEARCH %>" size="20" value="<%= ew_HtmlEncode(ltgFixtureMaster.BasicSearchKeyword) %>" />
  194.             <input type="Submit" name="Submit" id="Submit" value="Search (*)" /> 
  195.             <!-- <input type="Button" name="Reset" id="Reset" value="   Reset   " onclick="ew_ClearForm(this.form);if (this.form.<%= EW_TABLE_BASIC_SEARCH_TYPE %>) this.form.<%= EW_TABLE_BASIC_SEARCH_TYPE %>[0].checked = true;">  -->
  196.             <a href="<%= ltgFixtureMaster_list.PageUrl %>cmd=reset">Show all</a> 
  197.         </span></td>
  198.     </tr>
  199.     <tr>
  200.     <td><span class="aspnetmaker"><label><input type="radio" name="<%= EW_TABLE_BASIC_SEARCH_TYPE %>" id="<%= EW_TABLE_BASIC_SEARCH_TYPE %>" value=""<% If ltgFixtureMaster.BasicSearchType = "" Then %> checked="checked"<% End If %> />Exact phrase</label>  <label><input type="radio" name="<%= EW_TABLE_BASIC_SEARCH_TYPE %>" id="<%= EW_TABLE_BASIC_SEARCH_TYPE %>" value="AND"<% If ltgFixtureMaster.BasicSearchType = "AND" Then %> checked="checked"<% End If %> />All words</label>  <label><input type="radio" name="<%= EW_TABLE_BASIC_SEARCH_TYPE %>" id="<%= EW_TABLE_BASIC_SEARCH_TYPE %>" value="OR"<% If ltgFixtureMaster.BasicSearchType = "OR" Then %> checked="checked"<% End If %> />Any word</label></span></td>
  201.     </tr>
  202. </table>
  203. </form>
  204. </div>
  205. <% End If %>
  206. <% End If %>
  207. <% ltgFixtureMaster_list.ShowMessage() %>
  208. <br />
  209. <table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
  210. <div class="ewGridMiddlePanel">
  211. <form name="fltgFixtureMasterlist" id="fltgFixtureMasterlist" class="ewForm" method="post">
  212. <% If ltgFixtureMaster_list.lTotalRecs > 0 Then %>
  213. <table cellspacing="0" rowhighlightclass="ewTableHighlightRow" rowselectclass="ewTableSelectRow" roweditclass="ewTableEditRow" class="ewTable ewTableSeparate">
  214. <%
  215.     ltgFixtureMaster_list.lOptionCnt = 0
  216. If Security.CanView Then
  217.     ltgFixtureMaster_list.lOptionCnt = ltgFixtureMaster_list.lOptionCnt + 1 ' View
  218. End If
  219. If Security.CanEdit Then
  220.     ltgFixtureMaster_list.lOptionCnt = ltgFixtureMaster_list.lOptionCnt + 1 ' Edit
  221. End If
  222. If Security.CanDelete Then
  223.     ltgFixtureMaster_list.lOptionCnt = ltgFixtureMaster_list.lOptionCnt + 1 ' Delete
  224. End If
  225. If Security.AllowList("ltgFixtureNote") Then
  226.     ltgFixtureMaster_list.lOptionCnt = ltgFixtureMaster_list.lOptionCnt + 1 ' Detail
  227. End If
  228.     ltgFixtureMaster_list.lOptionCnt = ltgFixtureMaster_list.lOptionCnt + ltgFixtureMaster_list.ListOptions.Items.Count ' Custom list options
  229. %>
  230. <%= ltgFixtureMaster.TableCustomInnerHTML %>
  231. <thead><!-- Table header -->
  232.     <tr class="ewTableHeader">
  233. <% If ltgFixtureMaster.Export = "" Then %>
  234. <% If Security.CanView Then %>
  235. <td style="white-space: nowrap;"> </td>
  236. <% End If %>
  237. <% If Security.CanEdit Then %>
  238. <td style="white-space: nowrap;"> </td>
  239. <% End If %>
  240. <% If Security.CanDelete Then %>
  241. <td style="white-space: nowrap;"> </td>
  242. <% End If %>
  243. <% If Security.AllowList("ltgFixtureNote") Then %>
  244. <td style="white-space: nowrap;"> </td>
  245. <% End If %>
  246. <%
  247.  
  248. ' Custom list options
  249. For i As Integer = 0 to ltgFixtureMaster_list.ListOptions.Items.Count -1
  250.     If ltgFixtureMaster_list.ListOptions.Items(i).Visible Then Response.Write(ltgFixtureMaster_list.ListOptions.Items(i).HeaderCellHtml)
  251. Next
  252. %>
  253. <% End If %>
  254. <% If ltgFixtureMaster.lfxCode.Visible Then ' lfxCode %>
  255.     <% If ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxCode) = "" Then %>
  256.         <td>Code</td>
  257.     <% Else %>
  258.         <td class="ewPointer" onmousedown="ew_Sort(event,'<%= ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxCode) %>',2);">
  259.             <table cellspacing="0" class="ewTableHeaderBtn"><tr><td>Code (*)</td><td style="width: 10px;"><% If ltgFixtureMaster.lfxCode.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf ltgFixtureMaster.lfxCode.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
  260.         </td>
  261.     <% End If %>
  262. <% End If %>        
  263. <% If ltgFixtureMaster.lfxDescription.Visible Then ' lfxDescription %>
  264.     <% If ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxDescription) = "" Then %>
  265.         <td>Description</td>
  266.     <% Else %>
  267.         <td class="ewPointer" onmousedown="ew_Sort(event,'<%= ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxDescription) %>',2);">
  268.             <table cellspacing="0" class="ewTableHeaderBtn"><tr><td>Description (*)</td><td style="width: 10px;"><% If ltgFixtureMaster.lfxDescription.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf ltgFixtureMaster.lfxDescription.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
  269.         </td>
  270.     <% End If %>
  271. <% End If %>        
  272. <% If ltgFixtureMaster.lfxMFG.Visible Then ' lfxMFG %>
  273.     <% If ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxMFG) = "" Then %>
  274.         <td>MFG</td>
  275.     <% Else %>
  276.         <td class="ewPointer" onmousedown="ew_Sort(event,'<%= ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxMFG) %>',2);">
  277.             <table cellspacing="0" class="ewTableHeaderBtn"><tr><td>MFG (*)</td><td style="width: 10px;"><% If ltgFixtureMaster.lfxMFG.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf ltgFixtureMaster.lfxMFG.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
  278.         </td>
  279.     <% End If %>
  280. <% End If %>        
  281. <% If ltgFixtureMaster.lfxModel.Visible Then ' lfxModel %>
  282.     <% If ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxModel) = "" Then %>
  283.         <td>Model</td>
  284.     <% Else %>
  285.         <td class="ewPointer" onmousedown="ew_Sort(event,'<%= ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxModel) %>',2);">
  286.             <table cellspacing="0" class="ewTableHeaderBtn"><tr><td>Model (*)</td><td style="width: 10px;"><% If ltgFixtureMaster.lfxModel.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf ltgFixtureMaster.lfxModel.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
  287.         </td>
  288.     <% End If %>
  289. <% End If %>        
  290. <% If ltgFixtureMaster.lfxSerialNumber.Visible Then ' lfxSerialNumber %>
  291.     <% If ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxSerialNumber) = "" Then %>
  292.         <td>Serial Number</td>
  293.     <% Else %>
  294.         <td class="ewPointer" onmousedown="ew_Sort(event,'<%= ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxSerialNumber) %>',2);">
  295.             <table cellspacing="0" class="ewTableHeaderBtn"><tr><td>Serial Number (*)</td><td style="width: 10px;"><% If ltgFixtureMaster.lfxSerialNumber.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf ltgFixtureMaster.lfxSerialNumber.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
  296.         </td>
  297.     <% End If %>
  298. <% End If %>        
  299. <% If ltgFixtureMaster.lfxFixtureTypeID.Visible Then ' lfxFixtureTypeID %>
  300.     <% If ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxFixtureTypeID) = "" Then %>
  301.         <td>Fixture Type</td>
  302.     <% Else %>
  303.         <td class="ewPointer" onmousedown="ew_Sort(event,'<%= ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxFixtureTypeID) %>',2);">
  304.             <table cellspacing="0" class="ewTableHeaderBtn"><tr><td>Fixture Type</td><td style="width: 10px;"><% If ltgFixtureMaster.lfxFixtureTypeID.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf ltgFixtureMaster.lfxFixtureTypeID.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
  305.         </td>
  306.     <% End If %>
  307. <% End If %>        
  308. <% If ltgFixtureMaster.lfxLocationID.Visible Then ' lfxLocationID %>
  309.     <% If ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxLocationID) = "" Then %>
  310.         <td>Location</td>
  311.     <% Else %>
  312.         <td class="ewPointer" onmousedown="ew_Sort(event,'<%= ltgFixtureMaster.SortUrl(ltgFixtureMaster.lfxLocationID) %>',2);">
  313.             <table cellspacing="0" class="ewTableHeaderBtn"><tr><td>Location</td><td style="width: 10px;"><% If ltgFixtureMaster.lfxLocationID.Sort = "ASC" Then %><img src="images/sortup.gif" width="10" height="9" border="0"><% ElseIf ltgFixtureMaster.lfxLocationID.Sort = "DESC" Then %><img src="images/sortdown.gif" width="10" height="9" border="0"><% End If %></td></tr></table>
  314.         </td>
  315.     <% End If %>
  316. <% End If %>        
  317.     </tr>
  318. </thead>
  319. <tbody><!-- Table body -->
  320. <%
  321. If (ltgFixtureMaster.ExportAll AndAlso ltgFixtureMaster.Export <> "") Then
  322.     ltgFixtureMaster_list.lStopRec = ltgFixtureMaster_list.lTotalRecs
  323. Else
  324.     ltgFixtureMaster_list.lStopRec = ltgFixtureMaster_list.lStartRec + ltgFixtureMaster_list.lDisplayRecs - 1 ' Set the last record to display
  325. End If
  326. If ltgFixtureMaster.CurrentAction = "gridadd" AndAlso ltgFixtureMaster_list.lStopRec = -1 Then
  327.     ltgFixtureMaster_list.lStopRec = EW_GRIDADD_ROWS
  328. End If 
  329.  
  330. ' Move to first record
  331. For i As Integer = 1 to ltgFixtureMaster_list.lStartRec - 1
  332.     If Rs.Read() Then    ltgFixtureMaster_list.lRecCnt = ltgFixtureMaster_list.lRecCnt + 1
  333. Next        
  334. ltgFixtureMaster_list.lRowCnt = 0
  335.  
  336. ' Output data rows
  337. Do While (ltgFixtureMaster.CurrentAction = "gridadd" OrElse Rs.Read()) AndAlso (ltgFixtureMaster_list.lRecCnt < ltgFixtureMaster_list.lStopRec)
  338.     ltgFixtureMaster_list.lRecCnt = ltgFixtureMaster_list.lRecCnt + 1
  339.     If ltgFixtureMaster_list.lRecCnt >= ltgFixtureMaster_list.lStartRec Then
  340.         ltgFixtureMaster_list.lRowCnt = ltgFixtureMaster_list.lRowCnt + 1
  341.     ltgFixtureMaster.CssClass = ""
  342.     ltgFixtureMaster.CssStyle = ""
  343.     ltgFixtureMaster.RowClientEvents = "onmouseover='ew_MouseOver(event, this);' onmouseout='ew_MouseOut(event, this);' onclick='ew_Click(event, this);'"
  344.     If ltgFixtureMaster.CurrentAction = "gridadd" Then
  345.         ltgFixtureMaster_list.LoadDefaultValues() ' Load default values
  346.     Else
  347.         ltgFixtureMaster_list.LoadRowValues(Rs) ' Load row values
  348.     End If
  349.     ltgFixtureMaster.RowType = EW_ROWTYPE_VIEW ' Render view
  350.  
  351.     ' Render row
  352.     ltgFixtureMaster_list.RenderRow()
  353. %>
  354.     <tr<%= ltgFixtureMaster.RowAttributes %>>
  355. <% If ltgFixtureMaster.Export = "" Then %>
  356. <% If Security.CanView Then %>
  357. <td style="white-space: nowrap;"><span class="aspnetmaker">
  358. <a href="<%= ltgFixtureMaster.ViewUrl %>"><img src='images/view.gif' alt='View' title='View' width='16' height='16' border='0'></a>
  359. </span></td>
  360. <% End If %>
  361. <% If Security.CanEdit Then %>
  362. <td style="white-space: nowrap;"><span class="aspnetmaker">
  363. <a href="<%= ltgFixtureMaster.EditUrl %>"><img src='images/edit.gif' alt='Edit' title='Edit' width='16' height='16' border='0'></a>
  364. </span></td>
  365. <% End If %>
  366. <% If Security.CanDelete Then %>
  367. <td style="white-space: nowrap;"><span class="aspnetmaker">
  368. <a href="<%= ltgFixtureMaster.DeleteUrl %>"><img src='images/delete.gif' alt='Delete' title='Delete' width='16' height='16' border='0'></a>
  369. </span></td>
  370. <% End If %>
  371. <% If Security.AllowList("ltgFixtureNote") Then %>
  372. <td style="white-space: nowrap;"><span class="aspnetmaker">
  373. <a href="ltgFixtureNotelist.aspx?<%= EW_TABLE_SHOW_MASTER %>=ltgFixtureMaster&lfxID=<%= Server.UrlEncode(Convert.ToString(ltgFixtureMaster.lfxID.CurrentValue)) %>">ltg Fixture Note<img src='images/detail.gif' alt='Details' title='Details' width='16' height='16' border='0'></a>
  374. </span></td>
  375. <% End If %>
  376. <%
  377.  
  378. ' Custom list options
  379. For i As Integer = 0 to ltgFixtureMaster_list.ListOptions.Items.Count -1
  380.     If ltgFixtureMaster_list.ListOptions.Items(i).Visible Then Response.Write(ltgFixtureMaster_list.ListOptions.Items(i).BodyCellHtml)
  381. Next
  382. %>
  383. <% End If %>
  384.     <% If ltgFixtureMaster.lfxCode.Visible Then ' lfxCode %>
  385.         <td<%= ltgFixtureMaster.lfxCode.CellAttributes %>>
  386. <div<%= ltgFixtureMaster.lfxCode.ViewAttributes %>><%= ltgFixtureMaster.lfxCode.ListViewValue %></div>
  387. </td>
  388.     <% End If %>
  389.     <% If ltgFixtureMaster.lfxDescription.Visible Then ' lfxDescription %>
  390.         <td<%= ltgFixtureMaster.lfxDescription.CellAttributes %>>
  391. <div<%= ltgFixtureMaster.lfxDescription.ViewAttributes %>><%= ltgFixtureMaster.lfxDescription.ListViewValue %></div>
  392. </td>
  393.     <% End If %>
  394.     <% If ltgFixtureMaster.lfxMFG.Visible Then ' lfxMFG %>
  395.         <td<%= ltgFixtureMaster.lfxMFG.CellAttributes %>>
  396. <div<%= ltgFixtureMaster.lfxMFG.ViewAttributes %>><%= ltgFixtureMaster.lfxMFG.ListViewValue %></div>
  397. </td>
  398.     <% End If %>
  399.     <% If ltgFixtureMaster.lfxModel.Visible Then ' lfxModel %>
  400.         <td<%= ltgFixtureMaster.lfxModel.CellAttributes %>>
  401. <div<%= ltgFixtureMaster.lfxModel.ViewAttributes %>><%= ltgFixtureMaster.lfxModel.ListViewValue %></div>
  402. </td>
  403.     <% End If %>
  404.     <% If ltgFixtureMaster.lfxSerialNumber.Visible Then ' lfxSerialNumber %>
  405.         <td<%= ltgFixtureMaster.lfxSerialNumber.CellAttributes %>>
  406. <div<%= ltgFixtureMaster.lfxSerialNumber.ViewAttributes %>><%= ltgFixtureMaster.lfxSerialNumber.ListViewValue %></div>
  407. </td>
  408.     <% End If %>
  409.     <% If ltgFixtureMaster.lfxFixtureTypeID.Visible Then ' lfxFixtureTypeID %>
  410.         <td<%= ltgFixtureMaster.lfxFixtureTypeID.CellAttributes %>>
  411. <div<%= ltgFixtureMaster.lfxFixtureTypeID.ViewAttributes %>><%= ltgFixtureMaster.lfxFixtureTypeID.ListViewValue %></div>
  412. </td>
  413.     <% End If %>
  414.     <% If ltgFixtureMaster.lfxLocationID.Visible Then ' lfxLocationID %>
  415.         <td<%= ltgFixtureMaster.lfxLocationID.CellAttributes %>>
  416. <div<%= ltgFixtureMaster.lfxLocationID.ViewAttributes %>><%= ltgFixtureMaster.lfxLocationID.ListViewValue %></div>
  417. </td>
  418.     <% End If %>
  419.     </tr>
  420. <%
  421.     End If
  422. Loop
  423. %>
  424. </tbody>
  425. </table>
  426. <% End If %>
  427. </form>
  428. <%
  429.  
  430. ' Close recordset
  431. Rs.Close()
  432. Rs.Dispose()
  433. %>
  434. </div>
  435. <% If ltgFixtureMaster.Export = "" Then %>
  436. <div class="ewGridLowerPanel">
  437. <% If ltgFixtureMaster.CurrentAction <> "gridadd" AndAlso ltgFixtureMaster.CurrentAction <> "gridedit" Then %>
  438. <form name="ewpagerform" id="ewpagerform" class="ewForm">
  439. <table border="0" cellspacing="0" cellpadding="0" class="ewPager">
  440.     <tr>
  441.         <td>
  442. <span class="aspnetmaker">
  443. <% If ltgFixtureMaster_list.Pager Is Nothing Then ltgFixtureMaster_list.Pager = New cNumericPager(ltgFixtureMaster_list.lStartRec, ltgFixtureMaster_list.lDisplayRecs, ltgFixtureMaster_list.lTotalRecs, ltgFixtureMaster_list.lRecRange) %>
  444. <% If ltgFixtureMaster_list.Pager.RecordCount > 0 Then %>
  445.     <% If ltgFixtureMaster_list.Pager.FirstButton.Enabled Then %>
  446.     <a href="<%= ltgFixtureMaster_list.PageUrl %>start=<%= ltgFixtureMaster_list.Pager.FirstButton.Start %>">First</a> 
  447.     <% End If %>
  448.     <% If ltgFixtureMaster_list.Pager.PrevButton.Enabled Then %>
  449.     <a href="<%= ltgFixtureMaster_list.PageUrl %>start=<%= ltgFixtureMaster_list.Pager.PrevButton.Start %>">Previous</a> 
  450.     <% End If %>
  451.     <% For Each PagerItem As cPagerItem In ltgFixtureMaster_list.Pager.Items %>
  452.         <% If PagerItem.Enabled Then %><a href="<%= ltgFixtureMaster_list.PageUrl %>start=<%= PagerItem.Start %>"><% End If %><%= PagerItem.Text %><% If PagerItem.Enabled Then %></a><% End If %> 
  453.     <% Next %>
  454.     <% If ltgFixtureMaster_list.Pager.NextButton.Enabled Then %>
  455.     <a href="<%= ltgFixtureMaster_list.PageUrl %>start=<%= ltgFixtureMaster_list.Pager.NextButton.Start %>">Next</a> 
  456.     <% End If %>
  457.     <% If ltgFixtureMaster_list.Pager.LastButton.Enabled Then %>
  458.     <a href="<%= ltgFixtureMaster_list.PageUrl %>start=<%= ltgFixtureMaster_list.Pager.LastButton.Start %>">Last</a> 
  459.     <% End If %>
  460.     <% If ltgFixtureMaster_list.Pager.ButtonCount > 0 Then %>    <%    End If %>
  461.     Records <%= ltgFixtureMaster_list.Pager.FromIndex %> to <%= ltgFixtureMaster_list.Pager.ToIndex %> of <%= ltgFixtureMaster_list.Pager.RecordCount %>
  462. <% Else %>
  463.     <% If Security.CanList Then %>
  464.     <% If ltgFixtureMaster_list.sSrchWhere = "0=101" Then %>
  465.     Please enter search criteria
  466.     <% Else %>
  467.     No records found
  468.     <% End If %>
  469.     <% Else %>
  470.     You do not have the right permission to view the page
  471.     <% End If %>
  472. <% End If %>
  473. </span>
  474.         </td>
  475. <% If ltgFixtureMaster_list.lTotalRecs > 0 Then %>
  476.         <td>    </td>
  477.         <td><table border="0" cellspacing="0" cellpadding="0"><tr><td>Page Size </td><td>
  478. <input type="hidden" id="t" name="t" value="ltgFixtureMaster" />
  479. <select name="<%= EW_TABLE_REC_PER_PAGE %>" id="<%= EW_TABLE_REC_PER_PAGE %>" onchange="this.form.submit();" class="aspnetmaker">
  480. <option value="10"<% If ltgFixtureMaster_list.lDisplayRecs = 10 Then %> selected="selected"<% End If %>>10</option>
  481. <option value="20"<% If ltgFixtureMaster_list.lDisplayRecs = 20 Then %> selected="selected"<% End If %>>20</option>
  482. <option value="50"<% If ltgFixtureMaster_list.lDisplayRecs = 50 Then %> selected="selected"<% End If %>>50</option>
  483. <option value="ALL"<% If ltgFixtureMaster.RecordsPerPage = -1 Then %> selected="selected"<% End If %>>All</option>
  484. </select></td></tr></table>
  485.         </td>
  486. <% End If %>
  487.     </tr>
  488. </table>
  489. </form>
  490. <% End If %>
  491. <% 'If ltgFixtureMaster_list.lTotalRecs > 0 Then %>
  492. <div class="aspnetmaker">
  493. <% If Security.CanAdd Then %>
  494. <a href="<%= ltgFixtureMaster.AddUrl %>">Add</a>  
  495. <% End If %>
  496. </div>
  497. <% 'End If %>
  498. </div>
  499. <% End If %>
  500. </td></tr></table>
  501. <% If ltgFixtureMaster.Export = "" AndAlso ltgFixtureMaster.CurrentAction = "" Then %>
  502. <script type="text/javascript">
  503. <!--
  504. //ew_ToggleSearchPanel(ltgFixtureMaster_list); // uncomment to init search panel as collapsed
  505. //-->
  506. </script>
  507. <% End If %>
  508. <% If ltgFixtureMaster.Export = "" Then %>
  509. <script language="JavaScript" type="text/javascript">
  510. <!--
  511. // Write your table-specific startup script here
  512. // document.write("page loaded");
  513. //-->
  514. </script>
  515. <% End If %>
  516. </asp:Content>
  517.