-
Notifications
You must be signed in to change notification settings - Fork 1
/
app_head.php
117 lines (111 loc) · 5.45 KB
/
app_head.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
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo LANG_APP_NAME . ': ' . $pageTitle; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php echo LANG_APP_NAME; ?>">
<meta name="author" content="OIT Project Group">
<!-- CSS: Framework -->
<link rel="stylesheet" href="<?php echo PATH_BOOTSTRAP_CSS; ?>" type="text/css" media="all">
<!-- apply padding for bootstrap.css only, not for bootstrap-responsive.css -->
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<!-- In our opinion, the BootStrap Responsive theme is optional; feel free to implement by uncommenting, below-->
<!-- <link rel="stylesheet" href="--><?php //echo PATH_BOOTSTRAP_RESPONSIVE_CSS; ?><!--" type="text/css"> -->
<!-- CSS: Plugins -->
<link rel="stylesheet" href="<?php echo PATH_JQUERYUI_CSS; ?>" />
<link rel="stylesheet" href="<?php echo APP_ROOT_PATH; ?>/css/WMS_bootstrap_PATCH.css" type="text/css" media="all">
<!-- jQuery: Framework -->
<script src="<?php echo PATH_JQUERY_JS; ?>"></script>
<script src="<?php echo PATH_JQUERYUI_JS; ?>"></script>
<!-- jQuery: Plugins -->
<script src="<?php echo PATH_BOOTSTRAP_JS; ?>"></script>
<script src="<?php echo PATH_BOOTSTRAP_BOOTBOX_JS; ?>"></script>
<!-- local JS -->
<script src="/digitalfieldnotebooks/js/digitalfieldnotebooks_util.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a id="home-link" href="<?php echo APP_ROOT_PATH; ?>"><i class="icon-home icon-white"></i> <b><?php echo LANG_APP_NAME; ?></b></a></li>
<li class="active dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="caret"></span> <b><?php echo ucfirst(util_lang('go_to')); ?></b></a>
<ul class="dropdown-menu">
<li><a id="nav-notebooks" href="<?php echo APP_ROOT_PATH; ?>/app_code/notebook.php?action=list"><?php echo ucfirst(util_lang('notebooks')); ?></a></li>
<li><a id="nav-authoritative-plants" href="<?php echo APP_ROOT_PATH; ?>/app_code/authoritative_plant.php?action=list"><?php echo ucfirst(util_lang('plants')); ?></a></li>
<li><a id="nav-metadata-structures" href="<?php echo APP_ROOT_PATH; ?>/app_code/metadata_structure.php?action=list"><?php echo ucfirst(util_lang('all_metadata')); ?></a></li>
<li><a id="nav-metadata-values" href="<?php echo APP_ROOT_PATH; ?>/app_code/metadata_term_set.php?action=list"><?php echo ucfirst(util_lang('all_metadata_term_sets')); ?></a></li>
</ul>
</li>
<li class="active"><a id="search-link" href="<?php echo APP_ROOT_PATH; ?>/app_code/search.php"><i class="icon-search icon-white"></i> <b><?php echo ucfirst(util_lang('search')); ?></b></a></li>
<?php
if ($IS_AUTHENTICATED) {
# is system admin?
if ($USER->flag_is_system_admin) {
?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench icon-white"></i>
Admin Only <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="admin_manage_users.php"><i class="icon-pencil"></i> Manage Users</a>
</li>
<li><a href="admin_manage_groups_courses.php"><i class="icon-pencil"></i> Manage
LDAP Groups/Courses</a></li>
<li class="divider"></li>
<li><a href="admin_reports.php">Reports</a></li>
</ul>
</li>
<?php
}
}
?>
</ul>
<?php
if ($IS_AUTHENTICATED) {
?>
<form id="frmSignout" class="navbar-form pull-right" method="post" action="<?php echo APP_ROOT_PATH; ?>/index.php">
<span class="muted">Signed in: <a href="account_management.php" title="My Account"><?php echo $_SESSION['userdata']['username']; ?></a></span>.
<input type="submit" id="submit_signout" class="btn" name="submit_signout" value="Sign out" />
</form>
<?php
}
else {
//util_prePrintR($LANGUAGE);
?>
<form id="frmSignin" class="navbar-form pull-right" method="post" action="">
<input type="text" id="username" class="span2" name="username" placeholder="<?php echo util_lang('username'); ?>" value="" />
<input type="password" id="password_login" class="span2" name="password" placeholder="<?php echo util_lang('password'); ?>" value="" />
<input type="submit" id="submit_signin" class="btn" name="submit_signin" value="<?php echo util_lang('app_sign_in_action'); ?>" />
</form>
<?php
}
?>
</div>
</div>
</div>
</div>
<div class="container"> <!--div closed in the footer-->
<?php
// display screen message?
if (isset($_REQUEST["success"])) {
util_displayMessage('success',$_REQUEST["success"]);
}
elseif (isset($_REQUEST["failure"])) {
util_displayMessage('error',$_REQUEST["failure"]);
}
elseif (isset($_REQUEST["info"])) {
util_displayMessage('info',$_REQUEST["info"]);
}
?>