Changeset 5952
- Timestamp:
- Feb 10, 2012, 1:27:27 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/clients/web/net/sf/basedb/clients/web/ModeInfo.java
r4889 r5952 106 106 public static final ModeInfo SELECTMULTIPLE_NOBUTTONS = 107 107 new ModeInfo( 108 "selectmultiplenobuttons", " popup", "Select one or more {many}",108 "selectmultiplenobuttons", "iframe", "Select one or more {many}", 109 109 HAS_TOOLBAR, HAS_FILTER, HAS_NAVIGATOR, NO_PROPERTYLINK, 110 110 HAS_CHECK, NO_RADIO, HAS_ICONS, IS_COMPACT, NO_EDITLINK, -
trunk/www/admin/diskusage/list_users.jsp
r5950 r5952 143 143 function impersonate(userId) 144 144 { 145 Main.openPopup('../../impersonate.jsp?ID=<%=ID%>&user_id='+userId, 'Impersonate', 4 80, 240);145 Main.openPopup('../../impersonate.jsp?ID=<%=ID%>&user_id='+userId, 'Impersonate', 450, 300); 146 146 } 147 147 function setShowStatistics() -
trunk/www/biomaterials/tags/list_tags.jsp
r5951 r5952 289 289 <div class="panelgroup bottomborder"> 290 290 <tbl:toolbar 291 subclass="bottomborder" 291 292 visible="<%=mode.hasToolbar()%>" 292 subclass="bottomborder"293 293 > 294 294 <tbl:button -
trunk/www/filemanager/files/list_files.jsp
r5951 r5952 473 473 <div id="main" class="absolutefull" 474 474 onmousemove="parent.DragDrop.drag(event)" onmouseup="parent.DragDrop.endDrag(event)"> 475 <%476 if (cc.getMessage() != null)477 {478 %>479 <div class="error"><%=cc.getMessage()%></div>480 <%481 cc.setMessage(null);482 }483 %>484 475 <tbl:table 485 id="files" 486 476 id="files" 487 477 columns="<%=cc.getSetting("columns")%>" 488 478 sortby="<%=cc.getSortProperty()%>" 489 479 direction="<%=cc.getSortDirection()%>" 490 title="<%=title%>"491 480 action="index.jsp" 492 481 sc="<%=sc%>" 493 482 item="<%=itemType%>" 494 483 subcontext="<%=subcontext%>" 484 subclass="fulltable topborder" 495 485 > 496 486 <tbl:hidden … … 719 709 datatype="string" 720 710 /> 721 <tbl:toolbar 722 visible="true" 723 > 724 <tbl:button 725 disabled="<%=!createDirectoryPermission%>" 726 image="directory_new.png" 727 onclick="newDirectory()" 728 title="New directory…" 729 visible="<%=!isSearch%>" 730 tooltip="<%=createDirectoryPermission ? "Create a new directory" : "You do not have permission to create directories"%>" 731 /> 732 <tbl:button 733 disabled="<%=!createFilePermission%>" 734 image="upload.png" 735 onclick="uploadFile(0)" 736 title="Upload file…" 737 visible="<%=!isSearch%>" 738 tooltip="<%=createFilePermission ? "Upload a new file" : "You do not have permission to upload files"%>" 739 /> 740 <tbl:button 741 disabled="<%=!createFilePermission%>" 742 image="url_new.png" 743 onclick="editFile(0)" 744 title="New URL…" 745 visible="<%=!isSearch%>" 746 tooltip="<%=createFilePermission ? "Create new URL reference" : "You do not have permission to create files"%>" 747 /> 748 <tbl:button 749 image="edit.png" 750 onclick="editSelectedFiles()" 751 title="Edit…" 752 tooltip="Edit the selected files" 753 /> 754 <tbl:button 755 image="move.png" 756 onclick="Menu.toggleTopMenu(document.getElementById('move'), event.clientX, event.clientY); event.cancelBubble = true;" 757 title="Move…" 758 tooltip="Move the selected items" 759 visible="<%=mode.hasToolbar()%>" 760 /> 761 </tbl:toolbar> 762 <tbl:toolbar 763 visible="true" 764 > 765 <tbl:button 766 image="delete.png" 767 onclick="deleteItems()" 768 title="Delete" 769 tooltip="Delete the selected items" 770 visible="<%=mode.hasToolbar()%>" 771 /> 772 <tbl:button 773 image="restore.png" 774 onclick="restoreItems()" 775 title="Restore" 776 tooltip="Restore the selected (deleted) items" 777 visible="<%=mode.hasToolbar()%>" 778 /> 779 <tbl:button 780 image="share.png" 781 onclick="shareItems()" 782 title="Share…" 783 tooltip="Share the selected items" 784 visible="<%=mode.hasToolbar()%>" 785 /> 786 <tbl:button 787 image="take_ownership.png" 788 onclick="setOwner()" 789 title="Set owner…" 790 tooltip="Change owner of the selected items" 791 /> 792 <tbl:button 793 image="columns.png" 794 onclick="configureColumns()" 795 title="Columns…" 796 tooltip="Show, hide and re-order columns" 797 visible="<%=mode.hasToolbar()%>" 798 /> 799 <tbl:button 800 image="import.png" 801 onclick="runPlugin('ImportItems')" 802 title="Import…" 803 tooltip="Import data" 804 visible="<%=!isSearch && pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 805 /> 806 <tbl:button 807 image="export.png" 808 onclick="runPlugin('ExportItems')" 809 title="Export…" 810 tooltip="Export data" 811 visible="<%=!isSearch && pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 812 /> 813 <tbl:button 814 image="runplugin.png" 815 onclick="runPlugin('RunListPlugin')" 816 title="Run plugin…" 817 tooltip="Run a plugin" 818 visible="<%=!isSearch && pluginCount.containsKey(Plugin.MainType.OTHER)%>" 819 /> 820 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 821 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 822 </tbl:toolbar> 823 <tbl:panel visible="<%=!isSearch%>"> 824 <%=current.getPath().toString()%> 825 </tbl:panel> 826 <tbl:navigator 827 page="<%=cc.getPage()%>" 828 rowsperpage="<%=cc.getRowsPerPage()%>" 829 totalrows="<%=numFiles + numDirectories%>" 830 visible="<%=isSearch && mode.hasNavigator()%>" 831 /> 711 <div class="panelgroup bottomborder"> 712 <tbl:toolbar subclass="bottomborder"> 713 <tbl:button 714 disabled="<%=!createDirectoryPermission%>" 715 image="directory_new.png" 716 onclick="newDirectory()" 717 title="New directory…" 718 visible="<%=!isSearch%>" 719 tooltip="<%=createDirectoryPermission ? "Create a new directory" : "You do not have permission to create directories"%>" 720 /> 721 <tbl:button 722 disabled="<%=!createFilePermission%>" 723 image="upload.png" 724 onclick="uploadFile(0)" 725 title="Upload file…" 726 visible="<%=!isSearch%>" 727 tooltip="<%=createFilePermission ? "Upload a new file" : "You do not have permission to upload files"%>" 728 /> 729 <tbl:button 730 disabled="<%=!createFilePermission%>" 731 image="url_new.png" 732 onclick="editFile(0)" 733 title="New URL…" 734 visible="<%=!isSearch%>" 735 tooltip="<%=createFilePermission ? "Create new URL reference" : "You do not have permission to create files"%>" 736 /> 737 <tbl:button 738 image="edit.png" 739 onclick="editSelectedFiles()" 740 title="Edit…" 741 tooltip="Edit the selected files" 742 /> 743 <tbl:button 744 image="move.png" 745 onclick="Menu.toggleTopMenu(document.getElementById('move'), event.clientX, event.clientY); event.cancelBubble = true;" 746 title="Move…" 747 tooltip="Move the selected items" 748 visible="<%=mode.hasToolbar()%>" 749 /> 750 <tbl:button 751 image="delete.png" 752 onclick="deleteItems()" 753 title="Delete" 754 tooltip="Delete the selected items" 755 visible="<%=mode.hasToolbar()%>" 756 /> 757 <tbl:button 758 image="restore.png" 759 onclick="restoreItems()" 760 title="Restore" 761 tooltip="Restore the selected (deleted) items" 762 visible="<%=mode.hasToolbar()%>" 763 /> 764 <tbl:button 765 image="share.png" 766 onclick="shareItems()" 767 title="Share…" 768 tooltip="Share the selected items" 769 visible="<%=mode.hasToolbar()%>" 770 /> 771 <tbl:button 772 image="take_ownership.png" 773 onclick="setOwner()" 774 title="Set owner…" 775 tooltip="Change owner of the selected items" 776 /> 777 <tbl:button 778 image="columns.png" 779 onclick="configureColumns()" 780 title="Columns…" 781 tooltip="Show, hide and re-order columns" 782 visible="<%=mode.hasToolbar()%>" 783 /> 784 <tbl:button 785 image="import.png" 786 onclick="runPlugin('ImportItems')" 787 title="Import…" 788 tooltip="Import data" 789 visible="<%=!isSearch && pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 790 /> 791 <tbl:button 792 image="export.png" 793 onclick="runPlugin('ExportItems')" 794 title="Export…" 795 tooltip="Export data" 796 visible="<%=!isSearch && pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 797 /> 798 <tbl:button 799 image="runplugin.png" 800 onclick="runPlugin('RunListPlugin')" 801 title="Run plugin…" 802 tooltip="Run a plugin" 803 visible="<%=!isSearch && pluginCount.containsKey(Plugin.MainType.OTHER)%>" 804 /> 805 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 806 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 807 </tbl:toolbar> 808 <tbl:panel visible="<%=!isSearch%>"> 809 <tbl:presetselector 810 onchange="presetOnChange()" 811 /> 812 <%=current.getPath().toString()%> 813 </tbl:panel> 814 <tbl:panel visible="<%=isSearch%>"> 815 <tbl:presetselector 816 onchange="presetOnChange()" 817 /> 818 <tbl:navigator 819 page="<%=cc.getPage()%>" 820 rowsperpage="<%=cc.getRowsPerPage()%>" 821 totalrows="<%=numFiles + numDirectories%>" 822 /> 823 </tbl:panel> 824 </div> 832 825 <tbl:data> 833 826 <tbl:headers> … … 859 852 <tbl:rows> 860 853 <% 854 if (cc.getMessage() != null) 855 { 856 %> 857 <tbl:panel clazz="messagepanel"> 858 <div class="messagecontainer error"><%=cc.getMessage()%></div> 859 </tbl:panel> 860 <% 861 cc.setMessage(null); 862 } 861 863 int index = 0; 862 864 int selectedItemId = cc.getId(); … … 1148 1150 } 1149 1151 } 1152 if (numListed == 0) 1153 { 1154 %> 1155 <tbl:panel clazz="messagepanel" visible="<%=!isSearch || hasFilter%>"> 1156 <div class="messagecontainer note"> 1157 No files or directories were found 1158 </div> 1159 </tbl:panel> 1160 <tbl:panel clazz="messagepanel" visible="<%=isSearch && !hasFilter%>"> 1161 <div class="messagecontainer note"> 1162 Please specify a search condition! 1163 </div> 1164 </tbl:panel> 1165 <% 1166 } 1150 1167 %> 1151 1168 </tbl:rows> 1152 1169 </tbl:data> 1153 <%1154 if (numListed == 0)1155 {1156 %>1157 <tbl:panel visible="<%=!isSearch || hasFilter%>">No files or directories were found</tbl:panel>1158 <tbl:panel visible="<%=isSearch && !hasFilter%>">Please specify a search condition!</tbl:panel>1159 <%1160 }1161 else1162 {1163 %>1164 <tbl:navigator1165 page="<%=cc.getPage()%>"1166 rowsperpage="<%=cc.getRowsPerPage()%>"1167 totalrows="<%=numFiles + numDirectories%>"1168 visible="<%=isSearch && mode.hasNavigator()%>"1169 locked="true"1170 />1171 <%1172 }1173 %>1174 1170 </tbl:table> 1175 1171 </div> -
trunk/www/filemanager/fileservers/list_fileservers.jsp
r5951 r5952 177 177 178 178 <base:body> 179 <% 180 if (cc.getMessage() != null) 181 { 182 %> 183 <div class="error"><%=cc.getMessage()%></div> 184 <% 185 cc.setMessage(null); 186 } 187 %> 179 <h1><%=title==null ? "File servers" : title%></h1> 180 <div class="content"> 188 181 <tbl:table 189 182 id="servers" 190 191 183 columns="<%=cc.getSetting("columns")%>" 192 184 sortby="<%=cc.getSortProperty()%>" 193 185 direction="<%=cc.getSortDirection()%>" 194 title="<%=title%>"195 186 action="index.jsp" 196 187 sc="<%=sc%>" 197 188 item="<%=itemType%>" 189 subclass="fulltable" 198 190 > 199 191 <tbl:hidden … … 291 283 datatype="string" 292 284 /> 293 <tbl:toolbar 294 visible="<%=mode.hasToolbar()%>" 295 > 296 <tbl:button 297 disabled="<%=!createPermission%>" 298 image="new.png" 299 onclick="newItem()" 300 title="New…" 301 tooltip="<%=createPermission ? "Create new file server" : "You do not have permission to create file servers"%>" 302 /> 303 <tbl:button 304 image="delete.png" 305 onclick="deleteItems()" 306 title="Delete" 307 tooltip="Delete the selected items" 308 /> 309 <tbl:button 310 image="restore.png" 311 onclick="restoreItems()" 312 title="Restore" 313 tooltip="Restore the selected (deleted) items" 314 /> 315 <tbl:button 316 image="share.png" 317 onclick="shareItems()" 318 title="Share…" 319 tooltip="Share the selected items" 320 /> 321 <tbl:button 322 image="take_ownership.png" 323 onclick="setOwner()" 324 title="Set owner…" 325 tooltip="Change owner of the selected items" 326 /> 327 <tbl:button 328 image="columns.png" 329 onclick="configureColumns()" 330 title="Columns…" 331 tooltip="Show, hide and re-order columns" 332 /> 333 <tbl:button 334 image="import.png" 335 onclick="runPlugin('ImportItems')" 336 title="Import…" 337 tooltip="Import data" 338 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 339 /> 340 <tbl:button 341 image="export.png" 342 onclick="runPlugin('ExportItems')" 343 title="Export…" 344 tooltip="Export data" 345 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 346 /> 347 <tbl:button 348 image="runplugin.png" 349 onclick="runPlugin('RunListPlugin')" 350 title="Run plugin…" 351 tooltip="Run a plugin" 352 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 353 /> 354 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 355 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 356 </tbl:toolbar> 357 <tbl:navigator 358 page="<%=cc.getPage()%>" 359 rowsperpage="<%=cc.getRowsPerPage()%>" 360 totalrows="<%=servers == null ? 0 : servers.getTotalCount()%>" 361 visible="<%=mode.hasNavigator()%>" 362 /> 285 <div class="panelgroup bottomborder"> 286 <tbl:toolbar 287 subclass="bottomborder" 288 visible="<%=mode.hasToolbar()%>" 289 > 290 <tbl:button 291 disabled="<%=!createPermission%>" 292 image="new.png" 293 onclick="newItem()" 294 title="New…" 295 tooltip="<%=createPermission ? "Create new file server" : "You do not have permission to create file servers"%>" 296 /> 297 <tbl:button 298 image="delete.png" 299 onclick="deleteItems()" 300 title="Delete" 301 tooltip="Delete the selected items" 302 /> 303 <tbl:button 304 image="restore.png" 305 onclick="restoreItems()" 306 title="Restore" 307 tooltip="Restore the selected (deleted) items" 308 /> 309 <tbl:button 310 image="share.png" 311 onclick="shareItems()" 312 title="Share…" 313 tooltip="Share the selected items" 314 /> 315 <tbl:button 316 image="take_ownership.png" 317 onclick="setOwner()" 318 title="Set owner…" 319 tooltip="Change owner of the selected items" 320 /> 321 <tbl:button 322 image="columns.png" 323 onclick="configureColumns()" 324 title="Columns…" 325 tooltip="Show, hide and re-order columns" 326 /> 327 <tbl:button 328 image="import.png" 329 onclick="runPlugin('ImportItems')" 330 title="Import…" 331 tooltip="Import data" 332 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 333 /> 334 <tbl:button 335 image="export.png" 336 onclick="runPlugin('ExportItems')" 337 title="Export…" 338 tooltip="Export data" 339 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 340 /> 341 <tbl:button 342 image="runplugin.png" 343 onclick="runPlugin('RunListPlugin')" 344 title="Run plugin…" 345 tooltip="Run a plugin" 346 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 347 /> 348 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 349 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 350 </tbl:toolbar> 351 <tbl:panel> 352 <tbl:presetselector 353 onchange="presetOnChange()" 354 /> 355 <tbl:navigator 356 page="<%=cc.getPage()%>" 357 rowsperpage="<%=cc.getRowsPerPage()%>" 358 totalrows="<%=servers == null ? 0 : servers.getTotalCount()%>" 359 visible="<%=mode.hasNavigator()%>" 360 /> 361 </tbl:panel> 362 </div> 363 363 <tbl:data> 364 364 <tbl:headers> … … 390 390 <tbl:rows> 391 391 <% 392 if (cc.getMessage() != null) 393 { 394 %> 395 <tbl:panel clazz="messagepanel"> 396 <div class="messagecontainer error"><%=cc.getMessage()%></div> 397 </tbl:panel> 398 <% 399 cc.setMessage(null); 400 } 392 401 int index = cc.getPage()*cc.getRowsPerPage(); 393 402 int selectedItemId = cc.getId(); … … 487 496 } 488 497 } 498 if (numListed == 0) 499 { 500 %> 501 <tbl:panel clazz="messagepanel"> 502 <div class="messagecontainer note"> 503 <%=servers == null || servers.getTotalCount() == 0 ? "No file servers were found" : "No file servers on this page. Please select another page!" %> 504 </div> 505 </tbl:panel> 506 <% 507 } 489 508 %> 490 509 </tbl:rows> 491 510 </tbl:data> 492 <%493 if (numListed == 0)494 {495 %>496 <tbl:panel><%=servers == null || servers.getTotalCount() == 0 ? "No file servers were found" : "No file servers on this page. Please select another page!" %></tbl:panel>497 <%498 }499 else500 {501 %>502 <tbl:navigator503 page="<%=cc.getPage()%>"504 rowsperpage="<%=cc.getRowsPerPage()%>"505 totalrows="<%=servers == null ? 0 : servers.getTotalCount()%>"506 visible="<%=mode.hasNavigator()%>"507 locked="true"508 />509 <%510 }511 %>512 511 </tbl:table> 512 </div> 513 513 514 <base:buttongroup subclass="dialogbuttons"> 514 515 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/include/menu.jsp
r5946 r5952 168 168 String link = active ? 169 169 "Menu.openUrl('"+root+"my_base/projects/index.jsp?ID="+ID+"&cmd=ViewItem&item_id=" + projectId + "')" : 170 "Main.openPopup('"+root+"my_base/projects/set_active.jsp?ID="+ID+"&project_id="+p.getId()+"', 'ActivateProject', 300, 140)";170 "Main.openPopup('"+root+"my_base/projects/set_active.jsp?ID="+ID+"&project_id="+p.getId()+"', 'ActivateProject', 300, 200)"; 171 171 %> 172 172 <m:menuitem … … 229 229 <m:menuitem 230 230 title="<%="<i>- " + menu.getString("noactiveproject.title") + " -</i>"%>" 231 onclick="<%="Main.openPopup('"+root+"my_base/projects/set_active.jsp?ID="+ID+"', 'ActivateProject', 300, 140)"%>"231 onclick="<%="Main.openPopup('"+root+"my_base/projects/set_active.jsp?ID="+ID+"', 'ActivateProject', 300, 200)"%>" 232 232 icon="<%=activeProjectId == 0 ? "checkedmenu.png" : null%>" 233 233 enabled="<%=activeProjectId != 0%>" -
trunk/www/include/styles/table.css
r5951 r5952 80 80 81 81 /* The container <div> for the data table */ 82 .itemlist div.data > table 83 {} 82 .itemlist div.data 83 { 84 border: 1px solid #A0A0A0; 85 } 84 86 85 87 /* The actual table containing data */ 86 88 .itemlist div.data > table 87 89 { 88 border: 1px solid #A0A0A0;89 90 width: 100%; 90 91 border-collapse: collapse; … … 158 159 .itemlist div.data > table > tbody.rows > tr 159 160 { 160 border- bottom: 1px dotted #A0A0A0;161 border-top: 1px dotted #A0A0A0; 161 162 } 162 163 … … 231 232 } 232 233 234 .fulltable div.data 235 { 236 border: 0px !important; 237 } 238 233 239 .fulltable div.data > table 234 240 { 235 border: 0px !important;236 241 border-bottom: 1px solid #A0A0A0 !important; 237 242 } 243 244 .itemlist div.data .joustcell 245 { 246 white-space: nowrap; 247 } 248 238 249 239 250 /* -
trunk/www/lims/arraydesigns/features/view_feature.jsp
r5924 r5952 104 104 <base:page title="<%=title%>" type="popup"> 105 105 <base:head scripts="tabcontrol.js" styles="tabcontrol.css"> 106 <script language="JavaScript">107 function runPlugin(cmd)108 {109 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 540, 460);110 }111 </script>112 106 </base:head> 113 107 <base:body> -
trunk/www/lims/plates/events/list_events.jsp
r5948 r5952 152 152 function runPlugin(cmd) 153 153 { 154 Table.submitToPopup(formId, cmd, 540, 460);154 Table.submitToPopup(formId, cmd, 750, 500); 155 155 } 156 156 function returnSelected() -
trunk/www/lims/plates/wells/list_wells.jsp
r5948 r5952 157 157 function runPlugin(cmd) 158 158 { 159 Table.submitToPopup(formId, cmd, 540, 460);159 Table.submitToPopup(formId, cmd, 750, 500); 160 160 } 161 161 function returnSelected() … … 185 185 function newReporterList() 186 186 { 187 Table.submitToPopup(formId, 'CreateReporterList', 540, 400);187 Table.submitToPopup(formId, 'CreateReporterList', 600, 400); 188 188 } 189 189 </script> -
trunk/www/lims/platetypes/eventtypes/list_eventtypes.jsp
r5948 r5952 148 148 function runPlugin(cmd) 149 149 { 150 Table.submitToPopup(formId, cmd, 540, 460);150 Table.submitToPopup(formId, cmd, 750, 500); 151 151 } 152 152 function returnSelected() -
trunk/www/my_base/messages/list_messages.jsp
r5951 r5952 173 173 174 174 <base:body> 175 <% 176 if (cc.getMessage() != null) 177 { 178 %> 179 <div class="error"><%=cc.getMessage()%></div> 180 <% 181 cc.setMessage(null); 182 } 183 %> 175 <h1><%=title==null ? "Messages" : title%></h1> 176 <div class="content"> 184 177 <tbl:table 185 178 id="messages" 186 187 179 columns="<%=cc.getSetting("columns")%>" 188 180 sortby="<%=cc.getSortProperty()%>" 189 181 direction="<%=cc.getSortDirection()%>" 190 title="<%=title%>"191 182 action="index.jsp" 192 183 sc="<%=sc%>" 193 184 item="<%=itemType%>" 185 subclass="fulltable" 194 186 > 195 187 <tbl:hidden … … 263 255 title="Permission" 264 256 /> 265 <tbl:toolbar 266 visible="<%=mode.hasToolbar()%>" 267 > 268 <tbl:button 269 image="message.png" 270 onclick="markAsRead()" 271 title="Mark as read" 272 tooltip="Mark the selected messages as read" 273 /> 274 <tbl:button 275 image="delete.png" 276 onclick="deleteItems()" 277 title="Delete" 278 tooltip="Delete the selected items" 279 /> 280 <tbl:button 281 image="restore.png" 282 onclick="restoreItems()" 283 title="Restore" 284 tooltip="Restore the selected (deleted) items" 285 /> 286 <tbl:button 287 image="columns.png" 288 onclick="configureColumns()" 289 title="Columns…" 290 tooltip="Show, hide and re-order columns" 291 /> 292 <tbl:button 293 image="import.png" 294 onclick="runPlugin('ImportItems')" 295 title="Import…" 296 tooltip="Import data" 297 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 298 /> 299 <tbl:button 300 image="export.png" 301 onclick="runPlugin('ExportItems')" 302 title="Export…" 303 tooltip="Export data" 304 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 305 /> 306 <tbl:button 307 image="runplugin.png" 308 onclick="runPlugin('RunListPlugin')" 309 title="Run plugin…" 310 tooltip="Run a plugin" 311 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 312 /> 313 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 314 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 315 </tbl:toolbar> 316 <tbl:navigator 317 page="<%=cc.getPage()%>" 318 rowsperpage="<%=cc.getRowsPerPage()%>" 319 totalrows="<%=messages == null ? 0 : messages.getTotalCount()%>" 320 visible="<%=mode.hasNavigator()%>" 321 /> 257 <div class="panelgroup bottomborder"> 258 <tbl:toolbar 259 subclass="bottomborder" 260 visible="<%=mode.hasToolbar()%>" 261 > 262 <tbl:button 263 image="message.png" 264 onclick="markAsRead()" 265 title="Mark as read" 266 tooltip="Mark the selected messages as read" 267 /> 268 <tbl:button 269 image="delete.png" 270 onclick="deleteItems()" 271 title="Delete" 272 tooltip="Delete the selected items" 273 /> 274 <tbl:button 275 image="restore.png" 276 onclick="restoreItems()" 277 title="Restore" 278 tooltip="Restore the selected (deleted) items" 279 /> 280 <tbl:button 281 image="columns.png" 282 onclick="configureColumns()" 283 title="Columns…" 284 tooltip="Show, hide and re-order columns" 285 /> 286 <tbl:button 287 image="import.png" 288 onclick="runPlugin('ImportItems')" 289 title="Import…" 290 tooltip="Import data" 291 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 292 /> 293 <tbl:button 294 image="export.png" 295 onclick="runPlugin('ExportItems')" 296 title="Export…" 297 tooltip="Export data" 298 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 299 /> 300 <tbl:button 301 image="runplugin.png" 302 onclick="runPlugin('RunListPlugin')" 303 title="Run plugin…" 304 tooltip="Run a plugin" 305 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 306 /> 307 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 308 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 309 </tbl:toolbar> 310 <tbl:panel> 311 <tbl:presetselector 312 onchange="presetOnChange()" 313 /> 314 <tbl:navigator 315 page="<%=cc.getPage()%>" 316 rowsperpage="<%=cc.getRowsPerPage()%>" 317 totalrows="<%=messages == null ? 0 : messages.getTotalCount()%>" 318 visible="<%=mode.hasNavigator()%>" 319 /> 320 </tbl:panel> 321 </div> 322 322 <tbl:data> 323 323 <tbl:headers> … … 349 349 <tbl:rows> 350 350 <% 351 if (cc.getMessage() != null) 352 { 353 %> 354 <tbl:panel clazz="messagepanel"> 355 <div class="messagecontainer error"><%=cc.getMessage()%></div> 356 </tbl:panel> 357 <% 358 cc.setMessage(null); 359 } 351 360 int index = cc.getPage()*cc.getRowsPerPage(); 352 361 int selectedItemId = cc.getId(); … … 417 426 } 418 427 } 428 if (numListed == 0) 429 { 430 %> 431 <tbl:panel clazz="messagepanel"> 432 <div class="messagecontainer note"> 433 <%=messages == null || messages.getTotalCount() == 0 ? "No messages were found" : "No messages on this page. Please select another page!" %> 434 </div> 435 </tbl:panel> 436 <% 437 } 419 438 %> 420 439 </tbl:rows> 421 440 </tbl:data> 422 <%423 if (numListed == 0)424 {425 %>426 <tbl:panel><%=messages == null || messages.getTotalCount() == 0 ? "No messages were found" : "No messages on this page. Please select another page!" %></tbl:panel>427 <%428 }429 else430 {431 %>432 <tbl:navigator433 page="<%=cc.getPage()%>"434 rowsperpage="<%=cc.getRowsPerPage()%>"435 totalrows="<%=messages == null ? 0 : messages.getTotalCount()%>"436 visible="<%=mode.hasNavigator()%>"437 locked="true"438 />439 <%440 }441 %>442 441 </tbl:table> 442 </div> 443 443 444 <base:buttongroup subclass="dialogbuttons"> 444 445 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/my_base/projects/items/list_items.jsp
r5948 r5952 180 180 function setToActive() 181 181 { 182 Main.openPopup('../set_active.jsp?ID=<%=ID%>&project_id=<%=projectId%>', 'ActivateProject', 300, 140);182 Main.openPopup('../set_active.jsp?ID=<%=ID%>&project_id=<%=projectId%>', 'ActivateProject', 300, 200); 183 183 } 184 184 function switchTab(tabControlId, tabId) … … 197 197 198 198 <base:body> 199 <p> 200 <p:path> 201 <p:pathelement title="Projects" href="<%="../index.jsp?ID="+ID%>" /> 202 <p:pathelement title="<%=HTML.encodeTags(project.getName())%>" /> 203 </p:path> 204 205 <t:tabcontrol id="main" active="items" switch="switchTab"> 199 <p:path><p:pathelement 200 title="Projects" href="<%="../index.jsp?ID="+ID%>" 201 /><p:pathelement title="<%=HTML.encodeTags(project.getName())%>" 202 /></p:path> 203 204 <t:tabcontrol 205 id="main" 206 subclass="mastertabcontrol content" 207 active="items" switch="switchTab"> 206 208 <t:tab id="properties" title="Properties" /> 207 209 208 210 <t:tab id="items" title="Items"> 209 210 <%211 if (cc.getMessage() != null)212 {213 %>214 <div class="error"><%=cc.getMessage()%></div>215 <%216 cc.setMessage(null);217 }218 %>219 211 <tbl:table 220 212 id="items" 221 222 213 columns="<%=cc.getSetting("columns")%>" 223 214 action="index.jsp" … … 225 216 item="<%=itemType%>" 226 217 subcontext="<%=subContext%>" 218 subclass="fulltable" 227 219 > 228 220 <tbl:hidden … … 279 271 datatype="string" 280 272 /> 281 <tbl:toolbar> 282 <tbl:button 283 image="delete.png" 284 onclick="deleteItems()" 285 title="Delete" 286 tooltip="Delete the selected items" 287 /> 288 <tbl:button 289 image="restore.png" 290 onclick="restoreItems()" 291 title="Restore" 292 tooltip="Restore the selected items" 293 /> 294 <tbl:button 295 image="share.png" 296 onclick="shareItems()" 297 title="Share…" 298 tooltip="Share the selected items" 299 /> 300 <tbl:button 301 image="take_ownership.png" 302 onclick="setOwner()" 303 title="Set owner…" 304 tooltip="Change owner of the selected items" 305 /> 306 <tbl:button 307 image="columns.png" 308 onclick="configureColumns()" 309 title="Columns…" 310 tooltip="Show, hide and re-order columns" 311 /> 312 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 313 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 314 </tbl:toolbar> 315 <% 316 if (projectId != activeProjectId) 317 { 318 %> 273 <div class="panelgroup bottomborder"> 274 <tbl:toolbar subclass="bottomborder"> 275 <tbl:button 276 image="delete.png" 277 onclick="deleteItems()" 278 title="Delete" 279 tooltip="Delete the selected items" 280 /> 281 <tbl:button 282 image="restore.png" 283 onclick="restoreItems()" 284 title="Restore" 285 tooltip="Restore the selected items" 286 /> 287 <tbl:button 288 image="share.png" 289 onclick="shareItems()" 290 title="Share…" 291 tooltip="Share the selected items" 292 /> 293 <tbl:button 294 image="take_ownership.png" 295 onclick="setOwner()" 296 title="Set owner…" 297 tooltip="Change owner of the selected items" 298 /> 299 <tbl:button 300 image="columns.png" 301 onclick="configureColumns()" 302 title="Columns…" 303 tooltip="Show, hide and re-order columns" 304 /> 305 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 306 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 307 </tbl:toolbar> 319 308 <tbl:panel> 320 <div class="error" onclick="setToActive()" style="cursor: pointer;" 321 title="Click to make this project the active project"> 322 This project is not the active project. The list can't display items 323 that are owned by other members of the project. 324 </div> 309 <tbl:presetselector 310 onchange="presetOnChange()" 311 disablesharedto="true" 312 disableothers="<%=projectId != activeProjectId%>" 313 /> 314 <tbl:navigator 315 page="<%=cc.getPage()%>" 316 rowsperpage="<%=cc.getRowsPerPage()%>" 317 totalrows="<%=items == null ? 0 : items.getTotalCount()%>" 318 /> 325 319 </tbl:panel> 326 <% 327 } 328 %> 329 <tbl:presetselector 330 onchange="presetOnChange()" 331 disablesharedto="true" 332 disableothers="<%=projectId != activeProjectId%>" 333 /> 334 <tbl:navigator 335 page="<%=cc.getPage()%>" 336 rowsperpage="<%=cc.getRowsPerPage()%>" 337 totalrows="<%=items == null ? 0 : items.getTotalCount()%>" 338 /> 320 </div> 339 321 <tbl:data> 340 322 <tbl:headers> … … 360 342 <tbl:rows> 361 343 <% 344 if (projectId != activeProjectId) 345 { 346 %> 347 <tbl:panel clazz="messagepanel"> 348 <div class="messagecontainer error" onclick="setToActive()" style="cursor: pointer;" 349 title="Click to make this project the active project"> 350 This project is not the active project. The list can't display items 351 that are owned by other members of the project. 352 </div> 353 </tbl:panel> 354 <% 355 } 356 if (cc.getMessage() != null) 357 { 358 %> 359 <tbl:panel clazz="messagepanel"> 360 <div class="messagecontainer error"><%=cc.getMessage()%></div> 361 </tbl:panel> 362 <% 363 cc.setMessage(null); 364 } 362 365 int index = cc.getPage()*cc.getRowsPerPage(); 363 366 if (items != null) … … 448 451 } 449 452 } 453 if (numListed == 0) 454 { 455 %> 456 <tbl:panel clazz="messagepanel"> 457 <div class="messagecontainer note"> 458 <%=items == null || items.size() == 0 ? "No items were found" : "No items on this page. Please select another page!" %> 459 </div> 460 </tbl:panel> 461 <% 462 } 450 463 %> 451 464 </tbl:rows> 452 465 </tbl:data> 453 <%454 if (numListed == 0)455 {456 %>457 <tbl:panel><%=items == null || items.size() == 0 ? "No items were found" : "No items on this page. Please select another page!" %></tbl:panel>458 <%459 }460 else461 {462 %>463 <tbl:navigator464 page="<%=cc.getPage()%>"465 rowsperpage="<%=cc.getRowsPerPage()%>"466 totalrows="<%=items == null ? 0 : items.getTotalCount()%>"467 locked="true"468 />469 <%470 }471 %>472 466 </tbl:table> 473 474 467 </t:tab> 475 468 </t:tabcontrol> 476 477 469 </base:body> 478 470 </base:page> -
trunk/www/my_base/projects/list_projects.jsp
r5951 r5952 173 173 174 174 <base:body> 175 <% 176 if (cc.getMessage() != null) 177 { 178 %> 179 <div class="error"><%=cc.getMessage()%></div> 180 <% 181 cc.setMessage(null); 182 } 183 %> 175 <h1><%=title==null ? "Projects" : title%></h1> 176 <div class="content"> 184 177 <tbl:table 185 178 id="projects" 186 187 179 columns="<%=cc.getSetting("columns")%>" 188 180 sortby="<%=cc.getSortProperty()%>" 189 181 direction="<%=cc.getSortDirection()%>" 190 title="<%=title%>"191 182 action="index.jsp" 192 183 sc="<%=sc%>" 193 184 item="<%=itemType%>" 185 subclass="fulltable" 194 186 > 195 187 <tbl:hidden … … 268 260 title="Permission" 269 261 /> 270 <tbl:toolbar 271 visible="<%=mode.hasToolbar()%>" 272 > 273 <tbl:button 274 disabled="<%=!createPermission%>" 275 image="new.png" 276 onclick="newItem()" 277 title="New…" 278 tooltip="<%=createPermission ? "Create new project" : "You do not have permission to create projects"%>" 279 /> 280 <tbl:button 281 image="delete.png" 282 onclick="deleteItems()" 283 title="Delete" 284 tooltip="Delete the selected items" 285 /> 286 <tbl:button 287 image="restore.png" 288 onclick="restoreItems()" 289 title="Restore" 290 tooltip="Restore the selected (deleted) items" 291 /> 292 <tbl:button 293 image="take_ownership.png" 294 onclick="setOwner()" 295 title="Set owner…" 296 tooltip="Change owner of the selected items" 297 /> 298 <tbl:button 299 image="columns.png" 300 onclick="configureColumns()" 301 title="Columns…" 302 tooltip="Show, hide and re-order columns" 303 /> 304 <tbl:button 305 image="import.png" 306 onclick="runPlugin('ImportItems')" 307 title="Import…" 308 tooltip="Import data" 309 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 310 /> 311 <tbl:button 312 image="export.png" 313 onclick="runPlugin('ExportItems')" 314 title="Export…" 315 tooltip="Export data" 316 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 317 /> 318 <tbl:button 319 image="runplugin.png" 320 onclick="runPlugin('RunListPlugin')" 321 title="Run plugin…" 322 tooltip="Run a plugin" 323 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 324 /> 325 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 326 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 327 </tbl:toolbar> 328 <tbl:navigator 329 page="<%=cc.getPage()%>" 330 rowsperpage="<%=cc.getRowsPerPage()%>" 331 totalrows="<%=projects == null ? 0 : projects.getTotalCount()%>" 332 visible="<%=mode.hasNavigator()%>" 333 /> 262 <div class="panelgroup bottomborder"> 263 <tbl:toolbar 264 subclass="bottomborder" 265 visible="<%=mode.hasToolbar()%>" 266 > 267 <tbl:button 268 disabled="<%=!createPermission%>" 269 image="new.png" 270 onclick="newItem()" 271 title="New…" 272 tooltip="<%=createPermission ? "Create new project" : "You do not have permission to create projects"%>" 273 /> 274 <tbl:button 275 image="delete.png" 276 onclick="deleteItems()" 277 title="Delete" 278 tooltip="Delete the selected items" 279 /> 280 <tbl:button 281 image="restore.png" 282 onclick="restoreItems()" 283 title="Restore" 284 tooltip="Restore the selected (deleted) items" 285 /> 286 <tbl:button 287 image="take_ownership.png" 288 onclick="setOwner()" 289 title="Set owner…" 290 tooltip="Change owner of the selected items" 291 /> 292 <tbl:button 293 image="columns.png" 294 onclick="configureColumns()" 295 title="Columns…" 296 tooltip="Show, hide and re-order columns" 297 /> 298 <tbl:button 299 image="import.png" 300 onclick="runPlugin('ImportItems')" 301 title="Import…" 302 tooltip="Import data" 303 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 304 /> 305 <tbl:button 306 image="export.png" 307 onclick="runPlugin('ExportItems')" 308 title="Export…" 309 tooltip="Export data" 310 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 311 /> 312 <tbl:button 313 image="runplugin.png" 314 onclick="runPlugin('RunListPlugin')" 315 title="Run plugin…" 316 tooltip="Run a plugin" 317 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 318 /> 319 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 320 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 321 </tbl:toolbar> 322 <tbl:panel> 323 <tbl:presetselector 324 onchange="presetOnChange()" 325 /> 326 <tbl:navigator 327 page="<%=cc.getPage()%>" 328 rowsperpage="<%=cc.getRowsPerPage()%>" 329 totalrows="<%=projects == null ? 0 : projects.getTotalCount()%>" 330 visible="<%=mode.hasNavigator()%>" 331 /> 332 </tbl:panel> 333 </div> 334 334 <tbl:data> 335 335 <tbl:headers> … … 361 361 <tbl:rows> 362 362 <% 363 if (cc.getMessage() != null) 364 { 365 %> 366 <tbl:panel clazz="messagepanel"> 367 <div class="messagecontainer error"><%=cc.getMessage()%></div> 368 </tbl:panel> 369 <% 370 cc.setMessage(null); 371 } 363 372 int index = cc.getPage()*cc.getRowsPerPage(); 364 373 int selectedItemId = Values.getInt(request.getParameter("item_id")); … … 438 447 } 439 448 } 449 if (numListed == 0) 450 { 451 %> 452 <tbl:panel clazz="messagepanel"> 453 <div class="messagecontainer note"> 454 <%=projects == null || projects.getTotalCount() == 0 ? "No projects were found" : "No projects on this page. Please select another page!" %> 455 </div> 456 </tbl:panel> 457 <% 458 } 440 459 %> 441 460 </tbl:rows> 442 461 </tbl:data> 443 <%444 if (numListed == 0)445 {446 %>447 <tbl:panel><%=projects == null || projects.getTotalCount() == 0 ? "No projects were found" : "No projects on this page. Please select another page!" %></tbl:panel>448 <%449 }450 else451 {452 %>453 <tbl:navigator454 page="<%=cc.getPage()%>"455 rowsperpage="<%=cc.getRowsPerPage()%>"456 totalrows="<%=projects == null ? 0 : projects.getTotalCount()%>"457 visible="<%=mode.hasNavigator()%>"458 locked="true"459 />460 <%461 }462 %>463 462 </tbl:table> 463 </div> 464 464 465 <base:buttongroup subclass="dialogbuttons"> 465 466 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/derivedbioassays/list_bioassays.jsp
r5951 r5952 215 215 216 216 <base:body> 217 <% 218 if (cc.getMessage() != null) 219 { 220 %> 221 <div class="error"><%=cc.getMessage()%></div> 222 <% 223 cc.setMessage(null); 224 } 225 %> 217 <h1><%=title==null ? "Derived bioassays" : title%></h1> 218 <div class="content"> 226 219 <tbl:table 227 220 id="bioassays" 228 229 221 columns="<%=cc.getSetting("columns")%>" 230 222 sortby="<%=cc.getSortProperty()%>" 231 223 direction="<%=cc.getSortDirection()%>" 232 title="<%=title%>"233 224 action="index.jsp" 234 225 sc="<%=sc%>" 235 226 item="<%=itemType%>" 227 subclass="fulltable" 236 228 > 237 229 <tbl:hidden … … 427 419 datatype="string" 428 420 /> 429 <tbl:toolbar 430 visible="<%=mode.hasToolbar()%>" 431 > 432 <tbl:button 433 disabled="<%=!createPermission%>" 434 image="new.png" 435 onclick="newItem()" 436 title="New…" 437 tooltip="<%=createPermission ? "Create new derived bioassay" : "You do not have permission to create derived bioassays"%>" 438 /> 439 <tbl:button 440 image="delete.png" 441 onclick="deleteItems()" 442 title="Delete" 443 tooltip="Delete the selected items" 444 /> 445 <tbl:button 446 image="restore.png" 447 onclick="restoreItems()" 448 title="Restore" 449 tooltip="Restore the selected (deleted) items" 450 /> 451 <tbl:button 452 image="share.png" 453 onclick="shareItems()" 454 title="Share…" 455 tooltip="Share the selected items" 456 /> 457 <tbl:button 458 image="take_ownership.png" 459 onclick="setOwner()" 460 title="Set owner…" 461 tooltip="Change owner of the selected items" 462 /> 463 <tbl:button 464 image="columns.png" 465 onclick="configureColumns()" 466 title="Columns…" 467 tooltip="Show, hide and re-order columns" 468 /> 469 <tbl:button 470 image="import.png" 471 onclick="runPlugin('ImportItems')" 472 title="Import…" 473 tooltip="Import data" 474 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 475 /> 476 <tbl:button 477 image="export.png" 478 onclick="runPlugin('ExportItems')" 479 title="Export…" 480 tooltip="Export data" 481 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 482 /> 483 <tbl:button 484 image="runplugin.png" 485 onclick="runPlugin('RunListPlugin')" 486 title="Run plugin…" 487 tooltip="Run a plugin" 488 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 489 /> 490 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 491 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 492 </tbl:toolbar> 493 <tbl:navigator 494 page="<%=cc.getPage()%>" 495 rowsperpage="<%=cc.getRowsPerPage()%>" 496 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>" 497 visible="<%=mode.hasNavigator()%>" 498 /> 421 <div class="panelgroup bottomborder"> 422 <tbl:toolbar 423 subclass="bottomborder" 424 visible="<%=mode.hasToolbar()%>" 425 > 426 <tbl:button 427 disabled="<%=!createPermission%>" 428 image="new.png" 429 onclick="newItem()" 430 title="New…" 431 tooltip="<%=createPermission ? "Create new derived bioassay" : "You do not have permission to create derived bioassays"%>" 432 /> 433 <tbl:button 434 image="delete.png" 435 onclick="deleteItems()" 436 title="Delete" 437 tooltip="Delete the selected items" 438 /> 439 <tbl:button 440 image="restore.png" 441 onclick="restoreItems()" 442 title="Restore" 443 tooltip="Restore the selected (deleted) items" 444 /> 445 <tbl:button 446 image="share.png" 447 onclick="shareItems()" 448 title="Share…" 449 tooltip="Share the selected items" 450 /> 451 <tbl:button 452 image="take_ownership.png" 453 onclick="setOwner()" 454 title="Set owner…" 455 tooltip="Change owner of the selected items" 456 /> 457 <tbl:button 458 image="columns.png" 459 onclick="configureColumns()" 460 title="Columns…" 461 tooltip="Show, hide and re-order columns" 462 /> 463 <tbl:button 464 image="import.png" 465 onclick="runPlugin('ImportItems')" 466 title="Import…" 467 tooltip="Import data" 468 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 469 /> 470 <tbl:button 471 image="export.png" 472 onclick="runPlugin('ExportItems')" 473 title="Export…" 474 tooltip="Export data" 475 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 476 /> 477 <tbl:button 478 image="runplugin.png" 479 onclick="runPlugin('RunListPlugin')" 480 title="Run plugin…" 481 tooltip="Run a plugin" 482 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 483 /> 484 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 485 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 486 </tbl:toolbar> 487 <tbl:panel> 488 <tbl:presetselector 489 onchange="presetOnChange()" 490 /> 491 <tbl:navigator 492 page="<%=cc.getPage()%>" 493 rowsperpage="<%=cc.getRowsPerPage()%>" 494 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>" 495 visible="<%=mode.hasNavigator()%>" 496 /> 497 </tbl:panel> 498 </div> 499 499 <tbl:data> 500 500 <tbl:headers> … … 526 526 <tbl:rows> 527 527 <% 528 if (cc.getMessage() != null) 529 { 530 %> 531 <tbl:panel clazz="messagepanel"> 532 <div class="messagecontainer error"><%=cc.getMessage()%></div> 533 </tbl:panel> 534 <% 535 cc.setMessage(null); 536 } 528 537 int index = cc.getPage()*cc.getRowsPerPage(); 529 538 int selectedItemId = cc.getId(); … … 766 775 } 767 776 } 777 if (numListed == 0) 778 { 779 %> 780 <tbl:panel clazz="messagepanel"> 781 <div class="messagecontainer note"> 782 <%=bioAssays == null || bioAssays.getTotalCount() == 0 ? "No bioassays were found" : "No bioassays on this page. Please select another page!" %> 783 </div> 784 </tbl:panel> 785 <% 786 } 768 787 %> 769 788 </tbl:rows> 770 789 </tbl:data> 771 <%772 if (numListed == 0)773 {774 %>775 <tbl:panel><%=bioAssays == null || bioAssays.getTotalCount() == 0 ? "No bioassays were found" : "No bioassays on this page. Please select another page!" %></tbl:panel>776 <%777 }778 else779 {780 %>781 <tbl:navigator782 page="<%=cc.getPage()%>"783 rowsperpage="<%=cc.getRowsPerPage()%>"784 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>"785 visible="<%=mode.hasNavigator()%>"786 locked="true"787 />788 <%789 }790 %>791 790 </tbl:table> 791 </div> 792 792 793 <base:buttongroup subclass="dialogbuttons"> 793 794 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/experiments/bioassays/list_bioassays.jsp
r5951 r5952 203 203 204 204 <base:body> 205 <p>206 205 <% 207 206 if (!mode.isSelectionMode()) 208 207 { 209 208 %> 210 <p:path> 211 <p:pathelement title="Experiments" href="<%="../index.jsp?ID="+ID%>" />212 <p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>"213 href="<%="../bioassaysets/index.jsp?ID="+ID+"&experiment_id="+experiment.getId()%>" />214 <p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" />215 </p:path>209 <p:path><p:pathelement 210 title="Experiments" href="<%="../index.jsp?ID="+ID%>" 211 /><p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" 212 href="<%="../bioassaysets/index.jsp?ID="+ID+"&experiment_id="+experiment.getId()%>" 213 /><p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" 214 /></p:path> 216 215 <% 217 216 } 217 else 218 { 219 %> 220 <h1><%=title %></h1> 221 <% 222 } 218 223 %> 219 220 <t:tabcontrol id="main" active="bioassays" switch="switchTab"> 224 <t:tabcontrol 225 id="main" 226 subclass="mastertabcontrol content" 227 active="bioassays" switch="switchTab"> 221 228 <t:tab id="properties" title="Properties" /> 222 229 … … 225 232 226 233 <t:tab id="bioassays" title="Bioassays"> 227 <%228 if (cc.getMessage() != null)229 {230 %>231 <div class="error"><%=cc.getMessage()%></div>232 <%233 cc.setMessage(null);234 }235 %>236 234 <tbl:table 237 235 id="bioAssaySets" 238 239 236 columns="<%=cc.getSetting("columns")%>" 240 237 sortby="<%=cc.getSortProperty()%>" 241 238 direction="<%=cc.getSortDirection()%>" 242 title="<%=title%>"243 239 action="index.jsp" 244 240 sc="<%=sc%>" 245 241 item="<%=itemType%>" 242 subclass="fulltable" 246 243 > 247 244 <tbl:hidden … … 379 376 } 380 377 %> 381 <tbl:toolbar 382 visible="<%=mode.hasToolbar()%>" 383 > 384 <tbl:button 385 image="columns.png" 386 onclick="configureColumns()" 387 title="Columns…" 388 tooltip="Show, hide and re-order columns" 389 /> 390 <tbl:button 391 image="import.png" 392 onclick="runPlugin('ImportItems')" 393 title="Import…" 394 tooltip="Import data" 395 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 396 /> 397 <tbl:button 398 image="export.png" 399 onclick="runPlugin('ExportItems')" 400 title="Export…" 401 tooltip="Export data" 402 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 403 /> 404 <tbl:button 405 disabled="<%=!createPermission%>" 406 image="filter.png" 407 onclick="<%="runPlugin('NewFilteredBioAssaySet')"%>" 408 title="Filter bioassay set…" 409 tooltip="<%=createPermission ? 410 "Create a new bioassay set by filtering this bioassayset" : 411 "You do not have permission analyze this experiment"%>" 412 visible="<%=!mode.isSelectionMode()%>" 413 /> 414 <tbl:button 415 image="runplugin.png" 416 onclick="runPlugin('RunListPlugin')" 417 title="Run plugin…" 418 tooltip="Run a plugin" 419 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER) && !mode.isSelectionMode()%>" 420 /> 421 <tbl:button 422 disabled="<%=!createPermission%>" 423 image="runplugin.png" 424 onclick="<%="runPlugin('RunListAnalysisPlugin')"%>" 425 title="Run analysis…" 426 tooltip="<%=createPermission ? "Run an analysis plugin" : 427 "You do not have permission to analyze this experiment"%>" 428 visible="<%=pluginCount.containsKey(Plugin.MainType.ANALYZE) && !mode.isSelectionMode()%>" 429 /> 430 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 431 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 432 </tbl:toolbar> 433 <tbl:navigator 434 page="<%=cc.getPage()%>" 435 rowsperpage="<%=cc.getRowsPerPage()%>" 436 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>" 437 visible="<%=mode.hasNavigator()%>" 438 /> 378 <div class="panelgroup bottomborder"> 379 <tbl:toolbar 380 subclass="bottomborder" 381 visible="<%=mode.hasToolbar()%>" 382 > 383 <tbl:button 384 image="columns.png" 385 onclick="configureColumns()" 386 title="Columns…" 387 tooltip="Show, hide and re-order columns" 388 /> 389 <tbl:button 390 image="import.png" 391 onclick="runPlugin('ImportItems')" 392 title="Import…" 393 tooltip="Import data" 394 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 395 /> 396 <tbl:button 397 image="export.png" 398 onclick="runPlugin('ExportItems')" 399 title="Export…" 400 tooltip="Export data" 401 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 402 /> 403 <tbl:button 404 disabled="<%=!createPermission%>" 405 image="filter.png" 406 onclick="<%="runPlugin('NewFilteredBioAssaySet')"%>" 407 title="Filter bioassay set…" 408 tooltip="<%=createPermission ? 409 "Create a new bioassay set by filtering this bioassayset" : 410 "You do not have permission analyze this experiment"%>" 411 visible="<%=!mode.isSelectionMode()%>" 412 /> 413 <tbl:button 414 image="runplugin.png" 415 onclick="runPlugin('RunListPlugin')" 416 title="Run plugin…" 417 tooltip="Run a plugin" 418 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER) && !mode.isSelectionMode()%>" 419 /> 420 <tbl:button 421 disabled="<%=!createPermission%>" 422 image="runplugin.png" 423 onclick="<%="runPlugin('RunListAnalysisPlugin')"%>" 424 title="Run analysis…" 425 tooltip="<%=createPermission ? "Run an analysis plugin" : 426 "You do not have permission to analyze this experiment"%>" 427 visible="<%=pluginCount.containsKey(Plugin.MainType.ANALYZE) && !mode.isSelectionMode()%>" 428 /> 429 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 430 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 431 </tbl:toolbar> 432 <tbl:panel> 433 <tbl:presetselector 434 onchange="presetOnChange()" 435 /> 436 <tbl:navigator 437 page="<%=cc.getPage()%>" 438 rowsperpage="<%=cc.getRowsPerPage()%>" 439 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>" 440 visible="<%=mode.hasNavigator()%>" 441 /> 442 </tbl:panel> 443 </div> 439 444 <tbl:data> 440 445 <tbl:headers> … … 466 471 <tbl:rows> 467 472 <% 473 if (cc.getMessage() != null) 474 { 475 %> 476 <tbl:panel clazz="messagepanel"> 477 <div class="messagecontainer error"><%=cc.getMessage()%></div> 478 </tbl:panel> 479 <% 480 cc.setMessage(null); 481 } 468 482 int index = cc.getPage()*cc.getRowsPerPage(); 469 483 int selectedItemId = cc.getId(); … … 597 611 } 598 612 } 613 if (numListed == 0) 614 { 615 %> 616 <tbl:panel clazz="messagepanel"> 617 <div class="messagecontainer note"> 618 <%=bioAssays == null || bioAssays.getTotalCount() == 0 ? "No bioassays were found" : "No bioassays on this page. Please select another page!" %> 619 </div> 620 </tbl:panel> 621 <% 622 } 599 623 %> 600 624 </tbl:rows> 601 625 </tbl:data> 602 <%603 if (numListed == 0)604 {605 %>606 <tbl:panel><%=bioAssays == null || bioAssays.getTotalCount() == 0 ? "No bioassays were found" : "No bioassays on this page. Please select another page!" %></tbl:panel>607 <%608 }609 else610 {611 %>612 <tbl:navigator613 page="<%=cc.getPage()%>"614 rowsperpage="<%=cc.getRowsPerPage()%>"615 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>"616 visible="<%=mode.hasNavigator()%>"617 locked="true"618 />619 <%620 }621 %>622 623 626 </tbl:table> 624 <base:buttongroup subclass="dialogbuttons">625 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />626 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />627 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />628 </base:buttongroup>629 627 </t:tab> 630 628 … … 633 631 <t:tab id="overviewplots" title="Overview plots" 634 632 visible="<%=overviewPlotInvoker.getNumExtensions() > 0%>" /> 635 636 633 </t:tabcontrol> 634 635 <base:buttongroup subclass="dialogbuttons"> 636 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> 637 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 638 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" /> 639 </base:buttongroup> 637 640 638 641 </base:body> -
trunk/www/views/experiments/bioassaysets/analysis_tree.jsp
r5948 r5952 528 528 } 529 529 </script> 530 531 532 <%533 if (cc.getMessage() != null)534 {535 %>536 <div class="error"><%=cc.getMessage()%></div>537 <%538 cc.setMessage(null);539 }540 %>541 530 <tbl:table 542 531 id="bioAssaySets" … … 544 533 sortby="<%=cc.getSortProperty()%>" 545 534 direction="<%=cc.getSortDirection()%>" 546 title="<%=title%>"547 535 action="<%=transformationId != 0 ? "../bioassaysets/index.jsp" : "index.jsp"%>" 548 536 sc="<%=sc%>" 549 537 item="<%=itemType%>" 538 subclass="<%=root == null ? "fulltable" : "" %>" 550 539 > 551 540 <tbl:hidden … … 687 676 /> 688 677 678 <div class="panelgroup"> 689 679 <tbl:toolbar 690 680 visible="<%=mode.hasToolbar()%>" 681 subclass="<%=root == null ? "bottomborder" : "topborder leftborder rightborder" %>" 691 682 > 692 683 <tbl:button … … 742 733 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 743 734 </tbl:toolbar> 744 <tbl:data> 735 </div> 736 <tbl:data style="<%=root == null ? "top: 1.75em;" : "" %>"> 745 737 <tbl:headers> 746 738 <tbl:headerrow> 747 <tbl:header colspan="3" /> 739 <tbl:header colspan="3"> 740 <tbl:presetselector 741 onchange="presetOnChange()" 742 style="border-right: 0px;" 743 /> 744 </tbl:header> 748 745 <tbl:columnheaders /> 749 746 </tbl:headerrow> … … 771 768 <tbl:rows> 772 769 <% 770 if (cc.getMessage() != null) 771 { 772 %> 773 <tbl:panel clazz="messagepanel"> 774 <div class="messagecontainer error"><%=cc.getMessage()%></div> 775 </tbl:panel> 776 <% 777 cc.setMessage(null); 778 } 773 779 int index = cc.getPage()*cc.getRowsPerPage(); 774 780 int selectedItemId = cc.getId(); … … 894 900 /> </tbl:header> 895 901 896 <tbl:cell clazz=" joustcell" column="name">902 <tbl:cell clazz="cell joustcell" column="name"> 897 903 <div id="tree.<%=joustId%>" class="link" 898 904 onclick="<%=onClick%>(<%=writePermission ? "event" : null%>, <%=itemId%>)" … … 1026 1032 } 1027 1033 } 1034 if (numListed == 0) 1035 { 1036 %> 1037 <tbl:panel clazz="messagepanel"> 1038 <div class="messagecontainer note"> 1039 No bioassay sets or transformations were found. 1040 </div> 1041 </tbl:panel> 1042 <% 1043 } 1028 1044 %> 1029 </tbl:rows> 1030 </tbl:data> 1031 <% 1032 if (numListed == 0) 1033 { 1034 %> 1035 <tbl:panel>No bioassay sets or transformations were found.</tbl:panel> 1036 <% 1037 } 1038 %> 1045 </tbl:rows> 1046 </tbl:data> 1039 1047 </tbl:table> 1040 1048 -
trunk/www/views/experiments/bioassaysets/list_bioassaysets.jsp
r5948 r5952 227 227 228 228 <base:body > 229 <p> 230 <p:path> 231 <p:pathelement title="Experiments" href="<%="../index.jsp?ID="+ID%>" /> 232 <p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" /> 233 </p:path> 234 235 <t:tabcontrol id="main" active="bioassaysets" switch="switchTab"> 229 <p:path><p:pathelement 230 title="Experiments" href="<%="../index.jsp?ID="+ID%>" 231 /><p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" 232 /></p:path> 233 234 <t:tabcontrol 235 id="main" 236 subclass="mastertabcontrol content" 237 active="bioassaysets" switch="switchTab"> 236 238 <t:tab id="properties" title="Properties" /> 237 239 238 240 <t:tab id="bioassaysets" title="Bioassay sets"> 239 240 241 <jsp:include page="analysis_tree.jsp"> 241 242 <jsp:param name="ID" value="<%=ID%>" /> 242 243 <jsp:param name="experiment_id" value="<%=experimentId%>" /> 243 244 </jsp:include> 244 245 <base:buttongroup>246 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />247 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />248 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />249 </base:buttongroup>250 245 </t:tab> 251 246 … … 260 255 </t:tabcontrol> 261 256 257 <base:buttongroup> 258 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> 259 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 260 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" /> 261 </base:buttongroup> 262 263 262 264 </base:body> 263 265 </base:page> -
trunk/www/views/experiments/explorer/search/list.jsp
r5949 r5952 158 158 function newReporterList() 159 159 { 160 Table.submitToPopup(formId, 'CreateReporterList', 540, 400);160 Table.submitToPopup(formId, 'CreateReporterList', 600, 400); 161 161 } 162 162 </script> 163 163 </base:head> 164 164 <base:body> 165 <p> 166 <p:path> 167 <p:pathelement title="Experiments" href="<%="../../index.jsp?ID="+ID%>" /> 168 <p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" 169 href="<%="../../bioassaysets/index.jsp?ID="+ID+"&experiment_id="+experiment.getId()%>" /> 170 <p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" 171 href="<%="../../bioassaysets/index.jsp?ID="+ID+"&cmd=ViewItem&item_id="+bioAssaySetId%>" /> 172 <p:pathelement title="Explorer" /> 173 </p:path> 174 <t:tabcontrol id="explorer" switch="switchTab" remember="false" active="search"> 165 <p:path><p:pathelement 166 title="Experiments" href="<%="../../index.jsp?ID="+ID%>" 167 /><p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" 168 href="<%="../../bioassaysets/index.jsp?ID="+ID+"&experiment_id="+experiment.getId()%>" 169 /><p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" 170 href="<%="../../bioassaysets/index.jsp?ID="+ID+"&cmd=ViewItem&item_id="+bioAssaySetId%>" 171 /><p:pathelement title="Explorer" /></p:path> 172 <t:tabcontrol 173 id="explorer" 174 subclass="mastertabcontrol content" 175 switch="switchTab" remember="false" active="search"> 175 176 <t:tab id="search" title="Reporter search"> 176 <%177 if (cc.getMessage() != null)178 {179 %>180 <div class="error"><%=cc.getMessage()%></div>181 <%182 cc.setMessage(null);183 }184 %>185 177 <tbl:table 186 178 id="reporters" 187 188 179 columns="<%=cc.getSetting("columns")%>" 189 180 sortby="<%=cc.getSortProperty()%>" 190 181 direction="<%=cc.getSortDirection()%>" 191 title="<%=title%>"192 182 action="index.jsp" 193 183 sc="<%=sc%>" 194 184 item="<%=itemType%>" 195 185 subcontext="<%=subContext%>" 186 subclass="fulltable" 196 187 > 197 188 <tbl:hidden … … 227 218 multiple="false" 228 219 /> 229 230 <tbl:toolbar> 231 <tbl:button 232 image="columns.png" 233 onclick="configureColumns()" 234 title="Columns…" 235 tooltip="Show, hide and re-order columns" 236 /> 237 <tbl:button 238 image="add.png" 239 onclick="newReporterList()" 240 title="New reporter list…" 241 tooltip="Create a new reporter list from matching reporters" 242 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 243 /> 244 </tbl:toolbar> 245 <tbl:presetselector 246 clazz="columnheader" 247 onchange="presetOnChange()" 248 /> 249 <tbl:navigator 250 page="<%=cc.getPage()%>" 251 rowsperpage="<%=cc.getRowsPerPage()%>" 252 totalrows="<%=totalReporters%>" 253 /> 220 221 <div class="panelgroup bottomborder"> 222 <tbl:toolbar subclass="bottomborder"> 223 <tbl:button 224 image="columns.png" 225 onclick="configureColumns()" 226 title="Columns…" 227 tooltip="Show, hide and re-order columns" 228 /> 229 <tbl:button 230 image="add.png" 231 onclick="newReporterList()" 232 title="New reporter list…" 233 tooltip="Create a new reporter list from matching reporters" 234 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 235 /> 236 </tbl:toolbar> 237 <tbl:panel> 238 <tbl:presetselector 239 onchange="presetOnChange()" 240 /> 241 <tbl:navigator 242 page="<%=cc.getPage()%>" 243 rowsperpage="<%=cc.getRowsPerPage()%>" 244 totalrows="<%=totalReporters%>" 245 /> 246 </tbl:panel> 247 </div> 254 248 <tbl:data> 255 249 <tbl:headers> … … 265 259 <tbl:rows> 266 260 <% 261 if (cc.getMessage() != null) 262 { 263 %> 264 <tbl:panel clazz="messagepanel"> 265 <div class="messagecontainer error"><%=cc.getMessage()%></div> 266 </tbl:panel> 267 <% 268 cc.setMessage(null); 269 } 267 270 int rowIndex = cc.getPage()*cc.getRowsPerPage(); 268 271 if (reporters != null) … … 304 307 } 305 308 } 309 if (numListed == 0) 310 { 311 %> 312 <tbl:panel clazz="messagepanel"> 313 <div class="messagecontainer note"> 314 <%=totalReporters == 0 ? "No reporters were found" : "No reporters on this page. Please select another page!" %> 315 </div> 316 </tbl:panel> 317 <% 318 } 306 319 %> 307 320 </tbl:rows> 308 321 </tbl:data> 309 <%310 if (numListed == 0)311 {312 %>313 <tbl:panel><%=totalReporters == 0 ? "No reporters were found" : "No reporters on this page. Please select another page!" %></tbl:panel>314 <%315 }316 else317 {318 %>319 <tbl:navigator320 page="<%=cc.getPage()%>"321 rowsperpage="<%=cc.getRowsPerPage()%>"322 totalrows="<%=totalReporters%>"323 locked="true"324 />325 <%326 }327 %>328 322 </tbl:table> 329 323 </t:tab> -
trunk/www/views/experiments/explorer/view/view.jsp
r5946 r5952 582 582 583 583 <% 584 if (positionIndex == 0)584 if (positionIndex <= 0) 585 585 { 586 586 %> 587 587 <base:icon image="first.png" enabled="false" /> 588 <base:icon image="previous.png" enabled="false" /> 588 589 <% 589 590 } … … 593 594 <a href="index.jsp?ID=<%=ID%>&cmd=SetSpotIndex&bioassayset_id=<%=bioAssaySetId%>&spotIndex=0" 594 595 title="Go the first position"><base:icon image="first.png" /></a> 595 <%596 }597 if (positionIndex <= 0)598 {599 %>600 <base:icon image="previou.png" enabled="false" />601 <%602 }603 else604 {605 %>606 596 <a href="index.jsp?ID=<%=ID%>&cmd=SetSpotIndex&bioassayset_id=<%=bioAssaySetId%>&spotIndex=<%=positionIndex-1%>" 607 597 title="Go the previous position"><base:icon image="previous.png" /></a> -
trunk/www/views/experiments/list_experiments.jsp
r5951 r5952 186 186 187 187 <base:body> 188 <% 189 if (cc.getMessage() != null) 190 { 191 %> 192 <div class="error"><%=cc.getMessage()%></div> 193 <% 194 cc.setMessage(null); 195 } 196 %> 188 <h1><%=title==null ? "Experiments" : title%></h1> 189 <div class="content"> 197 190 <tbl:table 198 191 id="experiments" 199 200 192 columns="<%=cc.getSetting("columns")%>" 201 193 sortby="<%=cc.getSortProperty()%>" 202 194 direction="<%=cc.getSortDirection()%>" 203 title="<%=title%>"204 195 action="index.jsp" 205 196 sc="<%=sc%>" 206 197 item="<%=itemType%>" 198 subclass="fulltable" 207 199 > 208 200 <tbl:hidden … … 406 398 datatype="string" 407 399 /> 408 <tbl:toolbar 409 visible="<%=mode.hasToolbar()%>" 410 > 411 <tbl:button 412 disabled="<%=!createPermission%>" 413 image="new.png" 414 onclick="newItem()" 415 title="New…" 416 tooltip="<%=createPermission ? "Create new experiment" : "You do not have permission to create experiments"%>" 417 /> 418 <tbl:button 419 image="delete.png" 420 onclick="deleteItems()" 421 title="Delete" 422 tooltip="Delete the selected items" 423 /> 424 <tbl:button 425 image="restore.png" 426 onclick="restoreItems()" 427 title="Restore" 428 tooltip="Restore the selected (deleted) items" 429 /> 430 <tbl:button 431 image="share.png" 432 onclick="shareItems()" 433 title="Share…" 434 tooltip="Share the selected items" 435 /> 436 <tbl:button 437 image="take_ownership.png" 438 onclick="setOwner()" 439 title="Set owner…" 440 tooltip="Change owner of the selected items" 441 /> 442 <tbl:button 443 image="columns.png" 444 onclick="configureColumns()" 445 title="Columns…" 446 tooltip="Show, hide and re-order columns" 447 /> 448 <tbl:button 449 image="import.png" 450 onclick="runPlugin('ImportItems')" 451 title="Import…" 452 tooltip="Import data" 453 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 454 /> 455 <tbl:button 456 image="export.png" 457 onclick="runPlugin('ExportItems')" 458 title="Export…" 459 tooltip="Export data" 460 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 461 /> 462 <tbl:button 463 image="runplugin.png" 464 onclick="runPlugin('RunListPlugin')" 465 title="Run plugin…" 466 tooltip="Run a plugin" 467 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 468 /> 469 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 470 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 471 </tbl:toolbar> 472 <tbl:navigator 473 page="<%=cc.getPage()%>" 474 rowsperpage="<%=cc.getRowsPerPage()%>" 475 totalrows="<%=experiments == null ? 0 : experiments.getTotalCount()%>" 476 visible="<%=mode.hasNavigator()%>" 477 /> 400 <div class="panelgroup bottomborder"> 401 <tbl:toolbar 402 subclass="bottomborder" 403 visible="<%=mode.hasToolbar()%>" 404 > 405 <tbl:button 406 disabled="<%=!createPermission%>" 407 image="new.png" 408 onclick="newItem()" 409 title="New…" 410 tooltip="<%=createPermission ? "Create new experiment" : "You do not have permission to create experiments"%>" 411 /> 412 <tbl:button 413 image="delete.png" 414 onclick="deleteItems()" 415 title="Delete" 416 tooltip="Delete the selected items" 417 /> 418 <tbl:button 419 image="restore.png" 420 onclick="restoreItems()" 421 title="Restore" 422 tooltip="Restore the selected (deleted) items" 423 /> 424 <tbl:button 425 image="share.png" 426 onclick="shareItems()" 427 title="Share…" 428 tooltip="Share the selected items" 429 /> 430 <tbl:button 431 image="take_ownership.png" 432 onclick="setOwner()" 433 title="Set owner…" 434 tooltip="Change owner of the selected items" 435 /> 436 <tbl:button 437 image="columns.png" 438 onclick="configureColumns()" 439 title="Columns…" 440 tooltip="Show, hide and re-order columns" 441 /> 442 <tbl:button 443 image="import.png" 444 onclick="runPlugin('ImportItems')" 445 title="Import…" 446 tooltip="Import data" 447 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 448 /> 449 <tbl:button 450 image="export.png" 451 onclick="runPlugin('ExportItems')" 452 title="Export…" 453 tooltip="Export data" 454 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 455 /> 456 <tbl:button 457 image="runplugin.png" 458 onclick="runPlugin('RunListPlugin')" 459 title="Run plugin…" 460 tooltip="Run a plugin" 461 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 462 /> 463 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 464 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 465 </tbl:toolbar> 466 <tbl:panel> 467 <tbl:presetselector 468 onchange="presetOnChange()" 469 /> 470 <tbl:navigator 471 page="<%=cc.getPage()%>" 472 rowsperpage="<%=cc.getRowsPerPage()%>" 473 totalrows="<%=experiments == null ? 0 : experiments.getTotalCount()%>" 474 visible="<%=mode.hasNavigator()%>" 475 /> 476 </tbl:panel> 477 </div> 478 478 <tbl:data> 479 479 <tbl:headers> … … 505 505 <tbl:rows> 506 506 <% 507 if (cc.getMessage() != null) 508 { 509 %> 510 <tbl:panel clazz="messagepanel"> 511 <div class="messagecontainer error"><%=cc.getMessage()%></div> 512 </tbl:panel> 513 <% 514 cc.setMessage(null); 515 } 507 516 int index = cc.getPage()*cc.getRowsPerPage(); 508 517 int selectedItemId = Values.getInt(request.getParameter("item_id")); … … 624 633 } 625 634 } 635 if (numListed == 0) 636 { 637 %> 638 <tbl:panel clazz="messagepanel"> 639 <div class="messagecontainer note"> 640 <%=experiments == null || experiments.getTotalCount() == 0 ? "No experiments were found" : "No experiments on this page. Please select another page!" %> 641 </div> 642 </tbl:panel> 643 <% 644 } 626 645 %> 627 646 </tbl:rows> 628 647 </tbl:data> 629 <%630 if (numListed == 0)631 {632 %>633 <tbl:panel><%=experiments == null || experiments.getTotalCount() == 0 ? "No experiments were found" : "No experiments on this page. Please select another page!" %></tbl:panel>634 <%635 }636 else637 {638 %>639 <tbl:navigator640 page="<%=cc.getPage()%>"641 rowsperpage="<%=cc.getRowsPerPage()%>"642 totalrows="<%=experiments == null ? 0 : experiments.getTotalCount()%>"643 visible="<%=mode.hasNavigator()%>"644 locked="true"645 />646 <%647 }648 %>649 648 </tbl:table> 649 </div> 650 650 651 <base:buttongroup subclass="dialogbuttons"> 651 652 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/experiments/reporters/list_reporters.jsp
r5949 r5952 192 192 </base:head> 193 193 <base:body> 194 <p> 195 <p:path> 196 <p:pathelement title="Experiments" href="<%="../index.jsp?ID="+ID%>" /> 197 <p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" /> 198 </p:path> 199 200 <t:tabcontrol id="main" active="clonedreporters" switch="switchTab"> 194 <p:path><p:pathelement 195 title="Experiments" href="<%="../index.jsp?ID="+ID%>" 196 /><p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" 197 /></p:path> 198 199 <t:tabcontrol 200 id="main" 201 subclass="mastertabcontrol content" 202 active="clonedreporters" switch="switchTab"> 201 203 <t:tab id="properties" title="Properties" /> 202 204 <t:tab id="bioassaysets" title="Bioassay sets" /> 203 205 204 206 <t:tab id="clonedreporters" title="Cloned reporters" > 205 <%206 if (cc.getMessage() != null)207 {208 %>209 <div class="error"><%=cc.getMessage()%></div>210 <%211 cc.setMessage(null);212 }213 %>214 207 <tbl:table 215 208 id="reporters" 216 217 209 columns="<%=cc.getSetting("columns")%>" 218 210 sortby="<%=cc.getSortProperty()%>" 219 211 direction="<%=cc.getSortDirection()%>" 220 title="<%=title%>"221 212 action="index.jsp" 222 213 sc="<%=sc%>" 223 214 item="<%=itemType%>" 224 215 subcontext="<%=subContext%>" 216 subclass="fulltable" 225 217 > 226 218 <tbl:hidden … … 275 267 multiple="false" 276 268 /> 277 <tbl:toolbar 278 visible="<%=mode.hasToolbar()%>" 279 > 280 <tbl:button 281 image="columns.png" 282 onclick="configureColumns()" 283 title="Columns…" 284 tooltip="Show, hide and re-order columns" 285 /> 286 <tbl:button 287 image="add.png" 288 onclick="newReporterList()" 289 title="New reporter list…" 290 tooltip="Create a new reporter list from matching spots" 291 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 292 /> 293 <tbl:button 294 visible="<%=writePermission%>" 295 image="refresh.png" 296 onclick="updateClonedReporters()" 297 title="Update cloned reporters…" 298 tooltip="Update all cloned reporter annotations with information from the master table" 299 /> 300 <tbl:button 301 visible="<%=writePermission%>" 302 image="delete_permanently.png" 303 onclick="removeClonedReporters()" 304 title="Remove cloned reporters…" 305 tooltip="Remove all cloned reporter annotations" 306 /> 307 <tbl:button 308 image="export.png" 309 onclick="runPlugin('ExportItems')" 310 title="Export…" 311 tooltip="Export data" 312 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 313 /> 314 </tbl:toolbar> 315 <tbl:presetselector 316 clazz="columnheader" 317 onchange="presetOnChange()" 318 /> 319 <tbl:navigator 320 page="<%=cc.getPage()%>" 321 rowsperpage="<%=cc.getRowsPerPage()%>" 322 totalrows="<%=reporters == null ? 0 : reporters.getTotalCount()%>" 323 visible="<%=mode.hasNavigator()%>" 324 /> 269 <div class="panelgroup bottomborder"> 270 <tbl:toolbar 271 subclass="bottomborder" 272 visible="<%=mode.hasToolbar()%>" 273 > 274 <tbl:button 275 image="columns.png" 276 onclick="configureColumns()" 277 title="Columns…" 278 tooltip="Show, hide and re-order columns" 279 /> 280 <tbl:button 281 image="add.png" 282 onclick="newReporterList()" 283 title="New reporter list…" 284 tooltip="Create a new reporter list from matching spots" 285 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 286 /> 287 <tbl:button 288 visible="<%=writePermission%>" 289 image="refresh.png" 290 onclick="updateClonedReporters()" 291 title="Update cloned reporters…" 292 tooltip="Update all cloned reporter annotations with information from the master table" 293 /> 294 <tbl:button 295 visible="<%=writePermission%>" 296 image="delete_permanently.png" 297 onclick="removeClonedReporters()" 298 title="Remove cloned reporters…" 299 tooltip="Remove all cloned reporter annotations" 300 /> 301 <tbl:button 302 image="export.png" 303 onclick="runPlugin('ExportItems')" 304 title="Export…" 305 tooltip="Export data" 306 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 307 /> 308 </tbl:toolbar> 309 <tbl:panel> 310 <tbl:presetselector 311 onchange="presetOnChange()" 312 /> 313 <tbl:navigator 314 page="<%=cc.getPage()%>" 315 rowsperpage="<%=cc.getRowsPerPage()%>" 316 totalrows="<%=reporters == null ? 0 : reporters.getTotalCount()%>" 317 visible="<%=mode.hasNavigator()%>" 318 /> 319 </tbl:panel> 320 </div> 325 321 <tbl:data> 326 322 <tbl:headers> … … 342 338 <tbl:rows> 343 339 <% 340 if (cc.getMessage() != null) 341 { 342 %> 343 <tbl:panel clazz="messagepanel"> 344 <div class="messagecontainer error"><%=cc.getMessage()%></div> 345 </tbl:panel> 346 <% 347 cc.setMessage(null); 348 } 344 349 int index = cc.getPage()*cc.getRowsPerPage(); 345 350 int selectedItemId = cc.getId(); … … 388 393 } 389 394 } 395 if (numListed == 0) 396 { 397 %> 398 <tbl:panel clazz="messagepanel"> 399 <div class="messagecontainer note"> 400 <%=reporters == null || reporters.getTotalCount() == 0 ? "No reporters were found" : "No reporters on this page. Please select another page!" %> 401 </div> 402 </tbl:panel> 403 <% 404 } 390 405 %> 391 406 </tbl:rows> 392 407 </tbl:data> 393 <%394 if (numListed == 0)395 {396 %>397 <tbl:panel><%=reporters == null || reporters.getTotalCount() == 0 ? "No reporters were found" : "No reporters on this page. Please select another page!" %></tbl:panel>398 <%399 }400 else401 {402 %>403 <tbl:navigator404 page="<%=cc.getPage()%>"405 rowsperpage="<%=cc.getRowsPerPage()%>"406 totalrows="<%=reporters == null ? 0 : reporters.getTotalCount()%>"407 visible="<%=mode.hasNavigator()%>"408 locked="true"409 />410 <%411 }412 %>413 408 </tbl:table> 414 <base:buttongroup>415 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />416 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />417 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />418 </base:buttongroup>419 409 </t:tab> 420 410 … … 425 415 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" /> 426 416 </t:tabcontrol> 417 418 <base:buttongroup> 419 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> 420 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 421 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" /> 422 </base:buttongroup> 427 423 428 424 </base:body> -
trunk/www/views/experiments/spotdata/list_spotdata.jsp
r5951 r5952 187 187 function newReporterList() 188 188 { 189 Table.submitToPopup(formId, 'CreateReporterList', 540, 400);189 Table.submitToPopup(formId, 'CreateReporterList', 600, 400); 190 190 } 191 191 </script> 192 192 </base:head> 193 193 <base:body> 194 <p>195 194 <p:path> 196 <p:pathelement title="Experiments" href="<%="../index.jsp?ID="+ID%>" />197 <p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>"198 href="<%="../bioassaysets/index.jsp?ID="+ID+"&experiment_id="+experiment.getId()%>" />199 200 <%195 <p:pathelement 196 title="Experiments" href="<%="../index.jsp?ID="+ID%>" 197 /><p:pathelement title="<%=HTML.encodeTags(experiment.getName())%>" 198 href="<%="../bioassaysets/index.jsp?ID="+ID+"&experiment_id="+experiment.getId()%>" 199 /><% 201 200 if (bioAssay == null) 202 201 { 203 %> 204 <p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" /> 205 <% 202 %><p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" 203 /><% 206 204 } 207 205 else 208 206 { 209 %> 210 <p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" 211 href="<%="../bioassays/index.jsp?ID="+ID+"&bioassayset_id="+bioAssaySet.getId()%>" /> 212 <p:pathelement title="<%=HTML.encodeTags(bioAssay.getName())%>" /> 213 <% 214 } 215 %> 216 </p:path> 217 218 <t:tabcontrol id="main" active="spotdata" switch="switchTab"> 207 %><p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" 208 href="<%="../bioassays/index.jsp?ID="+ID+"&bioassayset_id="+bioAssaySet.getId()%>" 209 /><p:pathelement title="<%=HTML.encodeTags(bioAssay.getName())%>" 210 /><% 211 } 212 %></p:path> 213 214 <t:tabcontrol 215 id="main" 216 subclass="mastertabcontrol content" 217 active="spotdata" switch="switchTab"> 219 218 <t:tab id="properties.bioassay" title="Properties" visible="<%=bioAssay != null%>"/> 220 219 <t:tab id="properties.bioassayset" title="Properties" visible="<%=bioAssay == null%>"/> … … 227 226 <t:tab id="bioassays" visible="<%=bioAssay == null%>" title="BioAssays" /> 228 227 <t:tab id="spotdata" title="Spot data" > 229 <%230 if (cc.getMessage() != null)231 {232 %>233 <div class="error"><%=cc.getMessage()%></div>234 <%235 cc.setMessage(null);236 }237 %>238 228 <tbl:table 239 229 id="spotdata" 240 241 230 columns="<%=cc.getSetting("columns")%>" 242 231 sortby="<%=cc.getSortProperty()%>" 243 232 direction="<%=cc.getSortDirection()%>" 244 title="<%=title%>"245 233 action="index.jsp" 246 234 sc="<%=sc%>" 247 235 item="<%=itemType%>" 248 236 subcontext="<%=subContext%>" 237 subclass="fulltable" 249 238 > 250 239 <tbl:hidden … … 265 254 skip="<%=callback == null%>" 266 255 /> 267 268 256 <% 269 257 for (TableColumn tc : columns) … … 323 311 multiple="false" 324 312 /> 325 <tbl:toolbar 326 visible="<%=mode.hasToolbar()%>" 327 > 328 <tbl:button 329 image="columns.png" 330 onclick="configureColumns()" 331 title="Columns…" 332 tooltip="Show, hide and re-order columns" 333 /> 334 <tbl:button 335 image="add.png" 336 onclick="newReporterList()" 337 title="New reporter list…" 338 tooltip="Create a new reporter list from matching spots" 339 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 340 /> 341 <tbl:button 342 image="export.png" 343 onclick="runPlugin('ExportItems')" 344 title="Export…" 345 tooltip="Export data" 346 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 347 /> 348 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 349 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 350 </tbl:toolbar> 351 <tbl:presetselector 352 clazz="columnheader" 353 onchange="presetOnChange()" 354 /> 355 <tbl:navigator 356 page="<%=cc.getPage()%>" 357 rowsperpage="<%=cc.getRowsPerPage()%>" 358 totalrows="<%=spotData == null ? 0 : spotData.getTotalCount()%>" 359 visible="<%=mode.hasNavigator()%>" 360 /> 313 <div class="panelgroup bottomborder"> 314 <tbl:toolbar 315 subclass="bottomborder" 316 visible="<%=mode.hasToolbar()%>" 317 > 318 <tbl:button 319 image="columns.png" 320 onclick="configureColumns()" 321 title="Columns…" 322 tooltip="Show, hide and re-order columns" 323 /> 324 <tbl:button 325 image="add.png" 326 onclick="newReporterList()" 327 title="New reporter list…" 328 tooltip="Create a new reporter list from matching spots" 329 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 330 /> 331 <tbl:button 332 image="export.png" 333 onclick="runPlugin('ExportItems')" 334 title="Export…" 335 tooltip="Export data" 336 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 337 /> 338 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 339 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 340 </tbl:toolbar> 341 <tbl:panel> 342 <tbl:presetselector 343 onchange="presetOnChange()" 344 /> 345 <tbl:navigator 346 page="<%=cc.getPage()%>" 347 rowsperpage="<%=cc.getRowsPerPage()%>" 348 totalrows="<%=spotData == null ? 0 : spotData.getTotalCount()%>" 349 visible="<%=mode.hasNavigator()%>" 350 /> 351 </tbl:panel> 352 </div> 361 353 <tbl:data> 362 354 <tbl:headers> … … 378 370 <tbl:rows> 379 371 <% 372 if (cc.getMessage() != null) 373 { 374 %> 375 <tbl:panel clazz="messagepanel"> 376 <div class="messagecontainer error"><%=cc.getMessage()%></div> 377 </tbl:panel> 378 <% 379 cc.setMessage(null); 380 } 380 381 int index = cc.getPage()*cc.getRowsPerPage(); 381 382 int selectedItemId = cc.getId(); … … 409 410 } 410 411 } 412 if (numListed == 0) 413 { 414 %> 415 <tbl:panel clazz="messagepanel"> 416 <div class="messagecontainer note"> 417 <%=spotData == null || spotData.getTotalCount() == 0 ? "No spot data were found" : "No spot data on this page. Please select another page!" %> 418 </div> 419 </tbl:panel> 420 <% 421 } 411 422 %> 412 423 </tbl:rows> 413 424 </tbl:data> 414 <%415 if (numListed == 0)416 {417 %>418 <tbl:panel><%=spotData == null || spotData.getTotalCount() == 0 ? "No spot data were found" : "No spot data on this page. Please select another page!" %></tbl:panel>419 <%420 }421 else422 {423 %>424 <tbl:navigator425 page="<%=cc.getPage()%>"426 rowsperpage="<%=cc.getRowsPerPage()%>"427 totalrows="<%=spotData == null ? 0 : spotData.getTotalCount()%>"428 visible="<%=mode.hasNavigator()%>"429 locked="true"430 />431 <%432 }433 %>434 425 </tbl:table> 426 </t:tab> 427 428 <t:tab id="overviewplots" title="Overview plots" 429 visible="<%=overviewPlotInvoker != null && overviewPlotInvoker.getNumExtensions() > 0%>" 430 /> 431 </t:tabcontrol> 432 435 433 <base:buttongroup> 436 434 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> … … 438 436 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" /> 439 437 </base:buttongroup> 440 </t:tab>441 442 <t:tab id="overviewplots" title="Overview plots"443 visible="<%=overviewPlotInvoker != null && overviewPlotInvoker.getNumExtensions() > 0%>"444 />445 </t:tabcontrol>446 438 447 439 </base:body> -
trunk/www/views/formulas/list_formulas.jsp
r5951 r5952 218 218 219 219 <base:body> 220 <% 221 if (cc.getMessage() != null) 222 { 223 %> 224 <div class="error"><%=cc.getMessage()%></div> 225 <% 226 cc.setMessage(null); 227 } 228 %> 220 <h1><%=title==null ? "Formulas" : title%></h1> 221 <div class="content"> 229 222 <tbl:table 230 223 id="formulas" 231 232 224 columns="<%=cc.getSetting("columns")%>" 233 225 sortby="<%=cc.getSortProperty()%>" 234 226 direction="<%=cc.getSortDirection()%>" 235 title="<%=title%>"236 227 action="index.jsp" 237 228 sc="<%=sc%>" 238 229 item="<%=itemType%>" 230 subclass="fulltable" 239 231 > 240 232 <tbl:hidden … … 439 431 datatype="string" 440 432 /> 441 <tbl:toolbar 442 visible="<%=mode.hasToolbar()%>" 443 > 444 <tbl:button 445 disabled="<%=!createPermission%>" 446 image="new.png" 447 onclick="newItem()" 448 title="New…" 449 tooltip="<%=createPermission ? "Create new formula" : "You do not have permission to create formulas"%>" 450 /> 451 <tbl:button 452 image="delete.png" 453 onclick="deleteItems()" 454 title="Delete" 455 tooltip="Delete the selected items" 456 /> 457 <tbl:button 458 image="restore.png" 459 onclick="restoreItems()" 460 title="Restore" 461 tooltip="Restore the selected (deleted) items" 462 /> 463 <tbl:button 464 image="share.png" 465 onclick="shareItems()" 466 title="Share…" 467 tooltip="Share the selected items" 468 /> 469 <tbl:button 470 image="take_ownership.png" 471 onclick="setOwner()" 472 title="Set owner…" 473 tooltip="Change owner of the selected items" 474 /> 475 <tbl:button 476 image="columns.png" 477 onclick="configureColumns()" 478 title="Columns…" 479 tooltip="Show, hide and re-order columns" 480 /> 481 <tbl:button 482 image="import.png" 483 onclick="runPlugin('ImportItems')" 484 title="Import…" 485 tooltip="Import data" 486 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 487 /> 488 <tbl:button 489 image="export.png" 490 onclick="runPlugin('ExportItems')" 491 title="Export…" 492 tooltip="Export data" 493 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 494 /> 495 <tbl:button 496 image="runplugin.png" 497 onclick="runPlugin('RunListPlugin')" 498 title="Run plugin…" 499 tooltip="Run a plugin" 500 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 501 /> 502 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 503 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 504 </tbl:toolbar> 505 <tbl:navigator 506 page="<%=cc.getPage()%>" 507 rowsperpage="<%=cc.getRowsPerPage()%>" 508 totalrows="<%=formulas == null ? 0 : formulas.getTotalCount()%>" 509 visible="<%=mode.hasNavigator()%>" 510 /> 433 <div class="panelgroup bottomborder"> 434 <tbl:toolbar 435 subclass="bottomborder" 436 visible="<%=mode.hasToolbar()%>" 437 > 438 <tbl:button 439 disabled="<%=!createPermission%>" 440 image="new.png" 441 onclick="newItem()" 442 title="New…" 443 tooltip="<%=createPermission ? "Create new formula" : "You do not have permission to create formulas"%>" 444 /> 445 <tbl:button 446 image="delete.png" 447 onclick="deleteItems()" 448 title="Delete" 449 tooltip="Delete the selected items" 450 /> 451 <tbl:button 452 image="restore.png" 453 onclick="restoreItems()" 454 title="Restore" 455 tooltip="Restore the selected (deleted) items" 456 /> 457 <tbl:button 458 image="share.png" 459 onclick="shareItems()" 460 title="Share…" 461 tooltip="Share the selected items" 462 /> 463 <tbl:button 464 image="take_ownership.png" 465 onclick="setOwner()" 466 title="Set owner…" 467 tooltip="Change owner of the selected items" 468 /> 469 <tbl:button 470 image="columns.png" 471 onclick="configureColumns()" 472 title="Columns…" 473 tooltip="Show, hide and re-order columns" 474 /> 475 <tbl:button 476 image="import.png" 477 onclick="runPlugin('ImportItems')" 478 title="Import…" 479 tooltip="Import data" 480 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 481 /> 482 <tbl:button 483 image="export.png" 484 onclick="runPlugin('ExportItems')" 485 title="Export…" 486 tooltip="Export data" 487 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 488 /> 489 <tbl:button 490 image="runplugin.png" 491 onclick="runPlugin('RunListPlugin')" 492 title="Run plugin…" 493 tooltip="Run a plugin" 494 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 495 /> 496 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 497 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 498 </tbl:toolbar> 499 <tbl:panel> 500 <tbl:presetselector 501 onchange="presetOnChange()" 502 /> 503 <tbl:navigator 504 page="<%=cc.getPage()%>" 505 rowsperpage="<%=cc.getRowsPerPage()%>" 506 totalrows="<%=formulas == null ? 0 : formulas.getTotalCount()%>" 507 visible="<%=mode.hasNavigator()%>" 508 /> 509 </tbl:panel> 510 </div> 511 511 <tbl:data> 512 512 <tbl:headers> … … 538 538 <tbl:rows> 539 539 <% 540 if (cc.getMessage() != null) 541 { 542 %> 543 <tbl:panel clazz="messagepanel"> 544 <div class="messagecontainer error"><%=cc.getMessage()%></div> 545 </tbl:panel> 546 <% 547 cc.setMessage(null); 548 } 540 549 int index = cc.getPage()*cc.getRowsPerPage(); 541 550 int selectedItemId = cc.getId(); … … 656 665 } 657 666 } 667 if (numListed == 0) 668 { 669 %> 670 <tbl:panel clazz="messagepanel"> 671 <div class="messagecontainer note"> 672 <%=formulas == null || formulas.getTotalCount() == 0 ? "No formulas were found" : "No formulas on this page. Please select another page!" %> 673 </div> 674 </tbl:panel> 675 <% 676 } 658 677 %> 659 678 </tbl:rows> 660 679 </tbl:data> 661 <%662 if (numListed == 0)663 {664 %>665 <tbl:panel><%=formulas == null || formulas.getTotalCount() == 0 ? "No formulas were found" : "No formulas on this page. Please select another page!" %></tbl:panel>666 <%667 }668 else669 {670 %>671 <tbl:navigator672 page="<%=cc.getPage()%>"673 rowsperpage="<%=cc.getRowsPerPage()%>"674 totalrows="<%=formulas == null ? 0 : formulas.getTotalCount()%>"675 visible="<%=mode.hasNavigator()%>"676 locked="true"677 />678 <%679 }680 %>681 680 </tbl:table> 681 </div> 682 682 683 <base:buttongroup subclass="dialogbuttons"> 683 684 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/items/list_items.jsp
r5951 r5952 208 208 209 209 <base:body> 210 <% 211 if (cc.getMessage() != null) 212 { 213 %> 214 <div class="error"><%=HTML.encodeTags(cc.getMessage())%></div> 215 <% 216 cc.setMessage(null); 217 } 218 %> 210 <h1>All items</h1> 211 <div class="content"> 219 212 <tbl:table 220 213 id="allItems" 221 222 214 columns="<%=cc.getSetting("columns")%>" 223 215 action="index.jsp" … … 225 217 item="<%=itemType%>" 226 218 subcontext="<%=subContext%>" 219 subclass="fulltable" 227 220 > 228 221 <tbl:columndef … … 264 257 datatype="string" 265 258 /> 266 <tbl:toolbar> 267 <tbl:button 268 image="delete.png" 269 onclick="deleteItems()" 270 title="Delete" 271 tooltip="Mark the selected items for deletion" 272 disabled="<%=totalCount <= 0%>" 273 /> 274 <tbl:button 275 image="restore.png" 276 onclick="restoreItems()" 277 title="Restore" 278 tooltip="Restore the selected items" 279 disabled="<%=totalCount <= 0%>" 280 /> 281 <tbl:button 282 image="share.png" 283 onclick="shareItems()" 284 title="Share…" 285 tooltip="Share the selected items" 286 disabled="<%=totalCount <= 0%>" 287 /> 288 <tbl:button 289 image="take_ownership.png" 290 onclick="setOwner()" 291 title="Set owner…" 292 tooltip="Change owner of the selected items" 293 /> 294 <tbl:button 295 image="columns.png" 296 onclick="configureColumns()" 297 title="Columns…" 298 tooltip="Show, hide and re-order columns" 299 /> 300 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 301 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 302 </tbl:toolbar> 303 <tbl:navigator 304 page="<%=cc.getPage()%>" 305 rowsperpage="<%=cc.getRowsPerPage()%>" 306 totalrows="<%=allItems == null ? 0 : allItems.getTotalCount()%>" 307 /> 259 <div class="panelgroup bottomborder"> 260 <tbl:toolbar subclass="bottomborder"> 261 <tbl:button 262 image="delete.png" 263 onclick="deleteItems()" 264 title="Delete" 265 tooltip="Mark the selected items for deletion" 266 disabled="<%=totalCount <= 0%>" 267 /> 268 <tbl:button 269 image="restore.png" 270 onclick="restoreItems()" 271 title="Restore" 272 tooltip="Restore the selected items" 273 disabled="<%=totalCount <= 0%>" 274 /> 275 <tbl:button 276 image="share.png" 277 onclick="shareItems()" 278 title="Share…" 279 tooltip="Share the selected items" 280 disabled="<%=totalCount <= 0%>" 281 /> 282 <tbl:button 283 image="take_ownership.png" 284 onclick="setOwner()" 285 title="Set owner…" 286 tooltip="Change owner of the selected items" 287 /> 288 <tbl:button 289 image="columns.png" 290 onclick="configureColumns()" 291 title="Columns…" 292 tooltip="Show, hide and re-order columns" 293 /> 294 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 295 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 296 </tbl:toolbar> 297 <tbl:panel> 298 <tbl:presetselector 299 onchange="presetOnChange()" 300 /> 301 <tbl:navigator 302 page="<%=cc.getPage()%>" 303 rowsperpage="<%=cc.getRowsPerPage()%>" 304 totalrows="<%=allItems == null ? 0 : allItems.getTotalCount()%>" 305 /> 306 </tbl:panel> 307 </div> 308 308 <tbl:data> 309 309 <tbl:headers> … … 333 333 <tbl:rows> 334 334 <% 335 if (cc.getMessage() != null) 336 { 337 %> 338 <tbl:panel clazz="messagepanel"> 339 <div class="messagecontainer error"><%=cc.getMessage()%></div> 340 </tbl:panel> 341 <% 342 cc.setMessage(null); 343 } 335 344 int index = cc.getPage()*cc.getRowsPerPage(); 336 345 if (allItems != null) … … 435 444 } 436 445 } 446 if (numListed == 0) 447 { 448 %> 449 <tbl:panel clazz="messagepanel"> 450 <div class="messagecontainer note"> 451 <%=allItems == null || allItems.size() == 0 ? "No items were found" : "No items on this page. Please select another page!" %> 452 </div> 453 </tbl:panel> 454 <% 455 } 437 456 %> 438 457 </tbl:rows> 439 458 </tbl:data> 440 <%441 if (numListed == 0)442 {443 %>444 <tbl:panel><%=allItems == null || allItems.size() == 0 ? "No items were found" : "No items on this page. Please select another page!" %></tbl:panel>445 <%446 }447 else448 {449 %>450 <tbl:navigator451 page="<%=cc.getPage()%>"452 rowsperpage="<%=cc.getRowsPerPage()%>"453 totalrows="<%=allItems == null ? 0 : allItems.getTotalCount()%>"454 locked="true"455 />456 <%457 }458 %>459 459 </tbl:table> 460 460 </div> 461 461 </base:body> 462 462 </base:page> -
trunk/www/views/jobs/list_jobs.jsp
r5951 r5952 196 196 197 197 <base:body> 198 <% 199 if (cc.getMessage() != null) 200 { 201 %> 202 <div class="error"><%=cc.getMessage()%></div> 203 <% 204 cc.setMessage(null); 205 } 206 %> 198 <h1><%=title==null ? "Jobs" : title%></h1> 199 <div class="content"> 207 200 <tbl:table 208 201 id="jobs" 209 210 202 columns="<%=cc.getSetting("columns")%>" 211 203 sortby="<%=cc.getSortProperty()%>" 212 204 direction="<%=cc.getSortDirection()%>" 213 title="<%=title%>"214 205 action="index.jsp" 215 206 sc="<%=sc%>" 216 207 item="<%=itemType%>" 208 subclass="fulltable" 217 209 > 218 210 <tbl:hidden … … 440 432 title="Permission" 441 433 /> 442 <tbl:toolbar 443 visible="<%=mode.hasToolbar()%>" 444 > 445 <tbl:button 446 image="delete.png" 447 onclick="deleteItems()" 448 title="Delete" 449 tooltip="Delete the selected items" 450 /> 451 <tbl:button 452 image="restore.png" 453 onclick="restoreItems()" 454 title="Restore" 455 tooltip="Restore the selected (deleted) items" 456 /> 457 <tbl:button 458 image="take_ownership.png" 459 onclick="setOwner()" 460 title="Set owner…" 461 tooltip="Change owner of the selected items" 462 /> 463 <tbl:button 464 image="columns.png" 465 onclick="configureColumns()" 466 title="Columns…" 467 tooltip="Show, hide and re-order columns" 468 /> 469 <tbl:button 470 image="import.png" 471 onclick="runPlugin('ImportItems')" 472 title="Import…" 473 tooltip="Import data" 474 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 475 /> 476 <tbl:button 477 image="export.png" 478 onclick="runPlugin('ExportItems')" 479 title="Export…" 480 tooltip="Export data" 481 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 482 /> 483 <tbl:button 484 image="runplugin.png" 485 onclick="runPlugin('RunListPlugin')" 486 title="Run plugin…" 487 tooltip="Run a plugin" 488 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 489 /> 490 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 491 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 492 </tbl:toolbar> 493 <tbl:navigator 494 page="<%=cc.getPage()%>" 495 rowsperpage="<%=cc.getRowsPerPage()%>" 496 totalrows="<%=jobs == null ? 0 : jobs.getTotalCount()%>" 497 visible="<%=mode.hasNavigator()%>" 498 /> 434 <div class="panelgroup bottomborder"> 435 <tbl:toolbar 436 subclass="bottomborder" 437 visible="<%=mode.hasToolbar()%>" 438 > 439 <tbl:button 440 image="delete.png" 441 onclick="deleteItems()" 442 title="Delete" 443 tooltip="Delete the selected items" 444 /> 445 <tbl:button 446 image="restore.png" 447 onclick="restoreItems()" 448 title="Restore" 449 tooltip="Restore the selected (deleted) items" 450 /> 451 <tbl:button 452 image="take_ownership.png" 453 onclick="setOwner()" 454 title="Set owner…" 455 tooltip="Change owner of the selected items" 456 /> 457 <tbl:button 458 image="columns.png" 459 onclick="configureColumns()" 460 title="Columns…" 461 tooltip="Show, hide and re-order columns" 462 /> 463 <tbl:button 464 image="import.png" 465 onclick="runPlugin('ImportItems')" 466 title="Import…" 467 tooltip="Import data" 468 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 469 /> 470 <tbl:button 471 image="export.png" 472 onclick="runPlugin('ExportItems')" 473 title="Export…" 474 tooltip="Export data" 475 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 476 /> 477 <tbl:button 478 image="runplugin.png" 479 onclick="runPlugin('RunListPlugin')" 480 title="Run plugin…" 481 tooltip="Run a plugin" 482 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 483 /> 484 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 485 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 486 </tbl:toolbar> 487 <tbl:panel> 488 <tbl:presetselector 489 onchange="presetOnChange()" 490 /> 491 <tbl:navigator 492 page="<%=cc.getPage()%>" 493 rowsperpage="<%=cc.getRowsPerPage()%>" 494 totalrows="<%=jobs == null ? 0 : jobs.getTotalCount()%>" 495 visible="<%=mode.hasNavigator()%>" 496 /> 497 </tbl:panel> 498 </div> 499 499 <tbl:data> 500 500 <tbl:headers> … … 526 526 <tbl:rows> 527 527 <% 528 if (cc.getMessage() != null) 529 { 530 %> 531 <tbl:panel clazz="messagepanel"> 532 <div class="messagecontainer error"><%=cc.getMessage()%></div> 533 </tbl:panel> 534 <% 535 cc.setMessage(null); 536 } 528 537 int index = cc.getPage()*cc.getRowsPerPage(); 529 538 int selectedItemId = cc.getId(); … … 732 741 } 733 742 } 743 if (numListed == 0) 744 { 745 %> 746 <tbl:panel clazz="messagepanel"> 747 <div class="messagecontainer note"> 748 <%=jobs == null || jobs.getTotalCount() == 0 ? "No jobs were found" : "No jobs on this page. Please select another page!" %> 749 </div> 750 </tbl:panel> 751 <% 752 } 734 753 %> 735 754 </tbl:rows> 736 755 </tbl:data> 737 <%738 if (numListed == 0)739 {740 %>741 <tbl:panel><%=jobs == null || jobs.getTotalCount() == 0 ? "No jobs were found" : "No jobs on this page. Please select another page!" %></tbl:panel>742 <%743 }744 else745 {746 %>747 <tbl:navigator748 page="<%=cc.getPage()%>"749 rowsperpage="<%=cc.getRowsPerPage()%>"750 totalrows="<%=jobs == null ? 0 : jobs.getTotalCount()%>"751 visible="<%=mode.hasNavigator()%>"752 locked="true"753 />754 <%755 }756 %>757 756 </tbl:table> 757 </div> 758 758 759 <base:buttongroup subclass="dialogbuttons"> 759 760 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/jobs/view_job.jsp
r5946 r5952 642 642 int numChanges = 0; 643 643 %> 644 <tbl:table id="history" columns="all"> 644 <tbl:table 645 id="history" columns="all" 646 subclass="fulltable" style="border-bottom: 0px;"> 645 647 <tbl:columndef id="changeType" title="Change type" /> 646 648 <tbl:columndef id="item" title="Item" /> 647 649 <tbl:columndef id="info" title="Info" /> 648 650 649 <tbl:data style=" border-top: 0px;">651 <tbl:data style="top: 0px;"> 650 652 <tbl:headers> 651 653 <tbl:headerrow> … … 667 669 <% 668 670 } 671 if (numChanges == 0) 672 { 673 %> 674 <tbl:panel clazz="messagepanel"> 675 <div class="messagecontainer note"> 676 No log entries found for this job. NOTE! This job may have made 677 other changes that are not recorded by the logging mechanism. 678 </div> 679 </tbl:panel> 680 <% 681 } 669 682 %> 670 683 </tbl:rows> 671 684 </tbl:data> 672 <%673 if (numChanges == 0)674 {675 %>676 <tbl:panel>677 <div class="messagecontainer help">678 No log entries found for this job. NOTE! This job may have made679 other changes that are not recorded by the logging mechanism.680 </div>681 </tbl:panel>682 <%683 }684 %>685 685 </tbl:table> 686 686 </t:tab> -
trunk/www/views/permissiontemplates/list_templates.jsp
r5951 r5952 175 175 176 176 <base:body> 177 <% 178 if (cc.getMessage() != null) 179 { 180 %> 181 <div class="error"><%=cc.getMessage()%></div> 182 <% 183 cc.setMessage(null); 184 } 185 %> 177 <h1><%=title==null ? "Permission templates" : title%></h1> 178 <div class="content"> 186 179 <tbl:table 187 180 id="templates" 188 189 181 columns="<%=cc.getSetting("columns")%>" 190 182 sortby="<%=cc.getSortProperty()%>" 191 183 direction="<%=cc.getSortDirection()%>" 192 title="<%=title%>"193 184 action="index.jsp" 194 185 sc="<%=sc%>" 195 186 item="<%=itemType%>" 187 subclass="fulltable" 196 188 > 197 189 <tbl:hidden … … 253 245 datatype="string" 254 246 /> 255 <tbl:toolbar 256 visible="<%=mode.hasToolbar()%>" 257 > 258 <tbl:button 259 disabled="<%=!createPermission%>" 260 image="new.png" 261 onclick="newItem()" 262 title="New…" 263 tooltip="<%=createPermission ? "Create new permission template" : "You do not have permission to create permission templates"%>" 264 /> 265 <tbl:button 266 image="delete.png" 267 onclick="deleteItems()" 268 title="Delete" 269 tooltip="Delete the selected items" 270 /> 271 <tbl:button 272 image="restore.png" 273 onclick="restoreItems()" 274 title="Restore" 275 tooltip="Restore the selected (deleted) items" 276 /> 277 <tbl:button 278 image="share.png" 279 onclick="shareItems()" 280 title="Share…" 281 tooltip="Share the selected items" 282 /> 283 <tbl:button 284 image="take_ownership.png" 285 onclick="setOwner()" 286 title="Set owner…" 287 tooltip="Change owner of the selected items" 288 /> 289 <tbl:button 290 image="columns.png" 291 onclick="configureColumns()" 292 title="Columns…" 293 tooltip="Show, hide and re-order columns" 294 /> 295 <tbl:button 296 image="import.png" 297 onclick="runPlugin('ImportItems')" 298 title="Import…" 299 tooltip="Import data" 300 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 301 /> 302 <tbl:button 303 image="export.png" 304 onclick="runPlugin('ExportItems')" 305 title="Export…" 306 tooltip="Export data" 307 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 308 /> 309 <tbl:button 310 image="runplugin.png" 311 onclick="runPlugin('RunListPlugin')" 312 title="Run plugin…" 313 tooltip="Run a plugin" 314 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 315 /> 316 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 317 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 318 </tbl:toolbar> 319 <tbl:navigator 320 page="<%=cc.getPage()%>" 321 rowsperpage="<%=cc.getRowsPerPage()%>" 322 totalrows="<%=templates == null ? 0 : templates.getTotalCount()%>" 323 visible="<%=mode.hasNavigator()%>" 324 /> 247 <div class="panelgroup bottomborder"> 248 <tbl:toolbar 249 subclass="bottomborder" 250 visible="<%=mode.hasToolbar()%>" 251 > 252 <tbl:button 253 disabled="<%=!createPermission%>" 254 image="new.png" 255 onclick="newItem()" 256 title="New…" 257 tooltip="<%=createPermission ? "Create new permission template" : "You do not have permission to create permission templates"%>" 258 /> 259 <tbl:button 260 image="delete.png" 261 onclick="deleteItems()" 262 title="Delete" 263 tooltip="Delete the selected items" 264 /> 265 <tbl:button 266 image="restore.png" 267 onclick="restoreItems()" 268 title="Restore" 269 tooltip="Restore the selected (deleted) items" 270 /> 271 <tbl:button 272 image="share.png" 273 onclick="shareItems()" 274 title="Share…" 275 tooltip="Share the selected items" 276 /> 277 <tbl:button 278 image="take_ownership.png" 279 onclick="setOwner()" 280 title="Set owner…" 281 tooltip="Change owner of the selected items" 282 /> 283 <tbl:button 284 image="columns.png" 285 onclick="configureColumns()" 286 title="Columns…" 287 tooltip="Show, hide and re-order columns" 288 /> 289 <tbl:button 290 image="import.png" 291 onclick="runPlugin('ImportItems')" 292 title="Import…" 293 tooltip="Import data" 294 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 295 /> 296 <tbl:button 297 image="export.png" 298 onclick="runPlugin('ExportItems')" 299 title="Export…" 300 tooltip="Export data" 301 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 302 /> 303 <tbl:button 304 image="runplugin.png" 305 onclick="runPlugin('RunListPlugin')" 306 title="Run plugin…" 307 tooltip="Run a plugin" 308 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 309 /> 310 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 311 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 312 </tbl:toolbar> 313 <tbl:panel> 314 <tbl:presetselector 315 onchange="presetOnChange()" 316 /> 317 <tbl:navigator 318 page="<%=cc.getPage()%>" 319 rowsperpage="<%=cc.getRowsPerPage()%>" 320 totalrows="<%=templates == null ? 0 : templates.getTotalCount()%>" 321 visible="<%=mode.hasNavigator()%>" 322 /> 323 </tbl:panel> 324 </div> 325 325 <tbl:data> 326 326 <tbl:headers> … … 352 352 <tbl:rows> 353 353 <% 354 if (cc.getMessage() != null) 355 { 356 %> 357 <tbl:panel clazz="messagepanel"> 358 <div class="messagecontainer error"><%=cc.getMessage()%></div> 359 </tbl:panel> 360 <% 361 cc.setMessage(null); 362 } 354 363 int index = cc.getPage()*cc.getRowsPerPage(); 355 364 int selectedItemId = cc.getId(); … … 445 454 } 446 455 } 456 if (numListed == 0) 457 { 458 %> 459 <tbl:panel clazz="messagepanel"> 460 <div class="messagecontainer note"> 461 <%=templates == null || templates.getTotalCount() == 0 ? "No permission templates were found" : "No permission templates on this page. Please select another page!" %> 462 </div> 463 </tbl:panel> 464 <% 465 } 447 466 %> 448 467 </tbl:rows> 449 468 </tbl:data> 450 <%451 if (numListed == 0)452 {453 %>454 <tbl:panel><%=templates == null || templates.getTotalCount() == 0 ? "No permission templates were found" : "No permission templates on this page. Please select another page!" %></tbl:panel>455 <%456 }457 else458 {459 %>460 <tbl:navigator461 page="<%=cc.getPage()%>"462 rowsperpage="<%=cc.getRowsPerPage()%>"463 totalrows="<%=templates == null ? 0 : templates.getTotalCount()%>"464 visible="<%=mode.hasNavigator()%>"465 locked="true"466 />467 <%468 }469 %>470 469 </tbl:table> 470 </div> 471 471 472 <base:buttongroup subclass="dialogbuttons"> 472 473 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/physicalbioassays/list_bioassays.jsp
r5951 r5952 220 220 221 221 <base:body> 222 <% 223 if (cc.getMessage() != null) 224 { 225 %> 226 <div class="error"><%=cc.getMessage()%></div> 227 <% 228 cc.setMessage(null); 229 } 230 %> 222 <h1><%=title==null ? "Physical bioassays" : title%></h1> 223 <div class="content"> 231 224 <tbl:table 232 225 id="bioassays" 233 234 226 columns="<%=cc.getSetting("columns")%>" 235 227 sortby="<%=cc.getSortProperty()%>" 236 228 direction="<%=cc.getSortDirection()%>" 237 title="<%=title%>"238 229 action="index.jsp" 239 230 sc="<%=sc%>" 240 231 item="<%=itemType%>" 232 subclass="fulltable" 241 233 > 242 234 <tbl:hidden … … 415 407 datatype="string" 416 408 /> 417 <tbl:toolbar 418 visible="<%=mode.hasToolbar()%>" 419 > 420 <tbl:button 421 disabled="<%=!createPermission%>" 422 image="new.png" 423 onclick="newItem()" 424 title="New…" 425 tooltip="<%=createPermission ? "Create new physical bioassay" : "You do not have permission to create physical bioassays"%>" 426 /> 427 <tbl:button 428 image="delete.png" 429 onclick="deleteItems()" 430 title="Delete" 431 tooltip="Delete the selected items" 432 /> 433 <tbl:button 434 image="restore.png" 435 onclick="restoreItems()" 436 title="Restore" 437 tooltip="Restore the selected (deleted) items" 438 /> 439 <tbl:button 440 image="share.png" 441 onclick="shareItems()" 442 title="Share…" 443 tooltip="Share the selected items" 444 /> 445 <tbl:button 446 image="take_ownership.png" 447 onclick="setOwner()" 448 title="Set owner…" 449 tooltip="Change owner of the selected items" 450 /> 451 <tbl:button 452 image="columns.png" 453 onclick="configureColumns()" 454 title="Columns…" 455 tooltip="Show, hide and re-order columns" 456 /> 457 <tbl:button 458 image="import.png" 459 onclick="runPlugin('ImportItems')" 460 title="Import…" 461 tooltip="Import data" 462 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 463 /> 464 <tbl:button 465 image="export.png" 466 onclick="runPlugin('ExportItems')" 467 title="Export…" 468 tooltip="Export data" 469 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 470 /> 471 <tbl:button 472 image="runplugin.png" 473 onclick="runPlugin('RunListPlugin')" 474 title="Run plugin…" 475 tooltip="Run a plugin" 476 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 477 /> 478 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 479 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 480 </tbl:toolbar> 481 <tbl:navigator 482 page="<%=cc.getPage()%>" 483 rowsperpage="<%=cc.getRowsPerPage()%>" 484 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>" 485 visible="<%=mode.hasNavigator()%>" 486 /> 409 <div class="panelgroup bottomborder"> 410 <tbl:toolbar 411 subclass="bottomborder" 412 visible="<%=mode.hasToolbar()%>" 413 > 414 <tbl:button 415 disabled="<%=!createPermission%>" 416 image="new.png" 417 onclick="newItem()" 418 title="New…" 419 tooltip="<%=createPermission ? "Create new physical bioassay" : "You do not have permission to create physical bioassays"%>" 420 /> 421 <tbl:button 422 image="delete.png" 423 onclick="deleteItems()" 424 title="Delete" 425 tooltip="Delete the selected items" 426 /> 427 <tbl:button 428 image="restore.png" 429 onclick="restoreItems()" 430 title="Restore" 431 tooltip="Restore the selected (deleted) items" 432 /> 433 <tbl:button 434 image="share.png" 435 onclick="shareItems()" 436 title="Share…" 437 tooltip="Share the selected items" 438 /> 439 <tbl:button 440 image="take_ownership.png" 441 onclick="setOwner()" 442 title="Set owner…" 443 tooltip="Change owner of the selected items" 444 /> 445 <tbl:button 446 image="columns.png" 447 onclick="configureColumns()" 448 title="Columns…" 449 tooltip="Show, hide and re-order columns" 450 /> 451 <tbl:button 452 image="import.png" 453 onclick="runPlugin('ImportItems')" 454 title="Import…" 455 tooltip="Import data" 456 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 457 /> 458 <tbl:button 459 image="export.png" 460 onclick="runPlugin('ExportItems')" 461 title="Export…" 462 tooltip="Export data" 463 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 464 /> 465 <tbl:button 466 image="runplugin.png" 467 onclick="runPlugin('RunListPlugin')" 468 title="Run plugin…" 469 tooltip="Run a plugin" 470 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 471 /> 472 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 473 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 474 </tbl:toolbar> 475 <tbl:panel> 476 <tbl:presetselector 477 onchange="presetOnChange()" 478 /> 479 <tbl:navigator 480 page="<%=cc.getPage()%>" 481 rowsperpage="<%=cc.getRowsPerPage()%>" 482 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>" 483 visible="<%=mode.hasNavigator()%>" 484 /> 485 </tbl:panel> 486 </div> 487 487 <tbl:data> 488 488 <tbl:headers> … … 514 514 <tbl:rows> 515 515 <% 516 if (cc.getMessage() != null) 517 { 518 %> 519 <tbl:panel clazz="messagepanel"> 520 <div class="messagecontainer error"><%=cc.getMessage()%></div> 521 </tbl:panel> 522 <% 523 cc.setMessage(null); 524 } 516 525 int index = cc.getPage()*cc.getRowsPerPage(); 517 526 int selectedItemId = cc.getId(); … … 740 749 } 741 750 } 751 if (numListed == 0) 752 { 753 %> 754 <tbl:panel clazz="messagepanel"> 755 <div class="messagecontainer note"> 756 <%=bioAssays == null || bioAssays.getTotalCount() == 0 ? "No physical bioassays were found" : "No physical bioassays on this page. Please select another page!" %> 757 </div> 758 </tbl:panel> 759 <% 760 } 742 761 %> 743 762 </tbl:rows> 744 763 </tbl:data> 745 <%746 if (numListed == 0)747 {748 %>749 <tbl:panel><%=bioAssays == null || bioAssays.getTotalCount() == 0 ? "No physical bioassays were found" : "No physical bioassays on this page. Please select another page!" %></tbl:panel>750 <%751 }752 else753 {754 %>755 <tbl:navigator756 page="<%=cc.getPage()%>"757 rowsperpage="<%=cc.getRowsPerPage()%>"758 totalrows="<%=bioAssays == null ? 0 : bioAssays.getTotalCount()%>"759 visible="<%=mode.hasNavigator()%>"760 locked="true"761 />762 <%763 }764 %>765 764 </tbl:table> 765 </div> 766 766 767 <base:buttongroup subclass="dialogbuttons"> 767 768 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/rawbioassays/list_rawbioassays.jsp
r5951 r5952 237 237 238 238 <base:body> 239 <% 240 if (cc.getMessage() != null) 241 { 242 %> 243 <div class="error"><%=cc.getMessage()%></div> 244 <% 245 cc.setMessage(null); 246 } 247 %> 239 <h1><%=title==null ? "Raw bioassays" : title%></h1> 240 <div class="content"> 248 241 <tbl:table 249 242 id="rawbioassays" 250 251 243 columns="<%=cc.getSetting("columns")%>" 252 244 sortby="<%=cc.getSortProperty()%>" … … 256 248 sc="<%=sc%>" 257 249 item="<%=itemType%>" 250 subclass="fulltable" 258 251 > 259 252 <tbl:hidden … … 524 517 datatype="string" 525 518 /> 526 <tbl:toolbar 527 visible="<%=mode.hasToolbar()%>" 528 > 529 <tbl:button 530 disabled="<%=!createPermission%>" 531 image="new.png" 532 onclick="newItem()" 533 title="New…" 534 tooltip="<%=createPermission ? "Create new raw bioassay" : "You do not have permission to create raw bioassays"%>" 535 /> 536 <tbl:button 537 image="delete.png" 538 onclick="deleteItems()" 539 title="Delete" 540 tooltip="Delete the selected items" 541 /> 542 <tbl:button 543 image="restore.png" 544 onclick="restoreItems()" 545 title="Restore" 546 tooltip="Restore the selected (deleted) items" 547 /> 548 <tbl:button 549 image="share.png" 550 onclick="shareItems()" 551 title="Share…" 552 tooltip="Share the selected items" 553 /> 554 <tbl:button 555 image="take_ownership.png" 556 onclick="setOwner()" 557 title="Set owner…" 558 tooltip="Change owner of the selected items" 559 /> 560 <tbl:button 561 image="columns.png" 562 onclick="configureColumns()" 563 title="Columns…" 564 tooltip="Show, hide and re-order columns" 565 /> 566 <tbl:button 567 image="add.png" 568 onclick="newExperiment()" 569 title="New experiment…" 570 tooltip="Create a new experiment from the selected raw bioassays" 571 visible="<%=sc.hasPermission(Permission.CREATE, Item.EXPERIMENT)%>" 572 /> 573 <tbl:button 574 image="import.png" 575 onclick="runPlugin('ImportItems')" 576 title="Import…" 577 tooltip="Import data" 578 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 579 /> 580 <tbl:button 581 image="export.png" 582 onclick="runPlugin('ExportItems')" 583 title="Export…" 584 tooltip="Export data" 585 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 586 /> 587 <tbl:button 588 image="runplugin.png" 589 onclick="runPlugin('RunListPlugin')" 590 title="Run plugin…" 591 tooltip="Run a plugin" 592 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 593 /> 594 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 595 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 596 </tbl:toolbar> 597 <tbl:navigator 598 page="<%=cc.getPage()%>" 599 rowsperpage="<%=cc.getRowsPerPage()%>" 600 totalrows="<%=rawBioAssays == null ? 0 : rawBioAssays.getTotalCount()%>" 601 visible="<%=mode.hasNavigator()%>" 602 /> 519 <div class="panelgroup bottomborder"> 520 <tbl:toolbar 521 subclass="bottomborder" 522 visible="<%=mode.hasToolbar()%>" 523 > 524 <tbl:button 525 disabled="<%=!createPermission%>" 526 image="new.png" 527 onclick="newItem()" 528 title="New…" 529 tooltip="<%=createPermission ? "Create new raw bioassay" : "You do not have permission to create raw bioassays"%>" 530 /> 531 <tbl:button 532 image="delete.png" 533 onclick="deleteItems()" 534 title="Delete" 535 tooltip="Delete the selected items" 536 /> 537 <tbl:button 538 image="restore.png" 539 onclick="restoreItems()" 540 title="Restore" 541 tooltip="Restore the selected (deleted) items" 542 /> 543 <tbl:button 544 image="share.png" 545 onclick="shareItems()" 546 title="Share…" 547 tooltip="Share the selected items" 548 /> 549 <tbl:button 550 image="take_ownership.png" 551 onclick="setOwner()" 552 title="Set owner…" 553 tooltip="Change owner of the selected items" 554 /> 555 <tbl:button 556 image="columns.png" 557 onclick="configureColumns()" 558 title="Columns…" 559 tooltip="Show, hide and re-order columns" 560 /> 561 <tbl:button 562 image="add.png" 563 onclick="newExperiment()" 564 title="New experiment…" 565 tooltip="Create a new experiment from the selected raw bioassays" 566 visible="<%=sc.hasPermission(Permission.CREATE, Item.EXPERIMENT)%>" 567 /> 568 <tbl:button 569 image="import.png" 570 onclick="runPlugin('ImportItems')" 571 title="Import…" 572 tooltip="Import data" 573 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 574 /> 575 <tbl:button 576 image="export.png" 577 onclick="runPlugin('ExportItems')" 578 title="Export…" 579 tooltip="Export data" 580 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 581 /> 582 <tbl:button 583 image="runplugin.png" 584 onclick="runPlugin('RunListPlugin')" 585 title="Run plugin…" 586 tooltip="Run a plugin" 587 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 588 /> 589 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 590 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 591 </tbl:toolbar> 592 <tbl:panel> 593 <tbl:presetselector 594 onchange="presetOnChange()" 595 /> 596 <tbl:navigator 597 page="<%=cc.getPage()%>" 598 rowsperpage="<%=cc.getRowsPerPage()%>" 599 totalrows="<%=rawBioAssays == null ? 0 : rawBioAssays.getTotalCount()%>" 600 visible="<%=mode.hasNavigator()%>" 601 /> 602 </tbl:panel> 603 </div> 603 604 <tbl:data> 604 605 <tbl:headers> … … 630 631 <tbl:rows> 631 632 <% 633 if (cc.getMessage() != null) 634 { 635 %> 636 <tbl:panel clazz="messagepanel"> 637 <div class="messagecontainer error"><%=cc.getMessage()%></div> 638 </tbl:panel> 639 <% 640 cc.setMessage(null); 641 } 632 642 int index = cc.getPage()*cc.getRowsPerPage(); 633 643 int selectedItemId = cc.getId(); … … 879 889 } 880 890 } 891 if (numListed == 0) 892 { 893 %> 894 <tbl:panel clazz="messagepanel"> 895 <div class="messagecontainer note"> 896 <%=rawBioAssays == null || rawBioAssays.getTotalCount() == 0 ? "No raw bioassays were found" : "No raw bioassays on this page. Please select another page!" %> 897 </div> 898 </tbl:panel> 899 <% 900 } 881 901 %> 882 902 </tbl:rows> 883 903 </tbl:data> 884 <%885 if (numListed == 0)886 {887 %>888 <tbl:panel><%=rawBioAssays == null || rawBioAssays.getTotalCount() == 0 ? "No raw bioassays were found" : "No raw bioassays on this page. Please select another page!" %></tbl:panel>889 <%890 }891 else892 {893 %>894 <tbl:navigator895 page="<%=cc.getPage()%>"896 rowsperpage="<%=cc.getRowsPerPage()%>"897 totalrows="<%=rawBioAssays == null ? 0 : rawBioAssays.getTotalCount()%>"898 visible="<%=mode.hasNavigator()%>"899 locked="true"900 />901 <%902 }903 %>904 904 </tbl:table> 905 </div> 906 905 907 <base:buttongroup subclass="dialogbuttons"> 906 908 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/rawbioassays/rawdata/list_rawdata.jsp
r5948 r5952 153 153 { 154 154 Main.viewOrEditItem('<%=ID%>', '<%=itemType.name()%>', itemId, false, '&rawbioassay_id=<%=rawBioAssayId%>'); 155 // Main.openPopup('index.jsp?ID=<%=ID%>&rawbioassay_id=<%=rawBioAssayId%>&cmd=ViewItem&item_id='+itemId, 'ViewRawData', 700, 500);156 155 } 157 156 function itemOnClick(evt, itemId) … … 189 188 function newReporterList() 190 189 { 191 Table.submitToPopup(formId, 'CreateReporterList', 540, 400);190 Table.submitToPopup(formId, 'CreateReporterList', 600, 400); 192 191 } 193 192 </script> … … 195 194 196 195 <base:body> 197 <p> 198 <p:path> 199 <p:pathelement title="Raw bioassays" href="<%="../index.jsp?ID="+ID%>" /> 200 <p:pathelement title="<%=HTML.encodeTags(rawBioAssay.getName())%>" /> 201 </p:path> 202 203 204 <t:tabcontrol id="main" active="rawdata" switch="switchTab"> 196 <p:path><p:pathelement 197 title="Raw bioassays" href="<%="../index.jsp?ID="+ID%>" 198 /><p:pathelement title="<%=HTML.encodeTags(rawBioAssay.getName())%>" 199 /></p:path> 200 201 <t:tabcontrol 202 id="main" 203 subclass="mastertabcontrol content" 204 active="rawdata" switch="switchTab"> 205 205 <t:tab id="properties" title="Properties" /> 206 206 <t:tab id="annotations" title="Annotations & parameters" … … 209 209 <t:tab id="rawdata" title="Raw data"> 210 210 211 <%212 if (cc.getMessage() != null)213 {214 %>215 <div class="error"><%=cc.getMessage()%></div>216 <%217 cc.setMessage(null);218 }219 %>220 211 <tbl:table 221 id="rawdata" 222 212 id="rawdata" 223 213 columns="<%=cc.getSetting("columns")%>" 224 214 sortby="<%=cc.getSortProperty()%>" 225 215 direction="<%=cc.getSortDirection()%>" 226 title="<%=title%>"227 216 action="index.jsp" 228 217 sc="<%=sc%>" 229 218 item="<%=itemType%>" 230 219 subcontext="<%=subContext%>" 220 subclass="fulltable" 231 221 > 232 222 <tbl:hidden … … 595 585 exportable="true" 596 586 /> 597 <tbl:toolbar 598 visible="<%=mode.hasToolbar()%>" 599 > 600 <tbl:button 601 image="columns.png" 602 onclick="configureColumns()" 603 title="Columns…" 604 tooltip="Show, hide and re-order columns" 605 /> 606 <tbl:button 607 image="add.png" 608 onclick="newReporterList()" 609 title="New reporter list…" 610 tooltip="Create a new reporter list from matching spots" 611 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 612 /> 613 <tbl:button 614 image="import.png" 615 onclick="runPlugin('ImportItems')" 616 title="Import…" 617 tooltip="Import data" 618 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 619 /> 620 <tbl:button 621 image="export.png" 622 onclick="runPlugin('ExportItems')" 623 title="Export…" 624 tooltip="Export data" 625 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 626 /> 627 <tbl:button 628 image="runplugin.png" 629 onclick="runPlugin('RunListPlugin')" 630 title="Run plugin…" 631 tooltip="Run a plugin" 632 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 633 /> 634 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 635 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 636 </tbl:toolbar> 637 <tbl:navigator 638 page="<%=cc.getPage()%>" 639 rowsperpage="<%=cc.getRowsPerPage()%>" 640 totalrows="<%=rawData == null ? 0 : rawData.getTotalCount()%>" 641 visible="<%=mode.hasNavigator()%>" 642 /> 587 <div class="panelgroup bottomborder"> 588 <tbl:toolbar 589 subclass="bottomborder" 590 visible="<%=mode.hasToolbar()%>" 591 > 592 <tbl:button 593 image="columns.png" 594 onclick="configureColumns()" 595 title="Columns…" 596 tooltip="Show, hide and re-order columns" 597 /> 598 <tbl:button 599 image="add.png" 600 onclick="newReporterList()" 601 title="New reporter list…" 602 tooltip="Create a new reporter list from matching spots" 603 visible="<%=sc.hasPermission(Permission.CREATE, Item.REPORTERLIST)%>" 604 /> 605 <tbl:button 606 image="import.png" 607 onclick="runPlugin('ImportItems')" 608 title="Import…" 609 tooltip="Import data" 610 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 611 /> 612 <tbl:button 613 image="export.png" 614 onclick="runPlugin('ExportItems')" 615 title="Export…" 616 tooltip="Export data" 617 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 618 /> 619 <tbl:button 620 image="runplugin.png" 621 onclick="runPlugin('RunListPlugin')" 622 title="Run plugin…" 623 tooltip="Run a plugin" 624 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 625 /> 626 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 627 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 628 </tbl:toolbar> 629 <tbl:panel> 630 <tbl:presetselector 631 onchange="presetOnChange()" 632 /> 633 <tbl:navigator 634 page="<%=cc.getPage()%>" 635 rowsperpage="<%=cc.getRowsPerPage()%>" 636 totalrows="<%=rawData == null ? 0 : rawData.getTotalCount()%>" 637 visible="<%=mode.hasNavigator()%>" 638 /> 639 </tbl:panel> 640 </div> 643 641 <tbl:data> 644 642 <tbl:headers> … … 670 668 <tbl:rows> 671 669 <% 670 if (cc.getMessage() != null) 671 { 672 %> 673 <tbl:panel clazz="messagepanel"> 674 <div class="messagecontainer error"><%=cc.getMessage()%></div> 675 </tbl:panel> 676 <% 677 cc.setMessage(null); 678 } 672 679 int index = cc.getPage()*cc.getRowsPerPage(); 673 680 int selectedItemId = cc.getId(); … … 874 881 } 875 882 } 883 if (numListed == 0) 884 { 885 %> 886 <tbl:panel clazz="messagepanel"> 887 <div class="messagecontainer note"> 888 <%=rawData == null || rawData.getTotalCount() == 0 ? "No raw data were found" : "No raw data on this page. Please select another page!" %> 889 </div> 890 </tbl:panel> 891 <% 892 } 876 893 %> 877 894 </tbl:rows> 878 895 </tbl:data> 879 <%880 if (numListed == 0)881 {882 %>883 <tbl:panel><%=rawData == null || rawData.getTotalCount() == 0 ? "No raw data were found" : "No raw data on this page. Please select another page!" %></tbl:panel>884 <%885 }886 else887 {888 %>889 <tbl:navigator890 page="<%=cc.getPage()%>"891 rowsperpage="<%=cc.getRowsPerPage()%>"892 totalrows="<%=rawData == null ? 0 : rawData.getTotalCount()%>"893 visible="<%=mode.hasNavigator()%>"894 locked="true"895 />896 <%897 }898 %>899 896 </tbl:table> 900 <base:buttongroup>901 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />902 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" />903 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />904 </base:buttongroup>905 906 897 </t:tab> 907 898 <t:tab id="overview" title="Overview" … … 911 902 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" /> 912 903 </t:tabcontrol> 904 905 <base:buttongroup> 906 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> 907 <base:button onclick="window.close();" title="Cancel" visible="<%=mode.hasCancelButton()%>" /> 908 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" /> 909 </base:buttongroup> 910 913 911 </base:body> 914 912 </base:page> -
trunk/www/views/rawbioassays/rawdata/view_rawdata.jsp
r5939 r5952 93 93 <base:page title="<%=title%>" type="popup"> 94 94 <base:head scripts="tabcontrol.js" styles="tabcontrol.css"> 95 <script language="JavaScript">96 function runPlugin(cmd)97 {98 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 540, 460);99 }100 </script>101 95 </base:head> 102 96 <base:body> -
trunk/www/views/reporterlists/list_reporterlists.jsp
r5951 r5952 178 178 179 179 <base:body> 180 <% 181 if (cc.getMessage() != null) 182 { 183 %> 184 <div class="error"><%=cc.getMessage()%></div> 185 <% 186 cc.setMessage(null); 187 } 188 %> 180 <h1><%=title==null ? "Reporter lists" : title%></h1> 181 <div class="content"> 189 182 <tbl:table 190 183 id="reporterLists" 191 192 184 columns="<%=cc.getSetting("columns")%>" 193 185 sortby="<%=cc.getSortProperty()%>" 194 186 direction="<%=cc.getSortDirection()%>" 195 title="<%=title%>"196 187 action="index.jsp" 197 188 sc="<%=sc%>" 198 189 item="<%=itemType%>" 190 subclass="fulltable" 199 191 > 200 192 <tbl:hidden … … 293 285 datatype="string" 294 286 /> 295 <tbl:toolbar 296 visible="<%=mode.hasToolbar()%>" 297 > 298 <tbl:button 299 disabled="<%=!createPermission%>" 300 image="new.png" 301 onclick="newItem()" 302 title="New…" 303 tooltip="<%=createPermission ? "Create new reporter list" : "You do not have permission to create reporter lists"%>" 304 /> 305 <tbl:button 306 image="delete.png" 307 onclick="deleteItems()" 308 title="Delete" 309 tooltip="Delete the selected items" 310 /> 311 <tbl:button 312 image="restore.png" 313 onclick="restoreItems()" 314 title="Restore" 315 tooltip="Restore the selected (deleted) items" 316 /> 317 <tbl:button 318 image="share.png" 319 onclick="shareItems()" 320 title="Share…" 321 tooltip="Share the selected items" 322 /> 323 <tbl:button 324 image="take_ownership.png" 325 onclick="setOwner()" 326 title="Set owner…" 327 tooltip="Change owner of the selected items" 328 /> 329 <tbl:button 330 image="columns.png" 331 onclick="configureColumns()" 332 title="Columns…" 333 tooltip="Show, hide and re-order columns" 334 /> 335 <tbl:button 336 image="import.png" 337 onclick="runPlugin('ImportItems')" 338 title="Import…" 339 tooltip="Import data" 340 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 341 /> 342 <tbl:button 343 image="export.png" 344 onclick="runPlugin('ExportItems')" 345 title="Export…" 346 tooltip="Export data" 347 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 348 /> 349 <tbl:button 350 image="runplugin.png" 351 onclick="runPlugin('RunListPlugin')" 352 title="Run plugin…" 353 tooltip="Run a plugin" 354 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 355 /> 356 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 357 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 358 </tbl:toolbar> 359 <tbl:navigator 360 page="<%=cc.getPage()%>" 361 rowsperpage="<%=cc.getRowsPerPage()%>" 362 totalrows="<%=reporterLists == null ? 0 : reporterLists.getTotalCount()%>" 363 visible="<%=mode.hasNavigator()%>" 364 /> 287 <div class="panelgroup bottomborder"> 288 <tbl:toolbar 289 subclass="bottomborder" 290 visible="<%=mode.hasToolbar()%>" 291 > 292 <tbl:button 293 disabled="<%=!createPermission%>" 294 image="new.png" 295 onclick="newItem()" 296 title="New…" 297 tooltip="<%=createPermission ? "Create new reporter list" : "You do not have permission to create reporter lists"%>" 298 /> 299 <tbl:button 300 image="delete.png" 301 onclick="deleteItems()" 302 title="Delete" 303 tooltip="Delete the selected items" 304 /> 305 <tbl:button 306 image="restore.png" 307 onclick="restoreItems()" 308 title="Restore" 309 tooltip="Restore the selected (deleted) items" 310 /> 311 <tbl:button 312 image="share.png" 313 onclick="shareItems()" 314 title="Share…" 315 tooltip="Share the selected items" 316 /> 317 <tbl:button 318 image="take_ownership.png" 319 onclick="setOwner()" 320 title="Set owner…" 321 tooltip="Change owner of the selected items" 322 /> 323 <tbl:button 324 image="columns.png" 325 onclick="configureColumns()" 326 title="Columns…" 327 tooltip="Show, hide and re-order columns" 328 /> 329 <tbl:button 330 image="import.png" 331 onclick="runPlugin('ImportItems')" 332 title="Import…" 333 tooltip="Import data" 334 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 335 /> 336 <tbl:button 337 image="export.png" 338 onclick="runPlugin('ExportItems')" 339 title="Export…" 340 tooltip="Export data" 341 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 342 /> 343 <tbl:button 344 image="runplugin.png" 345 onclick="runPlugin('RunListPlugin')" 346 title="Run plugin…" 347 tooltip="Run a plugin" 348 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 349 /> 350 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 351 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 352 </tbl:toolbar> 353 <tbl:panel> 354 <tbl:presetselector 355 onchange="presetOnChange()" 356 /> 357 <tbl:navigator 358 page="<%=cc.getPage()%>" 359 rowsperpage="<%=cc.getRowsPerPage()%>" 360 totalrows="<%=reporterLists == null ? 0 : reporterLists.getTotalCount()%>" 361 visible="<%=mode.hasNavigator()%>" 362 /> 363 </tbl:panel> 364 </div> 365 365 <tbl:data> 366 366 <tbl:headers> … … 392 392 <tbl:rows> 393 393 <% 394 if (cc.getMessage() != null) 395 { 396 %> 397 <tbl:panel clazz="messagepanel"> 398 <div class="messagecontainer error"><%=cc.getMessage()%></div> 399 </tbl:panel> 400 <% 401 cc.setMessage(null); 402 } 394 403 int index = cc.getPage()*cc.getRowsPerPage(); 395 404 int selectedItemId = cc.getId(); … … 494 503 } 495 504 } 505 if (numListed == 0) 506 { 507 %> 508 <tbl:panel clazz="messagepanel"> 509 <div class="messagecontainer note"> 510 <%=reporterLists == null || reporterLists.getTotalCount() == 0 ? "No reporter lists were found" : "No reporter lists on this page. Please select another page!" %> 511 </div> 512 </tbl:panel> 513 <% 514 } 496 515 %> 497 516 </tbl:rows> 498 517 </tbl:data> 499 <%500 if (numListed == 0)501 {502 %>503 <tbl:panel><%=reporterLists == null || reporterLists.getTotalCount() == 0 ? "No reporter lists were found" : "No reporter lists on this page. Please select another page!" %></tbl:panel>504 <%505 }506 else507 {508 %>509 <tbl:navigator510 page="<%=cc.getPage()%>"511 rowsperpage="<%=cc.getRowsPerPage()%>"512 totalrows="<%=reporterLists == null ? 0 : reporterLists.getTotalCount()%>"513 visible="<%=mode.hasNavigator()%>"514 locked="true"515 />516 <%517 }518 %>519 518 </tbl:table> 519 </div> 520 520 521 <base:buttongroup subclass="dialogbuttons"> 521 522 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/reporterlists/reporters/add_reporters_frameset.jsp
r5426 r5952 37 37 %> 38 38 39 <base:page type="frameset" title=""> 40 <base:head /> 41 <frameset rows="*,45" frameborder="no" border="0" > 42 <frame name="reporters" src="../../reporters/index.jsp?ID=<%=ID%>&mode=selectmultiplenobuttons" 43 scrolling="auto" marginwidth="0" marginheight="0" frameborder="0"> 44 <frame name="control" src="add_reporters_control.jsp?ID=<%=ID%>&reporterlist_id=<%=reporterListId%>" 45 scrolling="no" marginwidth="0" marginheight="0" frameborder="0"> 46 </frameset> 39 <base:page type="popup" title=""> 40 <base:head> 41 <script language="JavaScript"> 42 function addSelected() 43 { 44 var selected = top['reporters'].Table.getSelected('reporters'); 45 if (selected.length == 0) 46 { 47 alert('Please select at least one reporter in the list'); 48 return; 49 } 50 var frm = document.forms['addReporters']; 51 frm.which.value = 'selected'; 52 Forms.createHidden(frm, 'items', selected.join(',')); 53 frm.submit(); 54 } 55 function addCurrentPage() 56 { 57 var frm = document.forms['addReporters']; 58 frm.which.value = 'page'; 59 frm.submit(); 60 } 61 function addAll() 62 { 63 var frm = document.forms['addReporters']; 64 frm.which.value = 'all'; 65 frm.submit(); 66 } 67 </script> 68 </base:head> 69 70 <base:body> 71 <h1>Select reporters</h1> 72 <div id="f1" class="content"><iframe name="reporters" 73 src="../../reporters/index.jsp?ID=<%=ID%>&mode=selectmultiplenobuttons" 74 style="width: 100%; height: 100%;"></iframe></div> 75 76 <base:buttongroup subclass="dialogbuttons topborder"> 77 <base:button title="Add selected" onclick="addSelected()" /> 78 <base:button title="Add current page" onclick="addCurrentPage()" /> 79 <base:button title="Add all" onclick="addAll()" /> 80 <base:button title="Close" onclick="window.top.close()" /> 81 </base:buttongroup> 82 83 <form name="addReporters" action="index.jsp?ID=<%=ID%>" method="post" target="_top"> 84 <input type="hidden" name="cmd" value="AddReporters"> 85 <input type="hidden" name="reporterlist_id" value="<%=reporterListId%>"> 86 <input type="hidden" name="which" value=""> 87 </form> 88 89 </base:body> 47 90 </base:page> 48 91 -
trunk/www/views/reporterlists/reporters/index.jsp
r5630 r5952 179 179 DataResultIterator<ReporterData> result = query.iterate(dc); 180 180 int count = 0; 181 int total = 0; 181 182 while (result.hasNext()) 182 183 { 183 184 if (reporterList.addReporter(result.next(), null)) count++; 185 total++; 184 186 } 185 187 dc.commit(); 186 message = count + " reporters added";188 message = count + " of " + total + " reporters added"; 187 189 } 188 190 else -
trunk/www/views/reporterlists/reporters/list_reporters.jsp
r5951 r5952 191 191 192 192 <base:body> 193 <p> 194 <p:path> 195 <p:pathelement title="Reporter lists" href="<%="../index.jsp?ID="+ID%>" /> 196 <p:pathelement title="<%=HTML.encodeTags(reporterList.getName())%>" /> 197 </p:path> 193 <p:path><p:pathelement 194 title="Reporter lists" href="<%="../index.jsp?ID="+ID%>" 195 /><p:pathelement title="<%=HTML.encodeTags(reporterList.getName())%>" 196 /></p:path> 198 197 199 <t:tabcontrol id="main" active="reporters" switch="switchTab"> 198 <t:tabcontrol 199 id="main" 200 subclass="mastertabcontrol content" 201 active="reporters" switch="switchTab"> 200 202 <t:tab id="properties" title="Properties" /> 201 203 202 204 <t:tab id="reporters" title="Reporters"> 203 204 <%205 if (cc.getMessage() != null)206 {207 %>208 <div class="error"><%=cc.getMessage()%></div>209 <%210 cc.setMessage(null);211 }212 %>213 205 <tbl:table 214 206 id="reporters" 215 216 207 columns="<%=cc.getSetting("columns")%>" 217 208 sortby="<%=cc.getSortProperty()%>" 218 209 direction="<%=cc.getSortDirection()%>" 219 title="<%=title%>"220 210 action="index.jsp" 221 211 sc="<%=sc%>" 222 212 item="<%=itemType%>" 213 subclass="fulltable" 223 214 > 224 215 <tbl:hidden … … 361 352 exportable="true" 362 353 /> 363 <tbl:toolbar 364 visible="<%=mode.hasToolbar()%>" 365 > 366 <tbl:button 367 disabled="<%=!writePermission%>" 368 image="add.png" 369 onclick="addItems()" 370 title="Add…" 371 tooltip="<%=writePermission ? "Add reporters to this list" : "You do not have permission to add reporters" %>" 372 /> 373 <tbl:button 374 disabled="<%=!deletePermission%>" 375 image="delete.png" 376 onclick="deleteItems()" 377 title="Remove…" 378 tooltip="<%=deletePermission ? "Remove the selected items from this list" : "You do not have permission to remove reporters" %>" 379 /> 380 <tbl:button 381 image="columns.png" 382 onclick="configureColumns()" 383 title="Columns…" 384 tooltip="Show, hide and re-order columns" 385 /> 386 <tbl:button 387 image="import.png" 388 onclick="runPlugin('ImportItems')" 389 title="Import…" 390 tooltip="Import data" 391 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 392 /> 393 <tbl:button 394 image="export.png" 395 onclick="runPlugin('ExportItems')" 396 title="Export…" 397 tooltip="Export data" 398 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 399 /> 400 <tbl:button 401 image="runplugin.png" 402 onclick="runPlugin('RunListPlugin')" 403 title="Run plugin…" 404 tooltip="Run a plugin" 405 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 406 /> 407 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 408 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 409 </tbl:toolbar> 410 <tbl:navigator 411 page="<%=cc.getPage()%>" 412 rowsperpage="<%=cc.getRowsPerPage()%>" 413 totalrows="<%=reporters == null ? 0 : reporters.getTotalCount()%>" 414 visible="<%=mode.hasNavigator()%>" 415 /> 354 <div class="panelgroup bottomborder"> 355 <tbl:toolbar 356 subclass="bottomborder" 357 visible="<%=mode.hasToolbar()%>" 358 > 359 <tbl:button 360 disabled="<%=!writePermission%>" 361 image="add.png" 362 onclick="addItems()" 363 title="Add…" 364 tooltip="<%=writePermission ? "Add reporters to this list" : "You do not have permission to add reporters" %>" 365 /> 366 <tbl:button 367 disabled="<%=!deletePermission%>" 368 image="delete.png" 369 onclick="deleteItems()" 370 title="Remove…" 371 tooltip="<%=deletePermission ? "Remove the selected items from this list" : "You do not have permission to remove reporters" %>" 372 /> 373 <tbl:button 374 image="columns.png" 375 onclick="configureColumns()" 376 title="Columns…" 377 tooltip="Show, hide and re-order columns" 378 /> 379 <tbl:button 380 image="import.png" 381 onclick="runPlugin('ImportItems')" 382 title="Import…" 383 tooltip="Import data" 384 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 385 /> 386 <tbl:button 387 image="export.png" 388 onclick="runPlugin('ExportItems')" 389 title="Export…" 390 tooltip="Export data" 391 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 392 /> 393 <tbl:button 394 image="runplugin.png" 395 onclick="runPlugin('RunListPlugin')" 396 title="Run plugin…" 397 tooltip="Run a plugin" 398 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 399 /> 400 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 401 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 402 </tbl:toolbar> 403 <tbl:panel> 404 <tbl:presetselector 405 onchange="presetOnChange()" 406 /> 407 <tbl:navigator 408 page="<%=cc.getPage()%>" 409 rowsperpage="<%=cc.getRowsPerPage()%>" 410 totalrows="<%=reporters == null ? 0 : reporters.getTotalCount()%>" 411 visible="<%=mode.hasNavigator()%>" 412 /> 413 </tbl:panel> 414 </div> 416 415 <tbl:data> 417 416 <tbl:headers> … … 443 442 <tbl:rows> 444 443 <% 444 if (cc.getMessage() != null) 445 { 446 %> 447 <tbl:panel clazz="messagepanel"> 448 <div class="messagecontainer error"><%=cc.getMessage()%></div> 449 </tbl:panel> 450 <% 451 cc.setMessage(null); 452 } 445 453 int index = cc.getPage()*cc.getRowsPerPage(); 446 454 int selectedItemId = cc.getId(); … … 513 521 } 514 522 } 523 if (numListed == 0) 524 { 525 %> 526 <tbl:panel clazz="messagepanel"> 527 <div class="messagecontainer note"> 528 <%=reporters == null || reporters.getTotalCount() == 0 ? "No reporters were found" : "No reporters on this page. Please select another page!" %> 529 </div> 530 </tbl:panel> 531 <% 532 } 515 533 %> 516 534 </tbl:rows> 517 535 </tbl:data> 518 <%519 if (numListed == 0)520 {521 %>522 <tbl:panel><%=reporters == null || reporters.getTotalCount() == 0 ? "No reporters were found" : "No reporters on this page. Please select another page!" %></tbl:panel>523 <%524 }525 else526 {527 %>528 <tbl:navigator529 page="<%=cc.getPage()%>"530 rowsperpage="<%=cc.getRowsPerPage()%>"531 totalrows="<%=reporters == null ? 0 : reporters.getTotalCount()%>"532 visible="<%=mode.hasNavigator()%>"533 locked="true"534 />535 <%536 }537 %>538 536 </tbl:table> 537 </t:tab> 538 </t:tabcontrol> 539 539 540 <base:buttongroup subclass="dialogbuttons"> 540 541 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> … … 542 543 <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" /> 543 544 </base:buttongroup> 544 545 </t:tab>546 </t:tabcontrol>547 545 548 546 </base:body> -
trunk/www/views/reporters/list_reporters.jsp
r5948 r5952 172 172 function newReporterList() 173 173 { 174 Table.submitToPopup(formId, 'CreateReporterList', 540, 400);174 Table.submitToPopup(formId, 'CreateReporterList', 600, 400); 175 175 } 176 176 </script> … … 330 330 <tbl:toolbar 331 331 visible="<%=mode.hasToolbar()%>" 332 subclass=" topborderbottomborder"332 subclass="bottomborder" 333 333 > 334 334 <tbl:button -
trunk/www/views/sessions/list_sessions.jsp
r5951 r5952 134 134 135 135 <base:body> 136 <% 137 if (cc.getMessage() != null) 138 { 139 %> 140 <div class="error"><%=cc.getMessage()%></div> 141 <% 142 cc.setMessage(null); 143 } 144 %> 136 <h1><%=title==null ? "Sessions" : title%></h1> 137 <div class="content"> 145 138 <tbl:table 146 139 id="sessions" 147 148 140 columns="<%=cc.getSetting("columns")%>" 149 141 sortby="<%=cc.getSortProperty()%>" 150 142 direction="<%=cc.getSortDirection()%>" 151 title="<%=title%>"152 143 action="index.jsp" 153 144 sc="<%=sc%>" 154 145 item="<%=itemType%>" 146 subclass="fulltable" 155 147 > 156 148 <tbl:hidden … … 242 234 title="Permission" 243 235 /> 244 <tbl:toolbar 245 visible="<%=mode.hasToolbar()%>" 246 > 247 <tbl:button 248 image="columns.png" 249 onclick="configureColumns()" 250 title="Columns…" 251 tooltip="Show, hide and re-order columns" 252 /> 253 <tbl:button 254 image="export.png" 255 onclick="runPlugin('ExportItems')" 256 title="Export…" 257 tooltip="Export data" 258 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 259 /> 260 <tbl:button 261 image="runplugin.png" 262 onclick="runPlugin('RunListPlugin')" 263 title="Run plugin…" 264 tooltip="Run a plugin" 265 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 266 /> 267 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 268 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 269 </tbl:toolbar> 270 <tbl:navigator 271 page="<%=cc.getPage()%>" 272 rowsperpage="<%=cc.getRowsPerPage()%>" 273 totalrows="<%=sessions == null ? 0 : sessions.getTotalCount()%>" 274 visible="<%=mode.hasNavigator()%>" 275 /> 236 <div class="panelgroup bottomborder"> 237 <tbl:toolbar 238 subclass="bottomborder" 239 visible="<%=mode.hasToolbar()%>" 240 > 241 <tbl:button 242 image="columns.png" 243 onclick="configureColumns()" 244 title="Columns…" 245 tooltip="Show, hide and re-order columns" 246 /> 247 <tbl:button 248 image="export.png" 249 onclick="runPlugin('ExportItems')" 250 title="Export…" 251 tooltip="Export data" 252 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 253 /> 254 <tbl:button 255 image="runplugin.png" 256 onclick="runPlugin('RunListPlugin')" 257 title="Run plugin…" 258 tooltip="Run a plugin" 259 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 260 /> 261 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 262 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 263 </tbl:toolbar> 264 <tbl:panel> 265 <tbl:presetselector 266 onchange="presetOnChange()" 267 /> 268 <tbl:navigator 269 page="<%=cc.getPage()%>" 270 rowsperpage="<%=cc.getRowsPerPage()%>" 271 totalrows="<%=sessions == null ? 0 : sessions.getTotalCount()%>" 272 visible="<%=mode.hasNavigator()%>" 273 /> 274 </tbl:panel> 275 </div> 276 276 <tbl:data> 277 277 <tbl:headers> … … 303 303 <tbl:rows> 304 304 <% 305 if (cc.getMessage() != null) 306 { 307 %> 308 <tbl:panel clazz="messagepanel"> 309 <div class="messagecontainer error"><%=cc.getMessage()%></div> 310 </tbl:panel> 311 <% 312 cc.setMessage(null); 313 } 305 314 int index = cc.getPage()*cc.getRowsPerPage(); 306 315 int selectedItemId = cc.getId(); … … 368 377 <tbl:cell column="permission"><%=PermissionUtil.getShortPermissions(item)%></tbl:cell> 369 378 </tbl:row> 370 <% 371 } 379 <% 372 380 } 381 } 382 if (numListed == 0) 383 { 384 %> 385 <tbl:panel clazz="messagepanel"> 386 <div class="messagecontainer note"> 387 <%=sessions == null || sessions.getTotalCount() == 0 ? "No sessions were found" : "No sessions on this page. Please select another page!" %> 388 </div> 389 </tbl:panel> 390 <% 391 } 373 392 %> 374 393 </tbl:rows> 375 394 </tbl:data> 376 <%377 if (numListed == 0)378 {379 %>380 <tbl:panel><%=sessions == null || sessions.getTotalCount() == 0 ? "No sessions were found" : "No sessions on this page. Please select another page!" %></tbl:panel>381 <%382 }383 else384 {385 %>386 <tbl:navigator387 page="<%=cc.getPage()%>"388 rowsperpage="<%=cc.getRowsPerPage()%>"389 totalrows="<%=sessions == null ? 0 : sessions.getTotalCount()%>"390 visible="<%=mode.hasNavigator()%>"391 locked="true"392 />393 <%394 }395 %>396 395 </tbl:table> 396 </div> 397 397 398 <base:buttongroup subclass="dialogbuttons"> 398 399 <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" /> -
trunk/www/views/trashcan/list_trash.jsp
r5951 r5952 179 179 180 180 <base:body> 181 <% 182 if (cc.getMessage() != null) 183 { 184 %> 185 <div class="error"><%=cc.getMessage()%></div> 186 <% 187 cc.setMessage(null); 188 } 189 %> 181 <h1>Trashcan</h1> 182 <div class="content"> 190 183 <tbl:table 191 184 id="trashcan" 192 193 185 columns="<%=cc.getSetting("columns")%>" 194 186 action="index.jsp" … … 196 188 item="<%=itemType%>" 197 189 subcontext="<%=subContext%>" 190 subclass="fulltable" 198 191 > 199 192 <tbl:columndef … … 222 215 title="Description" 223 216 /> 224 <tbl:toolbar> 225 <tbl:button 226 image="deleteall.png" 227 onclick="deleteAllItems()" 228 title="Empty trash…" 229 tooltip="Delete all items from the trashcan" 230 disabled="<%=totalCount <= 0%>" 231 /> 232 <tbl:button 233 image="delete_permanently.png" 234 onclick="deleteItems()" 235 title="Delete permanently…" 236 tooltip="Delete the selected items permanently" 237 disabled="<%=totalCount <= 0%>" 238 /> 239 <tbl:button 240 image="restore.png" 241 onclick="restoreItems()" 242 title="Restore" 243 tooltip="Restore the selected items" 244 disabled="<%=totalCount <= 0%>" 245 /> 246 <tbl:button 247 image="columns.png" 248 onclick="configureColumns()" 249 title="Columns…" 250 tooltip="Show, hide and re-order columns" 251 /> 252 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 253 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 254 </tbl:toolbar> 255 <tbl:navigator 256 page="<%=cc.getPage()%>" 257 rowsperpage="<%=cc.getRowsPerPage()%>" 258 totalrows="<%=trash == null ? 0 : trash.getTotalCount()%>" 259 /> 217 <div class="panelgroup bottomborder"> 218 <tbl:toolbar subclass="bottomborder"> 219 <tbl:button 220 image="deleteall.png" 221 onclick="deleteAllItems()" 222 title="Empty trash…" 223 tooltip="Delete all items from the trashcan" 224 disabled="<%=totalCount <= 0%>" 225 /> 226 <tbl:button 227 image="delete_permanently.png" 228 onclick="deleteItems()" 229 title="Delete permanently…" 230 tooltip="Delete the selected items permanently" 231 disabled="<%=totalCount <= 0%>" 232 /> 233 <tbl:button 234 image="restore.png" 235 onclick="restoreItems()" 236 title="Restore" 237 tooltip="Restore the selected items" 238 disabled="<%=totalCount <= 0%>" 239 /> 240 <tbl:button 241 image="columns.png" 242 onclick="configureColumns()" 243 title="Columns…" 244 tooltip="Show, hide and re-order columns" 245 /> 246 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 247 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 248 </tbl:toolbar> 249 <tbl:panel> 250 <tbl:presetselector 251 onchange="presetOnChange()" 252 /> 253 <tbl:navigator 254 page="<%=cc.getPage()%>" 255 rowsperpage="<%=cc.getRowsPerPage()%>" 256 totalrows="<%=trash == null ? 0 : trash.getTotalCount()%>" 257 /> 258 </tbl:panel> 259 </div> 260 260 <tbl:data> 261 261 <tbl:headers> … … 281 281 <tbl:rows> 282 282 <% 283 if (cc.getMessage() != null) 284 { 285 %> 286 <tbl:panel clazz="messagepanel"> 287 <div class="messagecontainer error"><%=cc.getMessage()%></div> 288 </tbl:panel> 289 <% 290 cc.setMessage(null); 291 } 283 292 int index = cc.getPage()*cc.getRowsPerPage(); 284 293 if (trash != null) … … 344 353 } 345 354 } 355 if (numListed == 0) 356 { 357 %> 358 <tbl:panel clazz="messagepanel"> 359 <div class="messagecontainer note"> 360 <%=trash == null || trash.size() == 0 ? "No items were found" : "No items on this page. Please select another page!" %> 361 </div> 362 </tbl:panel> 363 <% 364 } 346 365 %> 347 366 </tbl:rows> 348 367 </tbl:data> 349 <%350 if (numListed == 0)351 {352 %>353 <tbl:panel><%=trash == null || trash.size() == 0 ? "No items were found" : "No items on this page. Please select another page!" %></tbl:panel>354 <%355 }356 else357 {358 %>359 <tbl:navigator360 page="<%=cc.getPage()%>"361 rowsperpage="<%=cc.getRowsPerPage()%>"362 totalrows="<%=trash == null ? 0 : trash.getTotalCount()%>"363 locked="true"364 />365 <%366 }367 %>368 368 </tbl:table> 369 </div> 369 370 370 371 </base:body>
Note: See TracChangeset
for help on using the changeset viewer.