-
Notifications
You must be signed in to change notification settings - Fork 1
/
ac_cashflowgraph.php
95 lines (78 loc) · 2.43 KB
/
ac_cashflowgraph.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
<?php include "config.php"; session_start(); ?>
<script>
$(function() {
var dates = $( "#from, #to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 1,
onSelect: function( selectedDate ) {
var option = this.id == "from" ? "minDate" : "maxDate",
instance = $( this ).data( "datepicker" ),
date = $.datepicker.parseDate(
instance.settings.dateFormat ||
$.datepicker._defaults.dateFormat,
selectedDate, instance.settings );
dates.not( this ).datepicker( "option", option, date );
}
});
});
</script>
<?php include "config.php";
$q1 = "SELECT max(fdate) as fdate from ac_definefy ";
$result = mysql_query($q1,$conn);
while($row1 = mysql_fetch_assoc($result))
{
$fromdate = $row1['fdate'];
$fromdate = date("d.m.Y",strtotime($fromdate));
}
?>
<center>
<br />
<h1>Cash Flow Graph</h1>
<br /><br /><br />
<form target="_new">
<table align="center">
<tr height="10px"></tr>
</table>
<table align="center">
<tr>
<td align="right"><strong>From </strong></td>
<td width="10px"></td>
<td align="left"><input type="text" size="15" id="from" class="datepicker" name="from" value="<?php echo $fromdate; ?>"></td>
<td width="10px"></td>
<td><strong align="right">To </strong></td>
<td width="10px"></td>
<td align="left"><input type="text" size="15" id="to" class="datepicker" name="to" value="<?php echo date("d.m.o"); ?>"></td>
</tr>
</table>
<br/><br/>
<input type="button" id="report" value="Report" onclick="openreport();" />
</form>
</center>
<script type="text/javascript">
function openreport()
{
var fromdate = document.getElementById('from').value;
var todate = document.getElementById('to').value;
window.open('flot/graphs/cashflow.php?fromdate=' + fromdate + '&todate=' + todate);
}
</script>
<script type="text/javascript">
function script1() {
window.open('GLHelp/help_coaledger.php','BIMS','width=500,height=600,toolbar=no,menubar=yes,scrollbars=no,resizable=no');
}
</script>
<footer>
<div class="float-left">
<a href="#" class="button" onClick="script1()">Help</a>
<a href="javascript:void(0)" class="button">About</a>
</div>
<div class="float-right">
<a href="#top" class="button"><img src="images/icons/fugue/navigation-090.png" width="16" height="16"> Page top</a>
</div>
</footer>
<!--[if lt IE 8]></div><![endif]-->
<!--[if lt IE 9]></div><![endif]-->
</body>
</html>