Improve BubbleTree colors
Improve BubbleTree colors

file:b/.gitmodules (new)
  [submodule "lib/bubbletree"]
  path = lib/bubbletree
  url = https://github.com/okfn/bubbletree.git
 
<?php <?php
error_reporting(E_ALL); error_reporting(E_ALL);
  include_once("../lib/common.inc.php");
$link = mysql_connect('localhost', 'team7', 'wlUsnD2xu9');  
if (!$link) {  
die('Could not connect: ' . mysql_error());  
}  
@mysql_select_db("team7") or die("Unable to select database");  
$unspscresult = mysql_query ("select * from UNSPSCcategories;"); $unspscresult = mysql_query ("select * from UNSPSCcategories;");
while ($row = mysql_fetch_assoc($unspscresult)) { while ($row = mysql_fetch_assoc($unspscresult)) {
$unspsc[$row['UNSPSC']] = $row['Title']; $unspsc[$row['UNSPSC']] = $row['Title'];
} }
$catsresult = mysql_query ("SELECT LEFT( categoryUNSPSC, 2 ) as cat , SUM( value ) as value $catsresult = mysql_query ("SELECT LEFT( categoryUNSPSC, 2 ) as cat , SUM( value ) as value
FROM `contractnotice` FROM `contractnotice`
GROUP BY cat ;"); GROUP BY cat ;");
echo "<table>"; echo "<table>";
while ($row = mysql_fetch_assoc($catsresult)) { while ($row = mysql_fetch_assoc($catsresult)) {
$catName = $unspsc[$row['cat']."000000"].$row['cat']; $catName = $unspsc[$row['cat']."000000"].$row['cat'];
if ($row['cat'] = "") $catName = "null"; if ($row['cat'] == "") $catName = "null";
echo "<tr><td>$catName</td><td>".$row['value']."</td></tr>"; echo "<tr><td>$catName</td><td>".$row['value']."</td></tr>";
} }
?> ?>
   
 
  <!DOCTYPE html>
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta charset="UTF-8"/>
  <title>Minimal BubbleTree Demo</title>
  <script type="text/javascript" src="lib/bubbletree/lib/jquery-1.5.2.min.js"></script>
  <script type="text/javascript" src="lib/bubbletree/lib/jquery.history.js"></script>
  <script type="text/javascript" src="lib/bubbletree/lib/raphael.js"></script>
  <script type="text/javascript" src="lib/bubbletree/lib/vis4.js"></script>
  <script type="text/javascript" src="lib/bubbletree/lib/Tween.js"></script>