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
|
<?php
session_start();
$idsession=session_id();
?>
<!-- ImageReady Slices (actualites.psd) -->
<style type="text/css">
<!--
.Style1 {color: #FF0000}
-->
</style>
<table id="Tableau_01" width="590" height="367" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/actualites_01.gif" width="28" height="35" alt=""></td>
<td background="images/actualites_02.gif"><center><b><font color="#FFFFFF" size="1" face="Verdana">Statistiques clients</font></b></center></td>
<td>
<img src="images/actualites_03.gif" width="26" height="35" alt=""></td>
</tr>
<tr>
<td background="images/actualites_04.gif"></td>
<td width="536" height="297" background="images/spacer.gif" bgcolor="#D0DDEC">
<?php
/*
* This work is hereby released into the Public Domain.
* To view a copy of the public domain dedication,
* visit http://creativecommons.org/licenses/publicdomain/ or send a letter to
* Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
*
*/
require_once('Artichow-php4+5/Pie.class.php');
$graph = new Graph(450, 280);
$graph->shadow->setPosition(Shadow_RIGHT_BOTTOM);
$graph->shadow->setSize(4);
$graph->setBackgroundGradient(
new LinearGradient(
new Color(240, 240, 240, 0),
new White,
0
)
);
$genres = array(
'Action' => 28,
'Policier' => 14,
'Aventure' => 20,
'Romance' => 8,
'Drame' => 3,
'Science-Fiction' => 17,
);
$pie = new Pie(array_values($genres));
$pie->setLabelPrecision(1);
$pie->setLegend(array_keys($genres));
$pie->legend->setPosition(1.45, .25);
$pie->setCenter(.36, .58);
$pie->setSize(.65, .65);
$pie->set3D(5);
$pie->title->set('Popularité pour le mois juin');
$pie->title->move(0, -40);
$pie->title->setFont(new TuffyBold(14));
$pie->title->setBackgroundColor(new White(50));
$pie->title->setPadding(5, 5, 2, 2);
$pie->title->border->setColor(new Black());
$graph->add($pie);
$graph->draw();
?>
</td>
<td background="images/actualites_06.gif"></td>
</tr>
<tr>
<td>
<img src="images/actualites_07.gif" width="28" height="35" alt=""></td>
<td background="images/actualites_08.gif"></td>
<td>
<img src="images/actualites_09.gif" width="26" height="35" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices --> |
Partager