/
reportbulkquotations.php
78 lines (72 loc) · 1.32 KB
/
reportbulkquotations.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
<?php
require_once("system-header.php");
?>
<h2>Bulk Quotations</h2>
<br>
<form id="reportform" class="reportform" name="reportform" method="POST" action="reportbulkquotationspdf.php" target="_new">
<table>
<tr>
<td>
Date From
</td>
<td>
<input class="datepicker" id="datefrom" name="datefrom" />
</td>
</tr>
<tr>
<td>
Date To
</td>
<td>
<input class="datepicker" id="dateto" name="dateto" />
</td>
</tr>
<tr>
<td>
User
</td>
<td>
<?php createUserCombo("userid", "", false); ?>
</td>
</tr>
<tr>
<td>
Mode
</td>
<td>
<SELECT id="mode" name="mode">
<OPTION value="PDF">PDF</OPTION>
<OPTION value="Excel">Excel</OPTION>
</SELECT>
</td>
</tr>
<tr>
<td>
</td>
<td>
<a class="link1" href="javascript: runreport();"><em><b>Run Report</b></em></a>
</td>
</tr>
</table>
</form>
<script>
function runreport(e) {
if (! verifyStandardForm("#reportform")) {
return false;
}
if ($("#mode").val() == "PDF") {
$('#reportform').attr("action", "reportbulkquotationspdf.php");
} else {
$('#reportform').attr("action", "reportbulkquotationsexcel.php");
}
$('#reportform').submit();
try {
e.preventDefault();
} catch (e) {
}
}
</script>
<?php
require_once("system-footer.php");
?>