|
@@ -0,0 +1,179 @@
|
|
1
|
+<!-- Authors : Carlos C. Corrada-Bravo
|
|
2
|
+ David J. Ortiz-Rivera
|
|
3
|
+
|
|
4
|
+ Organization : Centro de Desarrollo y Consultoria Computacional
|
|
5
|
+ Project : OPASO Material Registry
|
|
6
|
+ File : manage-personnel
|
|
7
|
+ Description : Manage laboratory personnel -->
|
|
8
|
+
|
|
9
|
+<!-- verify session -->
|
|
10
|
+<?php require_once("header.php");
|
|
11
|
+
|
|
12
|
+ /* start user session */
|
|
13
|
+ if(!isset($_SESSION)){
|
|
14
|
+ session_start();
|
|
15
|
+ }
|
|
16
|
+ if(!($_SESSION["access_level"] === "admin") and !($_SESSION["access_level"] === "investigator")){
|
|
17
|
+ header("Location: /menu");
|
|
18
|
+ die();
|
|
19
|
+ }
|
|
20
|
+?>
|
|
21
|
+
|
|
22
|
+<!doctype html>
|
|
23
|
+<html lang="en">
|
|
24
|
+ <!-- encoding/imports/styling -->
|
|
25
|
+ <head>
|
|
26
|
+ <meta charset="utf-8">
|
|
27
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
28
|
+ <title class="title">Manage Personnel</title>
|
|
29
|
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
|
|
30
|
+ <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
31
|
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
|
|
32
|
+ <link rel="stylesheet" href="./style/main.css">
|
|
33
|
+ <link rel="stylesheet" href="/style/manage.css">
|
|
34
|
+ <link rel="stylesheet" href="/style/add.css">
|
|
35
|
+ </head>
|
|
36
|
+
|
|
37
|
+ <!-- content -->
|
|
38
|
+ <body>
|
|
39
|
+ <!-- forms -->
|
|
40
|
+ <div class="form-shader close-form">
|
|
41
|
+ <!-- access form -->
|
|
42
|
+ <div class="main-form close-form">
|
|
43
|
+ <div class="form-wrapper">
|
|
44
|
+ <div class="form-header-wrapper">
|
|
45
|
+ <h5 class="form-header main-header"></h5>
|
|
46
|
+ <div class="close-icon"><i class="close-form material-icons">close</i></div>
|
|
47
|
+ </div>
|
|
48
|
+ <div class="form">
|
|
49
|
+ <div class="form-body">
|
|
50
|
+ <h6 class="form-header person"></h6>
|
|
51
|
+ <div class="select-wrapper">
|
|
52
|
+ <label class="select-label" for="number">Laboratory</label>
|
|
53
|
+ <select class="laboratories"></select>
|
|
54
|
+ </div>
|
|
55
|
+ <div class="select-wrapper">
|
|
56
|
+ <label class="select-label" for="number">Access Level</label>
|
|
57
|
+ <select class=access_level>
|
|
58
|
+ <option value="investigator">Investigator</option>
|
|
59
|
+ <option value="technician">Technician</option>
|
|
60
|
+ <option value="none">None</option>
|
|
61
|
+ </select>
|
|
62
|
+ </div>
|
|
63
|
+ </div>
|
|
64
|
+ <div class="form-actions">
|
|
65
|
+ <button class="btn btn-primary action-btn submit" id="main-submit">Submit</button>
|
|
66
|
+ </div>
|
|
67
|
+ </div>
|
|
68
|
+ </div>
|
|
69
|
+ </div>
|
|
70
|
+
|
|
71
|
+ <!-- add form -->
|
|
72
|
+ <div class="add-form close-form">
|
|
73
|
+ <div class="add-form-wrapper">
|
|
74
|
+ <div class="add-form-header-wrapper">
|
|
75
|
+ <h5 class="form-header">Add Personnel</h5>
|
|
76
|
+ <div class="close-icon"><i class="close-form material-icons">close</i></div>
|
|
77
|
+ </div>
|
|
78
|
+ <div class="add-form-body-wrapper">
|
|
79
|
+ <div class="add-form-body">
|
|
80
|
+ <div class="details material">
|
|
81
|
+ <div class="li-wrapper medium-field">
|
|
82
|
+ <label class="form-label" for="name">Full Name</label>
|
|
83
|
+ <input id="person_name" class="required ap-field" placeholder="Full name" type="text" name="name">
|
|
84
|
+ <div class="invalid-feedback person_name">Please provide a valid name</div>
|
|
85
|
+ </div>
|
|
86
|
+ <div class="li-append">
|
|
87
|
+ <div class="li-wrapper medium-field">
|
|
88
|
+ <label class="form-label" for="email">Email</label>
|
|
89
|
+ <input id="email" class="required ap-field" placeholder="someone@upr.edu" type="text" name="email">
|
|
90
|
+ <div class="invalid-feedback email">Please provide a valid email</div>
|
|
91
|
+ </div>
|
|
92
|
+ <div class="li-wrapper small-field margin-left phone-number">
|
|
93
|
+ <label class="form-label" for="number">Contact Number</label>
|
|
94
|
+ <input id="phone_number" class="ap-field" type="text" name="number" placeholder="Phone number" oninput="this.value = this.value.replace(/[^0-9.]/g,'').replace(/(\..*)\./g,'$1');">
|
|
95
|
+ </div>
|
|
96
|
+ </div>
|
|
97
|
+ </div>
|
|
98
|
+ </div>
|
|
99
|
+ <div class="add-form-actions">
|
|
100
|
+ <button class="btn btn-primary action-btn submit" id="add-submit">Submit</button>
|
|
101
|
+ </div>
|
|
102
|
+ </div>
|
|
103
|
+ </div>
|
|
104
|
+ </div>
|
|
105
|
+ </div>
|
|
106
|
+
|
|
107
|
+ <!-- alerts -->
|
|
108
|
+ <div class="alerts">
|
|
109
|
+ <div class="alert">
|
|
110
|
+ <div class="message-icon-wrapper">
|
|
111
|
+ <i class="message-icon success-icon material-icons">done</i>
|
|
112
|
+ <i class="message-icon error-icon failed-icon warning-icon material-icons">close</i>
|
|
113
|
+ </div>
|
|
114
|
+ <p class="alert-status"></p>
|
|
115
|
+ <p class="alert-message"></p>
|
|
116
|
+ </div>
|
|
117
|
+ </div>
|
|
118
|
+
|
|
119
|
+ <div class="content">
|
|
120
|
+ <!-- navbar -->
|
|
121
|
+ <?php require_once("navbar.php")?>
|
|
122
|
+ <div class="main">
|
|
123
|
+ <div class="header-wrapper">
|
|
124
|
+ <h5 class="header">Manage Personnel</h5>
|
|
125
|
+
|
|
126
|
+ <!-- processing -->
|
|
127
|
+ <div class="processing">
|
|
128
|
+ <p class="processing-text">Fetching personnel...</p>
|
|
129
|
+ <div class="loader"></div>
|
|
130
|
+ </div>
|
|
131
|
+ </div>
|
|
132
|
+ <div class="main-wrapper">
|
|
133
|
+ <!-- search form -->
|
|
134
|
+ <div class="float-right">
|
|
135
|
+ <div class="transaction btn btn-light" id="add">
|
|
136
|
+ <i class="fas fa-plus add-personnel-icon"></i>
|
|
137
|
+ <p class="add-text">Add</p>
|
|
138
|
+ </div>
|
|
139
|
+
|
|
140
|
+ <div class="search-form-wrapper">
|
|
141
|
+ <input class="search-form" placeholder="Search for personnel" type="text" name="search-form">
|
|
142
|
+ <button class="clear-btn search-form-submit">
|
|
143
|
+ <i class="material-icons clear-icon">close</i>
|
|
144
|
+ </button>
|
|
145
|
+ </div>
|
|
146
|
+ </div>
|
|
147
|
+
|
|
148
|
+ <!-- personnel -->
|
|
149
|
+ <h6 class="header sub-header">Personnel List</h6>
|
|
150
|
+ <div class="table-wrapper content-wrapper personnel">
|
|
151
|
+ <table class="table">
|
|
152
|
+ <thead class="table-header">
|
|
153
|
+ <tr>
|
|
154
|
+ <th value="person">Person</th>
|
|
155
|
+ <th >Authorized</th>
|
|
156
|
+ <th >Access Level</th>
|
|
157
|
+ <th >Actions</th>
|
|
158
|
+ </tr>
|
|
159
|
+ </thead>
|
|
160
|
+ <tbody></tbody>
|
|
161
|
+ </table>
|
|
162
|
+ </div>
|
|
163
|
+
|
|
164
|
+ <h6 class="header table-total"></h6>
|
|
165
|
+ </div>
|
|
166
|
+ </div>
|
|
167
|
+
|
|
168
|
+ <!-- footer -->
|
|
169
|
+ <?php require_once("footer.php")?>
|
|
170
|
+ </div>
|
|
171
|
+
|
|
172
|
+ <!-- scripts -->
|
|
173
|
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
174
|
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
|
|
175
|
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
|
|
176
|
+ <script type="text/javascript" src="/scripts/main.js"></script>
|
|
177
|
+ <script type="text/javascript" src="/scripts/manage-personnel.js"></script>
|
|
178
|
+ </body>
|
|
179
|
+</html>
|