-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbc.php
237 lines (223 loc) · 7.86 KB
/
dbc.php
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
<!DOCTYPE html>
<html lang="en">
<title>MAHAVINAYAK ROADLINES</title>
<!-- Add Bootstrap Links -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins">
}
}
<style>
input[type=submit] {
background-color: #4CAF50;
border: none;
color: white;
padding: 16px 32px;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
}
body,h1,h2,h3,h4,h5 {font-family: "Poppins", sans-serif}
body {font-size:16px;}
.w3-half img{margin-bottom:-6px;margin-top:16px;opacity:0.8;cursor:pointer}
.w3-half img:hover{opacity:1}
.tab1 {
tab-size: 2;
}
.w3-button
{
border: none;
color: white;
padding: 7px 16px;
text-align: left;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.button:hover
{
background-color: black;
}
th
{
color:white;
}
table
{
padding: 10px;
}
</style>
<body>
<body>
<form align="right" name="form1" method="post" action="logout.php">
<label>
<input name="submit2" type="submit" id="submit2" value="Logout">
</label>
</form>
<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-green w3-collapse w3-top w3-large w3-padding" style="z-index:3;width:300px;font-weight:bold;" id="mySidebar"><br>
<a href="javascript:void(0)" onclick="w3_close()" class="w3-button w3-hide-large w3-display-topleft" style="width:100%;font-size:22px">Close Menu</a>
<div class="w3-container">
<h3 class="w3-padding-100"><b>
</div>
<div class="w3-bar-block">
<br>
<a href="#" onclick="window.location.href='index.php'" class="w3-bar-item w3-button w3-hover-white">Home</a>
<a href="#showcase" onclick="window.location.href='dbc.php'"class="w3-bar-item w3-button w3-hover-white">Add Accounts</a>
<a href="#services" onclick="window.location.href='editnew.php'"class="w3-bar-item w3-button w3-hover-white">Edit Accounts</a>
<a href="#designers" onclick="window.location.href='view.php'"class="w3-bar-item w3-button w3-hover-white">View</a>
<a href="#packages" onclick="window.location.href='cb.php'"class="w3-bar-item w3-button w3-hover-white">Company Balance</a>
<a href="#contact" onclick="window.location.href='addv.html'"class="w3-bar-item w3-button w3-hover-white">Add Vehicle name</a>
<a href="#contact1" onclick="window.location.href='addc.html'"class="w3-bar-item w3-button w3-hover-white">Add Company name</a>
<a href="#contact2" onclick="window.location.href='removevehicle.php'"class="w3-bar-item w3-button w3-hover-white">Remove Vehicle name</a>
<a href="#contact2" onclick="window.location.href='deletecompany.php'"class="w3-bar-item w3-button w3-hover-white">Remove Company name</a>
<a href="#contact2" onclick="window.location.href='user.php'"class="w3-bar-item w3-button w3-hover-white">Users</a>
</div>
</nav>
<!-- Top menu on small screens -->
<header class="w3-container w3-top w3-hide-large w3-red w3-xlarge w3-padding">
<a href="javascript:void(0)" class="w3-button w3-red w3-margin-right" onclick="w3_open()">☰</a>
<span>Company Name</span>
</header>
<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:340px;margin-right:40px;margin-top:50px"">
<!-- Header -->
<div class="w3-container" style="margin-top:50px" id="showcase">
<h1 class="w3-xxxlarge"><b>Mahavinayak Roadlines</b></h1>
<h3 class="w3-xlarge w3-text-green"><b>India's No.1 truck services</b></h3>
<div class="container" align="left">
<form name="myForm" action="db.php" method="post">
<h3 class="w3-xxlarge w3-text-black"><b>Add Account</b></h3>
<hr style="width:200px;border:5px solid green" class="w3-round">
<br>
<br>
<table class="table" style="width:950px;" align="left">
<thead>
<tr bgcolor="darkolivegreen">
<th></th>
<th></th>
</tr>
</thead>
<tbody width="50%">
<tr>
<td>Date</td>
<td><input type="date" name="date" required></td>
</tr>
<tr bgcolor="palegreen">
<td>Vehicle No</td>
<td><?php
echo "<select name='vehicle'>";
$conn=mysqli_connect("localhost","root","G@m3r0pinthechat","account");
$sqli = "SELECT* FROM vehicle";
$resulti = mysqli_query($conn, $sqli);
while($rowi = mysqli_fetch_assoc($resulti)) {
echo "<option value=".$rowi['vehicle'].">".$rowi['vehicle']."<option>";
}
echo "</select>";
?></td>
</tr>
<tr>
<td>Company Name</td>
<td><?php
echo "<select name='company'>";
$conn=mysqli_connect("localhost","root","G@m3r0pinthechat","account");
$sqli = "SELECT* FROM company";
$resulti = mysqli_query($conn, $sqli);
while($rowi = mysqli_fetch_assoc($resulti)) {
echo "<option value=".$rowi['company'].">".$rowi['company']."<option>";
}
echo "</select>";
?>
</td></tr>
<tr bgcolor="palegreen">
<td>Invoice No.</td>
<td><input type="text" name="invoiceno" required></td>
</tr>
<tr>
<td>To(Destination)</td>
<td><input type="text" name="too" required></td>
</tr>
<tr bgcolor="palegreen">
<td>Material</td>
<td><input type="text" name="material" required></td>
</tr>
<tr>
<td>Weight(Ton)</td>
<td><input type="text" name="weight" required></td>
</tr>
<tr bgcolor="palegreen">
<td>Freight</td>
<td><input type="text" name="freight" required></td>
</tr>
<tr>
<td>Loading</td>
<td><input type="text" name="loading" required></td>
</tr>
<tr bgcolor="palegreen">
<td>Weighment</td>
<td><input type="text" name="weightment" required></td>
</tr>
<tr >
<td>Unloading</td>
<td><input type="text" name="unloading" required></td>
</tr>
<tr bgcolor="palegreen">
<td>Store</td>
<td><input type="text" name="store" required></td>
</tr>
<tr>
<td>Other</td>
<td><input type="text" name="other" required></td>
</tr>
<tr bgcolor="palegreen">
<td>Advance</td>
<td><input type="text" name="advance" required></td>
</tr>
<tr>
<td>Remark</td>
<td><input type="text" name="remark"></td>
</tr>
<tr bgcolor="palegreen">
<td>Advance Type</td>
<td><select name="advantage">
<option value="account">Account</option>
<option value="cash">Cash</option>
</td>
</tr>
<tr>
<td>Commission</td>
<td><input type="text" name="commission" value=0 required></td>
</tr>
<tr bgcolor="palegreen">
<td>Cash Mode</td>
<td><select name="cashmode">
<option value="pl_account">PL Account</option>
<option value="pl_cash">PL Cash</option>
<option value="pr_account">PR Account</option>
<option value="company_cash">Company Cash</option>
<option value="company_account">Company Account</option>
</td>
</tr>
<tr>
<td>Bill Status</td>
<td><select name="bill">
<option value="required">Required</option>
<option value="notrequires">Not Required</option>
</td>
<tr>
<td></td>
<td><input class="btn btn-success " type="submit" value="Continue"></td>
</div>
</tr>
</tbody>
</table>
</div>
</form>
</body>
</html>