Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: higrid <sheyimail@gmail.com>
- Loading branch information
Showing
153 changed files
with
19,523 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<!--------------------------- | ||
// higrid嗨网 中文PHP表格, Copyright (C) 2003 - 2011 http://higrid.net | ||
----------------------------> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> | ||
<title>嗨网HiGrid演示</title> | ||
<script src="js/jquery.js"></script> | ||
<link rel="stylesheet" href="http://higrid.net/include/css/higridstock.css?20130313" type="text/css" media="screen" charset="utf-8" /> | ||
<script type="text/javascript" src="http://higrid.net/include/js/higridstock.js?20130313" charset="utf-8"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
<div> | ||
<?php | ||
defined('HIGRIDPROPATH') || define('HIGRIDPROPATH', dirname(__FILE__).'/'); | ||
//error_reporting(0); | ||
|
||
|
||
$ex=rtrim(strtolower($_GET['ex'])); | ||
|
||
$higridchart=file_exists(HIGRIDPROPATH.'/chart/'. $ex ) ? HIGRIDPROPATH.'/chart/'. $ex : HIGRIDPROPATH.'/chart/default.php'; | ||
|
||
include_once $higridchart; | ||
?> | ||
|
||
<table id="grid"></table> | ||
<div id="pager"></div> | ||
|
||
|
||
|
||
</div> | ||
|
||
<br /> | ||
<div style="border:1px dotted #F90; border-left:6px solid #F60; padding:15px; background:#FFC"> | ||
<a href="http://higrid.net/">PHP程序由嗨网HiGrid.net提供</a> | ||
</div> | ||
|
||
|
||
<div style="display:none"> | ||
<!--HIGRID GOOGLE STATS --> | ||
<script type="text/javascript"> | ||
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); | ||
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fe800be547df3ec1416d26a49a98b6f44' type='text/javascript'%3E%3C/script%3E")); | ||
</script> | ||
<script type="text/javascript" src="http://higrid.net/include/js/statgoogle.js" charset="utf-8"></script> | ||
<script src="http://s20.cnzz.com/stat.php?id=3552716&web_id=3552716" language="javascript"></script> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 HiGrid Inc. | ||
* higrid嗨网 中文PHP表格, http://higrid.net | ||
* | ||
* Released on 2013-03-27 13:16 V2.2 | ||
*/ | ||
|
||
|
||
defined('HIPATH') || define('HIPATH', dirname(__FILE__).'/');//绝对路径 | ||
require_once(HIPATH.'config.php');//数据库连接设置,修改本目录下config.php相关参数 | ||
|
||
$chart = new higridCharts(); | ||
$chart->HCsCO(array( | ||
"defaultSeriesType"=>"area" | ||
)) | ||
->HCsT(array('text'=>'US and USSR nuclear stockpiles')) | ||
->HCsST(array("text"=>'Source: <a href="http://thebulletin.metapress.com/content/c4120650912x74k7/fulltext.pdf">thebulletin.metapress.com</a>')) | ||
->HCsX(array( | ||
"labels"=>array("formatter"=>"js:function(){return this.value;}") | ||
)) | ||
->HCsY(array( | ||
"title"=>array("text"=>'Nuclear weapon states'), | ||
"labels"=>array("formatter"=>"js:function(){return this.value/1000 +'k';}") | ||
)) | ||
->HCsTT(array( | ||
"formatter"=>"function(){return this.series.name +' produced <b>'+Highcharts.numberFormat(this.y, 0) +'</b><br/>warheads in '+ this.x;}" | ||
)) | ||
->HCsPO(array( | ||
"area"=>array( | ||
"pointStart"=> 1940, | ||
"marker"=>array( | ||
"enabled"=> false, | ||
"symbol"=>"circle", | ||
"radius"=>2, | ||
"states"=>array("hover"=> array ("enabled"=>true)) | ||
) | ||
) | ||
)) | ||
->HCaS('USA', array( | ||
null, null, null, null, null, 6 , 11, 32, 110, 235, 369, 640, | ||
1005, 1436, 2063, 3057, 4618, 6444, 9822, 15468, 20434, 24126, | ||
27387, 29459, 31056, 31982, 32040, 31233, 29224, 27342, 26662, | ||
26956, 27912, 28999, 28965, 27826, 25579, 25722, 24826, 24605, | ||
24304, 23464, 23708, 24099, 24357, 24237, 24401, 24344, 23586, | ||
22380, 21004, 17287, 14747, 13076, 12555, 12144, 11009, 10950, | ||
10871, 10824, 10577, 10527, 10475, 10421, 10358, 10295, 10104 )) | ||
->HCaS('USSR/Russia', array( | ||
null, null, null, null, null, null, null , null , null ,null, | ||
5, 25, 50, 120, 150, 200, 426, 660, 869, 1060, 1605, 2471, 3322, | ||
4238, 5221, 6129, 7089, 8339, 9399, 10538, 11643, 13092, 14478, | ||
15915, 17385, 19055, 21205, 23044, 25393, 27935, 30062, 32049, | ||
33952, 35804, 37431, 39197, 45000, 43000, 41000, 39000, 37000, | ||
35000, 33000, 31000, 29000, 27000, 25000, 24000, 23000, 22000, | ||
21000, 20000, 19000, 18000, 18000, 17000, 16000)); | ||
|
||
echo $chart->HCoP('', true, 700, 350); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 HiGrid Inc. | ||
* higrid嗨网 中文PHP表格, http://higrid.net | ||
* | ||
* Released on 2013-03-27 13:16 V2.2 | ||
*/ | ||
|
||
|
||
defined('HIPATH') || define('HIPATH', dirname(__FILE__).'/');//绝对路径 | ||
require_once(HIPATH.'config.php');//数据库连接设置,修改本目录下config.php相关参数 | ||
|
||
$chart = new higridCharts(); | ||
$chart->HCsCO(array( | ||
"defaultSeriesType"=>"area", | ||
"inverted"=>true | ||
)) | ||
->HCsT(array('text'=>'Average fruit consumption during one week')) | ||
->HCsST(array( | ||
"style"=>array( | ||
"position"=> 'absolute', | ||
"right"=> '0px', | ||
"bottom"=> '10px' | ||
) | ||
)) | ||
->HCsL(array( | ||
"layout"=> 'vertical', | ||
"align"=> 'right', | ||
"verticalAlign"=> 'top', | ||
"x"=> -100, | ||
"y"=> 100, | ||
"floating"=> true, | ||
"borderWidth"=> 1, | ||
"backgroundColor"=> '#FFFFFF' | ||
|
||
)) | ||
->HCsX(array( | ||
"categories"=> array('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday') | ||
)) | ||
->HCsY(array( | ||
"title"=>array("text"=> 'Number of units'), | ||
"labels"=>array("formatter"=>"js:function(){return this.value;}") | ||
)) | ||
->HCsTT(array( | ||
"formatter"=>"function(){return this.x +': '+ this.y;}" | ||
)) | ||
->HCsPO(array( | ||
"area"=>array( | ||
"fillOpacity"=> 0.5 | ||
) | ||
)) | ||
->HCaS('Jhon', array(3, 4, 3, 5, 4, 10, 12)) | ||
->HCaS('Jane', array(1, 3, 4, 3, 3, 5, 4)); | ||
|
||
echo $chart->HCoP('', true, 680, 350); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 HiGrid Inc. | ||
* higrid嗨网 中文PHP表格, http://higrid.net | ||
* | ||
* Released on 2013-03-27 13:16 V2.2 | ||
*/ | ||
|
||
|
||
defined('HIPATH') || define('HIPATH', dirname(__FILE__).'/');//绝对路径 | ||
require_once(HIPATH.'config.php');//数据库连接设置,修改本目录下config.php相关参数 | ||
|
||
$chart = new higridCharts(); | ||
$chart->HCsCO(array( | ||
"defaultSeriesType"=>"area", | ||
"spacingBottom"=>30 | ||
)) | ||
->HCsT(array('text'=>'Fruit consumption *')) | ||
->HCsST(array( | ||
"text"=>'* Jane\'s banana consumption is unknown', | ||
"floating"=> true, | ||
"align"=>"right", | ||
"verticalAlign"=> 'bottom', | ||
"y"=>15 | ||
)) | ||
->HCsL(array( | ||
"layout"=> 'vertical', | ||
"align"=> 'left', | ||
"verticalAlign"=> 'top', | ||
"x"=> 150, | ||
"y"=> 100, | ||
"floating"=> true, | ||
"borderWidth"=> 1, | ||
"backgroundColor"=> '#FFFFFF' | ||
|
||
)) | ||
->HCsX(array( | ||
"categories"=> array('Apples', 'Pears', 'Oranges', 'Bananas', 'Grapes', 'Plums', 'Strawberries', 'Raspberries') | ||
)) | ||
->HCsY(array( | ||
"title"=>array("text"=> 'Y-Axis'), | ||
"labels"=>array("formatter"=>"js:function(){return this.value;}") | ||
)) | ||
->HCsTT(array( | ||
"formatter"=>"function(){return '<b>'+ this.series.name +'</b><br/>'+this.x +': '+ this.y;}" | ||
)) | ||
->HCsPO(array( | ||
"area"=>array( | ||
"fillOpacity"=> 0.5 | ||
) | ||
)) | ||
->HCaS('Jhon', array(0, 1, 4, 4, 5, 2, 3, 7)) | ||
->HCaS('Jane', array(1, 0, 3, null, 3, 1, 2, 1)); | ||
|
||
echo $chart->HCoP('', true, 700, 350); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 HiGrid Inc. | ||
* higrid嗨网 中文PHP表格, http://higrid.net | ||
* | ||
* Released on 2013-03-27 13:16 V2.2 | ||
*/ | ||
|
||
|
||
defined('HIPATH') || define('HIPATH', dirname(__FILE__).'/');//绝对路径 | ||
require_once(HIPATH.'config.php');//数据库连接设置,修改本目录下config.php相关参数 | ||
|
||
$chart = new higridCharts(); | ||
$chart->HCsCO(array( | ||
"defaultSeriesType"=>"area" | ||
)) | ||
->HCsT(array('text'=>'Area chart with negative values')) | ||
->HCsX(array( | ||
"categories"=>array('Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas') | ||
)) | ||
->HCsTT(array( | ||
"formatter"=>"function(){return this.series.name +': '+ this.y +'';}" | ||
)) | ||
->HCaS('Jhon', array(5, 3, 4, 7, 2)) | ||
->HCaS('Jane', array(2, -2, -3, 2, 1)) | ||
->HCaS('Joe', array( 3, 4, 4, -2, 5)); | ||
|
||
echo $chart->HCoP('', true, 700, 350); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 HiGrid Inc. | ||
* higrid嗨网 中文PHP表格, http://higrid.net | ||
* | ||
* Released on 2013-03-27 13:16 V2.2 | ||
*/ | ||
|
||
|
||
defined('HIPATH') || define('HIPATH', dirname(__FILE__).'/');//绝对路径 | ||
require_once(HIPATH.'config.php');//数据库连接设置,修改本目录下config.php相关参数 | ||
|
||
$chart = new higridCharts(); | ||
$chart->HCsCO(array( | ||
"defaultSeriesType"=>"area" | ||
)) | ||
->HCsT(array('text'=>'Historic and Estimated Worldwide Population Growth by Region')) | ||
->HCsST(array("text"=>'Source: Wikipedia.org')) | ||
->HCsX(array( | ||
"categories"=> array('1750', '1800', '1850', '1900', '1950', '1999', '2050'), | ||
"tickmarkPlacement"=> 'on', | ||
"title"=>array("enabled"=>false) | ||
)) | ||
->HCsY(array( | ||
"title"=>array("text"=> 'Percent') | ||
)) | ||
->HCsTT(array( | ||
"formatter"=>"function(){return this.x +': '+ Highcharts.numberFormat(this.percentage, 1) +'% ('+Highcharts.numberFormat(this.y, 0, ',') +' millions)';}" | ||
)) | ||
->HCsPO(array( | ||
"area"=>array( | ||
"stacking"=> 'percent', | ||
"lineColor"=> '#ffffff', | ||
"lineWidth"=> 1, | ||
"marker"=>array( | ||
"lineWidth"=> 1, | ||
"lineColor"=>"#ffffff" | ||
) | ||
) | ||
)) | ||
->HCaS('Asia', array(502, 635, 809, 947, 1402, 3634, 5268)) | ||
->HCaS('Africa', array(106, 107, 111, 133, 221, 767, 1766)) | ||
->HCaS('Europe', array(163, 203, 276, 408, 547, 729, 628)) | ||
->HCaS('America', array(18, 31, 54, 156, 339, 818, 1201)) | ||
->HCaS('Oceania', array(2, 2, 2, 6, 13, 30, 46)); | ||
|
||
echo $chart->HCoP('', true, 700, 350); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/** | ||
* Copyright (C) 2013 HiGrid Inc. | ||
* higrid嗨网 中文PHP表格, http://higrid.net | ||
* | ||
* Released on 2013-03-27 13:16 V2.2 | ||
*/ | ||
|
||
|
||
defined('HIPATH') || define('HIPATH', dirname(__FILE__).'/');//绝对路径 | ||
require_once(HIPATH.'config.php');//数据库连接设置,修改本目录下config.php相关参数 | ||
|
||
|
||
$chart = new higridCharts(); | ||
$chart->HCsCO(array( | ||
"defaultSeriesType"=>"areaspline" | ||
)) | ||
->HCsT(array('text'=>'Average fruit consumption during one week')) | ||
->HCsL(array( | ||
"layout"=> 'vertical', | ||
"align"=> 'right', | ||
"verticalAlign"=> 'top', | ||
"x"=> 150, | ||
"y"=> 100, | ||
"floating"=> true, | ||
"borderWidth"=> 1, | ||
"backgroundColor"=> '#FFFFFF' | ||
)) | ||
->HCsX(array( | ||
"categories"=> array('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'), | ||
"plotBands"=>array( | ||
array( // mark weekend | ||
"from"=>4.5, | ||
"to"=>6.5, | ||
"color"=>'rgba(68, 170, 213, .2)' | ||
) | ||
) | ||
)) | ||
->HCsY(array( | ||
"title"=>array("text"=> 'Fruit units') | ||
)) | ||
->HCsTT(array( | ||
"formatter"=>"function(){return this.x +': '+ this.y+' units';}" | ||
)) | ||
->HCsPO(array( | ||
"areaspline"=>array( | ||
"fillOpacity"=> 0.5 | ||
) | ||
)) | ||
->HCaS('Jhon', array(3, 4, 3, 5, 4, 10, 12)) | ||
->HCaS('Jane', array(1, 3, 4, 3, 3, 5, 4)); | ||
|
||
echo $chart->HCoP('', true, 700, 350); | ||
|
||
?> |
Oops, something went wrong.