¶¼¿´¿´ ¶¼³¢³¢¡£php - PHP / »ù´¡±à³Ì
ÓÖ³öÏÖÁË $bplot2->SetLegend("ÖÐÎÄÂÒÂë");//ÂÒ
$graph->title->Set("ÿÈÕ¶©µ¥Á¿ÔÂͳ¼Æͼ");//²»ÂÒ
ͬһҳÃæ
jpgraph jpgraph_bar.phpÖÐûÓÐSetFont(FF_SIMSUN,FS_BOLD);Õâ¸ö·½·¨Ñ½
¸ßÊÖ³öÀ´°É¡£
Ò»°ãtitleÓÐÂÒÂ룬µ«ÊǺÜÉÙÓÐÈËÌáµ½Öù״ͼ legendÂÒÂëµÄ!!
<?php
header('Content-Type: text/html; charset=utf-8');
session_start();
require_once "include/AdminDBAction.php";
require_once "globalFunc.php";
require_once "define.inc.php";
include_once("jpgraph/src/jpgraph.php");
include_once("jpgraph/src/jpgraph_bar.php");
$arrid=AdminDBAction::merInfoCount();
//var_dump($arrid);
$ydata=Array();
$ydata2=Array();
$nameArr=Array();
foreach($arrid as $id){
$ydata[]=$id[0];
$ydata2[]=$id[1];
$nameArr[]=$id[2];
//echo $id[2]."<br>";
}
$graph = new Graph(750,450,'auto');
$graph->SetScale('textlin');
$graph->img->SetMargin(40,160,30,40);
$graph->SetMarginColor("lightblue");
$graph->legend->SetShadow('darkgray@0.5');
$graph->legend->SetFillColor('lightblue@0.3');
$graph->xaxis->Se
Ïà¹ØÎÊ´ð£º
Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......
index.phpÄÚÈÝ£º
$smarty->assign('name',strtotime('-0'));
$smarty->display("index.html");
index.htmlÄÚÈÝ£º
{$name|date_format:'%Y-%m-%d'}<hr>
{$ ......
×î½üÒ»¸öÏîÄ¿ÖÐÓöµ½Ò»¸öÎÊÌ⣺ÔÚÔÓеÄÒ»Ì×ϵͳÖÐ(php¿ª·¢)Ìí¼ÓһЩС¹¦ÄÜ(jsp¿ª·¢)£¬ÔÀ´Óû§ÏµÍ³¶¼ÊÇphp¿ª·¢µÄ£¬ÎÒÈçºÎÔÚjsp¿ª·¢µÄ¹¦ÄÜÖÐ×öµ½Óû§ÐÅÏ¢sessionͬ²½ÄØ£¿ ÓÐÈËÊÇ·ñÓÐ×ö¹ýÀàÒÔÏîÄ¿£¬ÏëÌýÌý´ó¼ÒµÄ¿´·¨
......
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Çý¶¯³ÌÐò¹ÜÀíÆ÷] δ·¢ÏÖÊý¾ÝÔ´Ãû³Æ²¢ÇÒδָ¶¨Ä¬ÈÏÇý¶¯³ÌÐò, SQL state IM002 in SQLConnect in D:\0\msc\msc\tel.php on line 44
Í ......