-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhr-page.php
129 lines (109 loc) · 4.89 KB
/
hr-page.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
<?php //access controlling
session_start();
if( !isset($_SESSION['signed_in']) ) { //session not set
header('location:index.php');
exit();
}else if( !$_SESSION['signed_in'] ){ //session set, but not signed_in
header('location:index.php');
exit();
}else if( substr($_SESSION['username'], -1) != "R" ){ //session set, but not for HR
header('location:index.php');
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HR Profile</title>
<!--css styles-->
<link rel="stylesheet" href="css/styles_header.css">
<link rel="stylesheet" href="css/styles_hr-page.css">
<link rel="stylesheet" href="css/styles_footer.css">
<link rel="stylesheet" href="css/subnav.css">
<link rel="stylesheet" href="css/navpannel.css">
<!--jquery sources-->
<script src="js/jquery-3.3.1.js"></script>
<script src="js/hr_act.js" type="text/javascript"></script>
<script src="js/subnav.js" type="text/javascript"></script>
</head>
<body>
<!--Including header file-->
<?php
include_once("inc/header.php");
include_once("inc/navpannel.php");
$index = trim($_SESSION['username']);
include_once("inc/subnavstaff.php");
?>
<input type="hidden" name="index" id="index" value=<?php echo $index ?> >
<!--preview popup box (hidden)-->
<div class="popup_box">
</div>
<!--confirm dialog box (hidden)-->
<div class="confirmBox">
<div class="message"></div>
<span class="button yes">Yes</span>
<span class="button no">No</span>
</div>
<!--news upload popup(hidden)-->
<div class="upload_popup">
<form action="news_upload.php" method="post" enctype="multipart/form-data" id="news_upload">
Name<br><input type="text" id="news_name" placeholder="Enter Main Header Here" required><br><br>
Description<br><textarea id="news_des" placeholder="Add a optional description to display in the news page" rows="6"></textarea><br><br>
Expire Date<br>
<input type="text" name="year" value="2018" id="year">
<select name="month" id="month">
<option value="01">Jan</option><option value="02">Feb</option><option value="03">Mar</option><option value="04">Apr</option>
<option value="05">May</option><option value="06">Jun</option><option value="07">Jul</option><option value="08">Aug</option>
<option value="09">Sep</option><option value="10">Oct</option><option value="11">Nov</option><option value="12">Dec</option>
</select>
<select name="day" id="day">
<option value="01">01</option><option value="02">02</option><option value="03">03</option><option value="04">04</option>
<option value="05">05</option><option value="06">06</option><option value="07">07</option><option value="08">08</option>
<option value="09">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option>
<option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option>
<option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option>
<option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option>
<option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option>
<option value="29">29</option><option value="30">30</option><option value="31">31</option>
</select><br><br>
Select a file to upload
<p>(texts, documents, images and pdf only)</p>
<input type="file" name="fileToUpload" id="fileToUpload" required>
<div class="button_container">
<input type="submit" value="back" name="back">
<input type="submit" value="request" name="request">
</div>
</form>
</div>
<!--main body contents-->
<div class="container">
<!--still not approved news items-->
<div class="sm_cont" id="add_news">
<h4>Temporary News Items</h4>
<ul id="news_added">
</ul>
<button type="button" id="btn_news">Request new news item</button>
</div>
<!--approved news items-->
<div class="sm_cont" id="app_news">
<h4>Approved News Items</h4>
<ul id="app_news_added">
</ul>
</div>
<div class="sm_cont" id="sel_pro_lect">
<h4>Lecture Post Applications</h4>
<ul id="lec_apps">
</ul>
</div>
<div class="sm_cont" id="sel_pro_stud">
<h4>Student Applications</h4>
<ul id="stud_apps">
</ul>
</div>
</div>
<!--Include footer file-->
<?php include_once("inc/footer.php"); ?>
</body>
</html>