阅读背景:

PHP实现股票趋势图和柱形图

来源:互联网 

!--NEWSZW_HZH_BEGIN--

基于壮大的pchart类库。

<?php

/*
 * 股票趋势图和柱形图
 * @author: Skiychan <[email protected]>
 * @created: 02/05/2015
 */

include "libs/pData.class.php";
include "libs/pDraw.class.php";
include "libs/pImage.class.php";

include "database.php";

include "libs/convert.php";
date_default_timezone_set("Asia/Shanghai");

/*
 * @param type line/other 趋势图/柱形图 默许趋势图
 * @param txt 1/other 显示/不显示 提醒文字 默许不显示
 * @param lang hk/cn 繁体中文/简体中文 默许繁体
 * @param id int 股票编号 必填
 * @param min int 最小时光 默许无
 * @param max int 最大时光 默许无
 */

$type = isset($_GET["type"]) ? $_GET["type"] : "line";
$showtxt = (isset($_GET["txt"]) && ($_GET["txt"] == 1)) ? true : false;

//设置语言
if (isset($_GET["lang"])) {
  $lang = $_GET["lang"] == "cn" ? "cn" : "hk";
} else {
  $lang = "hk";
} 

$desc_tip = array(
  "hk" => array(
    "line" => array("昨日收
<?php

/*
 




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: