";
if (strstr($_SERVER['HTTP_USER_AGENT'],"MSIE")){
$html.="";
}else{
$html.="";
}
$html.="";
return $html;
}
//====================================
function SendChartData( $chart=array() ){
$xml="\r\n";
$Keys1= array_keys((array) $chart);
for ($i1=0;$i1\r\n";
for($i2=0;$i2\r\n";
for($i3=0;$i3\r\n";
break;
case ($Keys2[$i2]>0 and $Keys3[$i3]>0):
$xml.="\t\t\t".$chart[$Keys1[$i1]][$Keys2[$i2]][$Keys3[$i3]]."\r\n";
break;
default:
$xml.="\t\t\t".$chart[$Keys1[$i1]][$Keys2[$i2]][$Keys3[$i3]]."\r\n";
break;
}
}
$xml.="\t\t\r\n";
break;
case "chart_value_text":
$xml.="\t\t\r\n";
$count=0;
for($i3=0;$i3\r\n";}
else{$xml.="\t\t\t".$chart[$Keys1[$i1]][$Keys2[$i2]][$Keys3[$i3]]."\r\n";}
}
$xml.="\t\t
\r\n";
break;
/*case "link_data_text":
$xml.="\t\t\r\n";
$count=0;
for($i3=0;$i3\r\n";}
else{$xml.="\t\t\t".$chart[$Keys1[$i1]][$Keys2[$i2]][$Keys3[$i3]]."\r\n";}
}
$xml.="\t\t
\r\n";
break;*/
case "draw":
$text="";
$xml.="\t\t<".$chart[$Keys1[$i1]][$Keys2[$i2]]['type'];
for($i3=0;$i3".$text."\r\n";}
else{$xml.=" />\r\n";}
break;
default://link, etc.
$xml.="\t\t\r\n";
break;
}
}
$xml.="\t".$Keys1[$i1].">\r\n";
}else{
if($Keys1[$i1]=="chart_type" or $Keys1[$i1]=="series_color" or $Keys1[$i1]=="series_image" or $Keys1[$i1]=="series_explode" or $Keys1[$i1]=="axis_value_text"){
$xml.="\t<".$Keys1[$i1].">\r\n";
for($i2=0;$i2\r\n";}
else{$xml.="\t\t".$chart[$Keys1[$i1]][$Keys2[$i2]]."\r\n";}
}
$xml.="\t".$Keys1[$i1].">\r\n";
}else{//axis_category, etc.
$xml.="\t<".$Keys1[$i1];
for($i2=0;$i2\r\n";
}
}
}else{//chart type, etc.
$xml.="\t<".$Keys1[$i1].">".$chart[$Keys1[$i1]]."".$Keys1[$i1].">\r\n";
}
}
$xml.="\r\n";
/* // stampa su file by Linuxap
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$fileout="./temp/$random_num";
$fp = fopen($fileout,"w");
fwrite($fp,$xml);
fclose($fp);
*/
//echo $xml;
//MODIFICHE PER TOGLIERE FILETEMP
return $xml; //return $fileout;
}
//====================================
?>