-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule2.php
More file actions
executable file
·193 lines (180 loc) · 8.99 KB
/
module2.php
File metadata and controls
executable file
·193 lines (180 loc) · 8.99 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title> TaxWatch - taxTrackPH , See and Calculate where thus your tax
going.
</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<!-- Add custom CSS here -->
<link href="assets/css/modern-business.css" rel="stylesheet">
<link href="assets/css/index.css" rel="stylesheet" media="screen">
<link href="assets/css/template.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
</head>
<body>
<?php include "navbar.php" ?>
<div class="banner">
<div class="container">
<div style="font-size:60px;box-shadow:0px 5px 15px #000;background-color:#fff;padding:10px;font-family:sans;opacity:0.8;" class="pull-right">Do it your own</div>
</div>
</div>
<div class="container" id="site_content">
<div class="col-md-4 ">
<button class="btn btn-warning btn-block btn-lg">
Do it Your Own
</button>
<button class="btn btn-default btn-block">
Overview
</button>
<div class="panel panel-default"style="margin-top:10px;">
<table class="table table-hover">
<tbody>
<tr>
<td><a href="#">something</a></td>
</tr>
<tr>
<td><a href="#">something</a></td>
</tr>
<tr>
<td><a href="#">something</a></td>
</tr>
<tr>
<td><a href="#">something</a></td>
</tr>
<tr>
<td><a href="#">something</a></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-8" style="display:block;">
<div class=" panel panel-default">
<table class="table table-striped table-bordered
tablesorter" id="tbl_bySectors">
<thead>
<tr>
<th class="col-md-3">Sectors</th>
<th class="col-md-3 text-center">Budget(%)
</th>
<th class="col-md-3 text-center">Percent</th>
<th class="col-md-3 text-center">New</th>
</tr>
</thead>
<form method="post" action"" id="theForm"></form>
<tbody>
<tr>
<td>Social Services</td>
<td align="center"> P 1221 (37.2%)</td>
<td><input type="number" min="0.00" step="0.01" max="100.00" value="0" id="SS" class="form-control" onKeyUp="changeAll()"></td>
<td align="center" id="ss_value">P 0</td>
</tr>
<tr>
<td>Economic Services</td>
<td align="center"> P 1221 (26.0%)</td>
<td><input type="number" min="0.00" step="0.01" max="100.00" value="0" id="ES" class="form-control" onKeyUp="changeAll()"></td>
<td align="center" id="es_value">P 0</td>
</tr>
<tr>
<td>General Public Services</td>
<td align="center"> P 1221 (16.1%)</td>
<td><input type="number" min="0.00" step="0.01" max="100.00" value="0" id="GPS" class="form-control" onKeyUp="changeAll()"></td>
<td align="center" id="gps_value">P 0</td>
</tr>
<tr>
<td>Debt Burden</td>
<td align="center"> P 1221 (16.6%)</td>
<td><input type="number" min="0.00" step="0.01" max="100.00" value="0" id="DB" class="form-control" onKeyUp="changeAll()"></td>
<td align="center" id="db_value">P 0</td>
</tr>
<tr>
<td>Defense</td>
<td align="center"> P 1221 (4.1%)</td>
<td><input type="number" min="0.00" step="0.01" max="100.00" value="0" id="D" class="form-control" onKeyUp="changeAll()"></td>
<td align="center" id="d_value">P 0</td>
</tr>
</tbody>
</table>
</div>
<button class="btn btn-primary" form="theForm" id="submit_btn">Submit</button>
</div>
<!--div id="chart_div" style="height: 400px;"></div-->
</div>
<div class="col-md-8">
<!--div id="chart_div2" style="height:450px;"></div-->
</div>
<br><br>
<?php include('footer.php'); ?>
<!-- Bootstrap core JavaScript -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap.js"></script>
<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="assets/js/jquery-latest.min.js"></script>
<script src="assets/js/jquery.tablesorter.min.js"></script>
<script src="assets/js/modern-business.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
google.setOnLoadCallback(drawChart2);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Departments', 'Actual', 'Citizens'],
['Social Services', 37.2, 30.4],
['Economic Services', 26.0, 26.1],
['General Public Services', 16.2, 16],
['Dept Burden', 16.6, 20],
['Defense', 4.1, 12],
]);
var options = {
title: 'Government Budget',
vAxis: {title: 'Departments', titleTextStyle: {color: 'red'}}
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
function drawChart2() {
var data = google.visualization.arrayToDataTable([
['Departments', 'Actual', 'Citizens','User'],
['Social Services', 37.2, 30.4, 32],
['Economic Services', 26.0, 26.1, 23],
['General Public Services', 16.2, 16, 12],
['Dept Burden', 16.6, 20, 32],
['Defense', 4.1, 3, 9]
]);
var options = {
title: 'Government Budget',
vAxis: {title: 'Departments', titleTextStyle: {color: 'red'}}
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div2'));
chart.draw(data, options);
}
function changeAll(){
ss = parseInt($('#SS').val());
es = parseInt($('#ES').val());
gps = parseInt($('#GPS').val());
db = parseInt($('#DB').val());
d = parseInt($('#D').val());
t = 2300000000000;
total = ss + es + gps + db + d;
if(total>100){
$("#submit_btn").hide();
}else{
$("#submit_btn").show();
$('#ss_value').text(t*(ss/100));
$('#es_value').text(t*(es/100));
$('#gps_value').text(t*(gps/100));
$('#db_value').text(t*(db/100));
$('#d_value').text(t*(d/100));
}
};
</script>
</body>
</html>