-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-started.php
More file actions
204 lines (162 loc) · 8.12 KB
/
Copy pathget-started.php
File metadata and controls
204 lines (162 loc) · 8.12 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
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
195
196
197
198
199
200
201
202
203
204
<!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>Get Started | Bookly</title>
<link rel="icon" href="./assets/images/illustrations/logo.png">
<!-- import icons -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" />
<!-- root css -->
<link rel="stylesheet" href="assets/css/root.css">
<!-- get-started css-->
<link rel="stylesheet" href="assets/css/getstarted.css">
</head>
<!-- START | NAVIGATION BAR -->
<!-- END | NAVIGATION BAR -->
<!-- START | Create Profile -->
<?php
include("assets/php/get-started-validation.php");
?>
<div class="get-started-page">
<div id="toast"></div>
<div class="get-started-container">
<div class="edit_profile_container">
<div class="edit_profile_content">
<h2 class="edit-profile-margin">Welcome! Let's create your profile</h2>
<p class="hd-desc">Let others get to know you better! You can do these later</p>
<form method="POST" enctype="multipart/form-data">
<h4 class="avatar-label">Add an avatar</h4>
<div class="file-upload">
<div class="image-upload-wrap">
<span class="material-symbols-outlined material-icon-g">
add_a_photo
</span>
<input class="file-upload-input" id="file-upload-input" type='file' name="profile_img"
onchange="readURL(this);" accept="image/*" />
</div>
<div class="file-upload-content">
<img class="file-upload-image" id="file-upload-image" src="" alt="avatar image" />
<span class="image-title">uploaded image</span>
<div class="image-title-wrap">
<button type="button" onclick="removeUpload()" class="remove-image"><i class="fas fa-times"></i>
delete
</button>
</div>
</div>
<span class="error-msg-1"><?php echo $uploadErr ?></span>
<button class="file-upload-btn" type="button"
onclick="$('.file-upload-input').trigger( 'click' )">Upload Image</button>
</div>
<section id="personal-info-section">
<h4 class="personal-margin">Add Personal Information</h4>
<div class="personal-info-container">
<div class="content-wrapper">
<label id="name-title" for="fname">First Name</label>
<input class="txt-field" id="fname" name="firstname" type="text"
value="<?php echo $firstname; ?>" /><br>
<span class=" error-inp-field"><?php echo $firstnameErr; ?></span>
</div>
<div class="content-wrapper">
<label id="name-title" for="lname">Last Name</label>
<input class="txt-field" id="lname" name="lastname" type="text"
value="<?php echo $lastname; ?>" /><br>
<span class=" error-inp-field"><?php echo $lastnameErr; ?></span>
</div>
<div class="content-wrapper">
<label id="name-title" for="uname">Username</label>
<input class="txt-field" id="uname" name="username" type="text"
value="<?php echo $username; ?>" readonly /><br>
<span class=" error-inp-field"><?php echo $usernameErr; ?></span>
</div>
<div class="content-wrapper">
<label id="name-title" for="email">Email</label>
<input class="txt-field" id="email" name="email" type="email" value="<?php echo $email; ?>"
readonly /><br>
<span class=" error-inp-field"><?php echo $emailErr; ?></span>
</div>
<div class="content-wrapper">
<label id="name-title" for="contact">Contact No.</label>
<input class="txt-field" id="contact" name="contact" type="text" maxlength="11"
value="<?php echo $contact;?>" /><br>
<span class=" error-inp-field">
<?php echo $contactErr; ?>
</span>
</div>
<div class="content-wrapper">
<label id="name-title" for="bday">Birth Date</label>
<input class="txt-field" id="bdate" name="birthdate" type="date"
value="<?php echo $birthdate;?> " /><br>
<span class=" error-inp-field"><?php echo $birthdateErr; ?></span>
</div>
</div>
</section>
<section id="location-info-section">
<h4 class="personal-margin">Add Your Location</h4>
<div class="personal-info-container">
<div class="content-wrapper">
<label id="name-title" for="address">Address</label>
<input class="txt-field" id="address" name="address" type="text"
value="<?php echo $address; ?>" /><br>
<span class=" error-inp-field"><?php echo $addressErr; ?></span>
</div>
<div class="content-wrapper">
<label id="name-title" for="brgy">Barangay</label>
<input class="txt-field" id="brgy" name="barangay" type="text"
value="<?php echo $barangay; ?>" /><br>
<span class=" error-inp-field"><?php echo $barangayErr; ?></span>
</div>
<div class="content-wrapper">
<label id="name-title" for="city">City</label>
<input class="txt-field" id="city" name="city" type="text" value="<?php echo $city; ?>" /><br>
<span class=" error-inp-field"><?php echo $cityErr; ?></span>
</div>
<div class="content-wrapper">
<label id="name-title" for="zip">Zip Code</label>
<input class="txt-field" id="zip" name="zipcode" type="text"
value="<?php echo $zipcode; ?>" /><br>
<span class=" error-inp-field"><?php echo $zipcodeErr; ?></span>
</div>
</div>
</section>
<div class="btn_wrapper_section">
<input type="submit" class="create-acct-btn" name="get_started_btn" value="Create Account"></input>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- END | Create Profile-->
<!-- <script src="./assets/javascript/global.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
window.addEventListener("DOMContentLoaded", () => {
showSuccessToast();
});
function showSuccessToast() {
toast({
message: "Congratulations! Your account has been successfully verified.",
type: "success",
duration: 10000
});
console.log("success");
}
function showErrorToast() {
toast({
title: "Thất bại!",
message: "Có lỗi xảy ra, vui lòng liên hệ quản trị viên.",
type: "error",
duration: 5000
});
}
</script>
<script src="./assets/javascript/toast.js"></script>
<script src="./assets/javascript/get-started.js"></script>
<script src="https://kit.fontawesome.com/a0043d9bc2.js" crossorigin="anonymous"></script>
<body>
</body>
</html>