-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.html
296 lines (282 loc) · 8.19 KB
/
settings.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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<html>
<head>
<title>Admin-Home</title>
<link rel="stylesheet" type="text/css" href="css/settings.css" />
<link
rel="stylesheet"
type="text/css"
href="bootstrap/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/template.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- <script src="bootstrap-4.3.1-dist/js/bootstrap.min.js"></script> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="utf-8" http-equiv="encoding" />
</head>
<body class="body container-fluid">
<div class="row header" id="header">
<div class="logoDiv mx-auto d-block col-auto">
<a href="admin-home.html">
<div class="element">
<img src="" class="img-fluid logo" id="logo" />
</div>
<div class="element brandName" id="brandName"></div>
</a>
</div>
</div>
<div class="topnav sticky-top" id="topNav">
<a href="admin-home.html">Home</a>
<a href="admin-portal.html">Control Panel</a>
<a href="settings.html" class="active">Settings</a>
<a href="weather-updates.html">Weather Updates</a>
<a href="contact.html">Contact</a>
<a
href="index.html"
class="btnLogout float-right"
onclick="logout()"
>Logout</a
>
<a href="javascript:void(0);" class="icon" onclick="topNavToggle()">
<i class="fa fa-bars"></i>
</a>
</div>
<!-- <br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a -->
<div class="divBlackBox">
<div class="col-sm-12 divHeader">Change User Settings</div>
<div id="displayData" class="row">
<div class="divWhiteBox col-sm-12 mx-auto dataSegment">
<div class="row">
<div class="col-sm-3 formElement">
<label for="username"> Username:</label>
</div>
<div class="col-sm-9 formElement">
<input
class="form-control"
type="text"
id="username"
value=""
/>
</div>
<span class="error" id="usernameError"
>Username Already Exists..!
</span>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="name"> Name:</label>
</div>
<div class="col-sm-9 formElement">
<input
class="form-control"
type="text"
id="name"
value=""
/>
</div>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="email"> Email:</label>
</div>
<div class="col-sm-9 formElement">
<input
class="form-control"
type="text"
id="email"
value=""
/>
</div>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="mobile"> Mobile Number:</label>
</div>
<div class="col-sm-9 formElement">
<input
class="form-control"
type="number"
id="mobile"
value=""
/>
</div>
</div>
<button
class="btn btn-sm btn-success formElement button"
onclick="saveUserdata()"
>
Save Changes
</button>
<span class="success" id="saveMsg">
Save Successful..!</span
>
<span class="error" id="errorsaveMsg"
>Save Unsuccessful..Try again later..!</span
>
</div>
<div class="divWhiteBox col-sm-12 mx-auto dataSegment">
<div class="row">
<div class="col-sm-3 formElement">
<label for="newPassword"> New Password:</label>
</div>
<div class="col-sm-9 formElement">
<input
class="form-control"
type="password"
id="newPassword"
value=""
/>
</div>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="confirmPassword">
Confirm Password:</label
>
</div>
<div class="col-sm-9 formElement">
<input
class="form-control"
type="password"
id="confirmPassword"
value=""
/>
</div>
</div>
<button
class="btn btn-sm btn-success formElement button"
onclick="setNewPassword()"
>
Set Password
</button>
<span class="error" id="passwordError">
Password Do Not Match..!</span
>
<span class="success" id="passwordSuccess">
Password Updated..!</span
>
</div>
</div>
</div>
<div class="divBlackBox">
<div class="divHeader col-sm-12">Change Farm Settings</div>
<div class="selectionDiv row">
<div class="col-sm-10 mx-auto">
<div class="row">
<div class="col-sm-12" id="farmOptions">
<br />
<label for="farmNames">Select Your Farm:</label>
<!--Written using javascript settings.js getdetails -->
<select
class="form-control"
id="farmNames"
onchange="fetchFarmDataDetails(document.getElementById('farmNames').value)"
>
<option value="">Select your option</option>
<option value="Jhansi">Jhansi</option>
</select>
</div>
</div>
</div>
</div>
<div class="divWhiteBox col-sm-12 mx-auto dataSegment">
<div class="row">
<div class="col-sm-3 formElement">
<label for="location">Farm Location:</label>
</div>
<div class="col-sm-9 formElement" id="cityOptions"></div>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="crop">Crop:</label>
</div>
<div class="col-sm-9 formElement" id="cropOptions"></div>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="motorCapacity">Motor Capacity:</label>
</div>
<div class="col-sm-9 formElement">
<input
type="number"
class="form-control"
value="0"
id="motorCapacity"
/>
</div>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="landArea">Land Area:</label>
</div>
<div class="col-sm-9 formElement">
<input
type="number"
class="form-control"
value="0"
id="landArea"
/>
</div>
</div>
<div class="row">
<div class="col-sm-3 formElement">
<label for="sownTime">Date of Crop Sowning:</label>
</div>
<div class="col-sm-9 formElement">
<input
type="date"
class="form-control"
value="2020-01-01"
id="sownTime"
placeholder="Date Format (yyyy-mm-dd)"
/>
</div>
</div>
<button
class="btn btn-sm btn-success formElement button"
onclick="saveFarmdata()"
>
Save Changes
</button>
<span class="success" id="saveFarmMsg">
Save Successful..!</span
>
<span class="error" id="errorSaveFarmMsg"
>Save Unsuccessful..Try again later..!</span
>
</div>
</div>
<div class="row footer">
<div class="row">
<img src="images/gears.png" class="footerImg" />
</div>
<div class="footerDiv row">
<div class="col-auto mx-auto">
<img src="images/logo 2.png" class="footerLogo" />
</div>
<div class="col-auto footerData mx-auto d-block">
<div class="row slogan">
Trying to be the best in ourself !
</div>
<div class="row footerDescription">
An initiative to provide the best in class services to
our farmers and workers who work constantly to feed the
nation.
</div>
<div>
<!-- links -->
</div>
</div>
</div>
</div>
<!-- <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />axasxsa -->
</body>
</html>
<script>
initialize();
</script>