6744 |
18 Feb 15 |
nicklas |
1 |
<%-- $Id: add_members_frameset.jsp 6337 2013-10-28 15:29:30Z nicklas $ |
6744 |
18 Feb 15 |
nicklas |
2 |
------------------------------------------------------------------ |
6744 |
18 Feb 15 |
nicklas |
Copyright (C) 2008 Nicklas Nordborg |
6744 |
18 Feb 15 |
nicklas |
4 |
|
6744 |
18 Feb 15 |
nicklas |
5 |
This file is part of BASE - BioArray Software Environment. |
6744 |
18 Feb 15 |
nicklas |
6 |
Available at http://base.thep.lu.se/ |
6744 |
18 Feb 15 |
nicklas |
7 |
|
6744 |
18 Feb 15 |
nicklas |
8 |
BASE is free software; you can redistribute it and/or |
6744 |
18 Feb 15 |
nicklas |
9 |
modify it under the terms of the GNU General Public License |
6744 |
18 Feb 15 |
nicklas |
10 |
as published by the Free Software Foundation; either version 3 |
6744 |
18 Feb 15 |
nicklas |
11 |
of the License, or (at your option) any later version. |
6744 |
18 Feb 15 |
nicklas |
12 |
|
6744 |
18 Feb 15 |
nicklas |
13 |
BASE is distributed in the hope that it will be useful, |
6744 |
18 Feb 15 |
nicklas |
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
6744 |
18 Feb 15 |
nicklas |
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
6744 |
18 Feb 15 |
nicklas |
16 |
GNU General Public License for more details. |
6744 |
18 Feb 15 |
nicklas |
17 |
|
6744 |
18 Feb 15 |
nicklas |
18 |
You should have received a copy of the GNU General Public License |
6744 |
18 Feb 15 |
nicklas |
19 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
6744 |
18 Feb 15 |
nicklas |
20 |
------------------------------------------------------------------ |
6744 |
18 Feb 15 |
nicklas |
21 |
|
6744 |
18 Feb 15 |
nicklas |
22 |
@author Nicklas |
6744 |
18 Feb 15 |
nicklas |
23 |
@version 2.10 |
6744 |
18 Feb 15 |
nicklas |
24 |
--%> |
6744 |
18 Feb 15 |
nicklas |
25 |
<%@ page pageEncoding="UTF-8" session="false" |
6744 |
18 Feb 15 |
nicklas |
26 |
import="net.sf.basedb.core.SessionControl" |
6744 |
18 Feb 15 |
nicklas |
27 |
import="net.sf.basedb.core.DbControl" |
6744 |
18 Feb 15 |
nicklas |
28 |
import="net.sf.basedb.core.ItemList" |
6744 |
18 Feb 15 |
nicklas |
29 |
import="net.sf.basedb.core.Item" |
6753 |
20 Feb 15 |
nicklas |
30 |
import="net.sf.basedb.core.RawDataType" |
6753 |
20 Feb 15 |
nicklas |
31 |
import="net.sf.basedb.core.ItemSubtype" |
6744 |
18 Feb 15 |
nicklas |
32 |
import="net.sf.basedb.clients.web.Base" |
6744 |
18 Feb 15 |
nicklas |
33 |
import="net.sf.basedb.util.Values" |
6744 |
18 Feb 15 |
nicklas |
34 |
%> |
6744 |
18 Feb 15 |
nicklas |
35 |
<%@ taglib |
6744 |
18 Feb 15 |
nicklas |
36 |
prefix="base" uri="/WEB-INF/base.tld" |
6744 |
18 Feb 15 |
nicklas |
37 |
%> |
6744 |
18 Feb 15 |
nicklas |
38 |
<% |
6744 |
18 Feb 15 |
nicklas |
39 |
SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
6744 |
18 Feb 15 |
nicklas |
40 |
String ID = sc.getId(); |
6744 |
18 Feb 15 |
nicklas |
41 |
int listId = Values.getInt(request.getParameter("list_id")); |
7954 |
12 May 21 |
nicklas |
42 |
DbControl dc = sc.newDbControl(":Add members to item list"); |
6744 |
18 Feb 15 |
nicklas |
43 |
try |
6744 |
18 Feb 15 |
nicklas |
44 |
{ |
6744 |
18 Feb 15 |
nicklas |
45 |
ItemList list = ItemList.getById(dc, listId); |
6744 |
18 Feb 15 |
nicklas |
46 |
Item memberType = list.getMemberType(); |
6753 |
20 Feb 15 |
nicklas |
47 |
ItemSubtype subtype = list.getItemSubtype(); |
6753 |
20 Feb 15 |
nicklas |
48 |
RawDataType rawDataType = list.getRawDataType(); |
6753 |
20 Feb 15 |
nicklas |
49 |
|
6744 |
18 Feb 15 |
nicklas |
50 |
%> |
6744 |
18 Feb 15 |
nicklas |
51 |
<base:page type="popup" title="Select members"> |
6744 |
18 Feb 15 |
nicklas |
52 |
<base:head scripts="~add_members.js" /> |
6744 |
18 Feb 15 |
nicklas |
53 |
<base:body> |
6744 |
18 Feb 15 |
nicklas |
54 |
<h1>Select members</h1> |
6744 |
18 Feb 15 |
nicklas |
55 |
|
6744 |
18 Feb 15 |
nicklas |
56 |
<div id="page-data" class="datacontainer" |
6744 |
18 Feb 15 |
nicklas |
57 |
data-member-type="<%=memberType.name()%>" |
6753 |
20 Feb 15 |
nicklas |
58 |
data-subtype-id="<%=subtype != null ? subtype.getId() : "" %>" |
6753 |
20 Feb 15 |
nicklas |
59 |
data-rawdatatype-id="<%=rawDataType != null ? rawDataType.getId() : "" %>" |
6744 |
18 Feb 15 |
nicklas |
60 |
></div> |
6744 |
18 Feb 15 |
nicklas |
61 |
|
6744 |
18 Feb 15 |
nicklas |
62 |
<div id="f1" class="content"><iframe name="members" |
6744 |
18 Feb 15 |
nicklas |
63 |
src="" |
6744 |
18 Feb 15 |
nicklas |
64 |
class="absolutefull" style="width: 100%; height: 100%;"></iframe></div> |
6744 |
18 Feb 15 |
nicklas |
65 |
|
6744 |
18 Feb 15 |
nicklas |
66 |
<base:buttongroup subclass="dialogbuttons topborder"> |
6744 |
18 Feb 15 |
nicklas |
67 |
<base:button id="btnAddSelected" title="Add selected" /> |
6744 |
18 Feb 15 |
nicklas |
68 |
<base:button id="btnAddPage" title="Add current page" /> |
6744 |
18 Feb 15 |
nicklas |
69 |
<base:button id="btnAddAll" title="Add all" /> |
6744 |
18 Feb 15 |
nicklas |
70 |
<base:button id="close" title="Close" /> |
6744 |
18 Feb 15 |
nicklas |
71 |
</base:buttongroup> |
6744 |
18 Feb 15 |
nicklas |
72 |
|
6744 |
18 Feb 15 |
nicklas |
73 |
<form name="addMembers" action="index.jsp?ID=<%=ID%>" method="post" target="_top"> |
6744 |
18 Feb 15 |
nicklas |
74 |
<input type="hidden" name="cmd" value="AddMembers"> |
6744 |
18 Feb 15 |
nicklas |
75 |
<input type="hidden" name="list_id" value="<%=listId%>"> |
6744 |
18 Feb 15 |
nicklas |
76 |
<input type="hidden" name="which" value=""> |
6744 |
18 Feb 15 |
nicklas |
77 |
</form> |
6744 |
18 Feb 15 |
nicklas |
78 |
</base:body> |
6744 |
18 Feb 15 |
nicklas |
79 |
</base:page> |
6744 |
18 Feb 15 |
nicklas |
80 |
<% |
6744 |
18 Feb 15 |
nicklas |
81 |
} |
6744 |
18 Feb 15 |
nicklas |
82 |
finally |
6744 |
18 Feb 15 |
nicklas |
83 |
{ |
6744 |
18 Feb 15 |
nicklas |
84 |
if (dc != null) dc.close(); |
6744 |
18 Feb 15 |
nicklas |
85 |
} |
6744 |
18 Feb 15 |
nicklas |
86 |
%> |
6744 |
18 Feb 15 |
nicklas |
87 |
|
6744 |
18 Feb 15 |
nicklas |
88 |
|