wanggangtao 5 éve%!(EXTRA string=óta)
szülő
commit
84bbfb003b

+ 43 - 0
lib/day_k_base.class.php

@@ -0,0 +1,43 @@
+<?php
+
+
+/**
+ * Class Day_k_base
+ * @author		王刚涛
+ * 日线数据
+ */
+class Day_k_base {
+
+	/**
+	 * 记录管理员日志
+	 * 
+	 * @param $log       日志内容
+	 * 
+	 */
+	static public function add($log){
+
+	}
+    
+	/** 
+	 * 管理员日志记录列表
+	 * 
+	 * @param $page        当前页
+	 * @param $pagesize    每页大小
+	 * 
+	 */
+	static public function getListByPage($page, $pagesize){
+		$filter = array();
+
+        $Table_day_k_base = new Table_day_k_base();
+		return $Table_day_k_base->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);
+	}
+}
+?>

+ 4 - 6
lib/index_csi300.class.php

@@ -1,11 +1,9 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class Index_csi300
+ *  * @author		王刚涛
+ * 日线数据
  */
 
 class Index_csi300 {

+ 3 - 6
lib/index_gem.class.php

@@ -1,13 +1,10 @@
 <?php
 
 /**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+ * Class Index_gem
+ *  * @author		王刚涛
+ * 日线数据
  */
-
 class Index_gem {
 
 	/**

+ 4 - 7
lib/index_kc50.class.php

@@ -1,13 +1,10 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class Index_kc50
+ *  * @author		王刚涛
+ * 日线数据
  */
-
 class Index_kc50 {
 
 	/**

+ 4 - 6
lib/index_scz.class.php

@@ -1,11 +1,9 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class Index_scz
+ *  * @author		王刚涛
+ * 日线数据
  */
 
 class Index_scz {

+ 4 - 6
lib/index_sh.class.php

@@ -1,11 +1,9 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class Index_sh
+ *  * @author		王刚涛
+ * 日线数据
  */
 
 class Index_sh {

+ 4 - 6
lib/index_sh50.class.php

@@ -1,11 +1,9 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class Index_sh50
+ *  * @author		王刚涛
+ * 日线数据
  */
 
 class Index_sh50 {

+ 4 - 6
lib/st_log.class.php

@@ -1,11 +1,9 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class St_log
+ *  * @author		王刚涛
+ * 日线数据
  */
 
 class St_log {

+ 4 - 6
lib/stock.class.php

@@ -1,11 +1,9 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class Stock
+ *  * @author		王刚涛
+ * 日线数据
  */
 
 class Stock {

+ 67 - 0
lib/table/table_day_k_base.class.php

@@ -0,0 +1,67 @@
+<?php
+
+/**
+ * 数据库表:管理员组
+ *
+ * @createtime	2018/03/01
+ * @author		空竹
+ * @copyright	芝麻开发(http://www.zhimawork.com)
+ */
+
+class Table_day_k_base extends Table {
+
+	protected $table_name       = 'day_k_base';//表名,不带前缀,前缀在config中定义
+    protected $table_id         = 'day_k_id';//指定ID字段名称,必须
+    protected $table_status     = '';//指定状态字段名称,如果有
+    protected $table_order      = '';//指定排序字段名称,如果有
+	//数据库结构
+	protected function struct(){
+		$attr = array();
+		$attr['id']                 = 'day_k_id';
+		$attr['date']               = 'day_k_date';
+		$attr['code']         = 'day_k_code';
+		$attr['type']        = 'day_k_open_price';
+        $attr['multiple']    = 'day_k_close_price';
+        $attr['subprice']        = 'day_k_hightest_price';
+        $attr['oldprice']    = 'day_k_lowest_price';
+        $attr['newprice']        = 'day_k_increase_price';
+        $attr['oldprice']    = 'day_k_increase_value';
+        $attr['newprice']        = 'day_k_turnover';
+        $attr['oldprice']    = 'day_k_amount';
+        $attr['newprice']        = 'day_k_value';
+        $attr['oldprice']    = 'day_k_open_price_qfq';
+        $attr['newprice']        = 'day_k_close_price_qfq';
+        $attr['newprice']        = 'day_k_hightest_price_qfq';
+        $attr['oldprice']    = 'day_k_lowest_price_qfq';
+        $attr['newprice']        = 'day_k_m5';
+        $attr['newprice']        = 'day_k_m10';
+        $attr['oldprice']    = 'day_k_m20';
+        $attr['newprice']        = 'day_k_m60';
+        $attr['newprice']        = 'day_k_kdj';
+        $attr['oldprice']    = 'day_k_macd';
+        $attr['newprice']        = 'day_k_rsi';
+		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)
+    {
+
+    }
+}
+?>

+ 4 - 6
lib/xrxd_log.class.php

@@ -1,11 +1,9 @@
 <?php
 
-/**
- * 管理员日志类
- *
- * @createtime	2018/03/01
- * @author		空竹
- * @copyright	芝麻开发(http://www.zhimawork.com)
+/***
+ * Class Xrxd_log
+ *  * @author		王刚涛
+ * 日线数据
  */
 
 class Xrxd_log {