Changeset 5952


Ignore:
Timestamp:
Feb 10, 2012, 1:27:27 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1655: GUI improvements

List page in the View menu

Location:
trunk
Files:
1 deleted
39 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/ModeInfo.java

    r4889 r5952  
    106106  public static final ModeInfo SELECTMULTIPLE_NOBUTTONS =
    107107    new ModeInfo(
    108         "selectmultiplenobuttons", "popup", "Select one or more {many}",
     108        "selectmultiplenobuttons", "iframe", "Select one or more {many}",
    109109        HAS_TOOLBAR, HAS_FILTER, HAS_NAVIGATOR, NO_PROPERTYLINK,
    110110        HAS_CHECK, NO_RADIO, HAS_ICONS, IS_COMPACT, NO_EDITLINK,
  • trunk/www/admin/diskusage/list_users.jsp

    r5950 r5952  
    143143    function impersonate(userId)
    144144    {
    145       Main.openPopup('../../impersonate.jsp?ID=<%=ID%>&user_id='+userId, 'Impersonate', 480, 240);
     145      Main.openPopup('../../impersonate.jsp?ID=<%=ID%>&user_id='+userId, 'Impersonate', 450, 300);
    146146    }
    147147    function setShowStatistics()
  • trunk/www/biomaterials/tags/list_tags.jsp

    r5951 r5952  
    289289      <div class="panelgroup bottomborder">
    290290        <tbl:toolbar
     291          subclass="bottomborder"
    291292          visible="<%=mode.hasToolbar()%>"
    292           subclass="bottomborder"
    293293          >
    294294          <tbl:button
  • trunk/www/filemanager/files/list_files.jsp

    r5951 r5952  
    473473  <div id="main" class="absolutefull"
    474474    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     %>
    484475    <tbl:table
    485       id="files"
    486        
     476      id="files"
    487477      columns="<%=cc.getSetting("columns")%>"
    488478      sortby="<%=cc.getSortProperty()%>"
    489479      direction="<%=cc.getSortDirection()%>"
    490       title="<%=title%>"
    491480      action="index.jsp"
    492481      sc="<%=sc%>"
    493482      item="<%=itemType%>"
    494483      subcontext="<%=subcontext%>"
     484      subclass="fulltable topborder"
    495485      >
    496486      <tbl:hidden
     
    719709        datatype="string"
    720710      />
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    790           tooltip="Change owner of the selected items"
    791         />
    792         <tbl:button
    793           image="columns.png"
    794           onclick="configureColumns()"
    795           title="Columns&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     775            tooltip="Change owner of the selected items"
     776          />
     777          <tbl:button
     778            image="columns.png"
     779            onclick="configureColumns()"
     780            title="Columns&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    832825      <tbl:data>
    833826        <tbl:headers>
     
    859852        <tbl:rows>
    860853          <%
     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          }
    861863          int index = 0;
    862864          int selectedItemId = cc.getId();
     
    11481150            }
    11491151          }
     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          }
    11501167          %>
    11511168          </tbl:rows>
    11521169        </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         else
    1162         {
    1163           %>
    1164           <tbl:navigator
    1165             page="<%=cc.getPage()%>"
    1166             rowsperpage="<%=cc.getRowsPerPage()%>"
    1167             totalrows="<%=numFiles + numDirectories%>"
    1168             visible="<%=isSearch && mode.hasNavigator()%>"
    1169             locked="true"
    1170           />
    1171           <%
    1172         }
    1173       %>
    11741170    </tbl:table>
    11751171  </div>
  • trunk/www/filemanager/fileservers/list_fileservers.jsp

    r5951 r5952  
    177177 
    178178  <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">
    188181    <tbl:table
    189182      id="servers"
    190        
    191183      columns="<%=cc.getSetting("columns")%>"
    192184      sortby="<%=cc.getSortProperty()%>"
    193185      direction="<%=cc.getSortDirection()%>"
    194       title="<%=title%>"
    195186      action="index.jsp"
    196187      sc="<%=sc%>"
    197188      item="<%=itemType%>"
     189      subclass="fulltable"
    198190      >
    199191      <tbl:hidden
     
    291283        datatype="string"
    292284      />
    293       <tbl:toolbar
    294         visible="<%=mode.hasToolbar()%>"
    295         >
    296         <tbl:button
    297           disabled="<%=!createPermission%>"
    298           image="new.png"
    299           onclick="newItem()"
    300           title="New&hellip;"
    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&hellip;"
    319           tooltip="Share the selected items"
    320         />
    321         <tbl:button
    322           image="take_ownership.png"
    323           onclick="setOwner()"
    324           title="Set owner&hellip;"
    325           tooltip="Change owner of the selected items"
    326         />
    327         <tbl:button
    328           image="columns.png"
    329           onclick="configureColumns()"
    330           title="Columns&hellip;"
    331           tooltip="Show, hide and re-order columns"
    332         />
    333         <tbl:button
    334           image="import.png"
    335           onclick="runPlugin('ImportItems')"
    336           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     313            tooltip="Share the selected items"
     314          />
     315          <tbl:button
     316            image="take_ownership.png"
     317            onclick="setOwner()"
     318            title="Set owner&hellip;"
     319            tooltip="Change owner of the selected items"
     320          />
     321          <tbl:button
     322            image="columns.png"
     323            onclick="configureColumns()"
     324            title="Columns&hellip;"
     325            tooltip="Show, hide and re-order columns"
     326          />
     327          <tbl:button
     328            image="import.png"
     329            onclick="runPlugin('ImportItems')"
     330            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    363363      <tbl:data>
    364364        <tbl:headers>
     
    390390        <tbl:rows>
    391391          <%
     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          }
    392401          int index = cc.getPage()*cc.getRowsPerPage();
    393402          int selectedItemId = cc.getId();
     
    487496              }
    488497            }
     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          }
    489508          %>
    490           </tbl:rows>
     509        </tbl:rows>
    491510      </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       else
    500       {
    501         %>
    502         <tbl:navigator
    503           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       %>
    512511    </tbl:table>
     512    </div>
     513   
    513514    <base:buttongroup subclass="dialogbuttons">
    514515      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/include/menu.jsp

    r5946 r5952  
    168168        String link = active ?
    169169          "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)";
    171171        %>
    172172        <m:menuitem
     
    229229    <m:menuitem
    230230      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)"%>"
    232232      icon="<%=activeProjectId == 0 ? "checkedmenu.png" : null%>"
    233233      enabled="<%=activeProjectId != 0%>"
  • trunk/www/include/styles/table.css

    r5951 r5952  
    8080
    8181/* The container <div> for the data table */
    82 .itemlist div.data > table
    83 {}
     82.itemlist div.data
     83{
     84  border: 1px solid #A0A0A0;
     85}
    8486
    8587/* The actual table containing data */
    8688.itemlist div.data > table
    8789{
    88   border: 1px solid #A0A0A0;
    8990  width: 100%;
    9091  border-collapse: collapse;
     
    158159.itemlist div.data > table > tbody.rows > tr
    159160{
    160   border-bottom: 1px dotted #A0A0A0;
     161  border-top: 1px dotted #A0A0A0;
    161162}
    162163
     
    231232}
    232233
     234.fulltable div.data
     235{
     236  border: 0px !important;
     237}
     238
    233239.fulltable div.data > table
    234240{
    235   border: 0px !important;
    236241  border-bottom: 1px solid #A0A0A0 !important;
    237242}
     243
     244.itemlist div.data .joustcell
     245{
     246  white-space: nowrap;
     247}
     248
    238249
    239250/*
  • trunk/www/lims/arraydesigns/features/view_feature.jsp

    r5924 r5952  
    104104  <base:page title="<%=title%>" type="popup">
    105105  <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>
    112106  </base:head>
    113107  <base:body>
  • trunk/www/lims/plates/events/list_events.jsp

    r5948 r5952  
    152152    function runPlugin(cmd)
    153153    {
    154       Table.submitToPopup(formId, cmd, 540, 460);
     154      Table.submitToPopup(formId, cmd, 750, 500);
    155155    }
    156156    function returnSelected()
  • trunk/www/lims/plates/wells/list_wells.jsp

    r5948 r5952  
    157157    function runPlugin(cmd)
    158158    {
    159       Table.submitToPopup(formId, cmd, 540, 460);
     159      Table.submitToPopup(formId, cmd, 750, 500);
    160160    }
    161161    function returnSelected()
     
    185185    function newReporterList()
    186186    {
    187       Table.submitToPopup(formId, 'CreateReporterList', 540, 400);
     187      Table.submitToPopup(formId, 'CreateReporterList', 600, 400);
    188188    }
    189189    </script>
  • trunk/www/lims/platetypes/eventtypes/list_eventtypes.jsp

    r5948 r5952  
    148148    function runPlugin(cmd)
    149149    {
    150       Table.submitToPopup(formId, cmd, 540, 460);
     150      Table.submitToPopup(formId, cmd, 750, 500);
    151151    }
    152152    function returnSelected()
  • trunk/www/my_base/messages/list_messages.jsp

    r5951 r5952  
    173173 
    174174  <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">
    184177    <tbl:table
    185178      id="messages"
    186        
    187179      columns="<%=cc.getSetting("columns")%>"
    188180      sortby="<%=cc.getSortProperty()%>"
    189181      direction="<%=cc.getSortDirection()%>"
    190       title="<%=title%>"
    191182      action="index.jsp"
    192183      sc="<%=sc%>"
    193184      item="<%=itemType%>"
     185      subclass="fulltable"
    194186      >
    195187      <tbl:hidden
     
    263255        title="Permission"
    264256      />
    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&hellip;"
    290           tooltip="Show, hide and re-order columns"
    291         />
    292         <tbl:button
    293           image="import.png"
    294           onclick="runPlugin('ImportItems')"
    295           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     284            tooltip="Show, hide and re-order columns"
     285          />
     286          <tbl:button
     287            image="import.png"
     288            onclick="runPlugin('ImportItems')"
     289            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    322322      <tbl:data>
    323323        <tbl:headers>
     
    349349        <tbl:rows>
    350350          <%
     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          }
    351360          int index = cc.getPage()*cc.getRowsPerPage();
    352361          int selectedItemId = cc.getId();
     
    417426              }
    418427            }
     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          }
    419438          %>
    420           </tbl:rows>
     439        </tbl:rows>
    421440      </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       else
    430       {
    431         %>
    432         <tbl:navigator
    433           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       %>
    442441    </tbl:table>
     442    </div>
     443   
    443444    <base:buttongroup subclass="dialogbuttons">
    444445      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/my_base/projects/items/list_items.jsp

    r5948 r5952  
    180180    function setToActive()
    181181    {
    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);
    183183    }
    184184    function switchTab(tabControlId, tabId)
     
    197197 
    198198  <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">
    206208    <t:tab id="properties" title="Properties" />
    207209   
    208210    <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     %>
    219211    <tbl:table
    220212      id="items"
    221        
    222213      columns="<%=cc.getSetting("columns")%>"
    223214      action="index.jsp"
     
    225216      item="<%=itemType%>"
    226217      subcontext="<%=subContext%>"
     218      subclass="fulltable"
    227219      >
    228220      <tbl:hidden
     
    279271        datatype="string"
    280272      />
    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&hellip;"
    298           tooltip="Share the selected items"
    299         />
    300         <tbl:button
    301           image="take_ownership.png"
    302           onclick="setOwner()"
    303           title="Set owner&hellip;"
    304           tooltip="Change owner of the selected items"
    305         />
    306         <tbl:button
    307           image="columns.png"
    308           onclick="configureColumns()"
    309           title="Columns&hellip;"
    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&hellip;"
     291            tooltip="Share the selected items"
     292          />
     293          <tbl:button
     294            image="take_ownership.png"
     295            onclick="setOwner()"
     296            title="Set owner&hellip;"
     297            tooltip="Change owner of the selected items"
     298          />
     299          <tbl:button
     300            image="columns.png"
     301            onclick="configureColumns()"
     302            title="Columns&hellip;"
     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>
    319308        <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          />
    325319        </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>
    339321      <tbl:data>
    340322        <tbl:headers>
     
    360342        <tbl:rows>
    361343          <%
     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          }
    362365          int index = cc.getPage()*cc.getRowsPerPage();
    363366          if (items != null)
     
    448451              }
    449452            }
     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          }
    450463          %>
    451           </tbl:rows>
     464        </tbl:rows>
    452465      </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       else
    461       {
    462         %>
    463         <tbl:navigator
    464           page="<%=cc.getPage()%>"
    465           rowsperpage="<%=cc.getRowsPerPage()%>"
    466           totalrows="<%=items == null ? 0 : items.getTotalCount()%>"
    467           locked="true"
    468         />
    469         <%
    470       }
    471       %>
    472466    </tbl:table>
    473 
    474467    </t:tab>
    475468    </t:tabcontrol>
    476 
    477469  </base:body>
    478470  </base:page>
  • trunk/www/my_base/projects/list_projects.jsp

    r5951 r5952  
    173173 
    174174  <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">
    184177    <tbl:table
    185178      id="projects"
    186        
    187179      columns="<%=cc.getSetting("columns")%>"
    188180      sortby="<%=cc.getSortProperty()%>"
    189181      direction="<%=cc.getSortDirection()%>"
    190       title="<%=title%>"
    191182      action="index.jsp"
    192183      sc="<%=sc%>"
    193184      item="<%=itemType%>"
     185      subclass="fulltable"
    194186      >
    195187      <tbl:hidden
     
    268260        title="Permission"
    269261      />
    270       <tbl:toolbar
    271         visible="<%=mode.hasToolbar()%>"
    272         >
    273         <tbl:button
    274           disabled="<%=!createPermission%>"
    275           image="new.png"
    276           onclick="newItem()"
    277           title="New&hellip;"
    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&hellip;"
    296           tooltip="Change owner of the selected items"
    297         />
    298         <tbl:button
    299           image="columns.png"
    300           onclick="configureColumns()"
    301           title="Columns&hellip;"
    302           tooltip="Show, hide and re-order columns"
    303         />
    304         <tbl:button
    305           image="import.png"
    306           onclick="runPlugin('ImportItems')"
    307           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     290            tooltip="Change owner of the selected items"
     291          />
     292          <tbl:button
     293            image="columns.png"
     294            onclick="configureColumns()"
     295            title="Columns&hellip;"
     296            tooltip="Show, hide and re-order columns"
     297          />
     298          <tbl:button
     299            image="import.png"
     300            onclick="runPlugin('ImportItems')"
     301            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    334334      <tbl:data>
    335335        <tbl:headers>
     
    361361        <tbl:rows>
    362362          <%
     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          }
    363372          int index = cc.getPage()*cc.getRowsPerPage();
    364373          int selectedItemId = Values.getInt(request.getParameter("item_id"));
     
    438447              }
    439448            }
     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          }
    440459          %>
    441           </tbl:rows>
     460        </tbl:rows>
    442461      </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       else
    451       {
    452         %>
    453         <tbl:navigator
    454           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       %>
    463462    </tbl:table>
     463    </div>
     464   
    464465    <base:buttongroup subclass="dialogbuttons">
    465466      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/derivedbioassays/list_bioassays.jsp

    r5951 r5952  
    215215 
    216216  <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">
    226219    <tbl:table
    227220      id="bioassays"
    228        
    229221      columns="<%=cc.getSetting("columns")%>"
    230222      sortby="<%=cc.getSortProperty()%>"
    231223      direction="<%=cc.getSortDirection()%>"
    232       title="<%=title%>"
    233224      action="index.jsp"
    234225      sc="<%=sc%>"
    235226      item="<%=itemType%>"
     227      subclass="fulltable"
    236228      >
    237229      <tbl:hidden
     
    427419        datatype="string"
    428420      />
    429       <tbl:toolbar
    430         visible="<%=mode.hasToolbar()%>"
    431         >
    432         <tbl:button
    433           disabled="<%=!createPermission%>"
    434           image="new.png"
    435           onclick="newItem()"
    436           title="New&hellip;"
    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&hellip;"
    455           tooltip="Share the selected items"
    456         />
    457         <tbl:button
    458           image="take_ownership.png"
    459           onclick="setOwner()"
    460           title="Set owner&hellip;"
    461           tooltip="Change owner of the selected items"
    462         />
    463         <tbl:button
    464           image="columns.png"
    465           onclick="configureColumns()"
    466           title="Columns&hellip;"
    467           tooltip="Show, hide and re-order columns"
    468         />
    469         <tbl:button
    470           image="import.png"
    471           onclick="runPlugin('ImportItems')"
    472           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     449            tooltip="Share the selected items"
     450          />
     451          <tbl:button
     452            image="take_ownership.png"
     453            onclick="setOwner()"
     454            title="Set owner&hellip;"
     455            tooltip="Change owner of the selected items"
     456          />
     457          <tbl:button
     458            image="columns.png"
     459            onclick="configureColumns()"
     460            title="Columns&hellip;"
     461            tooltip="Show, hide and re-order columns"
     462          />
     463          <tbl:button
     464            image="import.png"
     465            onclick="runPlugin('ImportItems')"
     466            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    499499      <tbl:data>
    500500        <tbl:headers>
     
    526526        <tbl:rows>
    527527          <%
     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          }
    528537          int index = cc.getPage()*cc.getRowsPerPage();
    529538          int selectedItemId = cc.getId();
     
    766775              }
    767776            }
     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          }
    768787          %>
    769           </tbl:rows>
     788        </tbl:rows>
    770789      </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       else
    779       {
    780         %>
    781         <tbl:navigator
    782           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       %>
    791790    </tbl:table>
     791    </div>
     792   
    792793    <base:buttongroup subclass="dialogbuttons">
    793794      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/experiments/bioassays/list_bioassays.jsp

    r5951 r5952  
    203203 
    204204  <base:body>
    205     <p>
    206205    <%
    207206    if (!mode.isSelectionMode())
    208207    {
    209208      %>
    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>
    216215      <%
    217216    }
     217    else
     218    {
     219      %>
     220      <h1><%=title %></h1>
     221      <%
     222    }
    218223    %>
    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">
    221228    <t:tab id="properties" title="Properties" />
    222229   
     
    225232   
    226233    <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     %>
    236234    <tbl:table
    237235      id="bioAssaySets"
    238        
    239236      columns="<%=cc.getSetting("columns")%>"
    240237      sortby="<%=cc.getSortProperty()%>"
    241238      direction="<%=cc.getSortDirection()%>"
    242       title="<%=title%>"
    243239      action="index.jsp"
    244240      sc="<%=sc%>"
    245241      item="<%=itemType%>"
     242      subclass="fulltable"
    246243      >
    247244      <tbl:hidden
     
    379376      }
    380377      %>
    381       <tbl:toolbar
    382         visible="<%=mode.hasToolbar()%>"
    383         >
    384         <tbl:button
    385           image="columns.png"
    386           onclick="configureColumns()"
    387           title="Columns&hellip;"
    388           tooltip="Show, hide and re-order columns"
    389         />
    390         <tbl:button
    391           image="import.png"
    392           onclick="runPlugin('ImportItems')"
    393           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     387            tooltip="Show, hide and re-order columns"
     388          />
     389          <tbl:button
     390            image="import.png"
     391            onclick="runPlugin('ImportItems')"
     392            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    439444      <tbl:data>
    440445        <tbl:headers>
     
    466471        <tbl:rows>
    467472          <%
     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          }
    468482          int index = cc.getPage()*cc.getRowsPerPage();
    469483          int selectedItemId = cc.getId();
     
    597611            }
    598612          }
     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          }
    599623          %>
    600624          </tbl:rows>
    601625        </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       else
    610       {
    611         %>
    612         <tbl:navigator
    613           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 
    623626    </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>
    629627    </t:tab>
    630628   
     
    633631    <t:tab id="overviewplots" title="Overview plots"
    634632      visible="<%=overviewPlotInvoker.getNumExtensions() > 0%>" />
    635    
    636633    </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>
    637640
    638641  </base:body>
  • trunk/www/views/experiments/bioassaysets/analysis_tree.jsp

    r5948 r5952  
    528528    }
    529529    </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     %>
    541530    <tbl:table
    542531      id="bioAssaySets"
     
    544533      sortby="<%=cc.getSortProperty()%>"
    545534      direction="<%=cc.getSortDirection()%>"
    546       title="<%=title%>"
    547535      action="<%=transformationId != 0 ? "../bioassaysets/index.jsp" : "index.jsp"%>"
    548536      sc="<%=sc%>"
    549537      item="<%=itemType%>"
     538      subclass="<%=root == null ? "fulltable" : "" %>"
    550539      >
    551540      <tbl:hidden
     
    687676      />
    688677
     678      <div class="panelgroup">
    689679      <tbl:toolbar
    690680        visible="<%=mode.hasToolbar()%>"
     681        subclass="<%=root == null ? "bottomborder" : "topborder leftborder rightborder" %>"
    691682        >
    692683        <tbl:button
     
    742733          wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/>
    743734      </tbl:toolbar>
    744       <tbl:data>
     735      </div>
     736      <tbl:data style="<%=root == null ? "top: 1.75em;" : "" %>">
    745737        <tbl:headers>
    746738          <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>
    748745            <tbl:columnheaders />
    749746          </tbl:headerrow>
     
    771768        <tbl:rows>
    772769          <%
     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          }
    773779          int index = cc.getPage()*cc.getRowsPerPage();
    774780          int selectedItemId = cc.getId();
     
    894900                    />&nbsp;</tbl:header>
    895901                 
    896                   <tbl:cell clazz="joustcell" column="name">
     902                  <tbl:cell clazz="cell joustcell" column="name">
    897903                    <div id="tree.<%=joustId%>" class="link"
    898904                      onclick="<%=onClick%>(<%=writePermission ? "event" : null%>, <%=itemId%>)"
     
    10261032            }
    10271033          }
     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          }
    10281044          %>
    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>
    10391047    </tbl:table>
    10401048
  • trunk/www/views/experiments/bioassaysets/list_bioassaysets.jsp

    r5948 r5952  
    227227 
    228228  <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">
    236238    <t:tab id="properties" title="Properties" />
    237239   
    238240    <t:tab id="bioassaysets" title="Bioassay sets">
    239    
    240241      <jsp:include page="analysis_tree.jsp">
    241242        <jsp:param name="ID" value="<%=ID%>" />
    242243        <jsp:param name="experiment_id" value="<%=experimentId%>" />
    243244      </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>
    250245    </t:tab>
    251246   
     
    260255    </t:tabcontrol>
    261256
     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
    262264  </base:body>
    263265  </base:page>
  • trunk/www/views/experiments/explorer/search/list.jsp

    r5949 r5952  
    158158    function newReporterList()
    159159    {
    160       Table.submitToPopup(formId, 'CreateReporterList', 540, 400);
     160      Table.submitToPopup(formId, 'CreateReporterList', 600, 400);
    161161    }
    162162  </script>
    163163  </base:head>
    164164  <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">
    175176    <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     %>
    185177    <tbl:table
    186178      id="reporters"
    187        
    188179      columns="<%=cc.getSetting("columns")%>"
    189180      sortby="<%=cc.getSortProperty()%>"
    190181      direction="<%=cc.getSortDirection()%>"
    191       title="<%=title%>"
    192182      action="index.jsp"
    193183      sc="<%=sc%>"
    194184      item="<%=itemType%>"
    195185      subcontext="<%=subContext%>"
     186      subclass="fulltable"
    196187      >
    197188      <tbl:hidden
     
    227218        multiple="false"
    228219      />     
    229        
    230       <tbl:toolbar>
    231         <tbl:button
    232           image="columns.png"
    233           onclick="configureColumns()"
    234           title="Columns&hellip;"
    235           tooltip="Show, hide and re-order columns"
    236         />
    237         <tbl:button
    238           image="add.png"
    239           onclick="newReporterList()"
    240           title="New reporter list&hellip;"
    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&hellip;"
     227            tooltip="Show, hide and re-order columns"
     228          />
     229          <tbl:button
     230            image="add.png"
     231            onclick="newReporterList()"
     232            title="New reporter list&hellip;"
     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>
    254248      <tbl:data>
    255249        <tbl:headers>
     
    265259        <tbl:rows>
    266260      <%
     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      }
    267270      int rowIndex = cc.getPage()*cc.getRowsPerPage();
    268271      if (reporters != null)
     
    304307        }
    305308      }
     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      }
    306319      %>
    307320      </tbl:rows>
    308321      </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       else
    317       {
    318         %>
    319         <tbl:navigator
    320           page="<%=cc.getPage()%>"
    321           rowsperpage="<%=cc.getRowsPerPage()%>"
    322           totalrows="<%=totalReporters%>"
    323           locked="true"
    324         />
    325         <%
    326       }
    327       %>
    328322      </tbl:table>
    329323    </t:tab>
  • trunk/www/views/experiments/explorer/view/view.jsp

    r5946 r5952  
    582582       
    583583          <%
    584           if (positionIndex == 0)
     584          if (positionIndex <= 0)
    585585          {
    586586            %>
    587587            <base:icon image="first.png" enabled="false" />
     588            <base:icon image="previous.png" enabled="false" />
    588589            <%
    589590          }
     
    593594            <a href="index.jsp?ID=<%=ID%>&cmd=SetSpotIndex&bioassayset_id=<%=bioAssaySetId%>&spotIndex=0"
    594595              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           else
    604           {
    605             %>
    606596            <a href="index.jsp?ID=<%=ID%>&cmd=SetSpotIndex&bioassayset_id=<%=bioAssaySetId%>&spotIndex=<%=positionIndex-1%>"
    607597              title="Go the previous position"><base:icon image="previous.png" /></a>
  • trunk/www/views/experiments/list_experiments.jsp

    r5951 r5952  
    186186 
    187187  <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">
    197190    <tbl:table
    198191      id="experiments"
    199        
    200192      columns="<%=cc.getSetting("columns")%>"
    201193      sortby="<%=cc.getSortProperty()%>"
    202194      direction="<%=cc.getSortDirection()%>"
    203       title="<%=title%>"
    204195      action="index.jsp"
    205196      sc="<%=sc%>"
    206197      item="<%=itemType%>"
     198      subclass="fulltable"
    207199      >
    208200      <tbl:hidden
     
    406398        datatype="string"
    407399      />
    408       <tbl:toolbar
    409         visible="<%=mode.hasToolbar()%>"
    410         >
    411         <tbl:button
    412           disabled="<%=!createPermission%>"
    413           image="new.png"
    414           onclick="newItem()"
    415           title="New&hellip;"
    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&hellip;"
    434           tooltip="Share the selected items"
    435         />
    436         <tbl:button
    437           image="take_ownership.png"
    438           onclick="setOwner()"
    439           title="Set owner&hellip;"
    440           tooltip="Change owner of the selected items"
    441         />
    442         <tbl:button
    443           image="columns.png"
    444           onclick="configureColumns()"
    445           title="Columns&hellip;"
    446           tooltip="Show, hide and re-order columns"
    447         />
    448         <tbl:button
    449           image="import.png"
    450           onclick="runPlugin('ImportItems')"
    451           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     428            tooltip="Share the selected items"
     429          />
     430          <tbl:button
     431            image="take_ownership.png"
     432            onclick="setOwner()"
     433            title="Set owner&hellip;"
     434            tooltip="Change owner of the selected items"
     435          />
     436          <tbl:button
     437            image="columns.png"
     438            onclick="configureColumns()"
     439            title="Columns&hellip;"
     440            tooltip="Show, hide and re-order columns"
     441          />
     442          <tbl:button
     443            image="import.png"
     444            onclick="runPlugin('ImportItems')"
     445            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    478478      <tbl:data>
    479479        <tbl:headers>
     
    505505        <tbl:rows>
    506506          <%
     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          }
    507516          int index = cc.getPage()*cc.getRowsPerPage();
    508517          int selectedItemId = Values.getInt(request.getParameter("item_id"));
     
    624633              }
    625634            }
     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          }
    626645          %>
    627           </tbl:rows>
     646        </tbl:rows>
    628647      </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       else
    637       {
    638         %>
    639         <tbl:navigator
    640           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       %>
    649648    </tbl:table>
     649    </div>
     650   
    650651    <base:buttongroup subclass="dialogbuttons">
    651652      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/experiments/reporters/list_reporters.jsp

    r5949 r5952  
    192192  </base:head>
    193193  <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">
    201203    <t:tab id="properties" title="Properties" />
    202204    <t:tab id="bioassaysets" title="Bioassay sets" />
    203205
    204206    <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     %>
    214207    <tbl:table
    215208      id="reporters"
    216        
    217209      columns="<%=cc.getSetting("columns")%>"
    218210      sortby="<%=cc.getSortProperty()%>"
    219211      direction="<%=cc.getSortDirection()%>"
    220       title="<%=title%>"
    221212      action="index.jsp"
    222213      sc="<%=sc%>"
    223214      item="<%=itemType%>"
    224215      subcontext="<%=subContext%>"
     216      subclass="fulltable"
    225217      >
    226218      <tbl:hidden
     
    275267        multiple="false"
    276268      />
    277       <tbl:toolbar
    278         visible="<%=mode.hasToolbar()%>"
    279         >
    280         <tbl:button
    281           image="columns.png"
    282           onclick="configureColumns()"
    283           title="Columns&hellip;"
    284           tooltip="Show, hide and re-order columns"
    285         />
    286         <tbl:button
    287           image="add.png"
    288           onclick="newReporterList()"
    289           title="New reporter list&hellip;"
    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&hellip;"
    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&hellip;"
    305           tooltip="Remove all cloned reporter annotations"
    306         />
    307         <tbl:button
    308           image="export.png"
    309           onclick="runPlugin('ExportItems')"
    310           title="Export&hellip;"
    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&hellip;"
     278            tooltip="Show, hide and re-order columns"
     279          />
     280          <tbl:button
     281            image="add.png"
     282            onclick="newReporterList()"
     283            title="New reporter list&hellip;"
     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&hellip;"
     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&hellip;"
     299            tooltip="Remove all cloned reporter annotations"
     300          />
     301          <tbl:button
     302            image="export.png"
     303            onclick="runPlugin('ExportItems')"
     304            title="Export&hellip;"
     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>
    325321      <tbl:data>
    326322        <tbl:headers>
     
    342338        <tbl:rows>
    343339          <%
     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          }
    344349          int index = cc.getPage()*cc.getRowsPerPage();
    345350          int selectedItemId = cc.getId();
     
    388393            }
    389394          }
     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          }
    390405          %>
    391406          </tbl:rows>
    392407        </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       else
    401       {
    402         %>
    403         <tbl:navigator
    404           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       %>
    413408    </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>
    419409    </t:tab>
    420410
     
    425415      visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" />
    426416    </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>
    427423
    428424  </base:body>
  • trunk/www/views/experiments/spotdata/list_spotdata.jsp

    r5951 r5952  
    187187    function newReporterList()
    188188    {
    189       Table.submitToPopup(formId, 'CreateReporterList', 540, 400);
     189      Table.submitToPopup(formId, 'CreateReporterList', 600, 400);
    190190    }
    191191    </script>
    192192  </base:head>
    193193  <base:body>
    194     <p>
    195194    <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      /><%
    201200      if (bioAssay == null)
    202201      {
    203         %>
    204         <p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>" />
    205         <%
     202        %><p:pathelement title="<%=HTML.encodeTags(bioAssaySet.getName())%>"
     203        /><%
    206204      }
    207205      else
    208206      {
    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">
    219218    <t:tab id="properties.bioassay" title="Properties" visible="<%=bioAssay != null%>"/>
    220219    <t:tab id="properties.bioassayset" title="Properties" visible="<%=bioAssay == null%>"/>
     
    227226    <t:tab id="bioassays" visible="<%=bioAssay == null%>" title="BioAssays" />
    228227    <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     %>
    238228    <tbl:table
    239229      id="spotdata"
    240        
    241230      columns="<%=cc.getSetting("columns")%>"
    242231      sortby="<%=cc.getSortProperty()%>"
    243232      direction="<%=cc.getSortDirection()%>"
    244       title="<%=title%>"
    245233      action="index.jsp"
    246234      sc="<%=sc%>"
    247235      item="<%=itemType%>"
    248236      subcontext="<%=subContext%>"
     237      subclass="fulltable"
    249238      >
    250239      <tbl:hidden
     
    265254        skip="<%=callback == null%>"
    266255      />
    267 
    268256      <%
    269257      for (TableColumn tc : columns)
     
    323311        multiple="false"
    324312      />
    325       <tbl:toolbar
    326         visible="<%=mode.hasToolbar()%>"
    327         >
    328         <tbl:button
    329           image="columns.png"
    330           onclick="configureColumns()"
    331           title="Columns&hellip;"
    332           tooltip="Show, hide and re-order columns"
    333         />
    334         <tbl:button
    335           image="add.png"
    336           onclick="newReporterList()"
    337           title="New reporter list&hellip;"
    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&hellip;"
    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&hellip;"
     322            tooltip="Show, hide and re-order columns"
     323          />
     324          <tbl:button
     325            image="add.png"
     326            onclick="newReporterList()"
     327            title="New reporter list&hellip;"
     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&hellip;"
     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>
    361353      <tbl:data>
    362354        <tbl:headers>
     
    378370        <tbl:rows>
    379371          <%
     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          }
    380381          int index = cc.getPage()*cc.getRowsPerPage();
    381382          int selectedItemId = cc.getId();
     
    409410            }
    410411          }
     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          }
    411422          %>
    412423          </tbl:rows>
    413424        </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       else
    422       {
    423         %>
    424         <tbl:navigator
    425           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       %>
    434425    </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
    435433    <base:buttongroup>
    436434      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
     
    438436      <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />
    439437    </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>
    446438
    447439  </base:body>
  • trunk/www/views/formulas/list_formulas.jsp

    r5951 r5952  
    218218 
    219219  <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">
    229222    <tbl:table
    230223      id="formulas"
    231        
    232224      columns="<%=cc.getSetting("columns")%>"
    233225      sortby="<%=cc.getSortProperty()%>"
    234226      direction="<%=cc.getSortDirection()%>"
    235       title="<%=title%>"
    236227      action="index.jsp"
    237228      sc="<%=sc%>"
    238229      item="<%=itemType%>"
     230      subclass="fulltable"
    239231      >
    240232      <tbl:hidden
     
    439431        datatype="string"
    440432      />
    441       <tbl:toolbar
    442         visible="<%=mode.hasToolbar()%>"
    443         >
    444         <tbl:button
    445           disabled="<%=!createPermission%>"
    446           image="new.png"
    447           onclick="newItem()"
    448           title="New&hellip;"
    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&hellip;"
    467           tooltip="Share the selected items"
    468         />
    469         <tbl:button
    470           image="take_ownership.png"
    471           onclick="setOwner()"
    472           title="Set owner&hellip;"
    473           tooltip="Change owner of the selected items"
    474         />
    475         <tbl:button
    476           image="columns.png"
    477           onclick="configureColumns()"
    478           title="Columns&hellip;"
    479           tooltip="Show, hide and re-order columns"
    480         />
    481         <tbl:button
    482           image="import.png"
    483           onclick="runPlugin('ImportItems')"
    484           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     461            tooltip="Share the selected items"
     462          />
     463          <tbl:button
     464            image="take_ownership.png"
     465            onclick="setOwner()"
     466            title="Set owner&hellip;"
     467            tooltip="Change owner of the selected items"
     468          />
     469          <tbl:button
     470            image="columns.png"
     471            onclick="configureColumns()"
     472            title="Columns&hellip;"
     473            tooltip="Show, hide and re-order columns"
     474          />
     475          <tbl:button
     476            image="import.png"
     477            onclick="runPlugin('ImportItems')"
     478            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    511511      <tbl:data>
    512512        <tbl:headers>
     
    538538        <tbl:rows>
    539539          <%
     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          }
    540549          int index = cc.getPage()*cc.getRowsPerPage();
    541550          int selectedItemId = cc.getId();
     
    656665              }
    657666            }
     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          }
    658677          %>
    659           </tbl:rows>
     678        </tbl:rows>
    660679      </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       else
    669       {
    670         %>
    671         <tbl:navigator
    672           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       %>
    681680    </tbl:table>
     681    </div>
     682   
    682683    <base:buttongroup subclass="dialogbuttons">
    683684      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/items/list_items.jsp

    r5951 r5952  
    208208 
    209209  <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">
    219212    <tbl:table
    220213      id="allItems"
    221        
    222214      columns="<%=cc.getSetting("columns")%>"
    223215      action="index.jsp"
     
    225217      item="<%=itemType%>"
    226218      subcontext="<%=subContext%>"
     219      subclass="fulltable"
    227220      >
    228221      <tbl:columndef
     
    264257        datatype="string"
    265258      />
    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&hellip;"
    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&hellip;"
    292           tooltip="Change owner of the selected items"
    293         />
    294         <tbl:button
    295           image="columns.png"
    296           onclick="configureColumns()"
    297           title="Columns&hellip;"
    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&hellip;"
     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&hellip;"
     286            tooltip="Change owner of the selected items"
     287          />
     288          <tbl:button
     289            image="columns.png"
     290            onclick="configureColumns()"
     291            title="Columns&hellip;"
     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>
    308308      <tbl:data>
    309309        <tbl:headers>
     
    333333        <tbl:rows>
    334334          <%
     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          }
    335344          int index = cc.getPage()*cc.getRowsPerPage();
    336345          if (allItems != null)
     
    435444              }
    436445            }
     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          }
    437456          %>
    438           </tbl:rows>
     457        </tbl:rows>
    439458      </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       else
    448       {
    449         %>
    450         <tbl:navigator
    451           page="<%=cc.getPage()%>"
    452           rowsperpage="<%=cc.getRowsPerPage()%>"
    453           totalrows="<%=allItems == null ? 0 : allItems.getTotalCount()%>"
    454           locked="true"
    455         />
    456         <%
    457       }
    458       %>
    459459    </tbl:table>
    460    
     460    </div>
    461461  </base:body>
    462462  </base:page>
  • trunk/www/views/jobs/list_jobs.jsp

    r5951 r5952  
    196196 
    197197  <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">
    207200    <tbl:table
    208201      id="jobs"
    209        
    210202      columns="<%=cc.getSetting("columns")%>"
    211203      sortby="<%=cc.getSortProperty()%>"
    212204      direction="<%=cc.getSortDirection()%>"
    213       title="<%=title%>"
    214205      action="index.jsp"
    215206      sc="<%=sc%>"
    216207      item="<%=itemType%>"
     208      subclass="fulltable"
    217209      >
    218210      <tbl:hidden
     
    440432        title="Permission"
    441433      />
    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&hellip;"
    461           tooltip="Change owner of the selected items"
    462         />
    463         <tbl:button
    464           image="columns.png"
    465           onclick="configureColumns()"
    466           title="Columns&hellip;"
    467           tooltip="Show, hide and re-order columns"
    468         />
    469         <tbl:button
    470           image="import.png"
    471           onclick="runPlugin('ImportItems')"
    472           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     455            tooltip="Change owner of the selected items"
     456          />
     457          <tbl:button
     458            image="columns.png"
     459            onclick="configureColumns()"
     460            title="Columns&hellip;"
     461            tooltip="Show, hide and re-order columns"
     462          />
     463          <tbl:button
     464            image="import.png"
     465            onclick="runPlugin('ImportItems')"
     466            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    499499      <tbl:data>
    500500        <tbl:headers>
     
    526526        <tbl:rows>
    527527          <%
     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          }
    528537          int index = cc.getPage()*cc.getRowsPerPage();
    529538          int selectedItemId = cc.getId();
     
    732741              }
    733742            }
     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          }
    734753          %>
    735           </tbl:rows>
     754        </tbl:rows>
    736755      </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       else
    745       {
    746         %>
    747         <tbl:navigator
    748           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       %>
    757756    </tbl:table>
     757    </div>
     758   
    758759    <base:buttongroup subclass="dialogbuttons">
    759760      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/jobs/view_job.jsp

    r5946 r5952  
    642642        int numChanges = 0;
    643643        %>
    644         <tbl:table id="history"  columns="all">
     644        <tbl:table
     645          id="history" columns="all"
     646          subclass="fulltable" style="border-bottom: 0px;">
    645647          <tbl:columndef id="changeType" title="Change type" />
    646648          <tbl:columndef id="item" title="Item" />
    647649          <tbl:columndef id="info" title="Info" />
    648650         
    649           <tbl:data style="border-top: 0px;">
     651          <tbl:data style="top: 0px;">
    650652            <tbl:headers>
    651653              <tbl:headerrow>
     
    667669              <%
    668670            }
     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            }
    669682            %>
    670683            </tbl:rows>
    671684          </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 made
    679                 other changes that are not recorded by the logging mechanism.
    680               </div>
    681             </tbl:panel>
    682             <%
    683           }
    684           %>
    685685        </tbl:table>
    686686      </t:tab>
  • trunk/www/views/permissiontemplates/list_templates.jsp

    r5951 r5952  
    175175 
    176176  <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">
    186179    <tbl:table
    187180      id="templates"
    188        
    189181      columns="<%=cc.getSetting("columns")%>"
    190182      sortby="<%=cc.getSortProperty()%>"
    191183      direction="<%=cc.getSortDirection()%>"
    192       title="<%=title%>"
    193184      action="index.jsp"
    194185      sc="<%=sc%>"
    195186      item="<%=itemType%>"
     187      subclass="fulltable"
    196188      >
    197189      <tbl:hidden
     
    253245        datatype="string"
    254246      />
    255       <tbl:toolbar
    256         visible="<%=mode.hasToolbar()%>"
    257         >
    258         <tbl:button
    259           disabled="<%=!createPermission%>"
    260           image="new.png"
    261           onclick="newItem()"
    262           title="New&hellip;"
    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&hellip;"
    281           tooltip="Share the selected items"
    282         />
    283         <tbl:button
    284           image="take_ownership.png"
    285           onclick="setOwner()"
    286           title="Set owner&hellip;"
    287           tooltip="Change owner of the selected items"
    288         />
    289         <tbl:button
    290           image="columns.png"
    291           onclick="configureColumns()"
    292           title="Columns&hellip;"
    293           tooltip="Show, hide and re-order columns"
    294         />
    295         <tbl:button
    296           image="import.png"
    297           onclick="runPlugin('ImportItems')"
    298           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     275            tooltip="Share the selected items"
     276          />
     277          <tbl:button
     278            image="take_ownership.png"
     279            onclick="setOwner()"
     280            title="Set owner&hellip;"
     281            tooltip="Change owner of the selected items"
     282          />
     283          <tbl:button
     284            image="columns.png"
     285            onclick="configureColumns()"
     286            title="Columns&hellip;"
     287            tooltip="Show, hide and re-order columns"
     288          />
     289          <tbl:button
     290            image="import.png"
     291            onclick="runPlugin('ImportItems')"
     292            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    325325      <tbl:data>
    326326        <tbl:headers>
     
    352352        <tbl:rows>
    353353          <%
     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          }
    354363          int index = cc.getPage()*cc.getRowsPerPage();
    355364          int selectedItemId = cc.getId();
     
    445454              }
    446455            }
     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          }
    447466          %>
    448           </tbl:rows>
     467        </tbl:rows>
    449468      </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       else
    458       {
    459         %>
    460         <tbl:navigator
    461           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       %>
    470469    </tbl:table>
     470    </div>
     471   
    471472    <base:buttongroup subclass="dialogbuttons">
    472473      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/physicalbioassays/list_bioassays.jsp

    r5951 r5952  
    220220 
    221221  <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">
    231224    <tbl:table
    232225      id="bioassays"
    233        
    234226      columns="<%=cc.getSetting("columns")%>"
    235227      sortby="<%=cc.getSortProperty()%>"
    236228      direction="<%=cc.getSortDirection()%>"
    237       title="<%=title%>"
    238229      action="index.jsp"
    239230      sc="<%=sc%>"
    240231      item="<%=itemType%>"
     232      subclass="fulltable"
    241233      >
    242234      <tbl:hidden
     
    415407        datatype="string"
    416408      />
    417       <tbl:toolbar
    418         visible="<%=mode.hasToolbar()%>"
    419         >
    420         <tbl:button
    421           disabled="<%=!createPermission%>"
    422           image="new.png"
    423           onclick="newItem()"
    424           title="New&hellip;"
    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&hellip;"
    443           tooltip="Share the selected items"
    444         />
    445         <tbl:button
    446           image="take_ownership.png"
    447           onclick="setOwner()"
    448           title="Set owner&hellip;"
    449           tooltip="Change owner of the selected items"
    450         />
    451         <tbl:button
    452           image="columns.png"
    453           onclick="configureColumns()"
    454           title="Columns&hellip;"
    455           tooltip="Show, hide and re-order columns"
    456         />
    457         <tbl:button
    458           image="import.png"
    459           onclick="runPlugin('ImportItems')"
    460           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     437            tooltip="Share the selected items"
     438          />
     439          <tbl:button
     440            image="take_ownership.png"
     441            onclick="setOwner()"
     442            title="Set owner&hellip;"
     443            tooltip="Change owner of the selected items"
     444          />
     445          <tbl:button
     446            image="columns.png"
     447            onclick="configureColumns()"
     448            title="Columns&hellip;"
     449            tooltip="Show, hide and re-order columns"
     450          />
     451          <tbl:button
     452            image="import.png"
     453            onclick="runPlugin('ImportItems')"
     454            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    487487      <tbl:data>
    488488        <tbl:headers>
     
    514514        <tbl:rows>
    515515          <%
     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          }
    516525          int index = cc.getPage()*cc.getRowsPerPage();
    517526          int selectedItemId = cc.getId();
     
    740749              }
    741750            }
     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          }
    742761          %>
    743           </tbl:rows>
     762        </tbl:rows>
    744763      </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       else
    753       {
    754         %>
    755         <tbl:navigator
    756           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       %>
    765764    </tbl:table>
     765    </div>
     766   
    766767    <base:buttongroup subclass="dialogbuttons">
    767768      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/rawbioassays/list_rawbioassays.jsp

    r5951 r5952  
    237237 
    238238  <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">
    248241    <tbl:table
    249242      id="rawbioassays"
    250        
    251243      columns="<%=cc.getSetting("columns")%>"
    252244      sortby="<%=cc.getSortProperty()%>"
     
    256248      sc="<%=sc%>"
    257249      item="<%=itemType%>"
     250      subclass="fulltable"
    258251      >
    259252      <tbl:hidden
     
    524517        datatype="string"
    525518      />
    526       <tbl:toolbar
    527         visible="<%=mode.hasToolbar()%>"
    528         >
    529         <tbl:button
    530           disabled="<%=!createPermission%>"
    531           image="new.png"
    532           onclick="newItem()"
    533           title="New&hellip;"
    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&hellip;"
    552           tooltip="Share the selected items"
    553         />
    554         <tbl:button
    555           image="take_ownership.png"
    556           onclick="setOwner()"
    557           title="Set owner&hellip;"
    558           tooltip="Change owner of the selected items"
    559         />
    560         <tbl:button
    561           image="columns.png"
    562           onclick="configureColumns()"
    563           title="Columns&hellip;"
    564           tooltip="Show, hide and re-order columns"
    565         />
    566         <tbl:button
    567           image="add.png"
    568           onclick="newExperiment()"
    569           title="New experiment&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     547            tooltip="Share the selected items"
     548          />
     549          <tbl:button
     550            image="take_ownership.png"
     551            onclick="setOwner()"
     552            title="Set owner&hellip;"
     553            tooltip="Change owner of the selected items"
     554          />
     555          <tbl:button
     556            image="columns.png"
     557            onclick="configureColumns()"
     558            title="Columns&hellip;"
     559            tooltip="Show, hide and re-order columns"
     560          />
     561          <tbl:button
     562            image="add.png"
     563            onclick="newExperiment()"
     564            title="New experiment&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    603604      <tbl:data>
    604605        <tbl:headers>
     
    630631        <tbl:rows>
    631632          <%
     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          }
    632642          int index = cc.getPage()*cc.getRowsPerPage();
    633643          int selectedItemId = cc.getId();
     
    879889              }
    880890            }
     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          }
    881901          %>
    882           </tbl:rows>
     902        </tbl:rows>
    883903      </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       else
    892       {
    893         %>
    894         <tbl:navigator
    895           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       %>
    904904    </tbl:table>
     905    </div>
     906   
    905907    <base:buttongroup subclass="dialogbuttons">
    906908      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/rawbioassays/rawdata/list_rawdata.jsp

    r5948 r5952  
    153153    {
    154154      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);
    156155    }
    157156    function itemOnClick(evt, itemId)
     
    189188    function newReporterList()
    190189    {
    191       Table.submitToPopup(formId, 'CreateReporterList', 540, 400);
     190      Table.submitToPopup(formId, 'CreateReporterList', 600, 400);
    192191    }
    193192    </script>
     
    195194 
    196195  <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">
    205205    <t:tab id="properties" title="Properties" />
    206206    <t:tab id="annotations" title="Annotations &amp; parameters"
     
    209209    <t:tab id="rawdata" title="Raw data">
    210210
    211     <%
    212     if (cc.getMessage() != null)
    213     {
    214       %>
    215       <div class="error"><%=cc.getMessage()%></div>
    216       <%
    217       cc.setMessage(null);
    218     }
    219     %>
    220211    <tbl:table
    221       id="rawdata"
    222        
     212      id="rawdata"
    223213      columns="<%=cc.getSetting("columns")%>"
    224214      sortby="<%=cc.getSortProperty()%>"
    225215      direction="<%=cc.getSortDirection()%>"
    226       title="<%=title%>"
    227216      action="index.jsp"
    228217      sc="<%=sc%>"
    229218      item="<%=itemType%>"
    230219      subcontext="<%=subContext%>"
     220      subclass="fulltable"
    231221      >
    232222      <tbl:hidden
     
    595585        exportable="true"
    596586      />
    597       <tbl:toolbar
    598         visible="<%=mode.hasToolbar()%>"
    599         >
    600         <tbl:button
    601           image="columns.png"
    602           onclick="configureColumns()"
    603           title="Columns&hellip;"
    604           tooltip="Show, hide and re-order columns"
    605         />
    606         <tbl:button
    607           image="add.png"
    608           onclick="newReporterList()"
    609           title="New reporter list&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     596            tooltip="Show, hide and re-order columns"
     597          />
     598          <tbl:button
     599            image="add.png"
     600            onclick="newReporterList()"
     601            title="New reporter list&hellip;"
     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&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    643641      <tbl:data>
    644642        <tbl:headers>
     
    670668        <tbl:rows>
    671669          <%
     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          }
    672679          int index = cc.getPage()*cc.getRowsPerPage();
    673680          int selectedItemId = cc.getId();
     
    874881            }
    875882          }
     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          }
    876893          %>
    877894          </tbl:rows>
    878895        </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       else
    887       {
    888         %>
    889         <tbl:navigator
    890           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       %>
    899896    </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    
    906897    </t:tab>
    907898    <t:tab id="overview" title="Overview"
     
    911902        visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" />
    912903    </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
    913911  </base:body>
    914912  </base:page>
  • trunk/www/views/rawbioassays/rawdata/view_rawdata.jsp

    r5939 r5952  
    9393  <base:page title="<%=title%>" type="popup">
    9494  <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>
    10195  </base:head>
    10296  <base:body>
  • trunk/www/views/reporterlists/list_reporterlists.jsp

    r5951 r5952  
    178178 
    179179  <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">
    189182    <tbl:table
    190183      id="reporterLists"
    191        
    192184      columns="<%=cc.getSetting("columns")%>"
    193185      sortby="<%=cc.getSortProperty()%>"
    194186      direction="<%=cc.getSortDirection()%>"
    195       title="<%=title%>"
    196187      action="index.jsp"
    197188      sc="<%=sc%>"
    198189      item="<%=itemType%>"
     190      subclass="fulltable"
    199191      >
    200192      <tbl:hidden
     
    293285        datatype="string"
    294286      />
    295       <tbl:toolbar
    296         visible="<%=mode.hasToolbar()%>"
    297         >
    298         <tbl:button
    299           disabled="<%=!createPermission%>"
    300           image="new.png"
    301           onclick="newItem()"
    302           title="New&hellip;"
    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&hellip;"
    321           tooltip="Share the selected items"
    322         />
    323         <tbl:button
    324           image="take_ownership.png"
    325           onclick="setOwner()"
    326           title="Set owner&hellip;"
    327           tooltip="Change owner of the selected items"
    328         />
    329         <tbl:button
    330           image="columns.png"
    331           onclick="configureColumns()"
    332           title="Columns&hellip;"
    333           tooltip="Show, hide and re-order columns"
    334         />
    335         <tbl:button
    336           image="import.png"
    337           onclick="runPlugin('ImportItems')"
    338           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     315            tooltip="Share the selected items"
     316          />
     317          <tbl:button
     318            image="take_ownership.png"
     319            onclick="setOwner()"
     320            title="Set owner&hellip;"
     321            tooltip="Change owner of the selected items"
     322          />
     323          <tbl:button
     324            image="columns.png"
     325            onclick="configureColumns()"
     326            title="Columns&hellip;"
     327            tooltip="Show, hide and re-order columns"
     328          />
     329          <tbl:button
     330            image="import.png"
     331            onclick="runPlugin('ImportItems')"
     332            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    365365      <tbl:data>
    366366        <tbl:headers>
     
    392392        <tbl:rows>
    393393          <%
     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          }
    394403          int index = cc.getPage()*cc.getRowsPerPage();
    395404          int selectedItemId = cc.getId();
     
    494503              }
    495504            }
     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          }
    496515          %>
    497516          </tbl:rows>
    498517      </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       else
    507       {
    508         %>
    509         <tbl:navigator
    510           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       %>
    519518    </tbl:table>
     519    </div>
     520   
    520521    <base:buttongroup subclass="dialogbuttons">
    521522      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/reporterlists/reporters/add_reporters_frameset.jsp

    r5426 r5952  
    3737%>
    3838
    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>
    4790</base:page>
    4891
  • trunk/www/views/reporterlists/reporters/index.jsp

    r5630 r5952  
    179179    DataResultIterator<ReporterData> result = query.iterate(dc);
    180180    int count = 0;
     181    int total = 0;
    181182    while (result.hasNext())
    182183    {
    183184      if (reporterList.addReporter(result.next(), null)) count++;
     185      total++;
    184186    }
    185187    dc.commit();
    186     message = count + " reporters added";
     188    message = count + " of " + total + " reporters added";
    187189  }
    188190  else
  • trunk/www/views/reporterlists/reporters/list_reporters.jsp

    r5951 r5952  
    191191 
    192192  <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>
    198197 
    199     <t:tabcontrol id="main" active="reporters" switch="switchTab">
     198    <t:tabcontrol
     199      id="main"
     200      subclass="mastertabcontrol content"
     201      active="reporters" switch="switchTab">
    200202    <t:tab id="properties" title="Properties" />
    201203   
    202204    <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     %>
    213205    <tbl:table
    214206      id="reporters"
    215        
    216207      columns="<%=cc.getSetting("columns")%>"
    217208      sortby="<%=cc.getSortProperty()%>"
    218209      direction="<%=cc.getSortDirection()%>"
    219       title="<%=title%>"
    220210      action="index.jsp"
    221211      sc="<%=sc%>"
    222212      item="<%=itemType%>"
     213      subclass="fulltable"
    223214      >
    224215      <tbl:hidden
     
    361352        exportable="true"
    362353      />
    363       <tbl:toolbar
    364         visible="<%=mode.hasToolbar()%>"
    365         >
    366         <tbl:button
    367           disabled="<%=!writePermission%>"
    368           image="add.png"
    369           onclick="addItems()"
    370           title="Add&hellip;"
    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&hellip;"
    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&hellip;"
    384           tooltip="Show, hide and re-order columns"
    385         />
    386         <tbl:button
    387           image="import.png"
    388           onclick="runPlugin('ImportItems')"
    389           title="Import&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     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&hellip;"
     377            tooltip="Show, hide and re-order columns"
     378          />
     379          <tbl:button
     380            image="import.png"
     381            onclick="runPlugin('ImportItems')"
     382            title="Import&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    416415      <tbl:data>
    417416        <tbl:headers>
     
    443442        <tbl:rows>
    444443          <%
     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          }
    445453          int index = cc.getPage()*cc.getRowsPerPage();
    446454          int selectedItemId = cc.getId();
     
    513521            }
    514522          }
     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          }
    515533          %>
    516534          </tbl:rows>
    517535      </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       else
    526       {
    527         %>
    528         <tbl:navigator
    529           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       %>
    538536    </tbl:table>
     537    </t:tab>
     538    </t:tabcontrol>
     539
    539540    <base:buttongroup subclass="dialogbuttons">
    540541      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
     
    542543      <base:button onclick="window.close();" title="Close" visible="<%=mode.hasCloseButton()%>" />
    543544    </base:buttongroup>
    544 
    545     </t:tab>
    546     </t:tabcontrol>
    547545
    548546  </base:body>
  • trunk/www/views/reporters/list_reporters.jsp

    r5948 r5952  
    172172    function newReporterList()
    173173    {
    174       Table.submitToPopup(formId, 'CreateReporterList', 540, 400);
     174      Table.submitToPopup(formId, 'CreateReporterList', 600, 400);
    175175    }
    176176    </script>
     
    330330      <tbl:toolbar
    331331        visible="<%=mode.hasToolbar()%>"
    332         subclass="topborder bottomborder"
     332        subclass="bottomborder"
    333333        >
    334334        <tbl:button
  • trunk/www/views/sessions/list_sessions.jsp

    r5951 r5952  
    134134 
    135135  <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">
    145138    <tbl:table
    146139      id="sessions"
    147        
    148140      columns="<%=cc.getSetting("columns")%>"
    149141      sortby="<%=cc.getSortProperty()%>"
    150142      direction="<%=cc.getSortDirection()%>"
    151       title="<%=title%>"
    152143      action="index.jsp"
    153144      sc="<%=sc%>"
    154145      item="<%=itemType%>"
     146      subclass="fulltable"
    155147      >
    156148      <tbl:hidden
     
    242234        title="Permission"
    243235      />
    244       <tbl:toolbar
    245         visible="<%=mode.hasToolbar()%>"
    246         >
    247         <tbl:button
    248           image="columns.png"
    249           onclick="configureColumns()"
    250           title="Columns&hellip;"
    251           tooltip="Show, hide and re-order columns"
    252         />
    253         <tbl:button
    254           image="export.png"
    255           onclick="runPlugin('ExportItems')"
    256           title="Export&hellip;"
    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&hellip;"
    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&hellip;"
     245            tooltip="Show, hide and re-order columns"
     246          />
     247          <tbl:button
     248            image="export.png"
     249            onclick="runPlugin('ExportItems')"
     250            title="Export&hellip;"
     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&hellip;"
     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>
    276276      <tbl:data>
    277277        <tbl:headers>
     
    303303        <tbl:rows>
    304304          <%
     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          }
    305314          int index = cc.getPage()*cc.getRowsPerPage();
    306315          int selectedItemId = cc.getId();
     
    368377                <tbl:cell column="permission"><%=PermissionUtil.getShortPermissions(item)%></tbl:cell>
    369378            </tbl:row>
    370               <%
    371               }
     379            <%
    372380            }
     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          }
    373392          %>
    374           </tbl:rows>
     393        </tbl:rows>
    375394      </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       else
    384       {
    385         %>
    386         <tbl:navigator
    387           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       %>
    396395    </tbl:table>
     396    </div>
     397   
    397398    <base:buttongroup subclass="dialogbuttons">
    398399      <base:button onclick="returnSelected();" title="Ok" visible="<%=mode.hasOkButton()%>" />
  • trunk/www/views/trashcan/list_trash.jsp

    r5951 r5952  
    179179 
    180180  <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">
    190183    <tbl:table
    191184      id="trashcan"
    192        
    193185      columns="<%=cc.getSetting("columns")%>"
    194186      action="index.jsp"
     
    196188      item="<%=itemType%>"
    197189      subcontext="<%=subContext%>"
     190      subclass="fulltable"
    198191      >
    199192      <tbl:columndef
     
    222215        title="Description"
    223216      />
    224       <tbl:toolbar>
    225         <tbl:button
    226           image="deleteall.png"
    227           onclick="deleteAllItems()"
    228           title="Empty trash&hellip;"
    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&hellip;"
    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&hellip;"
    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&hellip;"
     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&hellip;"
     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&hellip;"
     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>
    260260      <tbl:data>
    261261        <tbl:headers>
     
    281281        <tbl:rows>
    282282          <%
     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          }
    283292          int index = cc.getPage()*cc.getRowsPerPage();
    284293          if (trash != null)
     
    344353              }
    345354            }
     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          }
    346365          %>
    347           </tbl:rows>
     366        </tbl:rows>
    348367      </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       else
    357       {
    358         %>
    359         <tbl:navigator
    360           page="<%=cc.getPage()%>"
    361           rowsperpage="<%=cc.getRowsPerPage()%>"
    362           totalrows="<%=trash == null ? 0 : trash.getTotalCount()%>"
    363           locked="true"
    364         />
    365         <%
    366       }
    367       %>
    368368    </tbl:table>
     369    </div>
    369370   
    370371  </base:body>
Note: See TracChangeset for help on using the changeset viewer.