Thread: Microsoft Graph
View Single Post
  #12  
Old 12-02-2003, 14:33
enzo19's Avatar
enzo19 enzo19 is offline
Powered by NDFR
 
Join Date: 19-10-2002
Location: Brive - Corrèze
Age: 49
Posts: 1,749
Essaie ça ki fonctionne pas mal. Après, il te reste qu'a aller chercher les infos dans ta base de données avec ASP

PHP Code:
<HTML>
<!-- 
Date de création12/02/03 -->
<
HEAD>
<
META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
TITLE></TITLE>
<
META NAME="Description" CONTENT="">
<
META NAME="Keywords" CONTENT="">
<
META NAME="Author" CONTENT="Enzo19">
</
HEAD>
<
BODY>
<
SCRIPT language="JavaScript" title="Enzo">
var 
graphimageP="graphique.gif" 
var graphv=new Array()
graphv[0]=["Catégorie 1","152%"]
graphv[1]=["Catégorie 2","73%"]
graphv[2]=["Catégorie 3","63%"]
graphv[3]=["Catégorie 4","21%"]
function 
graphitP(g,gwidth){
outputP='<table border="0" cellspacing="0" cellpadding="0">'
for (i=0;i<g.length;i++){
calwidthP=gwidth*(parseInt(g[i][1])/100)
outputP+='<tr><td><font face="Verdana" size="1">'+g[i][0]+'&nbsp;</td><td><font face="Verdana" size="1"><img src="'+graphimageP+'" width="'+calwidthP+'" height="10"> '+g[i][1]+'</td></tr>'
}
outputP+='</table>'
document.write(outputP)
}
graphitP(graphv,200)
</SCRIPT>


</BODY>
</HTML> 
Reply With Quote