-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProfile.php
194 lines (162 loc) · 7.84 KB
/
Profile.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?php
#if user is logged in start session
session_start();
//check if the user is logged in
include("login/connection.php");
include("login/functions.php");
$user_data = check_login($con);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- Main Page/header/footer styles -->
<link rel="stylesheet" href="Profile.css" />
<link rel="stylesheet" href="header-footer\header.css" />
<link rel="stylesheet" href="header-footer\footer.css" />
<link rel="stylesheet" href="header-footer\scroll.css" />
<link rel="stylesheet" href="header-footer\screen.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" />
</head>
<!-- JS for constant header/footer -->
<script src="./header-footer/static-content.js"></script>
<script src="./radioCheck.js"></script>
<!-- body with dark scroller -->
<body style="overflow-x: hidden;" dark-scroll="">
<!-- Base layout -->
<div class="container-center-horizontal">
<!-- Screen Size -->
<div class="main-screen screen">
<!-- Constant header -->
<?php
if($user_data['email'] === '[email protected]'){
include 'header-footer/admin.php';
}else{
include 'header-footer/client.php';
}
?>
<div class="ellipse-1"></div>
<div class="ellipse-2"></div>
<img class="ellipse-3" src="images\Ellipse.png">
<img class="ellipse-4" src="images\Ellipse.png">
<img class="ellipse-5" src="images\Ellipse.png">
<img class="ellipse-6" src="images\Ellipse.png">
<img class="x-1" src="images\plus.png">
<img class="x-2" src="images\plus.png">
<img class="x-3" src="images\plus.png">
<div class="booking-title">
<h1 class="page-title">
Hey, <?php echo $user_data['firstName']; ?>
</h1>
<p class="page-subtitle">
Track the progress of your<br>orders...
</p>
</div>
<a href="logout.php">
<div class="log">
<button type="submit" class="buttonLog" name="log" id="log">LOGOUT</button>
</div>
</a>
<form action="Updating.php" method="post">
<div class="order-page">
<div class="top-part">
<img class="top-order" src="images\top-booking.svg" alt="top-order">
<div class="radio-me roboto-medium-black-18px">
Your Details
</div>
<input type="radio" class="radio-other" id="Other" name="name" onclick="allows()">
<div class="Other">EDIT</div>
<div class="first-name roboto-medium-black-18px">
<label for="first-name">First Name</label>
</div>
<input type="text" class="first-name-input" id="first-name" name="first-name"
value="<?php echo $user_data['firstName']; ?>" required disabled>
<div class="last-name roboto-medium-black-18px">
<label for="last-name">Last Name</label>
</div>
<input type="text" class="last-name-input" id="last-name" name="last-name"
value="<?php echo $user_data['lastName']; ?>" required disabled>
<div class="number roboto-medium-black-18px">
<label for="studNum">Staff/Student Number</label>
</div>
<input type="text" class="number-input" id="studNum" name="studNumber"
value="<?php echo $user_data['stNum']; ?>" required disabled>
<div class="email roboto-medium-black-18px">
<label for="mail">Email</label>
</div>
<input type="email" class="email-input" id="mail" name="mail"
value="<?php echo $user_data['email']; ?>" required disabled>
<div class="phone roboto-medium-black-18px">
<label for="phone">Phone Number</label>
</div>
<input type="tel" class="phone-input" id="phone" name="phone"
value="<?php echo $user_data['phone']; ?>" required disabled>
<input type="submit" class="button" name="logSubmit" id="logSubmit" value="EDIT">
<input type="hidden" name="studNum" value="<?php echo $_SESSION['id']; ?>">
</div>
</div>
</form>
<script>
function allows() {
document.getElementById("first-name").disabled = false;
document.getElementById("last-name").disabled = false;
document.getElementById("phone").disabled = false;
}
</script>
<div class="tracking">
<div class="bg-colour"></div>
<div class="status">
<form>
<div class="status-bg">
<div class="status-title">
Status:
</div>
<div class="ordered roboto-medium-black-18px">
Order Recieved
</div>
<div class="tech-ass roboto-medium-black-18px">
Technician Assigned
</div>
<div class="p-order roboto-medium-black-18px">
Parts Ordered
</div>
<div class="in-progress roboto-medium-black-18px">
Repair In Progress
</div>
<div class="invoice roboto-medium-black-18px">
Invoice Sent
</div>
<progress value = "<?php echo $user_data[''] ?>" max = "6"></progress>
<div class="expected-delivery roboto-medium-black-18px">
Collect
</div>
<div class="message-technician roboto-medium-black-18px">
Message "Your Technician"<!--<?php echo $user_data[''] ?>-->
</div>
<textarea class="tech-msg" name="text" placeholder="Write your message here..."></textarea>
<button type="submit" class="buttonTech" name="msgSubmit" id="msgSubmit">SEND</button>
</div>
</form>
<div class="information">
<div class="info-bg"></div>
<div class="info-title">
Device Information:
</div>
</div>
<div class="history">
<div class="history-bg"></div>
<div class="history-title">
History:
</div>
</div>
</div>
</div>
<plain-footer></plain-footer>
</div>
</div>
</body>
</html>