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