-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadmin.html
More file actions
183 lines (159 loc) · 7.86 KB
/
admin.html
File metadata and controls
183 lines (159 loc) · 7.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crud Operation</title>
<link type="text/css" rel="stylesheet" href="rsc/css/admin.css"/>
<link rel="stylesheet" href="rsc/fontawesome/css/all.min.css" />
<link rel="stylesheet" href="rsc/bootstrap/css/bootstrap.min.css" />
<style>
body { /* Changed from .body to body */
background-image: url('rsc/icons/br.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
min-height: 100vh; /* Added to ensure full height coverage */
}
.search-box {
display: flex;
align-items: center;
background-color: #fff;
border-radius: 50px;
padding: 0px 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
width: 350px; /* Adjusted from 3300px */
height: 50px;
transition: left 0.3s ease-in-out;
}
.search-box input {
border: none;
background: none;
outline: none;
width: 100%;
font-size: 18px;
color: #333;
}
.search-box i {
cursor: pointer;
transition: color 0.3s ease;
}
.search-box i:hover {
color: orangered;
}
.custom-card-header {
width: 100%; /* Adjust as needed */
margin: 0 auto; /* Centers the header */
text-align: center; /* Centers the text */
}
.custom-card-body {
width: 100%; /* Adjust as needed */
margin: 0 auto; /* Centers the body */
}
.container {
width: 98%; /* Adjust width (e.g., 90% of screen width) */
max-width: 2500px; /* Prevents it from getting too wide */
margin: auto; /* Centers it */
}
html, body {
height: 100vh; /* Ensures the body takes full viewport height */
overflow: hidden; /* Prevents scrolling on larger screens */
}
/* Allow scrolling only on mobile screens */
@media (max-width: 768px) {
html, body {
overflow: auto; /* Enables scrolling on smaller screens */
}
}
</style>
</head>
<body>
<div class="container mt-4">
<div class="row">
<div class="col-md-4">
<div class="card bg-light bg-opacity-75">
<div class="card-header">
<h4 class="card-title">Add Location</h4>
</div>
<div class="card-body">
<form autocomplete="off" onsubmit="onFormSubmit()">
<div class="mb-2">
<label for="socid" class="form-label mb-0">SOCID</label>
<input type="text" class="form-control" name="socid" id="socid">
</div>
<div class="mb-2">
<label for="province" class="form-label mb-0">Province</label>
<input type="text" class="form-control" name="province" id="province">
</div>
<div class="mb-2">
<label for="municipality" class="form-label mb-0">Municipality</label>
<input type="text" class="form-control" name="municipality" id="municipality">
</div>
<div class="mb-2">
<label for="barangay" class="form-label mb-0">Barangay</label>
<input type="text" class="form-control" name="barangay" id="barangay">
</div>
<div class="row mb-2">
<div class="col">
<label for="lat" class="form-label mb-0">Latitude</label>
<input type="number" class="form-control" name="lat" id="lat">
</div>
<div class="col">
<label for="long" class="form-label mb-0">Longitude</label>
<input type="number" class="form-control" name="long" id="long">
</div>
</div>
<div class="mb-2">
<label for="area_descr" class="form-label mb-0">Area Descr.</label>
<input type="text" class="form-control" name="area_descr" id="area_descr">
</div>
<div class="row mb-2">
<div class="col">
<button type="submit" class="btn btn-primary rounded-pill w-100">Submit</button>
</div>
<div class="col">
<button type="reset" class="btn btn-secondary rounded-pill w-100">Reset</button>
</div>
</div>
<div class="search-box" style="width: 100%;">
<input id="searchInput" class="form-control border-0 shadow-none" type="text" placeholder="Search SOCID..."
aria-label="Search" style="border-radius: 20px; padding: 10px; box-shadow: 0px 4px 6px rgba(0,0,0,0.2);">
<i class="fas fa-search fs-5" style="cursor: pointer;" onclick="searchSOCID()"></i>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card bg-light bg-opacity-75" >
<div class="card-header">
<h4 class="card-title">Location List</h4>
</div>
<div class="card-body">
<div class="table-responsive" style="max-height: 511px; overflow-y: auto; overflow-x: hidden;">
<table class="table table-hover" id="storeList" style="table-layout: fixed; width: 100%;">
<thead class="table-light" style="position: sticky; top: 0; z-index: 2; white-space: nowrap;">
<tr>
<th>SOCID</th>
<th>Province</th>
<th>Municipality</th>
<th>Barangay</th>
<th>Longitude</th>
<th>Latitude</th>
<th>Area Descr.</th>
<th style="text-align: center;" >Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="rsc/js/admin.js"></script>
<script src="rsc/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>