-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.php
133 lines (101 loc) · 4.1 KB
/
main.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
<?php
require_once "Model/db.config.php";
require_once "Model/session.php";
require_once "Model/cataloguer.php";
isLogged($conn);
$objCataloguer = new Cataloguer($conn);
$objCataloguer->select($_SESSION['swallow_uid']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>SWALLOW | Metadata Ingestion System</title>
<meta charset="utf-8">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
<link rel="mask-icon" href="images/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link href="./styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<nav class="navbar top-nav-bar">
<a href="/main.php"><img src="images/logo-menu-image.png"></a>
<span class='top-nav-bar-version'>Version 1.2 </span>
<div class="top-nav-bar-profile">
<?php echo($objCataloguer->name." ".$objCataloguer->lastname) ?>
<div style="position:relative; float:right; padding-top: 10px;">
<a class="nav-link dropdown-toggle " href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-user top-nav-profile-icon"></span>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#" id="mmnu_myProfile">My Profile</a>
<a class="dropdown-item" href="Controller/logout.php">Logout</a>
</div>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row content">
<div class="col-sm-2 sidenav" id="main-menu" >
<ul class="nav nav-pills nav-stacked">
<li id="li_mmnu_home" class="active main-menu">
<a id="mmnu_home" href="#">
<img src="images/menu-icon-dashboard.png">
<span class='main-menu-help'>Dashboard</span>
</a>
</li>
<?php
if(isAdmin($conn)){
echo ("<li id='li_mmnu_manage_users' class='main-menu'>
<a id='mmnu_manage_users' href='#'>
<img src='images/menu-icon-cataloguer.png'>
<span class='main-menu-help'>Cataloguers</span>
</a>
</li>");
}
?>
<li id="li_mmnu_manage_collections" class="main-menu">
<a id="mmnu_manage_collections" href="#">
<img src="images/menu-icon-collection.png">
<span class='main-menu-help'>Collections</span>
</a>
</li>
<li id="li_mmnu_manage_items" class="main-menu">
<a id="mmnu_manage_items" href="#">
<img src="images/menu-icon-item.png">
<span class='main-menu-help'>Items</span>
</a>
</li>
<hr />
<li id="li_mmnu_import" class="main-menu">
<a id="mmnu_import" href="#">
<img src="images/menu-icon-import.png">
<span class='main-menu-help'>Import</span>
</a>
</li>
<li id="li_mmnu_export" class="main-menu">
<a id="mmnu_export" href="#">
<img src="images/menu-icon-export.png">
<span class='main-menu-help'>Export</span>
</a>
</li>
</div>
<div id="main" class="col-sm-10">
</div>
</div>
</div>
<!--
<footer class="container-fluid">
<p>Swallow: SpokenWeb Audio Metadata Ingest System | Alpha 0.1</p>
</footer>
-->
<script src='main.js' ></script>
</body>
</html>