⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 history_chart.inc.php

📁 股票监视器是一个简单的实用工具
💻 PHP
字号:
<?php/** PHP STOCK TRACKER* -----------------* A multi-user utility for creating and managing stock* watchlists and historical analysis.* Copyright (C) 2005 Joshua Eldridge (joshuae74@hotmail.com)*** This program is free software; you can redistribute it and/or modify* it under the terms of the GNU General Public License as published by* the Free Software Foundation; either version 2 of the License, or* (at your option) any later version.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the* GNU General Public License for more details.** You should have received a copy of the GNU General Public License* along with this program; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA** See the COPYING file for full details.*/require_once('../INCLUDES.inc.php');session_start();//$conn->debug = TRUE;$symbol = $_SESSION['stock_history_symbol'];$data = $_SESSION['stock_history_data'];$chart['chart_data'][0][0] = "" ;$chart['chart_data'][1][0] = "" ;// Reformat the data for displaying in the flash chartfor($i=0;$i<count($data);$i++) {    $chart['chart_data'][0][$i+1] = $data[$i][0];    $chart['chart_data'][1][$i+1] = $data[$i][1];}$chart [ 'axis_category' ]['skip'] = 1;$chart [ 'axis_category' ]['orientation'] = "diagonal_up";$chart [ 'axis_category' ]['size'] = '15';$chart [ 'chart_type' ] = "line";$chart[ 'series_color' ] = array ("0000FF"); $chart [ 'legend_rect' ]['x'] = 0;$chart [ 'legend_rect' ]['y'] = -100;$chart[ 'draw_text' ] = array (	array ( 'color'=>"000000", 'alpha'=>4, 'font'=>"arial", 'rotation'=>0, 'bold'=>true, 'size'=>48, 'x'=>8, 'y'=>7, 'width'=>400, 'height'=>75, 'text'=>"stock tracker", 'h_align'=>"center", 'v_align'=>"bottom" ), array ( 'color'=>"FFFF00", 'alpha'=>30, 'font'=>"arial", 'rotation'=>-90, 'bold'=>true, 'size'=>50, 'x'=>-10, 'y'=>490, 'width'=>300, 'height'=>150, 'text'=>"Stock Price", 'h_align'=>"center", 'v_align'=>"top" ), array ( 'color'=>"00FF00", 'alpha'=>30, 'font'=>"arial", 'rotation'=>0, 'bold'=>true, 'size'=>70, 'x'=>0, 'y'=>0, 'width'=>640, 'height'=>55, 'text'=>$symbol, 'h_align'=>"right", 'v_align'=>"top" ) );SendChartData($chart);?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -