File: header.html

package info (click to toggle)
mrs 6.0.5%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,780 kB
  • sloc: ansic: 37,529; cpp: 24,043; perl: 3,274; sh: 124; makefile: 11
file content (65 lines) | stat: -rw-r--r-- 1,784 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" ?>
<div id="header">
	
<ul xmlns:mrs="http://mrs.cmbi.ru.nl/mrs-web/ml" id="menu">
	<li><a href=".">Home</a></li>
	<mrs:if test="${blastEnabled and not mobile}"><li><a href="blast">Blast</a></li></mrs:if>
	<mrs:if test="${alignEnabled and not mobile}"><li><a href="align">Align</a></li></mrs:if>
	<li><a id="status-menu" href="status">Status</a></li>
	<mrs:if test="${db and db != 'all' and not mobile}"><li><a href="info?db=${db}">Databank: ${db}</a></li></mrs:if>
	<li class="help"><a href="admin">Admin</a></li>
</ul>

<form xmlns:mrs="http://mrs.cmbi.ru.nl/mrs-web/ml"
	id="queryForm"
	class="blackbox" action="search" method="get">
	<mrs:if test="${not mobile}">
	<label>
		Search
		<select name="db" onchange="document.getElementById('queryForm').submit();" style="width:150px;">
			<option value="all">All Databanks</option>
			<mrs:options collection="databanks" value="id" label="name" selected="${db}" />
		</select>
	</label>
	<label>
		for
		<input id="q" type="text" name="q" size="40" value="${q}" />
	</label>
	<input type="submit" value="Search" class="submit"/>
	</mrs:if>
	<mrs:if test="${mobile}">
		<input name="db" value="all" type="hidden"/>
		<div class="search search-icon">
			<input id="q" type="text" name="q" size="40" value="${q}" />
		</div>
	</mrs:if>
	<input type="hidden" value="${count > 0 ? count : 3}" name="count" />

<!--
<script src="scripts/jquery-ui/jquery-ui.js" type="text/javascript">
</script>

<script language="JavaScript" type="text/javascript">
//<![CDATA[
jQuery(function() {
	try {
		var q = document.getElementById('queryForm').q;
		
		q.focus();
		q.select();
		
/*		$(q).autocomplete({
			source: "suggest_terms?db=${db}",
			minLength: 2,
		});
*/
		
	} catch (e) {}
});
// ]]>
</script>
-->

</form>

</div>