-
Notifications
You must be signed in to change notification settings - Fork 0
/
upcsummary.php
49 lines (49 loc) · 2.48 KB
/
upcsummary.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
<?
require_once('inc/init.php');
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/css/960/reset.css">
<link rel="stylesheet" href="/css/960/960_12_col.css">
<!--<link rel="stylesheet" href="/css/960/text.css">-->
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="/js/javascript.js"></script>
<body>
<div class="container_12">
<div id="nav">
<? showMenu(); ?>
<div style="float:right;margin-top:12px; margin-right:15px"><label for="quickSummary">Quick Summary By UPC:</label><input type="number" id="quickSummary" name="quickSummary"><input type="button" value="Go" onClick="window.location.assign('/upcsummary/'+$('#quickSummary').val())"></div>
</div>
<div id="content">
<h2>Inventory Summary By UPC</h2>
<form id="form" action="/inc/service.wine.php" target="_blank" method="POST">
<input type="hidden" id="reportType" name="reportType" value="summaryByUPC">
<input type="hidden" id="function" name="function" value="">
<label style="width:3.1em; font-size:1.3em" for="fromDate">From:</label><input type="text" style="font-size:14px; font-weight:bold;" id="fromDate" name="fromDate">
<label style="width:1.8em; font-size:1.3em" for="toDate">To:</label><input style="font-size:14px; font-weight:bold;" type="text" id="toDate" name="toDate">
<label style="width:2.7em; font-size: 1.3em" for="upc">UPC:</label><input type="number" style="font-size:14px;font-weight:bold" id="upc" name="upc" value="<?echo (isset($_GET['upc'])?$_GET['upc']:'')?>"><br>
<input class="submit" style="font-size: 12px; font-weight:bold;" type="button" value="Generate Report" onClick="generateReport()">
<input class="submit" style="font-size: 12px; font-weight:bold;" type="button" value="Export PDF" onClick="exportReport('exportPDF')">
<input class="submit" style="font-size: 12px; font-weight:bold;" type="button" value="Export CSV" onClick="exportReport('exportCSV')">
</form>
<div id="reportData">
</div>
</div>
<div id="footer">
</div>
</div>
<script type="text/javascript">
$(function(){
$('#fromDate').datepicker();
$('#toDate').datepicker();
if($('#upc').val()!='') {
generateReport();
}
})
</script>
</body>
</html>