-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
119 lines (99 loc) · 3.72 KB
/
settings.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
<?php include('partials/headerSection.php')?>
<div class="main">
<?php include('partials/sideMenu.php')?>
<div class="mainContent">
<div class="topSection flex">
<div class="dashboardTitle">
<h1>Settings Page</h1>
</div>
<div class="userBox flex">
<a href="index.php">
<div class="adminImage">
<img src="./assets/images/pp.jpg" alt="Admin Image">
</div>
</a>
<div class="userName">
<span>Administrator</span>
<small><?php
if(isset($_SESSION['firstName'])){
echo $_SESSION['firstName'];
}
?></small>
</div>
<i class="uil uil-bell icon"></i>
</div>
</div>
<div class="body">
<div class="overViewDiv">
<div class="intro flex" >
<h3 class="title">Settings</h3>
<div class="addBtn">
<a href="dashboard.php">
<span>Save Settings</span>
</a>
</div>
</div>
</div>
<div class="mainItems">
<div class="addCaseContainer flex">
<div class="rowsDiv">
<div class="row">
<label for="firstAName">Full Name <small>Click to change</small></label>
<input type="text" id="firstAName" >
</div>
<div class="row">
<label for="secondName">Second Name <small>Click to change</small></label>
<input type="text" id="secondName" >
</div>
<div class="row">
<label for="id">Employee ID No. <small>Click to change</small></label>
<input type="text" id="id" >
</div>
<div class="row">
<label for="currentPassword">Current Password <small>Click to change</small></label>
<input type="password" id="currentPassword" >
</div>
</div>
<div class="rowsDiv">
<div class="row">
<label for="newPassword">New Password <small>Click to change</small></label>
<input type="password" id="newPassword" >
</div>
<div class="row">
<label for="confirmPassword">confirm Password <small>Click to change</small></label>
<input type="password" id="confirmPassword">
</div>
<div class="row">
<label for="roles">My Role <small>Click to change</small></label>
<select id="roles">
<option value="admin" selected>Administrator</option>
<option value="editor" >Editor</option>
</select>
</div>
<div class="row">
<!-- <input type="hidden" name="updatedID" value="<?php echo $id; ?>"> -->
<input type="submit" name="submit" id="submitBtn" value="Update">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
//Image Upload Functionality
const file = document.getElementById('file')
const img = document.querySelector('#image')
//Function to change image
file.addEventListener('change', function(){
const choosedFile = this.files[0]
if(choosedFile){
const reader = new FileReader();
reader.addEventListener('load', function(){
img.setAttribute('src', reader.result)
})
reader.readAsDataURL(choosedFile)
}
})
</script>
<?php include('partials/footer.php')?>