"; $u=(strpos ($flash_file,"?")===false)? "?" : ((substr($flash_file, -1)==="&")? "":"&"); $html.=" "; if($transparent){$html.=" ";} $html.=""; return $html; } //==================================== function SendChartData( $chart=array() ){ //header("Content-Type: text/xml"); //header("Cache-Control: cache, must-revalidate"); //header("Pragma: public"); $xml="\r\n"; $Keys1= array_keys((array) $chart); for ($i1=0;$i1\r\n"; for($i2=0;$i20 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\r\n";} else{$xml.=" />\r\n";} break; default://link, etc. $xml.="\t\t\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\r\n"; }else{//axis_category, etc. $xml.="\t<".$Keys1[$i1]; for($i2=0;$i2".$chart[$Keys1[$i1]]."\r\n"; } } $xml.="\r\n"; echo $xml; } //==================================== ?>