Changeset 5902 for trunk/www/my_base/user/reset_filters.jsp
- Timestamp:
- Dec 8, 2011, 3:01:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/my_base/user/reset_filters.jsp
r5901 r5902 51 51 { 52 52 final User user = User.getById(dc, sc.getLoggedInUserId()); 53 final String title = "Reset list settings for "+HTML.encodeTags(user.getName()); 53 54 final List<ItemContext> inMemory = sc.getAllCurrentContexts(true, false); 54 55 final List<ItemContext> inDatabase = sc.getAllCurrentContexts(false, true); … … 71 72 } 72 73 %> 73 <base:page type="popup" title="<%= "Reset list settings for "+HTML.encodeTags(user.getName())%>">74 <base:page type="popup" title="<%=title%>"> 74 75 <base:head> 75 76 <script language="JavaScript"> … … 88 89 </base:head> 89 90 <base:body> 90 <h1>Reset list settings for <%=HTML.encodeTags(user.getName())%> 91 <base:help helpid="userpreferences.resetfilters" /></h1> 92 <br><br> 91 <h1><%=title%><base:help helpid="userpreferences.resetfilters" /></h1> 92 <div class="content"> 93 <form action="submit_user.jsp?ID=<%=ID%>" method="post" name="preferences" 94 onsubmit="return false;"> 95 <input type=hidden name="cmd" value="ResetFilters"> 93 96 94 <form action="submit_user.jsp?ID=<%=ID%>" method="post" name="preferences" 95 onsubmit="return false;"> 96 <input type=hidden name="cmd" value="ResetFilters"> 97 <table class="fullform smaller"> 98 <tr> 99 <th>Which list?</th> 100 <td> 101 <select name="item_type" onchange="itemTypeOnChange()" style="width: 100%;"> 102 <option value="">- all - 103 <% 104 for (Item item : items) 105 { 106 %> 107 <option value="<%=item.name()%>"><%=dbOnly.contains(item) ? "* " : "" %><%=item%> 108 <% 109 } 110 %> 111 </select><br> 112 </td> 113 </tr> 114 <tr> 115 <th>Location</th> 116 <td> 117 <input type="checkbox" name="memory" id="memory" value="1" checked disabled>In-memory 118 <input type="checkbox" name="database" id="database" value="1"><label for="database">In-database</label> 119 </td> 120 </tr> 121 </table> 122 123 <div class="padded"> 124 * = This setting is only in the database 125 </div> 126 127 <div class="padded"> 128 Use this functionality if you are experiencing problems when listing 129 items on a list page. Try first with only the 'In-memory' option selected. 130 If that doesn't help, try the 'In-database' option. 131 </div> 132 </form> 133 </div> 97 134 98 99 <div class="boxed">100 101 <table class="form" cellspacing=0>102 <tr>103 <td class="prompt">Which list?</td>104 <td>105 <select name="item_type" onchange="itemTypeOnChange()">106 <option value="">- all -107 <%108 for (Item item : items)109 {110 %>111 <option value="<%=item.name()%>"><%=dbOnly.contains(item) ? "* " : "" %><%=item%>112 <%113 }114 %>115 </select><br>116 * = This setting is only in the database117 </td>118 </tr>119 <tr>120 <td class="prompt">Location</td>121 <td>122 <input type="checkbox" name="memory" id="memory" value="1" checked disabled>In-memory<br>123 <input type="checkbox" name="database" id="database" value="1"><label for="database">In-database</label>124 </td>125 </tr>126 </table>127 <p>128 Use this functionality if you are experiencing problems when listing129 items on a list page. Try first with only the 'In-memory' option selected.130 If that doesn't help, try the 'In-database' option.131 </div>132 </form>133 134 135 <base:buttongroup subclass="dialogbuttons"> 135 136 <base:button onclick="resetFilters();" title="Ok" />
Note: See TracChangeset
for help on using the changeset viewer.