Files
echart/class/basic_info.class.php
T
simonandClaude Opus 4.7 eedead0d41 feat: 全面代码更新 - ECharts 5.4.2 重构、新增量化分析模块、前端库升级
- 升级 ECharts 到 5.4.2,重构 lib/ 目录结构
- 新增 DataTables 2.x 和 FixedColumns 插件
- 新增 quant/ 宏观研究报告模块
- 重构图表页面:stock_trend、hkholdbycode 等采用 JS fetch API.doorcome.cn 模式
- 新增 CLAUDE.md 补充页面文档和新数据流说明
- 更新 inc/config.php TuShare API 配置
- 更新新闻联播分析模块 news/ 和相关研究报告 research/
- 新增 api_document/ 参考文档
- 清理 .gitignore,排除 uploads/xls/.mcp.json/ source maps 等非代码文件
- 所有 PHP 文件通过 php -l 语法检查

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 18:01:55 +08:00

73 lines
2.4 KiB
PHP

<?php
/**
* Basic Information Display
*
* Basic Information and Display as Format HTML Tables.
* @package Display
* @author Simon <simon.youngest@gmail.com>
* @date 2011-3-28
* @version 0.1
*/
class basic_info{
public $columns; //Number of Column
public $rows; //Number of rows
public $content; //Content to display,2-D
/* Array with items<$itemNum; If need add No at 0, use function: array_unshift*/
public $titles;
/* Main title of Basic Information as: lot information */
public $main_title;
public $num_flag; //Is first column is No? Set 1 if yes.
public $aligns; //Align method for each column;
public $width;
public $display;
//Get Formated Display of Content
function get_Content_Display(){
global $tableTop,$interval;
if($this->content[0]==NULL) {
$this->display="<p align='center'><font size='3' color='red'><i><b>Query result is null</b></i></font></p>";
return;
}
/* Get number of rows if not defined */
if($this->rows == NULL) $this->rows=count($this->content[0]);
$this->display="<table width='".$this->width."' align='center' >\n";
/* Main title display */
if(strlen($this->main_title)>0) {
$this->display.="<tr><td colspan='5' align='center' style='font-size:14px;padding:5px;'><h3>";
$this->display.=$this->main_title;
$this->display.="</h3></td></tr>\n";
}
/* Get Row number of HTML */
$html_row=ceil(count($this->content[0])/2);
//display data
for($i=0;$i<$html_row;$i++){
$j=$i+1;
$this->display.="<tr >\n";
$this->display.="<td bgcolor='".$tableTop."' width='18%' style='font-size:14px;padding:5px;'>\n";
$this->display.=$this->content[0][2*$i];
$this->display.="</td><td bgcolor='".$interval."' width='31%' style='font-size:14px;padding:5px;'>\n";
$this->display.=$this->content[1][2*$i];
$this->display.="</td>\n";
$this->display.="<td >&nbsp;</td>\n";
$this->display.="<td bgcolor='".$tableTop."' width='18%' style='font-size:14px;padding:5px;'>\n";
$this->display.=$this->content[0][2*$i+1];
$this->display.="</td><td bgcolor='".$interval."' width='31%' style='font-size:14px;padding:5px;'>\n";
$this->display.=$this->content[1][2*$i+1];
$this->display.="</td>\n";
$this->display.="</tr>\n";
}
$this->display.="</table>";
}
function display(){
echo $this->display;
}
}
?>