remove datatable unit tests
[contractdashboard.git] / displayProcurementMethod.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
<?php
 
include_once("./lib/common.inc.php");
/*
 
biggest suppliers in each method
biggest agencies in each method (weighted for size? percentage of total expenditure)
 
largest Average value by procurement type?
*/
 
include_header("Procurement Methods");
$query = "SELECT SUM(value) as value, procurementMethod
FROM `contractnotice`
WHERE childCN = 0
GROUP BY procurementMethod ";
 
$result = mysql_query($query);
 
echo "<table>";
while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
setlocale(LC_MONETARY, 'en_US');
$value = number_format(doubleval($row[0]),2);
    echo ("<tr><td><b>{$row[1]}</b></td><td>\$$value</td></tr>");
}
echo "</table>";
mysql_free_result($result);
include_footer();
?>