index.xhtml 6.86 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	>

<f:view contentType="text/html">

 
<h:head>
	<title>#{mapMB.currentProject.name}</title>
	
	<!-- Google Maps API version 3.20	-->
	<script src="https://maps.google.com/maps/api/js?libraries=drawing&amp;v=3.22" type="text/javascript"/>
	
	<link rel="shortcut icon" href="./resources/images/favicon.png" type="image/png" />

23
	<h:outputScript library="js" name="minerva.js"  />
24
25
26
27
28
29
30
	
	<ui:include src="/WEB-INF/components/map/statistics.xhtml" />

	<script type="text/javascript">
//<![CDATA[

function initMap(){
31
 	var configuration = new minerva.Configuration(document.getElementById('configurationForm:configurationGson').value);
32
33
34
35
36
37
	
	var mapElement = gmtls.getMap();
	if (configuration.MAPS!=null) {

		var windowsTouchInterface = ((navigator.appVersion.indexOf("Win")!=-1) && ('ontouchstart' in document.documentElement)); 
		var overviewDiv = document.getElementById("overviewDiv");
38
	  customMap = minerva.create({
39
40
41
42
43
44
		    map : mapElement, 
		    configuration : configuration, 
		    hideDiv : document.getElementById('leftPanel'), 
		    markerOptimization : !windowsTouchInterface, 
		    bigLogo : windowsTouchInterface, 
		    overviewDiv : overviewDiv,
45
		    customTouchInterface: windowsTouchInterface,
Piotr Gawron's avatar
Piotr Gawron committed
46
		    debug:false,
47
48
49
50
51
52
53
54
55

				dataCollections: [
								{name: "search"},
								{name: "missingConnection"},
								{name: "drug", allowSearchById:true, allowGeneralSearch: true},
								{name: "chemical", allowSearchById:#{chemicalMB.linkedToDisease()}, allowGeneralSearch: #{chemicalMB.linkedToDisease() == true}},
								{name: "mirna", allowSearchById:true, allowGeneralSearch: true},
								{name: "comment", allowSearchById:false, allowGeneralSearch: true},
				],
56
57
58
59
60
61
62
63
64
65
		});
  }
}

//]]>
		</script>
</h:head>
<h:body onload="initMap();" >
<h:outputStylesheet library="css" name="style.css"/>
<h:outputStylesheet library="css" name="pileup.css"/>
Piotr Gawron's avatar
Piotr Gawron committed
66
<h:outputStylesheet library="css" name="bootstrap.min.css"/>
67
68
69
70
71
72
73
74
75
76
77
78
79

	<h:outputScript library="primefaces" name="jquery/jquery.js" target="head"	/>
	<div class = "containerClass">
		<div id="leftPanel" class ="leftPanelClass">
		
		<ui:include src="/WEB-INF/components/admin/header.xhtml" />
		
<!--		<div class="tabNavigation">
		<a href="javascript:;" onclick="GuiConnector.tabNaviShow('prev');" class="naviLeft"><i class="fa fa-chevron-left"></i></a>
		<a href="javascript:;" onclick="GuiConnector.tabNaviShow('next');" class="naviRight"><i class="fa fa-chevron-right"></i></a>
		</div>
-->

Piotr Gawron's avatar
Piotr Gawron committed
80
			<p:tabView id="tabView" widgetVar="_tabViewVar" styleClass="leftTabView" activeIndex="0" >	
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
				<p:tab id="searchTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-search maintab'&gt;&lt;/i&gt;&lt;br&gt;SEARCH&lt;/div&gt;" styleClass="leftTab">
					<ui:include src="/WEB-INF/components/map/searchPanel.xhtml" />
				</p:tab >	
				<p:tab id="drugTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-map-marker maintab'&gt;&lt;/i&gt;&lt;br&gt;DRUG&lt;/div&gt;" styleClass="leftTab">	
					<ui:include src="/WEB-INF/components/map/drugPanel.xhtml" />
				</p:tab >	
				<p:tab id="chemicalTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-map-marker maintab'&gt;&lt;/i&gt;&lt;br&gt;CHEMICAL&lt;/div&gt;" styleClass="leftTab">	
					<ui:include src="/WEB-INF/components/map/chemicalPanel.xhtml" />
				</p:tab >
				<p:tab id="miRNATab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-map-marker maintab'&gt;&lt;/i&gt;&lt;br&gt;MiRNA&lt;/div&gt;" styleClass="leftTab">	
					<ui:include src="/WEB-INF/components/map/miRNAPanel.xhtml" />
				</p:tab >
				<p:tab id="layoutTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-th-list maintab'&gt;&lt;/i&gt;&lt;br&gt;OVERLAYS&lt;/div&gt;" styleClass="leftTab">
					<ui:include src="/WEB-INF/components/map/layoutPanel.xhtml" />
				</p:tab >	
				<p:tab id="loginTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-sign-in maintab'&gt;&lt;/i&gt;&lt;br&gt;LOGIN&lt;/div&gt;" styleClass="leftTab" rendered ="#{userMB.loggedUser.login=='anonymous'}">	
					<ui:include src="/WEB-INF/components/map/loginPanel.xhtml" />
				</p:tab >	
				<p:tab id="profileTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-user maintab'&gt;&lt;/i&gt;&lt;br&gt;PROFILE&lt;/div&gt;" styleClass="leftTab" rendered ="#{not (userMB.loggedUser.login=='anonymous')}">	
					<ui:include src="/WEB-INF/components/map/profilePanel.xhtml" />
				</p:tab >	
				<p:tab id="submapTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-sitemap maintab'&gt;&lt;/i&gt;&lt;br&gt;SUBMAPS&lt;/div&gt;" styleClass="leftTab">	
					<ui:include src="/WEB-INF/components/map/submapPanel.xhtml" />
				</p:tab >	
				<p:tab id="infoTab" title="&lt;div class='tngContainer'&gt;&lt;div class='tng'&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='maintabdiv'&gt;&lt;i class='fa fa-info maintab'&gt;&lt;/i&gt;&lt;br&gt;PROJECT&lt;/div&gt;" styleClass="leftTab">	
					<ui:include src="/WEB-INF/components/map/infoPanel.xhtml" />
				</p:tab >	
			</p:tabView >
			
			
			<div id="footerLinks">
			 <a href="admin.xhtml?id=#{mapMB.currentMapId}" style="float:left; padding-left:25px;"><i class="fa fa-lock" style="font-size:17px"></i> &nbsp;ADMIN</a>
			 <a href="#{configurationMB.userManual}" target="_user_manual_" style="float:left; padding-left:50px;"><i class="fa" style="font-size:17px"></i> &nbsp;MANUAL</a>
			 <a href="export.xhtml?id=#{mapMB.currentMapId}" style="float:right; padding-right:25px;">EXPORT&nbsp; <i class="fa fa-mail-forward" style="font-size:17px"></i></a>
			</div>
				
		</div>
		<div>
			<ui:include src="/WEB-INF/components/map/map.xhtml" />
		</div>
	</div>

	<!--<ui:include src="/WEB-INF/components/map/footer.xhtml" />-->
			
	<ui:include src="/WEB-INF/components/map/feedbackDialog.xhtml" />
	<ui:include src="/WEB-INF/components/map/missingConnectionDialog.xhtml" />

</h:body>
</f:view>
</html>