請問這程式要怎麼修改

edited 十月 2013 in 進階PHP討論
請問大大們 問題一 要修改哪邊他連結的每個點才會是各自不同的網頁呢??.....

問題二 要怎樣改他連結的地方才會變成維度的名稱而不是圖片的頂端

我是PHP的新手 雖然看過一些PHP的書籍,每次介紹到物件導向那邊我就不行了,很難去理解,
所以每次看到有載入函式 或者載入 CLASS 跟方法 我就不太知道..
麻煩大大指導一下,也辛苦你們了願意浪費時間看這篇文章,希望有大大能讓我一直發問不會嫌我太煩太笨..

<?php
require_once("ChartDirector/lib/phpchartdir.php");

@mysql_connect(";localhost","root","860308") or die("sorry");
$str = "select apgrade,aegrade,behavior,atgrade,aactive from course where stu_id=93101163" ;
$result = @mysql_db_query(";sample",$str) or die("sorry");
$number = mysql_num_rows($result);
for ($i=1; $i<=$number; $i++) {
$fo = mysql_fetch_object($result);
$ydata[]=$fo->apgrade;
$ydata[]=$fo->aegrade;
$ydata[]=$fo->behavior;
$ydata[]=$fo->atgrade;
$ydata[]=$fo->aactive;
}

# The labels for the chart
$labels = array("grade", "english", "behavior", "liberal education", "student active");

# Create a PolarChart object of size 450 x 350 pixels
$c = new PolarChart(450, 350);

# Set center of plot area at (225, 185) with radius 150 pixels
$c->setPlotArea(225, 185, 150);

# Add an area layer to the polar chart
$c->addAreaLayer($ydata, 0x9999ff);

# Set the labels to the angular axis as spokes
$angularAxisObj = $c->angularAxis();
$angularAxisObj->setLabels($labels);


# Create the image and save it in a temporary location
$chart1URL = $c->makeSession("chart1");

# Create an image map for the chart

$imageMap = $c->getHTMLImageMap("test4.php");


?>
<html>
<body topmargin="5" leftmargin="5" rightmargin="0" marginwidth="5" marginheight="5">
<div style="font-size:18pt; font-family:verdana; font-weight:bold">
Simple Clickable Bar Chart
</div>
<hr color="#000080">
<div style="font-size:10pt; font-family:verdana; margin-bottom:20">
<a href="viewsource.php?file=<?php echo $_SERVER["SCRIPT_NAME"]?>">View Source Code</a>
</div>
<img src="getchart.php?<?php echo $chart1URL?>" border="0" usemap="#map1">
<map name="map1">
<?php echo $imageMap?>
</map>
</body>
</html>

原始討論: http://twpug.net/x/modules/newbb/viewtopic.php?topic_id=3148
Sign In or Register to comment.