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
|
<? require("inc/configure.php"); require("inc/global.php"); require("inc/checklogin.php"); if ($logged_in == 0) { //echo 'Not logged in. <a href="login.php">Login</a>'; header('Window-target: _parent'); header('Location: login.php'); exit(); } ?> <? $reportid = $_GET['reportid']; ?> <html> <head> <title><?=$systitle?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="main.css" type="text/css"> <script type="text/javascript" src="calendarDateInput.js"></script>
</head>
<body bgcolor="#F5F8FA" leftmargin="10" topmargin="10" marginwidth="0" marginheight="0"> <? $frdate = date("Y-m-d"); $todate = date("Y-m-d"); switch ($reportid) { case 1: ?> <form action="reportsalesproduct.php" name="reportform" method="post"> <table> <tr><td colspan='2' class='pageheader'>Product Sales Report</td></tr> <tr><td class='content'>From date</td><td class='content'><script>DateInput('frdate', true, 'YYYY-MM-DD', '<?=$frdate?>', '')</script></td></tr> <tr><td class='content'>To date</td><td class='content'><script>DateInput('todate', true, 'YYYY-MM-DD', '<?=$todate?>', '')</script></td></tr> <tr><td></td><td><input type='submit' value='Submit' class='content'></td></tr> </table> </form> <? break; case 2: ?> <form action="reportsalescustomer.php" name="reportform" method="post"> <table> <tr><td colspan='2' class='pageheader'>Product Sale Report</td></tr> <tr><td class='content'>From date</td><td class='content'><script>DateInput('frdate', true, 'YYYY-MM-DD', '<?=$frdate?>', '')</script></td></tr> <tr><td class='content'>To date</td><td class='content'><script>DateInput('todate', true, 'YYYY-MM-DD', '<?=$todate?>', '')</script></td></tr> <tr><td></td><td><input type='submit' value='Submit' class='content'></td></tr> </table> </form> <? break; default: } ?> </body> </html>
|