chenbo 5 år sedan
förälder
incheckning
97916bbb85

+ 9 - 1
config.inc.php

@@ -18,15 +18,23 @@ header("content-type:text/html;charset=utf-8");
 date_default_timezone_set('PRC');              //时区设置,服务器放置在国外的需要打开此项
 session_start();
 //ob_start();
-define("PROJECTCODE",    'ZhimaPHP');          //项目编号,建议修改,每个项目应该不同
+define("PROJECTCODE",  'boniu');          //项目编号,建议修改,每个项目应该不同
 $HTTP_PATH = 'https://www.zhimawork.com/';     //网站访问路径,根据实际情况修改,务必以“/”结尾。
 
 //数据库连接参数设置=======================================
+<<<<<<< HEAD
 $DB_host   = 'localhost';                      //数据库地址
 $DB_user   = 'boniu';                           //数据库用户
 $DB_pass   = '*boniu#';                           //数据库用户密码
 $DB_name   = 'boniu';                       //数据库名称
 $DB_prefix = 'boniu_';                      //表前缀,可以为空
+=======
+$DB_host   = 'http://47.94.0.230/phpmyadmin/sql.php';                      //数据库地址
+$DB_user   = 'boniu';                           //数据库用户
+$DB_pass   = '*boniu#';                           //数据库用户密码
+$DB_name   = 'boniu';                       //数据库名称
+$DB_prefix = 'boniu';                      //表前缀,可以为空
+>>>>>>> 603a0fc26e84dd9515348aea7dfa466fbe89a61a
 
 //数据库调试等级,上线请关闭
 //0--关闭数据库错误信息 1--打印错误SQL到日志文件(默认) 2--打印所有SQL到日志文件

+ 45 - 0
lib/index_csi300.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Index_csi300 {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_index_csi300 = new Table_index_csi300();
+		return $Table_index_csi300->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+		$Table_index_csi300 = new Table_index_csi300();
+		return $Table_index_csi300->getList($filter, 1);
+	}
+}
+?>

+ 45 - 0
lib/index_gem.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Index_gem {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_index_gem = new Table_index_gem();
+		return $Table_index_gem->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_index_gem = new Table_index_csi300();
+		return $Table_index_gem->getList($filter, 1);
+	}
+}
+?>

+ 45 - 0
lib/index_kc50.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Index_kc50 {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_index_kc50 = new Table_index_kc50();
+		return $Table_index_kc50->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_index_gem = new Table_index_csi300();
+		return $Table_index_gem->getList($filter, 1);
+	}
+}
+?>

+ 45 - 0
lib/index_scz.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Index_scz {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_index_scz = new Table_index_scz();
+		return $Table_index_scz->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_index_gem = new Table_index_csi300();
+		return $Table_index_gem->getList($filter, 1);
+	}
+}
+?>

+ 45 - 0
lib/index_sh.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Index_sh {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_index_sh = new Table_index_sh();
+		return $Table_index_sh->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_index_sh = new Table_index_sh();
+		return $Table_index_sh->getList($filter, 1);
+	}
+}
+?>

+ 45 - 0
lib/index_sh50.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Index_sh50 {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_index_sh50 = new Table_index_sh();
+		return $Table_index_sh50->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_index_sh50 = new Table_index_sh();
+		return $Table_index_sh50->getList($filter, 1);
+	}
+}
+?>

+ 45 - 0
lib/st_log.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class St_log {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_st_log = new Table_st_log();
+		return $Table_st_log->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_st_log = new Table_st_log();
+		return $Table_st_log->getList($filter, 1);
+	}
+}
+?>

+ 45 - 0
lib/stock.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Stock {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_stock = new Table_stock();
+		return $Table_stock->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_stock = new Table_st_log();
+		return $Table_stock->getList($filter, 1);
+	}
+}
+?>

+ 53 - 0
lib/table/table_index_csi300.class.php

@@ -0,0 +1,53 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_index_csi300 extends Table {
+
+	protected $table_name       = 'index_csi300';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'index_csi300_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+    //数据库结构
+	protected function struct(){
+		$attr = array();
+		
+		$attr['id']                = 'index_csi300_id';
+		$attr['date']              = 'index_csi300_date';
+		$attr['open_price']        = 'index_csi300_open_price';
+		$attr['close_price']       = 'index_csi300_close_price';
+        $attr['increase_price']    = 'index_csi300_increase_price';
+        $attr['increase_value']    = 'index_csi300_increase_value';
+        $attr['amount']            = 'index_csi300_amount';
+        $attr['value']             = 'index_csi300_value';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 53 - 0
lib/table/table_index_gem.class.php

@@ -0,0 +1,53 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_index_gem extends Table {
+
+	protected $table_name       = 'index_gem';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'index_gem_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		
+		$attr['id']           = 'index_gem_id';
+		$attr['date']         = 'index_gem_date';
+		$attr['open_price']         = 'index_gem_open_price';
+		$attr['close_price']        = 'index_gem_close_price';
+        $attr['increase_price']           = 'index_gem_increase_price';
+        $attr['increase_value']         = 'index_gem_increase_value';
+        $attr['amount']         = 'index_gem_amount';
+        $attr['value']        = 'index_gem_value';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 53 - 0
lib/table/table_index_kc50.class.php

@@ -0,0 +1,53 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_index_kc50 extends Table {
+
+	protected $table_name       = 'index_kc50';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'index_kc50_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		
+		$attr['id']           = 'index_kc50_id';
+		$attr['date']         = 'index_kc50_date';
+		$attr['open_price']         = 'index_kc50_open_price';
+		$attr['close_price']        = 'index_kc50_close_price';
+        $attr['increase_price']           = 'index_kc50_increase_price';
+        $attr['increase_value']         = 'index_kc50_increase_value';
+        $attr['amount']         = 'index_kc50_amount';
+        $attr['value']        = 'index_kc50_value';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 53 - 0
lib/table/table_index_scz.class.php

@@ -0,0 +1,53 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_index_scz extends Table {
+
+	protected $table_name       = 'index_scz';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'index_scz_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		
+		$attr['id']           = 'index_scz_id';
+		$attr['date']         = 'index_scz_date';
+		$attr['open_price']         = 'index_scz_open_price';
+		$attr['close_price']        = 'index_scz_close_price';
+        $attr['increase_price']           = 'index_scz_increase_price';
+        $attr['increase_value']         = 'index_scz_increase_value';
+        $attr['amount']         = 'index_scz_amount';
+        $attr['value']        = 'index_scz_value';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 53 - 0
lib/table/table_index_sh.class.php

@@ -0,0 +1,53 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_index_sh extends Table {
+
+	protected $table_name       = 'index_sh';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'index_sh_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		
+		$attr['id']           = 'index_sh_id';
+		$attr['date']         = 'index_sh_date';
+		$attr['open_price']         = 'index_sh_open_price';
+		$attr['close_price']        = 'index_sh_close_price';
+        $attr['increase_price']           = 'index_sh_increase_price';
+        $attr['increase_value']         = 'index_sh_increase_value';
+        $attr['amount']         = 'index_sh_amount';
+        $attr['value']        = 'index_sh_value';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 53 - 0
lib/table/table_index_sh50.class.php

@@ -0,0 +1,53 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_index_sh50 extends Table {
+
+	protected $table_name       = 'index_sh50';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'index_sh50_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		
+		$attr['id']           = 'index_sh50_id';
+		$attr['date']         = 'index_sh50_date';
+		$attr['open_price']         = 'index_sh50_open_price';
+		$attr['close_price']        = 'index_sh50_close_price';
+        $attr['increase_price']           = 'index_sh50_increase_price';
+        $attr['increase_value']         = 'index_sh50_increase_value';
+        $attr['amount']         = 'index_sh50_amount';
+        $attr['value']        = 'index_sh50_value';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 49 - 0
lib/table/table_st_log.class.php

@@ -0,0 +1,49 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_st_log extends Table {
+
+	protected $table_name       = 'st_log';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'st_log_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		$attr['id']                 = 'st_log_id';
+		$attr['date']               = 'st_log_date';
+		$attr['open_price']         = 'st_log_code';
+		$attr['close_price']        = 'st_log_pretype';
+        $attr['tradable_amount']    = 'st_log_ posttype';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 60 - 0
lib/table/table_stock.class.php

@@ -0,0 +1,60 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_stock extends Table {
+
+	protected $table_name       = 'stock';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'stock_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		
+		$attr['id']           = 'stock_id';
+		$attr['date']         = 'stock_code';
+		$attr['open_price']         = 'stock_name';
+		$attr['close_price']        = 'stock_desc';
+        $attr['tradable_amount']           = 'stock_tradable_amount';
+        $attr['tradable_value']         = 'stock_tradable_value';
+        $attr['total_amount']         = 'stock_total_amount';
+        $attr['total_value']        = 'stock_total_value';
+        $attr['profitable']        = 'stock_profitable';
+        $attr['pb']        = 'stock_pb';
+        $attr['pe_static']        = 'stock_pe_static';
+        $attr['pe_dynamic']        = 'stock_pe_dynamic';
+        $attr['pe_ttm']        = 'stock_pe_ttm';
+        $attr['exchange']        = 'stock_exchange';
+        $attr['sector']        = 'stock_sector';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 52 - 0
lib/table/table_xrxd_log.class.php

@@ -0,0 +1,52 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_xrxd_log extends Table {
+
+	protected $table_name       = 'xrxd_log';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'xrxd_log_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		$attr['id']                 = 'xrxd_log_id';
+		$attr['date']               = 'xrxd_log_date';
+		$attr['code']         = 'xrxd_log_code';
+		$attr['type']        = 'xrxd_log_type';
+        $attr['multiple']    = 'xrxd_log_multiple';
+        $attr['subprice']        = 'xrxd_log_subprice';
+        $attr['oldprice']    = 'xrxd_log_oldprice';
+        $attr['newprice']        = 'xrxd_log_newprice';
+		return $attr;
+	}
+
+    public function add($attr){
+        $param = array (
+
+             'admingroup_name'    => array('string', $attr['name'])
+
+        );
+        return $this->pdo->sqlinsert($this->table_fullname, $param);
+    }
+
+    //获取列表(分页)
+    //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
+    //
+    //@param $filter array -- 过滤条件,格式见Table::filterToWhere
+    //@param $count -- 0:返回列表 1:返回结果数量
+    //@param $page -- 当前第几页
+    //@param $pagesize -- 每页数量
+    public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
+    {
+
+    }
+}
+?>

+ 45 - 0
lib/xrxd_log.class.php

@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * 管理员日志类
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Xrxd_log {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_xrxd_log = new Table_xrxd_log();
+		return $Table_xrxd_log->getList($filter, 0, $page, $pagesize);
+	}
+    
+	//管理员日志总数
+	static public function getCountAll(){
+		$filter = array();
+
+        $Table_xrxd_log = new Table_st_log();
+		return $Table_xrxd_log->getList($filter, 1);
+	}
+}
+?>