forked from janmeshpatel/Motofit_Admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDelivering_Service.html
193 lines (180 loc) · 10.2 KB
/
Delivering_Service.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
<!DOCTYPE html>
<html lang="">
<head>
<meta content="width=device-width" name="viewport">
<meta charset="utf-8">
<title>MotoFit</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://code.getmdl.io/1.3.0/material.brown-red.min.css" rel="stylesheet">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.10.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.10.0/firebase-analytics.js"></script>
<!-- Bootstrap core CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.14.1/css/mdb.min.css" rel="stylesheet">
</head>
<body>
<script src="FirebaseConnect.js"></script>
<script src="login.js"></script>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-tabs" id="login-div">
<main class="mdl-layout__content" style="background: #f7f7f7">
<center><img height="300px" src="motofit_img.jpg" style="margin: 20px;" width="300px"></center>
<center>
<!-- Username -->
<input class="form-control" id="username" placeholder="Email" style="width: 300px; height: 50px"
type="email"><br>
<input class="form-control" id="password" placeholder="Password" style="width: 300px; height: 50px"
type="password"><br>
<button class="btn btn-brown" onclick="login()" style="height: 50px; width: 200px" type="button">Login
</button>
</center>
</main>
</div>
<form action="Delivering_Service.php" method="post">
<script>
// Your web app's Firebase configuration
// Your web app's Firebase configuration
function send_data() {
var phone_number = document.getElementById("phone_number").value;
firebase.database().ref('Employee_name/' + phone_number).set(
{
name: document.getElementById("emp_name").value,
date: document.getElementById("date").value
}
);
}
var rootRef = firebase.database().ref().child("Users");
rootRef.on("child_added", snap => {
var child_key = snap.val();
var number = child_key.mobnum;
var name = child_key.name;
$("#table_body").append("<tr><td></td><td>" + name + "</td><td>" + number + "</td></tr>");
addSerialNumber();
///
///Table Index
});
var addSerialNumber = function () {
$("#table_body tr").each(function (index) {
$(this).find('td:nth-child(1)').html(index + 1);
});
}
</script>
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<div
class="mdl-layout mdl-js-layout mdl-layout--fixed-header
mdl-layout--fixed-tabs" id="delivering_div">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">Motofit Admin Panel</span>
</div>
</header>
<div class="mdl-layout__drawer" style="background: #f7f7f7">
<span class="mdl-layout-title"><a href="index.html"><img height="150" src="motofit_img.jpg" width="150"></a></span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="index.html">Home</a>
<a class="mdl-navigation__link" href="Customer_Information.html">Customer Information</a>
<a class="mdl-navigation__link" href="Service_Booking.html">Service Booked</a>
<a class="mdl-navigation__link" href="Breakdown_Service.html">Breakdown Service</a>
<a class="mdl-navigation__link" href="bill_layout.html">Billing Tab</a>
<a class="mdl-navigation__link" href="Delivering_Service.html">Delivering Vehicle</a>
<button class="btn btn-brown" onclick="signOut()" style="height: 50px; width: 200px; margin: 20px"
type="button">Sign Out
</button>
</nav>
</div>
<main class="mdl-layout__content is-active" style="background: #f7f7f7">
<!--BreakDown Service Tab-->
<div class="page-content">
<div class="card-header">
<center><h2>Delivering Vehicle</h2></center>
</div>
<div class="row" style="padding-left: 10%">
<div class="col-sm-6">
<div class="card" style="width: 50%; height: 100%">
<div class="card-body">
<center>
<div class="table-responsive, table-scroll-vertical">
<table border="10px" class="mdl-data-table mdl-js-data-table"
style="background: #f7f7f7; height: 20%">
<thead>
<tr>
<th>#</th>
<th class="mdl-data-table__cell--non-numeric">Name</th>
<th class="mdl-data-table__cell--non-numeric">Mobile</th>
</tr>
</thead>
<tbody id=table_body>
</tbody>
</table>
</div>
</center>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card" style="width: 70%">
<div class="card-body">
<center>
<h5><b>SMS to Customer for Drop Vehicle</b></h5>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" id="phone_number" id="sample1"
name="phone_number"
pattern="-?[0-9]*(\.[0-9]+)?" type="text">
<label class="mdl-textfield__label" for="sample1">Phone Number....</label>
<span class="mdl-textfield__error">Please Enter correct Number!</span>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" id="date" name="date" type="date"/>
<label class="mdl-textfield__label" for="date">Select Date</label>
<span class="mdl-textfield__error">Please Select Date!</span>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" id="sample3" name="time" type="time"/>
<label class="mdl-textfield__label" for="sample3"
style="align-items: end"></label>
<span class="mdl-textfield__error">Please Select Time!</span>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<select class="mdl-textfield__input" id="msg" name="msg"
style="height:30px">
<option></option>
<option> Drop Vehicle</option>
<option> Pick-Up Vehicle</option>
</select>
<label class="mdl-textfield__label" for="sample3">Select Service</label>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<select class="mdl-textfield__input" id="emp_name" name="emp_name"
style="height:30px">
<option></option>
<option>xyz</option>
<option>abc</option>
<option>pqr</option>
<option>ijk</option>
<option>www</option>
</select>
<label class="mdl-textfield__label" for="sample3">Select Employee
Name</label>
</div>
<br>
<input onclick="send_data()" type="submit" value="Submit">
</center>
</div>
</div>
</div>
</div>
</div>
<!--END-->
</main>
</div>
</form>
</body>
</html>