forked from khaivngo/QuickEval
/
scientistpanel.php
146 lines (117 loc) · 5.43 KB
/
scientistpanel.php
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<?php
require_once 'functions.php'; //also starts session
//Checks if user is logged in, and the user is scientist or higher level
if (isset($_SESSION['user'])) {
if ($_SESSION['user']['userType'] > 2) {
header('Location: index.php');
}
} else {
redirectAfterLogin('scientistpanel.php');
}
?>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- CSS -->
<link href="css/metro-bootstrap.css" rel="stylesheet">
<link href="css/jquery/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
<link href="css/jquery/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/highslide.css" />
<link href="css/style.css" rel="stylesheet">
<!-- JQuery -->
<script src="js/jquery/jquery.min.js"></script>
<script src="js/jquery/jquery-ui.custom.min.js"></script>
<!-- HighCharts -->
<script src="highcharts/js/highcharts.js"></script>
<script src="highcharts/js/highcharts-more.js"></script>
<script src="highcharts/js/modules/exporting.js"></script>
<style type="text/css">
${demo.css}
</style>
<!-- Metro UI -->
<script src="min/metro.min.js"></script>
<!-- PLUpload -->
<script src="plupload/js/plupload.full.min.js"></script>
<script src="plupload/js/jquery.ui.plupload/jquery.ui.plupload.js"></script>
<!-- Other JS -->
<script src="js/scientist/scientistScripts.js"></script>
<script src="js/scientist/exportExperiment.js"></script>
<script src="js/scientist/scientistPanelScripts.js"></script>
<script src="js/scientist/pictureAlgorithm.js"></script>
<script src="js/scientist/setUpExperiment.js"></script>
<script src="js/scientist/manageImageSets.js"></script>
<script src="js/scientist/fileUploadScripts.js"></script>
<script src="js/scientist/viewExperiments.js"></script>
<script src="js/scientist/experimentResults.js"></script>
<script src="js/scripts.js"></script>
<script src="js/scientist/highslide-with-gallery.js"></script>
<script type="text/javascript">
hs.graphicsDir = 'images/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.outlineType = 'glossy-dark';
hs.wrapperClassName = 'dark';
hs.captionEval = 'this.a.title';
hs.numberPosition = 'caption';
hs.useBox = true;
hs.width = 600;
hs.height = 400;
//hs.dimmingOpacity = 0.8;
// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
position: 'bottom center',
opacity: 0.75,
hideOnMouseOut: true
},
thumbstrip: {
position: 'above',
mode: 'horizontal',
relativeTo: 'expander'
}
});
// Make all images animate to the one visible thumbnail
var miniGalleryOptions1 = {
thumbnailId: 'thumb1'
}
</script>
</head>
<body class="metro" style="overflow-y:scroll">
<div id="wrapper">
<?php include_once("includes/header.html"); ?>
<div id="panels" style="width: 1200px; margin:auto; margin-bottom: 560px;">
<div id="left-panel" class="span4" style="float:left">
<nav class="sidebar light" >
<ul>
<li class="title">Scientist Panel</li>
<li id="dashboard" class="active stick bg-green"><a href="#"><i class="icon-home"></i>Dashboard</a></li>
<li class="title">Images</li>
<li id="upload-image"><a href="#"><i class="icon-upload"></i>Upload Image</a></li>
<li id="image-sets" ><a href="#"><i class="icon-image"></i>Manage Image Sets</a></li>
<li class="title">Experiments</li>
<li id="set-up-experiment" ><a href="#"><i class="icon-new"></i>Set Up Experiment</a></li>
<li id="view-experiments" ><a href="#"><i class="icon-folder"></i>View Experiments</a></li>
<li id="import-experiment" ><a href="#"><i class="icon-upload"></i>Import Experiment</a></li>
<li class="title">Other</li>
<li id="invite-scientist" ><a href="#"><i class="icon-user"></i>Invite Scientist</a></li>
</ul>
</nav>
</div>
<div id="right-panel" class="span7" style="float: left; margin:20px">
</div>
<div id="right-menu" class="bg-steel" style="float: left;">
</div>
<div id='below-right-menu' style='float:left'>
</div>
</div>
<?php include_once("includes/footer.html"); ?>
</div>
</body>
</html>