6523 |
20 Dec 21 |
nicklas |
1 |
<%@ page |
6523 |
20 Dec 21 |
nicklas |
2 |
pageEncoding="UTF-8" |
6523 |
20 Dec 21 |
nicklas |
3 |
session="false" |
6523 |
20 Dec 21 |
nicklas |
4 |
import="net.sf.basedb.core.DbControl" |
6523 |
20 Dec 21 |
nicklas |
5 |
import="net.sf.basedb.core.SessionControl" |
6523 |
20 Dec 21 |
nicklas |
6 |
import="net.sf.basedb.core.RawBioAssay" |
6523 |
20 Dec 21 |
nicklas |
7 |
import="net.sf.basedb.clients.web.Base" |
6523 |
20 Dec 21 |
nicklas |
8 |
import="net.sf.basedb.clients.web.util.HTML" |
6523 |
20 Dec 21 |
nicklas |
9 |
import="net.sf.basedb.util.Values" |
6523 |
20 Dec 21 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
6523 |
20 Dec 21 |
nicklas |
11 |
%> |
6523 |
20 Dec 21 |
nicklas |
12 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
6523 |
20 Dec 21 |
nicklas |
13 |
<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %> |
6523 |
20 Dec 21 |
nicklas |
14 |
<% |
6523 |
20 Dec 21 |
nicklas |
15 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
6523 |
20 Dec 21 |
nicklas |
16 |
final String ID = sc.getId(); |
6523 |
20 Dec 21 |
nicklas |
17 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.varsearch.lucene-column"); |
6523 |
20 Dec 21 |
nicklas |
18 |
|
6523 |
20 Dec 21 |
nicklas |
19 |
final int rbaId = Values.getInt(request.getParameter("rbaId")); |
6526 |
20 Dec 21 |
nicklas |
20 |
final int fileId = Values.getInt(request.getParameter("fileId")); |
6523 |
20 Dec 21 |
nicklas |
21 |
final String idx = Values.getStringOrNull(request.getParameter("idx")); |
6523 |
20 Dec 21 |
nicklas |
22 |
|
6523 |
20 Dec 21 |
nicklas |
23 |
DbControl dc = null; |
6523 |
20 Dec 21 |
nicklas |
24 |
try |
6523 |
20 Dec 21 |
nicklas |
25 |
{ |
6523 |
20 Dec 21 |
nicklas |
26 |
dc = sc.newDbControl(); |
6523 |
20 Dec 21 |
nicklas |
27 |
RawBioAssay rba = RawBioAssay.getById(dc, rbaId); |
6523 |
20 Dec 21 |
nicklas |
28 |
String title = HTML.encodeTags(rba.getName()); |
6523 |
20 Dec 21 |
nicklas |
29 |
%> |
6523 |
20 Dec 21 |
nicklas |
30 |
<base:page type="popup" title="<%=title + " - Variants"%>"> |
6523 |
20 Dec 21 |
nicklas |
31 |
<base:head |
6523 |
20 Dec 21 |
nicklas |
32 |
scripts="tabcontrol-2.js,~rba-hits.js,~varsearch.js" |
6523 |
20 Dec 21 |
nicklas |
33 |
styles="tabcontrol.css,~css/varsearch.css" |
6523 |
20 Dec 21 |
nicklas |
34 |
> |
6523 |
20 Dec 21 |
nicklas |
35 |
<style> |
6523 |
20 Dec 21 |
nicklas |
36 |
th .varsearch-grid |
6523 |
20 Dec 21 |
nicklas |
37 |
{ |
6523 |
20 Dec 21 |
nicklas |
38 |
white-space: nowrap; |
6523 |
20 Dec 21 |
nicklas |
39 |
} |
6530 |
20 Dec 21 |
nicklas |
40 |
<% |
6530 |
20 Dec 21 |
nicklas |
41 |
if (fileId > 0) |
6530 |
20 Dec 21 |
nicklas |
42 |
{ |
6530 |
20 Dec 21 |
nicklas |
43 |
%> |
6530 |
20 Dec 21 |
nicklas |
44 |
.varsearch-grid .is-variant |
6530 |
20 Dec 21 |
nicklas |
45 |
{ |
6530 |
20 Dec 21 |
nicklas |
46 |
font-weight: bold; |
6530 |
20 Dec 21 |
nicklas |
47 |
} |
6530 |
20 Dec 21 |
nicklas |
48 |
.varsearch-grid .no-data |
6530 |
20 Dec 21 |
nicklas |
49 |
{ |
6530 |
20 Dec 21 |
nicklas |
50 |
color: #999999; |
6530 |
20 Dec 21 |
nicklas |
51 |
} |
6530 |
20 Dec 21 |
nicklas |
52 |
<% |
6530 |
20 Dec 21 |
nicklas |
53 |
} |
6530 |
20 Dec 21 |
nicklas |
54 |
%> |
6523 |
20 Dec 21 |
nicklas |
55 |
</style> |
6523 |
20 Dec 21 |
nicklas |
56 |
</base:head> |
6523 |
20 Dec 21 |
nicklas |
57 |
<base:body data-read-only="1"> |
6523 |
20 Dec 21 |
nicklas |
58 |
<h1 id="doc-title"><%=title%></h1> |
6523 |
20 Dec 21 |
nicklas |
59 |
|
6523 |
20 Dec 21 |
nicklas |
60 |
<div id="page-data" class="datacontainer" |
6526 |
20 Dec 21 |
nicklas |
61 |
data-rba="<%=rbaId%>" data-file="<%=fileId%>" data-idx="<%=HTML.encodeTags(idx)%>" |
6523 |
20 Dec 21 |
nicklas |
62 |
></div> |
6523 |
20 Dec 21 |
nicklas |
63 |
|
6523 |
20 Dec 21 |
nicklas |
64 |
<div class="content bottomborder"> |
6523 |
20 Dec 21 |
nicklas |
65 |
<table id="snp-table" style="width: 100%;"> |
6523 |
20 Dec 21 |
nicklas |
66 |
<tr class="bottomborder bg-filled-100"> |
6523 |
20 Dec 21 |
nicklas |
67 |
<th id="headers"></th> |
6523 |
20 Dec 21 |
nicklas |
68 |
</tr> |
6523 |
20 Dec 21 |
nicklas |
69 |
<tr class="bottomborder"> |
6523 |
20 Dec 21 |
nicklas |
70 |
<td id="results"></td> |
6523 |
20 Dec 21 |
nicklas |
71 |
</tr> |
6523 |
20 Dec 21 |
nicklas |
72 |
</table> |
6523 |
20 Dec 21 |
nicklas |
73 |
<div id="wizard-status"></div> |
6523 |
20 Dec 21 |
nicklas |
74 |
</div> |
6523 |
20 Dec 21 |
nicklas |
75 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
6523 |
20 Dec 21 |
nicklas |
76 |
<base:button id="close" title="Close" /> |
6523 |
20 Dec 21 |
nicklas |
77 |
</base:buttongroup> |
6523 |
20 Dec 21 |
nicklas |
78 |
</base:body> |
6523 |
20 Dec 21 |
nicklas |
79 |
</base:page> |
6523 |
20 Dec 21 |
nicklas |
80 |
<% |
6523 |
20 Dec 21 |
nicklas |
81 |
} |
6523 |
20 Dec 21 |
nicklas |
82 |
finally |
6523 |
20 Dec 21 |
nicklas |
83 |
{ |
6523 |
20 Dec 21 |
nicklas |
84 |
if (dc != null) dc.close(); |
6523 |
20 Dec 21 |
nicklas |
85 |
} |
6523 |
20 Dec 21 |
nicklas |
86 |
%> |