-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequestConsultation.php
More file actions
134 lines (89 loc) · 4.44 KB
/
Copy pathrequestConsultation.php
File metadata and controls
134 lines (89 loc) · 4.44 KB
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
<?php
session_start();
if (!isset($_SESSION['userID'])) {
echo "<script>alert('You are not logged in, please login or sign up first');</script>";
echo "<script>window.location = 'index.php';</script>";
exit();
}
if(!isset($_SESSION['userType']) || $_SESSION['userType']=="designer") {
echo "<script> alert('You do not have access to this page');</script>";
echo "<script>window.location = 'designerHomepage.php';</script>";
}
// Get designer ID from query string
$designerId = isset($_GET['designerID']) ? (int)$_GET['designerID'] : null;
if (!$designerId) {
// Handle error: missing designer ID
echo "Error: Designer ID not provided.";
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="requestConsultation.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="basic.css?v=<?php echo time(); ?>">
<title>Request design consultation page </title>
</head>
<body>
<header id="topBar">
<a href="clientHomepage.php"><img class="logo" src="images/lightBeigeLogo.png" alt="logo" ></a>
<a id="logout" href="logout.php">Log-out</a>
</header>
<main>
<div id="grid-home2">
<div id="textWrapper">
<p class="text">
<strong id="welcome"> Request design consultation</strong>
</p>
</div>
</div>
<div id="mainCONbody">
<div class="info">
<h1>Request Consultation Form</h1>
<form action="submit_request.php" method="post" >
<label for="room-type">Room Type:</label> <br>
<select id="room-type" name="room-type">
<option value="1">Living Room</option>
<option value="2">Kitchen</option>
<option value="3">Dining Room</option>
<option value="4">Bedroom</option>
</select> <br> <br>
<label >Room Dimensions ( in meter):<br>
<label> height: <input type="text" name="height"><br></label>
<label> width: <input type="text" name="width"></label>
</label><br><br>
<label for="design-category">Design Category:</label>
<select id="design-category" name="design-category">
<option value="4">Traditional</option>
<option value="3">Bohemian</option>
<option value="1">Country</option>
<option value="2">Modern</option>
</select> <br><br>
<label >Color Preferences:<br>
<input type="text" name="colorPreference">
</label><br><br>
<input type="hidden" name="designerId" value="<?php echo $designerId; ?>">
<div class="submit-container">
<input type='submit' value='Send' id="submitButten1">
</div>
</form>
</div>
</div>
</main>
<footer>
<p>Contact Us |Phone: 0116753695 |Email: <a id="email" href="mailto:LuminousDesign@LuminousDesign.com">LuminousDesign@LuminousDesign.com</a></p>
<p>Follow Us</p>
<div class="social-media-icons">
<a href=""><img src="images/x.png" alt="x icon" ></a>
<a href=""><img src="images/f.png" alt="facebook icon"></a>
<a href=""><img src="images/insta.png" alt="instagram icon"></a>
<a href=""><img src="images/in.png" alt="linkedIn icon"></a>
<a href=""><img src="images/p.PNG" alt="pintrest icon"></a>
<a href=""><img src="images/t.png" alt="tiktok icon"></a>
</div>
<p>© 2024 Luminous Design, All Rights Reserved.</p>
</footer>
</body>
</html>