-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrating.php
More file actions
160 lines (159 loc) · 5.82 KB
/
Copy pathrating.php
File metadata and controls
160 lines (159 loc) · 5.82 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Feedback</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); /* Example using Google Fonts */
body {
font-family: 'Roboto', sans-serif; /* Apply the new font */
background: url('register4.jpg') no-repeat center center fixed; /* Add background image */
background-size: cover; /* Make sure the background covers the whole page */
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: rgba(255, 255, 255, 0.7); /* Add transparency to the container background */
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 30px;
text-align: center;
max-width: 500px;
width: 100%;
box-sizing: border-box;
}
h2 {
color: #333333;
margin-bottom: 20px;
}
.rating {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.rating input {
display: none;
}
.rating label {
font-size: 30px;
color: #ccc;
cursor: pointer;
}
.rating input:checked ~ label,
.rating input:not(:checked) ~ label {
color: #ccc;
}
.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
color: #f5b301;
}
.feedback {
margin-top: 20px;
}
.feedback textarea,
.feedback input[type="text"] {
width: calc(100% - 20px);
padding: 10px;
border: 2px solid #007bff;
border-radius: 20px; /* Rounded edges */
resize: vertical;
margin-bottom: 20px;
box-sizing: border-box;
}
input[type="submit"] {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 20px; /* Rounded edges */
padding: 10px 20px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
width: 100%;
box-sizing: border-box;
margin-top: 20px;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
.question {
text-align: left;
margin-bottom: 10px;
}
.choices {
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 20px;
}
.choices label {
cursor: pointer;
margin-left: 10px;
}
</style>
</head>
<body>
<?php
session_start();
if (!isset($_SESSION['userid'])) {
echo '<meta http-equiv=REFRESH CONTENT=1;url=login.php>';
exit();
}
?>
<div class="container">
<h2>Feedback</h2>
<form name="form" method="post" action="order_finish.php">
<div class="question">
<label>How would you rate our service?</label>
<div class="rating">
<input type="radio" id="star5" name="rating" value="5" required/>
<label for="star5" title="5 stars">★</label>
<input type="radio" id="star4" name="rating" value="4" />
<label for="star4" title="4 stars">★</label>
<input type="radio" id="star3" name="rating" value="3" />
<label for="star3" title="3 stars">★</label>
<input type="radio" id="star2" name="rating" value="2" />
<label for="star2" title="2 stars">★</label>
<input type="radio" id="star1" name="rating" value="1" />
<label for="star1" title="1 star">★</label>
</div>
</div>
<div class="question">
<label>Did our product or service meet your expectations?</label>
<div class="choices">
<input type="radio" id="expectationsYes" name="expectations" value="Yes" required/>
<label for="expectationsYes">Yes</label>
<input type="radio" id="expectationsNo" name="expectations" value="No" />
<label for="expectationsNo">No</label>
</div>
</div>
<div class="question">
<label>Would you recommend our product/service to others?</label>
<div class="choices">
<input type="radio" id="recommendYes" name="recommend" value="Yes" required/>
<label for="recommendYes">Yes</label>
<input type="radio" id="recommendNo" name="recommend" value="No" />
<label for="recommendNo">No</label>
</div>
</div>
<div class="question">
<label for="dissatisfied">What aspect of the product or service were you most satisfied/dissatisfied by?</label>
<div class="feedback">
<input type="text" id="dissatisfied" name="dissatisfied" placeholder="Please specify">
</div>
</div>
<div class="feedback">
<label for="explain">Any other recommendation?</label>
<textarea id="explain" name="explain" placeholder="Write your feedback here..."></textarea>
</div>
<input type="submit" name="button" value="Submit">
</form>
</div>
</body>
</html>