-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-review-pts.php
125 lines (109 loc) · 4.64 KB
/
add-review-pts.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
<?php
session_start();
include "db_conn.php";
if (isset($_SESSION['sno']) && isset($_SESSION['user_id']))
?>
<!DOCTYPE html>
<html>
<link rel="icon" href="images\logo.jpg" type="image/icon type">
<title>DRM - Add Review</title>
<!-- Head Section -->
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
<link rel="stylesheet" href="styles\add-review-pts.css">
</head>
<!-- Body Section -->
<body>
<script src="script\add-review-pts.js"></script>
<div class="main">
<div class="section">
<!-- Top Nav Bar Section -->
<div class="navbar">
<div class="hamburger">
<i class="fas fa-bars"></i>
</div>
<h1 class="navbar-heading">Add Review
<a href="login.php" id="logoutButton"><button class="logout-btn" id="logoutButton" name="button"
type="button">Logout</button></a>
</h1>
</div>
<!-- Actual Body Container -->
<div class="main-body-container">
<!-- <h1 style="text-align: center;">Dashboard Page</h1>
<p style="text-align: center;">This is a Sample "Dashboard" Page.</p> -->
<form action="/action_page.php">
<div class="row">
<div class="label">
<label for="docId">Document ID</label>
</div>
<div class="input">
<!-- <input type="text" id="docId" name="docId" placeholder="Your document id..."> -->
<p>1234</p>
</div>
</div>
<div class="row">
<div class="label">
<label for="id">Review Points</label>
</div>
<div class="input">
<input type="file" id="doc-upload" name="doc-upload" accept="document">
</div>
</div>
<div class="row">
<input type="submit" value="Submit">
</div>
</form>
</div>
</div>
<!-- Side Bar Section -->
<div class="sidebar" id="sideNav">
<div class="profile">
<img src="images\dpp.jpg" alt="profile_picture">
<h3><?php $emptySpace = " "; echo $_SESSION['fname'] . $emptySpace . $_SESSION['lname']; ?></h3>
<p>Member</p>
</div>
<ul>
<li>
<a href="member-dashboard.php?<?php echo time(); ?>">
<span class="icon"><i class="fas fa-home"></i></span>
<span class="item">Dashboard</span>
</a>
</li>
<li>
<a href="member-assign-docs.php?<?php echo time(); ?>" class="active">
<span class="icon"><i class="fas fa-duotone fa-file-invoice"></i></span>
<span class="item">Assigned Documents</span>
</a>
</li>
</ul>
</div>
</div>
<script>
/* var hamburger = document.querySelector(".hamburger");
hamburger.addEventListener("click", function () {
document.querySelector("body").classList.toggle("active");
}) */
////
var hamburger = document.querySelector(".hamburger");
var logoutButton = document.getElementById("logoutButton");
var sideNav = document.getElementById("sideNav");
// When the side navigation bar is collapsed, set the logout button position to fixed.
sideNav.addEventListener("collapsed", () => {
logoutButton.style.position = "fixed";
logoutButton.style.top = "0";
});
// When the side navigation bar is expanded, set the logout button position to relative.
sideNav.addEventListener("expanded", () => {
logoutButton.style.position = "relative";
logoutButton.style.left = "70";
});
// Toggle the hamburger menu when clicked.
hamburger.addEventListener("click", function () {
document.querySelector("body").classList.toggle("active");
});
</script>
</body>
</html>