2107 |
24 Mar 06 |
nicklas |
1 |
<%-- $Id$ |
2107 |
24 Mar 06 |
nicklas |
2 |
------------------------------------------------------------------ |
5425 |
23 Sep 10 |
nicklas |
Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg, Martin Svensson |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2007 Nicklas Nordborg, Martin Svensson |
2107 |
24 Mar 06 |
nicklas |
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/ |
2107 |
24 Mar 06 |
nicklas |
8 |
|
2107 |
24 Mar 06 |
nicklas |
9 |
BASE is free software; you can redistribute it and/or |
2107 |
24 Mar 06 |
nicklas |
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 |
2107 |
24 Mar 06 |
nicklas |
12 |
of the License, or (at your option) any later version. |
2107 |
24 Mar 06 |
nicklas |
13 |
|
2107 |
24 Mar 06 |
nicklas |
14 |
BASE is distributed in the hope that it will be useful, |
2107 |
24 Mar 06 |
nicklas |
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
2107 |
24 Mar 06 |
nicklas |
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2107 |
24 Mar 06 |
nicklas |
17 |
GNU General Public License for more details. |
2107 |
24 Mar 06 |
nicklas |
18 |
|
2107 |
24 Mar 06 |
nicklas |
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/>. |
2107 |
24 Mar 06 |
nicklas |
21 |
------------------------------------------------------------------ |
2107 |
24 Mar 06 |
nicklas |
22 |
|
2107 |
24 Mar 06 |
nicklas |
23 |
@author Nicklas |
2107 |
24 Mar 06 |
nicklas |
24 |
@version 2.0 |
2107 |
24 Mar 06 |
nicklas |
25 |
--%> |
5426 |
24 Sep 10 |
nicklas |
26 |
<%@ page pageEncoding="UTF-8" session="false" |
2107 |
24 Mar 06 |
nicklas |
27 |
import="net.sf.basedb.core.SessionControl" |
2107 |
24 Mar 06 |
nicklas |
28 |
import="net.sf.basedb.core.DbControl" |
2107 |
24 Mar 06 |
nicklas |
29 |
import="net.sf.basedb.core.SystemItems" |
3547 |
03 Jul 07 |
martin |
30 |
import="net.sf.basedb.core.Group" |
2107 |
24 Mar 06 |
nicklas |
31 |
import="net.sf.basedb.core.Item" |
2107 |
24 Mar 06 |
nicklas |
32 |
import="net.sf.basedb.core.ItemContext" |
5045 |
12 Aug 09 |
martin |
33 |
import="net.sf.basedb.core.ItemResultList" |
3547 |
03 Jul 07 |
martin |
34 |
import="net.sf.basedb.core.MultiPermissions" |
2107 |
24 Mar 06 |
nicklas |
35 |
import="net.sf.basedb.core.Permission" |
2107 |
24 Mar 06 |
nicklas |
36 |
import="net.sf.basedb.core.Formula" |
2733 |
16 Oct 06 |
nicklas |
37 |
import="net.sf.basedb.core.Coloring" |
2107 |
24 Mar 06 |
nicklas |
38 |
import="net.sf.basedb.core.User" |
2107 |
24 Mar 06 |
nicklas |
39 |
import="net.sf.basedb.core.RawDataType" |
2107 |
24 Mar 06 |
nicklas |
40 |
import="net.sf.basedb.core.PermissionDeniedException" |
2107 |
24 Mar 06 |
nicklas |
41 |
import="net.sf.basedb.core.PluginDefinition" |
2107 |
24 Mar 06 |
nicklas |
42 |
import="net.sf.basedb.core.plugin.GuiContext" |
2107 |
24 Mar 06 |
nicklas |
43 |
import="net.sf.basedb.core.plugin.Plugin" |
3547 |
03 Jul 07 |
martin |
44 |
import="net.sf.basedb.core.Project" |
2733 |
16 Oct 06 |
nicklas |
45 |
import="net.sf.basedb.util.Values" |
2107 |
24 Mar 06 |
nicklas |
46 |
import="net.sf.basedb.clients.web.Base" |
5065 |
19 Aug 09 |
nicklas |
47 |
import="net.sf.basedb.clients.web.ChangeHistoryUtil" |
2386 |
15 Jun 06 |
martin |
48 |
import="net.sf.basedb.clients.web.PermissionUtil" |
2107 |
24 Mar 06 |
nicklas |
49 |
import="net.sf.basedb.clients.web.util.HTML" |
4698 |
10 Dec 08 |
nicklas |
50 |
import="net.sf.basedb.util.formatter.Formatter" |
4698 |
10 Dec 08 |
nicklas |
51 |
import="net.sf.basedb.clients.web.formatter.FormatterFactory" |
4879 |
03 Apr 09 |
nicklas |
52 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4879 |
03 Apr 09 |
nicklas |
53 |
import="net.sf.basedb.clients.web.extensions.JspContext" |
4879 |
03 Apr 09 |
nicklas |
54 |
import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer" |
7604 |
25 Feb 19 |
nicklas |
55 |
import="net.sf.basedb.clients.web.extensions.toolbar.ButtonAction" |
4879 |
03 Apr 09 |
nicklas |
56 |
import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil" |
4879 |
03 Apr 09 |
nicklas |
57 |
import="net.sf.basedb.util.extensions.ExtensionsInvoker" |
4698 |
10 Dec 08 |
nicklas |
58 |
import="java.util.Date" |
3547 |
03 Jul 07 |
martin |
59 |
import="java.util.Collections" |
2107 |
24 Mar 06 |
nicklas |
60 |
import="java.util.List" |
2107 |
24 Mar 06 |
nicklas |
61 |
import="java.util.Map" |
3547 |
03 Jul 07 |
martin |
62 |
import="java.util.Set" |
2107 |
24 Mar 06 |
nicklas |
63 |
%> |
2107 |
24 Mar 06 |
nicklas |
64 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2107 |
24 Mar 06 |
nicklas |
65 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
2107 |
24 Mar 06 |
nicklas |
66 |
<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %> |
2107 |
24 Mar 06 |
nicklas |
67 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4879 |
03 Apr 09 |
nicklas |
68 |
<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %> |
2107 |
24 Mar 06 |
nicklas |
69 |
<%! |
2107 |
24 Mar 06 |
nicklas |
70 |
private static final Item itemType = Item.FORMULA; |
2107 |
24 Mar 06 |
nicklas |
71 |
private static final GuiContext guiContext = new GuiContext(itemType, GuiContext.Type.ITEM); |
2107 |
24 Mar 06 |
nicklas |
72 |
%> |
2107 |
24 Mar 06 |
nicklas |
73 |
<% |
2107 |
24 Mar 06 |
nicklas |
74 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
2107 |
24 Mar 06 |
nicklas |
75 |
final String ID = sc.getId(); |
2107 |
24 Mar 06 |
nicklas |
76 |
final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); |
2107 |
24 Mar 06 |
nicklas |
77 |
final int itemId = cc.getId(); |
5065 |
19 Aug 09 |
nicklas |
78 |
final String tab = Values.getString(request.getParameter("tab"), "properties"); |
2107 |
24 Mar 06 |
nicklas |
79 |
final float scale = Base.getScale(sc); |
7954 |
12 May 21 |
nicklas |
80 |
final DbControl dc = sc.newDbControl(":View "+itemType); |
2107 |
24 Mar 06 |
nicklas |
81 |
try |
2107 |
24 Mar 06 |
nicklas |
82 |
{ |
4698 |
10 Dec 08 |
nicklas |
83 |
Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc); |
2107 |
24 Mar 06 |
nicklas |
84 |
Map<Plugin.MainType, Integer> pluginCount = PluginDefinition.countPlugins(dc, guiContext); |
2107 |
24 Mar 06 |
nicklas |
85 |
|
2107 |
24 Mar 06 |
nicklas |
86 |
String title = null; |
2107 |
24 Mar 06 |
nicklas |
87 |
final Formula formula = Formula.getById(dc, itemId); |
2107 |
24 Mar 06 |
nicklas |
88 |
final RawDataType rawDataType = formula.getRawDataType(); |
2107 |
24 Mar 06 |
nicklas |
89 |
final List<String> expressions = formula.getFormulas(); |
2733 |
16 Oct 06 |
nicklas |
90 |
final Coloring coloring = formula.getColoring(); |
2107 |
24 Mar 06 |
nicklas |
91 |
|
2107 |
24 Mar 06 |
nicklas |
92 |
final boolean writePermission = formula.hasPermission(Permission.WRITE); |
2107 |
24 Mar 06 |
nicklas |
93 |
final boolean deletePermission = formula.hasPermission(Permission.DELETE); |
2107 |
24 Mar 06 |
nicklas |
94 |
final boolean sharePermission = formula.hasPermission(Permission.SET_PERMISSION); |
2918 |
15 Nov 06 |
nicklas |
95 |
final boolean setOwnerPermission = formula.hasPermission(Permission.SET_OWNER); |
4003 |
26 Nov 07 |
nicklas |
96 |
final boolean isRemoved = formula.isRemoved(); |
4003 |
26 Nov 07 |
nicklas |
97 |
final boolean isUsed = isRemoved && formula.isUsed(); |
4003 |
26 Nov 07 |
nicklas |
98 |
final boolean deletePermanentlyPermission = deletePermission && !isUsed; |
2918 |
15 Nov 06 |
nicklas |
99 |
final boolean isOwner = formula.isOwner(); |
4879 |
03 Apr 09 |
nicklas |
100 |
JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, formula); |
7604 |
25 Feb 19 |
nicklas |
101 |
ExtensionsInvoker<ButtonAction> invoker = ToolbarUtil.useExtensions(jspContext); |
2107 |
24 Mar 06 |
nicklas |
102 |
%> |
6311 |
23 Aug 13 |
nicklas |
103 |
<base:page title="<%=title%>" id="view-page"> |
6311 |
23 Aug 13 |
nicklas |
104 |
<base:head scripts="table.js,tabcontrol-2.js,~formulas.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> |
4879 |
03 Apr 09 |
nicklas |
105 |
<ext:scripts context="<%=jspContext%>" /> |
4879 |
03 Apr 09 |
nicklas |
106 |
<ext:stylesheets context="<%=jspContext%>" /> |
2107 |
24 Mar 06 |
nicklas |
107 |
</base:head> |
2107 |
24 Mar 06 |
nicklas |
108 |
<base:body> |
5939 |
30 Jan 12 |
nicklas |
109 |
<p:path><p:pathelement |
5939 |
30 Jan 12 |
nicklas |
110 |
title="Formulas" href="<%="index.jsp?ID="+ID%>" |
5939 |
30 Jan 12 |
nicklas |
111 |
/><p:pathelement title="<%=HTML.encodeTags(formula.getName())%>" |
5939 |
30 Jan 12 |
nicklas |
112 |
/></p:path> |
6311 |
23 Aug 13 |
nicklas |
113 |
<div id="page-data" data-item-id="<%=itemId%>"></div> |
2107 |
24 Mar 06 |
nicklas |
114 |
|
5939 |
30 Jan 12 |
nicklas |
115 |
<t:tabcontrol |
5939 |
30 Jan 12 |
nicklas |
116 |
id="main" |
5939 |
30 Jan 12 |
nicklas |
117 |
subclass="content mastertabcontrol" |
6244 |
25 Feb 13 |
nicklas |
118 |
active="<%=tab%>"> |
2107 |
24 Mar 06 |
nicklas |
119 |
<t:tab id="properties" title="Properties"> |
5939 |
30 Jan 12 |
nicklas |
120 |
<div> |
5939 |
30 Jan 12 |
nicklas |
121 |
<table class="fullform bottomborder"> |
5939 |
30 Jan 12 |
nicklas |
122 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
123 |
<th class="itemstatus"> |
4003 |
26 Nov 07 |
nicklas |
124 |
<base:icon |
5946 |
03 Feb 12 |
nicklas |
125 |
image="shared.png" |
5939 |
30 Jan 12 |
nicklas |
126 |
visible="<%=formula.isShared()%>" |
5939 |
30 Jan 12 |
nicklas |
127 |
tooltip="This item is shared to other users, groups and/or projects" |
5939 |
30 Jan 12 |
nicklas |
128 |
/> |
5939 |
30 Jan 12 |
nicklas |
129 |
<base:icon |
6311 |
23 Aug 13 |
nicklas |
130 |
id="btnDeletePermanently" |
5946 |
03 Feb 12 |
nicklas |
131 |
image="deleted.png" |
5939 |
30 Jan 12 |
nicklas |
132 |
tooltip="This item has been flagged for deletion. Click to delete it now." |
5939 |
30 Jan 12 |
nicklas |
133 |
enabled="<%=deletePermanentlyPermission %>" |
5939 |
30 Jan 12 |
nicklas |
134 |
visible="<%=isRemoved%>" |
5939 |
30 Jan 12 |
nicklas |
135 |
/> |
6311 |
23 Aug 13 |
nicklas |
136 |
<base:icon |
6311 |
23 Aug 13 |
nicklas |
137 |
id="btnUsingItems" |
6311 |
23 Aug 13 |
nicklas |
138 |
image="used.png" |
5939 |
30 Jan 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" |
5939 |
30 Jan 12 |
nicklas |
140 |
visible="<%=isRemoved && isUsed%>" /> |
5939 |
30 Jan 12 |
nicklas |
141 |
</th> |
5939 |
30 Jan 12 |
nicklas |
142 |
<td style="padding: 0px;"> |
6605 |
18 Nov 14 |
nicklas |
143 |
<tbl:toolbar subclass="bottomborder bg-filled-50"> |
5939 |
30 Jan 12 |
nicklas |
144 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
145 |
id="btnEdit" |
5942 |
01 Feb 12 |
nicklas |
146 |
disabled="<%=!writePermission%>" |
5945 |
02 Feb 12 |
nicklas |
147 |
image="edit.png" |
5939 |
30 Jan 12 |
nicklas |
148 |
title="Edit…" |
5939 |
30 Jan 12 |
nicklas |
149 |
tooltip="<%=writePermission ? "Edit this formula" : "You do not have permission to edit this formula"%>" |
5939 |
30 Jan 12 |
nicklas |
150 |
/> |
5939 |
30 Jan 12 |
nicklas |
151 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
152 |
id="btnDelete" |
5942 |
01 Feb 12 |
nicklas |
153 |
disabled="<%=!deletePermission%>" |
5946 |
03 Feb 12 |
nicklas |
154 |
image="delete.png" |
5939 |
30 Jan 12 |
nicklas |
155 |
title="Delete" |
5939 |
30 Jan 12 |
nicklas |
156 |
visible="<%=!formula.isRemoved()%>" |
5939 |
30 Jan 12 |
nicklas |
157 |
tooltip="<%=deletePermission ? "Delete this formula" : "You do not have permission to delete this formula"%>" |
5939 |
30 Jan 12 |
nicklas |
158 |
/> |
5939 |
30 Jan 12 |
nicklas |
159 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
160 |
id="btnRestore" |
5942 |
01 Feb 12 |
nicklas |
161 |
disabled="<%=!writePermission%>" |
5946 |
03 Feb 12 |
nicklas |
162 |
image="restore.png" |
5939 |
30 Jan 12 |
nicklas |
163 |
title="Restore" |
5939 |
30 Jan 12 |
nicklas |
164 |
visible="<%=formula.isRemoved()%>" |
5939 |
30 Jan 12 |
nicklas |
165 |
tooltip="<%=writePermission ? "Restore this formula" : "You do not have permission to restore this formula"%>" |
5939 |
30 Jan 12 |
nicklas |
166 |
/> |
5939 |
30 Jan 12 |
nicklas |
167 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
168 |
id="btnShare" |
5942 |
01 Feb 12 |
nicklas |
169 |
disabled="<%=!sharePermission%>" |
5945 |
02 Feb 12 |
nicklas |
170 |
image="share.png" |
5939 |
30 Jan 12 |
nicklas |
171 |
title="Share…" |
5939 |
30 Jan 12 |
nicklas |
172 |
tooltip="<%=sharePermission ? "Share this formula to other user, groups and projects" : "You do not have permission to share this formula"%>" |
5939 |
30 Jan 12 |
nicklas |
173 |
/> |
5939 |
30 Jan 12 |
nicklas |
174 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
175 |
id="btnSetOwner" |
5942 |
01 Feb 12 |
nicklas |
176 |
disabled="<%=!setOwnerPermission%>" |
5939 |
30 Jan 12 |
nicklas |
177 |
image="take_ownership.png" |
5939 |
30 Jan 12 |
nicklas |
178 |
title="Set owner…" |
5939 |
30 Jan 12 |
nicklas |
179 |
tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" |
5939 |
30 Jan 12 |
nicklas |
180 |
/> |
5939 |
30 Jan 12 |
nicklas |
181 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
182 |
id="btnImport" |
5946 |
03 Feb 12 |
nicklas |
183 |
image="import.png" |
6311 |
23 Aug 13 |
nicklas |
184 |
data-plugin-type="IMPORT" |
5939 |
30 Jan 12 |
nicklas |
185 |
title="Import…" |
5939 |
30 Jan 12 |
nicklas |
186 |
tooltip="Import data" |
5939 |
30 Jan 12 |
nicklas |
187 |
visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" |
5939 |
30 Jan 12 |
nicklas |
188 |
/> |
5939 |
30 Jan 12 |
nicklas |
189 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
190 |
id="btnExport" |
6311 |
23 Aug 13 |
nicklas |
191 |
image="export.png" |
6311 |
23 Aug 13 |
nicklas |
192 |
data-plugin-type="EXPORT" |
5939 |
30 Jan 12 |
nicklas |
193 |
title="Export…" |
5939 |
30 Jan 12 |
nicklas |
194 |
tooltip="Export data" |
5939 |
30 Jan 12 |
nicklas |
195 |
visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" |
5939 |
30 Jan 12 |
nicklas |
196 |
/> |
5939 |
30 Jan 12 |
nicklas |
197 |
<tbl:button |
6311 |
23 Aug 13 |
nicklas |
198 |
id="btnRunPlugin" |
6311 |
23 Aug 13 |
nicklas |
199 |
image="runplugin.png" |
6311 |
23 Aug 13 |
nicklas |
200 |
data-plugin-type="OTHER" |
5939 |
30 Jan 12 |
nicklas |
201 |
title="Run plugin…" |
5939 |
30 Jan 12 |
nicklas |
202 |
tooltip="Run a plugin" |
5939 |
30 Jan 12 |
nicklas |
203 |
visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" |
5939 |
30 Jan 12 |
nicklas |
204 |
/> |
5939 |
30 Jan 12 |
nicklas |
205 |
<ext:render extensions="<%=invoker%>" context="<%=jspContext%>" |
7604 |
25 Feb 19 |
nicklas |
206 |
wrapper="<%=new PrefixSuffixRenderer<ButtonAction>(jspContext, "<td>", "</td>") %>"/> |
5939 |
30 Jan 12 |
nicklas |
207 |
<tbl:button |
5939 |
30 Jan 12 |
nicklas |
208 |
image="help.png" |
6311 |
23 Aug 13 |
nicklas |
209 |
subclass="auto-init" |
6311 |
23 Aug 13 |
nicklas |
210 |
data-auto-init="help" |
6311 |
23 Aug 13 |
nicklas |
211 |
data-help-id="formula.view.properties" |
5939 |
30 Jan 12 |
nicklas |
212 |
title="Help…" |
5939 |
30 Jan 12 |
nicklas |
213 |
tooltip="Get help about this page" |
5939 |
30 Jan 12 |
nicklas |
214 |
/> |
5939 |
30 Jan 12 |
nicklas |
215 |
</tbl:toolbar> |
5939 |
30 Jan 12 |
nicklas |
216 |
</td> |
5939 |
30 Jan 12 |
nicklas |
217 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
218 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
219 |
<th>Name</th> |
2107 |
24 Mar 06 |
nicklas |
220 |
<td><%=HTML.encodeTags(formula.getName())%></td> |
2107 |
24 Mar 06 |
nicklas |
221 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
222 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
223 |
<th>Registered</th> |
4698 |
10 Dec 08 |
nicklas |
224 |
<td><%=dateFormatter.format(formula.getEntryDate())%></td> |
4698 |
10 Dec 08 |
nicklas |
225 |
</tr> |
4698 |
10 Dec 08 |
nicklas |
226 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
227 |
<th>Type</th> |
2107 |
24 Mar 06 |
nicklas |
228 |
<td><%=formula.getFormulaType()%></td> |
2107 |
24 Mar 06 |
nicklas |
229 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
230 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
231 |
<th>Value type</th> |
5208 |
08 Jan 10 |
nicklas |
232 |
<td><%=formula.getValueType() == null ? "<i>- unknown -</i>" : formula.getValueType()%></td> |
5208 |
08 Jan 10 |
nicklas |
233 |
</tr> |
5208 |
08 Jan 10 |
nicklas |
234 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
235 |
<th>Parser</th> |
2107 |
24 Mar 06 |
nicklas |
236 |
<td><%=formula.getParser()%></td> |
2107 |
24 Mar 06 |
nicklas |
237 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
238 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
239 |
<th>Raw data type</th> |
2107 |
24 Mar 06 |
nicklas |
240 |
<td><%=rawDataType == null ? "<i>- none -</i>" : HTML.encodeTags(rawDataType.getName())%></td> |
2107 |
24 Mar 06 |
nicklas |
241 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
242 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
243 |
<th>Channels</th> |
2107 |
24 Mar 06 |
nicklas |
244 |
<td><%=formula.getChannels()%></td> |
2107 |
24 Mar 06 |
nicklas |
245 |
</tr> |
5939 |
30 Jan 12 |
nicklas |
246 |
<tr class="big"> |
5939 |
30 Jan 12 |
nicklas |
247 |
<th>Expressions</th> |
2107 |
24 Mar 06 |
nicklas |
248 |
<td> |
2107 |
24 Mar 06 |
nicklas |
249 |
<% |
2107 |
24 Mar 06 |
nicklas |
250 |
for (int i = 0; i < expressions.size(); ++i) |
2107 |
24 Mar 06 |
nicklas |
251 |
{ |
2107 |
24 Mar 06 |
nicklas |
252 |
%> |
2107 |
24 Mar 06 |
nicklas |
253 |
<%=(i+1) + ": " + HTML.encodeTags(expressions.get(i))%><br> |
2107 |
24 Mar 06 |
nicklas |
254 |
<% |
2107 |
24 Mar 06 |
nicklas |
255 |
} |
2107 |
24 Mar 06 |
nicklas |
256 |
%> |
2107 |
24 Mar 06 |
nicklas |
257 |
</td> |
2107 |
24 Mar 06 |
nicklas |
258 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
259 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
260 |
<th>Avg. method</th> |
3558 |
16 Jul 07 |
nicklas |
261 |
<td><%=formula.getAverageMethod().toString()%></td> |
3558 |
16 Jul 07 |
nicklas |
262 |
</tr> |
3558 |
16 Jul 07 |
nicklas |
263 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
264 |
<th>Source intensity transform</th> |
4918 |
04 May 09 |
nicklas |
265 |
<td><%=formula.getSourceIntensityTransform() == null ? "<i>- any -</i>" : formula.getSourceIntensityTransform().toString()%></td> |
4918 |
04 May 09 |
nicklas |
266 |
</tr> |
4918 |
04 May 09 |
nicklas |
267 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
268 |
<th>Result intensity transform</th> |
4918 |
04 May 09 |
nicklas |
269 |
<td><%=formula.getResultIntensityTransform() == null ? "<i>- any -</i>" : formula.getResultIntensityTransform().toString()%></td> |
4918 |
04 May 09 |
nicklas |
270 |
</tr> |
4918 |
04 May 09 |
nicklas |
271 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
272 |
<th>Use coloring</th> |
2733 |
16 Oct 06 |
nicklas |
273 |
<td> |
2733 |
16 Oct 06 |
nicklas |
274 |
<%=coloring.isUsingColors() ? "yes" : "no"%> |
2733 |
16 Oct 06 |
nicklas |
275 |
<% |
2733 |
16 Oct 06 |
nicklas |
276 |
if (coloring.isUsingColors()) |
2733 |
16 Oct 06 |
nicklas |
277 |
{ |
2733 |
16 Oct 06 |
nicklas |
278 |
%> |
2733 |
16 Oct 06 |
nicklas |
279 |
<b>Range</b> |
2733 |
16 Oct 06 |
nicklas |
280 |
[<%=Values.formatNumber(coloring.getMinValue(), 2)%>, |
2733 |
16 Oct 06 |
nicklas |
281 |
<%=Values.formatNumber(coloring.getMidValue(), 2)%>, |
2733 |
16 Oct 06 |
nicklas |
282 |
<%=Values.formatNumber(coloring.getMaxValue(), 2)%>] |
2733 |
16 Oct 06 |
nicklas |
283 |
<b>Logarithmic</b> <%=coloring.isLogarithmic() ? "yes" : "no" %> |
2733 |
16 Oct 06 |
nicklas |
284 |
<% |
2733 |
16 Oct 06 |
nicklas |
285 |
} |
2733 |
16 Oct 06 |
nicklas |
286 |
%> |
2733 |
16 Oct 06 |
nicklas |
287 |
</td> |
2733 |
16 Oct 06 |
nicklas |
288 |
</tr> |
2733 |
16 Oct 06 |
nicklas |
289 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
290 |
<th>Owner</th> |
2428 |
27 Jun 06 |
nicklas |
291 |
<td><base:propertyvalue item="<%=formula%>" property="owner" /></td> |
2107 |
24 Mar 06 |
nicklas |
292 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
293 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
294 |
<th>Permissions</th> |
5939 |
30 Jan 12 |
nicklas |
295 |
<td><%=PermissionUtil.getFullPermissionNames(formula)%></td> |
5939 |
30 Jan 12 |
nicklas |
296 |
</tr> |
5939 |
30 Jan 12 |
nicklas |
297 |
<tr> |
5939 |
30 Jan 12 |
nicklas |
298 |
<th>Description</th> |
2107 |
24 Mar 06 |
nicklas |
299 |
<td><%=HTML.niceFormat(formula.getDescription())%></td> |
2107 |
24 Mar 06 |
nicklas |
300 |
</tr> |
2107 |
24 Mar 06 |
nicklas |
301 |
</table> |
5939 |
30 Jan 12 |
nicklas |
302 |
</div> |
5939 |
30 Jan 12 |
nicklas |
303 |
|
5502 |
18 Nov 10 |
nicklas |
304 |
<jsp:include page="../../common/anytoany/list_anytoany.jsp"> |
5502 |
18 Nov 10 |
nicklas |
305 |
<jsp:param name="ID" value="<%=ID%>" /> |
5502 |
18 Nov 10 |
nicklas |
306 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
5502 |
18 Nov 10 |
nicklas |
307 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
5502 |
18 Nov 10 |
nicklas |
308 |
<jsp:param name="title" value="Other items related to this formula" /> |
5502 |
18 Nov 10 |
nicklas |
309 |
</jsp:include> |
5939 |
30 Jan 12 |
nicklas |
310 |
<jsp:include page="../../common/share/list_share.jsp"> |
5939 |
30 Jan 12 |
nicklas |
311 |
<jsp:param name="ID" value="<%=ID%>" /> |
5939 |
30 Jan 12 |
nicklas |
312 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
5939 |
30 Jan 12 |
nicklas |
313 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
5939 |
30 Jan 12 |
nicklas |
314 |
<jsp:param name="title" value="Shared to" /> |
5939 |
30 Jan 12 |
nicklas |
315 |
</jsp:include> |
2107 |
24 Mar 06 |
nicklas |
316 |
</t:tab> |
7166 |
07 Jun 16 |
nicklas |
317 |
<t:tab id="history" title="History" |
7166 |
07 Jun 16 |
nicklas |
318 |
tooltip="Displays a log with the history of this item" |
6311 |
23 Aug 13 |
nicklas |
319 |
visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> |
6244 |
25 Feb 13 |
nicklas |
320 |
<jsp:include page="../../common/history/frameset.jsp"> |
6244 |
25 Feb 13 |
nicklas |
321 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
6244 |
25 Feb 13 |
nicklas |
322 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
6244 |
25 Feb 13 |
nicklas |
323 |
<jsp:param name="ID" value="<%=ID%>" /> |
6244 |
25 Feb 13 |
nicklas |
324 |
</jsp:include> |
5065 |
19 Aug 09 |
nicklas |
325 |
</t:tab> |
2107 |
24 Mar 06 |
nicklas |
326 |
</t:tabcontrol> |
2107 |
24 Mar 06 |
nicklas |
327 |
|
2107 |
24 Mar 06 |
nicklas |
328 |
</base:body> |
2107 |
24 Mar 06 |
nicklas |
329 |
</base:page> |
2107 |
24 Mar 06 |
nicklas |
330 |
<% |
2107 |
24 Mar 06 |
nicklas |
331 |
} |
2107 |
24 Mar 06 |
nicklas |
332 |
finally |
2107 |
24 Mar 06 |
nicklas |
333 |
{ |
2107 |
24 Mar 06 |
nicklas |
334 |
if (dc != null) dc.close(); |
2107 |
24 Mar 06 |
nicklas |
335 |
} |
2107 |
24 Mar 06 |
nicklas |
336 |
|
2107 |
24 Mar 06 |
nicklas |
337 |
%> |