www/lims/platetypes/view_platetype.jsp

Code
Comments
Other
Rev Date Author Line
2305 22 May 06 jari 1 <%-- $Id$
2305 22 May 06 jari 2   ------------------------------------------------------------------
5425 23 Sep 10 nicklas 3   Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg, Martin Svensson
3675 16 Aug 07 jari 4   Copyright (C) 2007 Martin Svensson
2305 22 May 06 jari 5
2304 22 May 06 jari 6   This file is part of BASE - BioArray Software Environment.
2304 22 May 06 jari 7   Available at http://base.thep.lu.se/
2305 22 May 06 jari 8
2305 22 May 06 jari 9   BASE is free software; you can redistribute it and/or
2305 22 May 06 jari 10   modify it under the terms of the GNU General Public License
4476 05 Sep 08 jari 11   as published by the Free Software Foundation; either version 3
2305 22 May 06 jari 12   of the License, or (at your option) any later version.
2305 22 May 06 jari 13
2305 22 May 06 jari 14   BASE is distributed in the hope that it will be useful,
2305 22 May 06 jari 15   but WITHOUT ANY WARRANTY; without even the implied warranty of
2305 22 May 06 jari 16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2305 22 May 06 jari 17   GNU General Public License for more details.
2305 22 May 06 jari 18
2305 22 May 06 jari 19   You should have received a copy of the GNU General Public License
4511 11 Sep 08 jari 20   along with BASE. If not, see <http://www.gnu.org/licenses/>.
2305 22 May 06 jari 21   ------------------------------------------------------------------
2305 22 May 06 jari 22
2305 22 May 06 jari 23   @author Nicklas
2305 22 May 06 jari 24   @version 2.0
2305 22 May 06 jari 25 --%>
5426 24 Sep 10 nicklas 26 <%@ page pageEncoding="UTF-8" session="false"
2305 22 May 06 jari 27   import="net.sf.basedb.core.SessionControl"
2305 22 May 06 jari 28   import="net.sf.basedb.core.DbControl"
2305 22 May 06 jari 29   import="net.sf.basedb.core.SystemItems"
3547 03 Jul 07 martin 30   import="net.sf.basedb.core.Group"
2305 22 May 06 jari 31   import="net.sf.basedb.core.Item"
2305 22 May 06 jari 32   import="net.sf.basedb.core.ItemContext"
2305 22 May 06 jari 33   import="net.sf.basedb.core.Permission"
2305 22 May 06 jari 34   import="net.sf.basedb.core.PlateType"
2446 29 Jun 06 nicklas 35   import="net.sf.basedb.core.Plate"
2305 22 May 06 jari 36   import="net.sf.basedb.core.PlateGeometry"
2305 22 May 06 jari 37   import="net.sf.basedb.core.User"
2305 22 May 06 jari 38   import="net.sf.basedb.core.ItemQuery"
5044 11 Aug 09 martin 39   import="net.sf.basedb.core.Include"  
2305 22 May 06 jari 40   import="net.sf.basedb.core.ItemResultList"
3547 03 Jul 07 martin 41   import="net.sf.basedb.core.MultiPermissions"
2305 22 May 06 jari 42   import="net.sf.basedb.core.PermissionDeniedException"
2305 22 May 06 jari 43   import="net.sf.basedb.core.PluginDefinition"
2305 22 May 06 jari 44   import="net.sf.basedb.core.plugin.GuiContext"
2305 22 May 06 jari 45   import="net.sf.basedb.core.plugin.Plugin"
3547 03 Jul 07 martin 46   import="net.sf.basedb.core.Project"
2305 22 May 06 jari 47   import="net.sf.basedb.core.query.Orders"
2305 22 May 06 jari 48   import="net.sf.basedb.core.query.Hql"
2305 22 May 06 jari 49   import="net.sf.basedb.clients.web.Base"
2386 15 Jun 06 martin 50   import="net.sf.basedb.clients.web.PermissionUtil"
2305 22 May 06 jari 51   import="net.sf.basedb.clients.web.util.HTML"
2753 20 Oct 06 nicklas 52   import="net.sf.basedb.util.Values"
4698 10 Dec 08 nicklas 53   import="net.sf.basedb.util.formatter.Formatter"
4698 10 Dec 08 nicklas 54   import="net.sf.basedb.clients.web.formatter.FormatterFactory"
4884 03 Apr 09 nicklas 55   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
4884 03 Apr 09 nicklas 56   import="net.sf.basedb.clients.web.extensions.JspContext"
4884 03 Apr 09 nicklas 57   import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
7604 25 Feb 19 nicklas 58   import="net.sf.basedb.clients.web.extensions.toolbar.ButtonAction" 
4884 03 Apr 09 nicklas 59   import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
4884 03 Apr 09 nicklas 60   import="net.sf.basedb.util.extensions.ExtensionsInvoker"
3547 03 Jul 07 martin 61   import="java.util.Collections"
2305 22 May 06 jari 62   import="java.util.Date"
2305 22 May 06 jari 63   import="java.util.Map"
2305 22 May 06 jari 64   import="java.util.Set"
2305 22 May 06 jari 65   import="java.util.List"
2305 22 May 06 jari 66 %>
2305 22 May 06 jari 67 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
2305 22 May 06 jari 68 <%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
2305 22 May 06 jari 69 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
2305 22 May 06 jari 70 <%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
4884 03 Apr 09 nicklas 71 <%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
2305 22 May 06 jari 72 <%!
2305 22 May 06 jari 73   private static final Item itemType = Item.PLATETYPE;
2305 22 May 06 jari 74   private static final GuiContext guiContext = new GuiContext(itemType, GuiContext.Type.ITEM);
2305 22 May 06 jari 75 %>
2305 22 May 06 jari 76 <%
2305 22 May 06 jari 77 final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
2305 22 May 06 jari 78 final String ID = sc.getId();
2305 22 May 06 jari 79 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null);
2305 22 May 06 jari 80 final int itemId = cc.getId();
2305 22 May 06 jari 81 final float scale = Base.getScale(sc);
7954 12 May 21 nicklas 82 final DbControl dc = sc.newDbControl(":View "+itemType);
2305 22 May 06 jari 83 try
2305 22 May 06 jari 84 {
4698 10 Dec 08 nicklas 85   Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
2305 22 May 06 jari 86   Map<Plugin.MainType, Integer> pluginCount = PluginDefinition.countPlugins(dc, guiContext);
2305 22 May 06 jari 87
2305 22 May 06 jari 88   String title = null;
2305 22 May 06 jari 89   PlateType plateType = PlateType.getById(dc, itemId);
2305 22 May 06 jari 90   
2446 29 Jun 06 nicklas 91   final boolean usePermission = plateType.hasPermission(Permission.USE);
2305 22 May 06 jari 92   final boolean writePermission = plateType.hasPermission(Permission.WRITE);
2305 22 May 06 jari 93   final boolean deletePermission = plateType.hasPermission(Permission.DELETE);
2305 22 May 06 jari 94   final boolean sharePermission = plateType.hasPermission(Permission.SET_PERMISSION);
2919 15 Nov 06 nicklas 95   final boolean setOwnerPermission = plateType.hasPermission(Permission.SET_OWNER);
4003 26 Nov 07 nicklas 96   final boolean isRemoved = plateType.isRemoved();
4003 26 Nov 07 nicklas 97   final boolean isUsed = isRemoved && plateType.isUsed();
4003 26 Nov 07 nicklas 98   final boolean deletePermanentlyPermission = deletePermission && !isUsed;
2919 15 Nov 06 nicklas 99   final boolean isOwner = plateType.isOwner();
4884 03 Apr 09 nicklas 100   JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, plateType);
7604 25 Feb 19 nicklas 101   ExtensionsInvoker<ButtonAction> invoker = ToolbarUtil.useExtensions(jspContext);
2305 22 May 06 jari 102   %>
6306 13 Aug 13 nicklas 103   <base:page title="<%=title%>" id="view-page">
6306 13 Aug 13 nicklas 104   <base:head scripts="table.js,tabcontrol-2.js,~platetypes.js" styles="toolbar.css,headertabcontrol.css,path.css,table.css">
4884 03 Apr 09 nicklas 105     <ext:scripts context="<%=jspContext%>" />
4884 03 Apr 09 nicklas 106     <ext:stylesheets context="<%=jspContext%>" />
2305 22 May 06 jari 107   </base:head>
2305 22 May 06 jari 108   <base:body>
5943 01 Feb 12 nicklas 109     <p:path><p:pathelement 
5943 01 Feb 12 nicklas 110       title="Plate types" href="<%="index.jsp?ID="+ID%>" 
5943 01 Feb 12 nicklas 111       /><p:pathelement title="<%=HTML.encodeTags(plateType.getName())%>" 
5943 01 Feb 12 nicklas 112       /></p:path>
6306 13 Aug 13 nicklas 113     <div id="page-data" data-item-id="<%=itemId%>"></div>
2305 22 May 06 jari 114     
5943 01 Feb 12 nicklas 115     <t:tabcontrol 
5943 01 Feb 12 nicklas 116       id="main" 
5943 01 Feb 12 nicklas 117       subclass="content mastertabcontrol" 
6306 13 Aug 13 nicklas 118       active="properties">
2305 22 May 06 jari 119     <t:tab id="properties" title="Properties">
5943 01 Feb 12 nicklas 120       <div>
5943 01 Feb 12 nicklas 121       <table class="fullform bottomborder">
5943 01 Feb 12 nicklas 122       <tr>
5943 01 Feb 12 nicklas 123         <th class="itemstatus">
4003 26 Nov 07 nicklas 124           <base:icon 
5946 03 Feb 12 nicklas 125             image="shared.png" 
5943 01 Feb 12 nicklas 126             visible="<%=plateType.isShared()%>"
5943 01 Feb 12 nicklas 127             tooltip="This item is shared to other users, groups and/or projects"
5943 01 Feb 12 nicklas 128           />
5943 01 Feb 12 nicklas 129           <base:icon 
6306 13 Aug 13 nicklas 130             id="btnDeletePermanently"
5946 03 Feb 12 nicklas 131             image="deleted.png"
5943 01 Feb 12 nicklas 132             tooltip="This item has been flagged for deletion. Click to delete it now."
5943 01 Feb 12 nicklas 133             enabled="<%=deletePermanentlyPermission %>"
5943 01 Feb 12 nicklas 134             visible="<%=isRemoved%>" 
5943 01 Feb 12 nicklas 135           />
6306 13 Aug 13 nicklas 136           <base:icon 
6306 13 Aug 13 nicklas 137             id="btnUsingItems"
6306 13 Aug 13 nicklas 138             image="used.png" 
5943 01 Feb 12 nicklas 139             tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one"
5943 01 Feb 12 nicklas 140             visible="<%=isRemoved && isUsed%>" />
5943 01 Feb 12 nicklas 141         </th>
5943 01 Feb 12 nicklas 142         <td style="padding: 0px;">
6605 18 Nov 14 nicklas 143           <tbl:toolbar subclass="bottomborder bg-filled-50">
5943 01 Feb 12 nicklas 144             <tbl:button 
6306 13 Aug 13 nicklas 145               id="btnEdit"
5943 01 Feb 12 nicklas 146               disabled="<%=!writePermission%>" 
5945 02 Feb 12 nicklas 147               image="edit.png" 
5943 01 Feb 12 nicklas 148               title="Edit&hellip;" 
5943 01 Feb 12 nicklas 149               tooltip="<%=writePermission ? "Edit this plate type" : "You do not have permission to edit this plate type"%>" 
5943 01 Feb 12 nicklas 150             />
5943 01 Feb 12 nicklas 151             <tbl:button 
6306 13 Aug 13 nicklas 152               id="btnDelete"
5943 01 Feb 12 nicklas 153               disabled="<%=!deletePermission%>" 
5946 03 Feb 12 nicklas 154               image="delete.png" 
5943 01 Feb 12 nicklas 155               title="Delete"
5943 01 Feb 12 nicklas 156               visible="<%=!plateType.isRemoved()%>"
5943 01 Feb 12 nicklas 157               tooltip="<%=deletePermission ? "Delete this plate type" : "You do not have permission to delete this plate type"%>" 
5943 01 Feb 12 nicklas 158             />
5943 01 Feb 12 nicklas 159             <tbl:button 
6306 13 Aug 13 nicklas 160               id="btnRestore"
5943 01 Feb 12 nicklas 161               disabled="<%=!writePermission%>" 
5946 03 Feb 12 nicklas 162               image="restore.png" 
5943 01 Feb 12 nicklas 163               title="Restore"
5943 01 Feb 12 nicklas 164               visible="<%=plateType.isRemoved()%>"
5943 01 Feb 12 nicklas 165               tooltip="<%=writePermission ? "Restore this plate type" : "You do not have permission to restore this plate type"%>" 
5943 01 Feb 12 nicklas 166             />
5943 01 Feb 12 nicklas 167             <tbl:button 
6306 13 Aug 13 nicklas 168               id="btnShare"
5943 01 Feb 12 nicklas 169               disabled="<%=!sharePermission%>"
5945 02 Feb 12 nicklas 170               image="share.png"
5943 01 Feb 12 nicklas 171               title="Share&hellip;" 
5943 01 Feb 12 nicklas 172               tooltip="<%=sharePermission ? "Share this plate type to other user, groups and projects" : "You do not have permission to share this plate type"%>"
5943 01 Feb 12 nicklas 173             />
5943 01 Feb 12 nicklas 174             <tbl:button 
6306 13 Aug 13 nicklas 175               id="btnSetOwner"
5943 01 Feb 12 nicklas 176               disabled="<%=!setOwnerPermission%>"
5943 01 Feb 12 nicklas 177               image="take_ownership.png"
5943 01 Feb 12 nicklas 178               title="Set owner&hellip;"
5943 01 Feb 12 nicklas 179               tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>"
5943 01 Feb 12 nicklas 180             />
5943 01 Feb 12 nicklas 181             <tbl:button 
6306 13 Aug 13 nicklas 182               id="btnImport"
5946 03 Feb 12 nicklas 183               image="import.png" 
6306 13 Aug 13 nicklas 184               data-plugin-type="IMPORT"  
5943 01 Feb 12 nicklas 185               title="Import&hellip;" 
5943 01 Feb 12 nicklas 186               tooltip="Import data" 
5943 01 Feb 12 nicklas 187               visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>"
5943 01 Feb 12 nicklas 188             />
5943 01 Feb 12 nicklas 189             <tbl:button 
6306 13 Aug 13 nicklas 190               id="btnExport"
6306 13 Aug 13 nicklas 191               image="export.png"
6306 13 Aug 13 nicklas 192               data-plugin-type="EXPORT" 
5943 01 Feb 12 nicklas 193               title="Export&hellip;" 
5943 01 Feb 12 nicklas 194               tooltip="Export data" 
5943 01 Feb 12 nicklas 195               visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>"
5943 01 Feb 12 nicklas 196             />
5943 01 Feb 12 nicklas 197             <tbl:button 
6306 13 Aug 13 nicklas 198               id="btnRunPlugin"
6306 13 Aug 13 nicklas 199               image="runplugin.png"  
6306 13 Aug 13 nicklas 200               data-plugin-type="OTHER" 
5943 01 Feb 12 nicklas 201               title="Run plugin&hellip;" 
5943 01 Feb 12 nicklas 202               tooltip="Run a plugin" 
5943 01 Feb 12 nicklas 203               visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
5943 01 Feb 12 nicklas 204             />
5943 01 Feb 12 nicklas 205             <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 
7604 25 Feb 19 nicklas 206               wrapper="<%=new PrefixSuffixRenderer<ButtonAction>(jspContext, "<td>", "</td>") %>"/>
5943 01 Feb 12 nicklas 207             <tbl:button
5943 01 Feb 12 nicklas 208               image="help.png"
6306 13 Aug 13 nicklas 209               subclass="auto-init"
6306 13 Aug 13 nicklas 210               data-auto-init="help"
6306 13 Aug 13 nicklas 211               data-help-id="platetype.view.properties"
5943 01 Feb 12 nicklas 212               title="Help&hellip;"
5943 01 Feb 12 nicklas 213               tooltip="Get help about this page"
5943 01 Feb 12 nicklas 214             />
5943 01 Feb 12 nicklas 215           </tbl:toolbar>
5943 01 Feb 12 nicklas 216         </td>
5943 01 Feb 12 nicklas 217       </tr>
5943 01 Feb 12 nicklas 218       <tr>
5943 01 Feb 12 nicklas 219         <th>Name</th>
5943 01 Feb 12 nicklas 220         <td><%=HTML.encodeTags(plateType.getName())%></td>
5943 01 Feb 12 nicklas 221       </tr>
5943 01 Feb 12 nicklas 222       <tr>
5943 01 Feb 12 nicklas 223         <th>Registered</th>
5943 01 Feb 12 nicklas 224         <td><%=dateFormatter.format(plateType.getEntryDate())%></td>
5943 01 Feb 12 nicklas 225       </tr>
5943 01 Feb 12 nicklas 226       <tr>
5943 01 Feb 12 nicklas 227         <th>Geometry</th>
5943 01 Feb 12 nicklas 228         <td><base:propertyvalue item="<%=plateType%>" property="plateGeometry" /></td>
5943 01 Feb 12 nicklas 229       </tr>
5943 01 Feb 12 nicklas 230       <tr>
5943 01 Feb 12 nicklas 231         <th>Owner</th>
5943 01 Feb 12 nicklas 232         <td><base:propertyvalue item="<%=plateType%>" property="owner" /></td>
5943 01 Feb 12 nicklas 233       </tr>
5943 01 Feb 12 nicklas 234       <tr>
5943 01 Feb 12 nicklas 235         <th>Permissions</th>
5943 01 Feb 12 nicklas 236         <td><%=PermissionUtil.getFullPermissionNames(plateType)%></td>
5943 01 Feb 12 nicklas 237       </tr>
5943 01 Feb 12 nicklas 238       <tr>
5943 01 Feb 12 nicklas 239         <th>Description</th>
5943 01 Feb 12 nicklas 240         <td><%=HTML.niceFormat(plateType.getDescription())%></td>
5943 01 Feb 12 nicklas 241       </tr>
5943 01 Feb 12 nicklas 242       </table>
5943 01 Feb 12 nicklas 243       </div>
2446 29 Jun 06 nicklas 244
2446 29 Jun 06 nicklas 245       <%
2446 29 Jun 06 nicklas 246       ItemQuery<Plate> plateQuery = plateType.getPlates();
3888 29 Oct 07 nicklas 247       plateQuery.include(Include.ALL);
2446 29 Jun 06 nicklas 248       plateQuery.order(Orders.asc(Hql.property("name")));
2446 29 Jun 06 nicklas 249       ItemResultList<Plate> plates = plateQuery.list(dc);
5943 01 Feb 12 nicklas 250       %>
5943 01 Feb 12 nicklas 251       <base:section
5943 01 Feb 12 nicklas 252         id="plates"
5943 01 Feb 12 nicklas 253         title="<%="Plates (" + plates.size() + ")"%>"
5943 01 Feb 12 nicklas 254         context="<%=cc%>"
5943 01 Feb 12 nicklas 255         >
2446 29 Jun 06 nicklas 256         <%
5943 01 Feb 12 nicklas 257         if (plates.size() == 0)
5943 01 Feb 12 nicklas 258         {
5943 01 Feb 12 nicklas 259           %>
5943 01 Feb 12 nicklas 260           <div class="messagecontainer note">
5943 01 Feb 12 nicklas 261           No plate of this type exists
5943 01 Feb 12 nicklas 262           (or, you don't have permission to view them).
5943 01 Feb 12 nicklas 263           </div>
5943 01 Feb 12 nicklas 264           <%
5943 01 Feb 12 nicklas 265         }
5943 01 Feb 12 nicklas 266         else
5943 01 Feb 12 nicklas 267         {
5943 01 Feb 12 nicklas 268           %>
5044 11 Aug 09 martin 269           <tbl:table
5044 11 Aug 09 martin 270             id="plateTypes"
5044 11 Aug 09 martin 271             columns="all"
5044 11 Aug 09 martin 272             >
3547 03 Jul 07 martin 273           <tbl:columndef 
3547 03 Jul 07 martin 274             id="name"
3547 03 Jul 07 martin 275             title="Name"
3547 03 Jul 07 martin 276           />
3547 03 Jul 07 martin 277           <tbl:columndef 
5044 11 Aug 09 martin 278             id="barcode"
5044 11 Aug 09 martin 279             title="Barcode"
3547 03 Jul 07 martin 280           />
5044 11 Aug 09 martin 281           <tbl:columndef 
5044 11 Aug 09 martin 282             id="destroyed"
5044 11 Aug 09 martin 283             title="Destroyed"
5044 11 Aug 09 martin 284           />
5044 11 Aug 09 martin 285           <tbl:columndef 
5044 11 Aug 09 martin 286             id="description"
5044 11 Aug 09 martin 287             title="Description"
5044 11 Aug 09 martin 288           />
3547 03 Jul 07 martin 289           <tbl:data>
5943 01 Feb 12 nicklas 290             <tbl:headers>
5943 01 Feb 12 nicklas 291               <tbl:headerrow>
5943 01 Feb 12 nicklas 292                 <tbl:columnheaders />
5943 01 Feb 12 nicklas 293               </tbl:headerrow>
5943 01 Feb 12 nicklas 294             </tbl:headers>
3547 03 Jul 07 martin 295             <tbl:rows>
3547 03 Jul 07 martin 296             <%
5044 11 Aug 09 martin 297             for (Plate item : plates)
3547 03 Jul 07 martin 298             {
5044 11 Aug 09 martin 299               %>
3547 03 Jul 07 martin 300               <tbl:row>
3888 29 Oct 07 nicklas 301                 <tbl:cell column="name"><base:icon 
5946 03 Feb 12 nicklas 302                     image="deleted.png" 
5044 11 Aug 09 martin 303                     tooltip="This item has been scheduled for deletion" 
5044 11 Aug 09 martin 304                     visible="<%=item.isRemoved()%>"
5044 11 Aug 09 martin 305                   /><%=Base.getLinkedName(ID, item, false, true)%></tbl:cell>
5044 11 Aug 09 martin 306                 <tbl:cell column="barcode"><%=HTML.encodeTags(item.getBarcode())%></tbl:cell>
5044 11 Aug 09 martin 307                 <tbl:cell column="destroyed"><%=item.isDestroyed() ? "yes" : "no" %></tbl:cell>
5044 11 Aug 09 martin 308                 <tbl:cell column="description"><%=HTML.encodeTags(item.getDescription())%></tbl:cell>
3547 03 Jul 07 martin 309               </tbl:row>
3547 03 Jul 07 martin 310               <%
3547 03 Jul 07 martin 311             }
3547 03 Jul 07 martin 312             %>
3547 03 Jul 07 martin 313             </tbl:rows>
3547 03 Jul 07 martin 314           </tbl:data>
5044 11 Aug 09 martin 315           </tbl:table>
5943 01 Feb 12 nicklas 316           <%
5943 01 Feb 12 nicklas 317         }
5943 01 Feb 12 nicklas 318         %>
5943 01 Feb 12 nicklas 319       </base:section>
5499 17 Nov 10 nicklas 320       <jsp:include page="../../common/anytoany/list_anytoany.jsp">
5499 17 Nov 10 nicklas 321         <jsp:param name="ID" value="<%=ID%>" />
5499 17 Nov 10 nicklas 322         <jsp:param name="item_type" value="<%=itemType.name()%>" />
5499 17 Nov 10 nicklas 323         <jsp:param name="item_id" value="<%=itemId%>" />
5499 17 Nov 10 nicklas 324         <jsp:param name="title" value="Other items related to this plate type" />
5499 17 Nov 10 nicklas 325       </jsp:include>
5943 01 Feb 12 nicklas 326       <jsp:include page="../../common/share/list_share.jsp">
5943 01 Feb 12 nicklas 327         <jsp:param name="ID" value="<%=ID%>" />
5943 01 Feb 12 nicklas 328         <jsp:param name="item_type" value="<%=itemType.name()%>" />
5943 01 Feb 12 nicklas 329         <jsp:param name="item_id" value="<%=itemId%>" />
5943 01 Feb 12 nicklas 330         <jsp:param name="title" value="Shared to" />
5943 01 Feb 12 nicklas 331       </jsp:include>
5943 01 Feb 12 nicklas 332     </t:tab>
5943 01 Feb 12 nicklas 333     <t:tab id="events" title="Event types" />
5943 01 Feb 12 nicklas 334     </t:tabcontrol>
2305 22 May 06 jari 335   </base:body>
2305 22 May 06 jari 336   </base:page>
2305 22 May 06 jari 337   <%
2305 22 May 06 jari 338 }
2305 22 May 06 jari 339 finally
2305 22 May 06 jari 340 {
2305 22 May 06 jari 341   if (dc != null) dc.close();
2305 22 May 06 jari 342 }
2305 22 May 06 jari 343
2305 22 May 06 jari 344 %>