예제 #1
0
		url,'popUpWindow','height=400,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
		
		<?php 
// $identif=$_GET['a'];
$link = mysql_connect("mysql6.000webhost.com", "a5996766_hab", "blazing12");
mysql_select_db("a5996766_bib", $link);
// echo "<p>$identif</p>";
// echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Libros del profesor:&nbsp;&nbsp;"."<strong>".$_SESSION['k_username2']."</strong>";
echo "<br><br><br>";
include "libchart/classes/libchart.php";
//	$chart2 = new VerticalBarChart(800,300);
$chart2 = new HorizontalBarChart(800, 300);
//	$chart2 = new PieChart(800,300);
$chart2->getConfig()->setUseMultipleColor(true);
function colore()
{
    return new Color(rand(0, 215), rand(0, 215), rand(0, 215));
}
$chart2->getPlot()->getPalette()->setBarColor(array(colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore(), colore()));
//$chart2->getPlot()->getPalette()->setBarColor(array(
//new Color(255, 0, 0),
//		new Color(255, 255, 255),
//			new Color(255, 125, 50),
//						new Color(255, 125, 0),
//	));
//$chart2 = new PieChart(800,300);
//$chart2 = new LineChart(800,300);
$dataset = new XYDataSet();
$profe = $_SESSION['k_username2'];