-
Notifications
You must be signed in to change notification settings - Fork 0
/
accountSettings.html
134 lines (107 loc) · 5.69 KB
/
accountSettings.html
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
<!DOCTYPE html>
<html>
<head>
<title>TOD Admin- Update Account</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<!-- MATERIAL DESIGN ICONIC FONT -->
<link rel="stylesheet"
href="design_files/fonts/material-design-iconic-font/css/material-design-iconic-font.min.css">
<!-- STYLE CSS -->
<link rel="stylesheet" href="design_files/css/style.css">
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-storage.js"></script>
</head>
<body>
<div class="wrapper" style="background-image: url('design_files/images/accountSettingsback.jpg')">
<div class="inner">
<div class="image-holder">
<img src="design_files/images/asettings.jpg">
</div>
<form action="">
<h3>Account Details</h3>
<div class="form-group">
<input id="firstName" type="text" placeholder="First Name" class="form-control">
<input id="lastName" type="text" placeholder="Last Name" class="form-control">
</div>
<div class="form-wrapper">
<select name="" id="city" class="form-control">
<option value="" disabled selected>City</option>
<option value="Ampara">Ampara</option>
<option value="Anuradhapura">Anuradhapura</option>
<option value="Badulla">Badulla</option>
<option value="Batticaloa">Batticaloa</option>
<option value="Colombo">Colombo</option>
<option value="Galle">Galle</option>
<option value="Gampaha">Gampaha</option>
<option value="Hambantota">Hambantota</option>
<option value="Jaffna">Jaffna</option>
<option value="Kalutara">Kalutara</option>
<option value="Kandy">Kandy</option>
<option value="Kegalle">Kegalle</option>
<option value="Kilinochchi">Kilinochchi</option>
<option value="Kurunegala">Kurunegala</option>
<option value="Mannar">Mannar</option>
<option value="Matale">Matale</option>
<option value="Matara">Matara</option>
<option value="Monaragala">Monaragala</option>
<option value="Mullaitivu">Mullaitivu</option>
<option value="Nuwara Eliya">Nuwara Eliya</option>
<option value="Polonnaruwa">Polonnaruwa</option>
<option value="Puttalam">Puttalam</option>
<option value="Ratnapura">Ratnapura</option>
<option value="Trincomalee">Trincomalee</option>
<option value="Vavuniya">Vavuniya</option>
<i class="zmdi zmdi-caret-down" style="font: 17px;"></i>
</select>
</div>
<div class="form-wrapper">
<input id="phone" type="text" placeholder="Phone" class="form-control">
<i class="zmdi zmdi-phone"></i>
</div>
<div class="form-wrapper">
<select name="" id="gender" class="form-control">
<option value="" disabled selected>Gender</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
<i class="zmdi zmdi-caret-down" style="font: 17px;"></i>
</select>
</div>
<div class="form-wrapper">
<input id="address" type="text" placeholder="Address" class="form-control">
<i class="zmdi zmdi-pin"></i>
</div>
<div class="form-wrapper">
<input id="bio" type="text" placeholder="Bio" class="form-control">
<i class="zmdi zmdi-account"></i>
</div>
<div class="form-group container-login100-form-btn">
<button id="btn-update" type="button">
Update
<i class="zmdi zmdi-arrow-right"></i>
</button>
</div>
</form>
</div>
</div>
<script src="js/index.js"></script>
<script>
firebase.auth().onAuthStateChanged(function (user) {
if (user) {
var userID = firebase.auth().currentUser.uid;
firebase.database().ref('Admin/' + userID).once('value').then(function (snapshot) {
if (snapshot.val()) {
window.location.href = "MainPage.html";
}
});
}
});
</script>
</body>