-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
66 lines (66 loc) · 3 KB
/
index.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
<?php include 'includes/dbLay.php';
$cList = compList();
$a = '';
foreach ($cList as $item){$a .= "<option value ={$item['id']}>{$item['name']}</option>";}
?>
<!DOCTYPE html>
<html>
<head>
<title>Bar Code App</title>
<link rel='stylesheet' href='includes/style.css'></link>
</head>
<body>
<H1 align="center">Bar Code App</H1>
<hr>
<form id="companyList" action="includes/routes.php" method="GET">
<table align="right">
<tr>
<td>Get BarCode List For</td>
<td>
<input type='hidden' value="getList" name='op'>
<select id="cList" name="cList">
<option value=0>Client</option>
<?php echo $a;?>
</select>
<input type="submit" value="Get List">
<input type="button" value="Get Windows Script" onclick="location.href='includes/routes.php?op=getbatchfile';">
</td>
</tr>
</table>
</form>
<br><br>
<form id="createBarcode" name="createBarcode" action="includes/routes.php" method="POST">
<input type="hidden" name="op" value="printList"><input type="hidden" name="cName" id="cName">
<div id ="PO" style="display:None">
Enter PO Number : <input type="text" id="poNo" name="poNo" placeholder="Enter PO No" required maxlength="5"><br><br>
<table id="appendList" border='1px' border-collapse: collapse align="center">
<thead style="display: none">
<tr>
<td colspan="100%" align="center">Filter Values : <input class="search" placeholder="Filter By Name" size="50px"></td>
</tr>
<tr>
<th>Name</th>
<th>Barcode</th>
<th>Price</th>
<th>MRP</th>
<th>Quantity - Labels Needed</th>
</tr>
</thead>
<tbody class="list"></tbody>
<tfoot style="display: none">
<tr>
<td colspan="100%" align="center">
<button type="button" onclick="doPrint();">Print Barcodes</button>
</td>
</tr>
</tfoot>
</table>
</div>
</form>
<script type="text/javascript" src="includes/js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="includes/js/list.min.js"></script>
<script type="text/javascript" src="includes/js/makeForm.js"></script>
<script type="text/javascript" src='includes/js/getList.js'></script>
<script type="text/javascript" src="includes/js/stopStupid.js"></script>
</body>
</html>