|
@@ -1,30 +1,34 @@
|
|
<?php
|
|
<?php
|
|
|
|
|
|
namespace app\admin\controller;
|
|
namespace app\admin\controller;
|
|
|
|
+
|
|
use think\facade\View;
|
|
use think\facade\View;
|
|
use think\facade\Db;
|
|
use think\facade\Db;
|
|
use think\facade\Lang;
|
|
use think\facade\Lang;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- * ============================================================================
|
|
|
|
|
|
+
|
|
|
|
+ *
|
|
|
|
+
|
|
*
|
|
*
|
|
- * ============================================================================
|
|
|
|
- * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
|
|
|
|
- * 网站地址: https://www.valimart.net/
|
|
|
|
* ----------------------------------------------------------------------------
|
|
* ----------------------------------------------------------------------------
|
|
*
|
|
*
|
|
- * ============================================================================
|
|
|
|
|
|
+
|
|
* 控制器
|
|
* 控制器
|
|
*/
|
|
*/
|
|
-class Dashboard extends AdminControl {
|
|
|
|
|
|
+class Dashboard extends AdminControl
|
|
|
|
+{
|
|
|
|
|
|
- public function initialize() {
|
|
|
|
|
|
+ public function initialize()
|
|
|
|
+ {
|
|
parent::initialize(); // TODO: Change the autogenerated stub
|
|
parent::initialize(); // TODO: Change the autogenerated stub
|
|
- Lang::load(base_path() . 'admin/lang/'.config('lang.default_lang').'/dashboard.lang.php');
|
|
|
|
- include_once root_path(). 'extend/mall/statistics.php';
|
|
|
|
- include_once root_path(). 'extend/mall/datehelper.php';
|
|
|
|
|
|
+ Lang::load(base_path() . 'admin/lang/' . config('lang.default_lang') . '/dashboard.lang.php');
|
|
|
|
+ include_once root_path() . 'extend/mall/statistics.php';
|
|
|
|
+ include_once root_path() . 'extend/mall/datehelper.php';
|
|
}
|
|
}
|
|
|
|
|
|
- function index() {
|
|
|
|
|
|
+ function index()
|
|
|
|
+ {
|
|
$this->welcome();
|
|
$this->welcome();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -32,15 +36,16 @@ class Dashboard extends AdminControl {
|
|
* 检查是否为最新版本
|
|
* 检查是否为最新版本
|
|
*/
|
|
*/
|
|
|
|
|
|
- function version() {
|
|
|
|
|
|
+ function version()
|
|
|
|
+ {
|
|
//当前版本
|
|
//当前版本
|
|
$curent_version = file_get_contents(base_path() . 'version.php');
|
|
$curent_version = file_get_contents(base_path() . 'version.php');
|
|
//获取最新版本信息
|
|
//获取最新版本信息
|
|
$vaules = array(
|
|
$vaules = array(
|
|
- 'domain'=>$_SERVER['HTTP_HOST'],
|
|
|
|
- 'version'=>$curent_version,
|
|
|
|
|
|
+ 'domain' => $_SERVER['HTTP_HOST'],
|
|
|
|
+ 'version' => $curent_version,
|
|
);
|
|
);
|
|
- $service_url = "http://service.csdeshang.com/index.php/home/Version/checkDsmall.html?".http_build_query($vaules);
|
|
|
|
|
|
+ $service_url = "http://service.csdeshang.com/index.php/home/Version/checkDsmall.html?" . http_build_query($vaules);
|
|
//设置超时时间
|
|
//设置超时时间
|
|
$opts = array(
|
|
$opts = array(
|
|
'http' =>
|
|
'http' =>
|
|
@@ -49,12 +54,13 @@ class Dashboard extends AdminControl {
|
|
)
|
|
)
|
|
);
|
|
);
|
|
$context = stream_context_create($opts);
|
|
$context = stream_context_create($opts);
|
|
- $service_info = @file_get_contents($service_url,FALSE,$context);
|
|
|
|
|
|
+ $service_info = @file_get_contents($service_url, FALSE, $context);
|
|
$version_message = json_decode($service_info);
|
|
$version_message = json_decode($service_info);
|
|
View::assign('version_message', $version_message);
|
|
View::assign('version_message', $version_message);
|
|
}
|
|
}
|
|
|
|
|
|
- function welcome() {
|
|
|
|
|
|
+ function welcome()
|
|
|
|
+ {
|
|
$this->version();
|
|
$this->version();
|
|
/**
|
|
/**
|
|
* 管理员信息
|
|
* 管理员信息
|
|
@@ -62,7 +68,7 @@ class Dashboard extends AdminControl {
|
|
$admin_model = model('admin');
|
|
$admin_model = model('admin');
|
|
$tmp = $this->getAdminInfo();
|
|
$tmp = $this->getAdminInfo();
|
|
$condition = array();
|
|
$condition = array();
|
|
- $condition[] = array('admin_id','=',$tmp['admin_id']);
|
|
|
|
|
|
+ $condition[] = array('admin_id', '=', $tmp['admin_id']);
|
|
$admin_info = $admin_model->infoAdmin($condition);
|
|
$admin_info = $admin_model->infoAdmin($condition);
|
|
$admin_info['admin_login_time'] = date('Y-m-d H:i:s', ($admin_info['admin_login_time'] == '' ? TIMESTAMP : $admin_info['admin_login_time']));
|
|
$admin_info['admin_login_time'] = date('Y-m-d H:i:s', ($admin_info['admin_login_time'] == '' ? TIMESTAMP : $admin_info['admin_login_time']));
|
|
/**
|
|
/**
|
|
@@ -80,7 +86,7 @@ class Dashboard extends AdminControl {
|
|
$statistics['domain'] = $_SERVER['HTTP_HOST'];
|
|
$statistics['domain'] = $_SERVER['HTTP_HOST'];
|
|
$statistics['ip'] = GetHostByName($_SERVER['SERVER_NAME']);
|
|
$statistics['ip'] = GetHostByName($_SERVER['SERVER_NAME']);
|
|
$statistics['zlib'] = function_exists('gzclose') ? 'YES' : 'NO'; //zlib
|
|
$statistics['zlib'] = function_exists('gzclose') ? 'YES' : 'NO'; //zlib
|
|
- $statistics['safe_mode'] = (boolean) ini_get('safe_mode') ? 'YES' : 'NO'; //safe_mode = Off
|
|
|
|
|
|
+ $statistics['safe_mode'] = (bool) ini_get('safe_mode') ? 'YES' : 'NO'; //safe_mode = Off
|
|
$statistics['timezone'] = function_exists("date_default_timezone_get") ? date_default_timezone_get() : "no_timezone";
|
|
$statistics['timezone'] = function_exists("date_default_timezone_get") ? date_default_timezone_get() : "no_timezone";
|
|
$statistics['curl'] = function_exists('curl_init') ? 'YES' : 'NO';
|
|
$statistics['curl'] = function_exists('curl_init') ? 'YES' : 'NO';
|
|
$statistics['fileupload'] = @ini_get('file_uploads') ? ini_get('upload_max_filesize') : 'unknown';
|
|
$statistics['fileupload'] = @ini_get('file_uploads') ? ini_get('upload_max_filesize') : 'unknown';
|
|
@@ -109,7 +115,7 @@ class Dashboard extends AdminControl {
|
|
$this->_get_week_store();
|
|
$this->_get_week_store();
|
|
$this->_get_week_order();
|
|
$this->_get_week_order();
|
|
}
|
|
}
|
|
- /**
|
|
|
|
|
|
+ /**
|
|
* 获取本周新增订单数量
|
|
* 获取本周新增订单数量
|
|
*/
|
|
*/
|
|
private function _get_week_order()
|
|
private function _get_week_order()
|
|
@@ -142,9 +148,9 @@ class Dashboard extends AdminControl {
|
|
unset($tmp_weekarr);
|
|
unset($tmp_weekarr);
|
|
}
|
|
}
|
|
$where = array();
|
|
$where = array();
|
|
- $where[] = array('add_time','between', array($stime, $etime));
|
|
|
|
|
|
+ $where[] = array('add_time', 'between', array($stime, $etime));
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(add_time)) as weekval,WEEKDAY(FROM_UNIXTIME(add_time))+1 as dayofweekval ';
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(add_time)) as weekval,WEEKDAY(FROM_UNIXTIME(add_time))+1 as dayofweekval ';
|
|
-
|
|
|
|
|
|
+
|
|
$orderlist = Db::name('order')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
$orderlist = Db::name('order')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
|
|
|
|
if ($orderlist) {
|
|
if ($orderlist) {
|
|
@@ -152,18 +158,18 @@ class Dashboard extends AdminControl {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['up'])){
|
|
|
|
|
|
+ if (isset($count_arr['up'])) {
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['up'] = 0;
|
|
$count_arr['up'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ($curr_week == $v['weekval']) {
|
|
if ($curr_week == $v['weekval']) {
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['curr'])){
|
|
|
|
|
|
+ if (isset($count_arr['curr'])) {
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['curr'] = 0;
|
|
$count_arr['curr'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -181,7 +187,7 @@ class Dashboard extends AdminControl {
|
|
$stat_json = getStatData_LineLabels($stat_arr);
|
|
$stat_json = getStatData_LineLabels($stat_arr);
|
|
View::assign('stat_json_week_order', $stat_json);
|
|
View::assign('stat_json_week_order', $stat_json);
|
|
}
|
|
}
|
|
- /**
|
|
|
|
|
|
+ /**
|
|
* 获取本周新增店铺数量
|
|
* 获取本周新增店铺数量
|
|
*/
|
|
*/
|
|
private function _get_week_store()
|
|
private function _get_week_store()
|
|
@@ -214,9 +220,9 @@ class Dashboard extends AdminControl {
|
|
unset($tmp_weekarr);
|
|
unset($tmp_weekarr);
|
|
}
|
|
}
|
|
$where = array();
|
|
$where = array();
|
|
- $where[] = array('store_addtime','between', array($stime, $etime));
|
|
|
|
|
|
+ $where[] = array('store_addtime', 'between', array($stime, $etime));
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(store_addtime)) as weekval,WEEKDAY(FROM_UNIXTIME(store_addtime))+1 as dayofweekval ';
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(store_addtime)) as weekval,WEEKDAY(FROM_UNIXTIME(store_addtime))+1 as dayofweekval ';
|
|
-
|
|
|
|
|
|
+
|
|
$storelist = Db::name('store')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
$storelist = Db::name('store')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
|
|
|
|
if ($storelist) {
|
|
if ($storelist) {
|
|
@@ -224,18 +230,18 @@ class Dashboard extends AdminControl {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['up'])){
|
|
|
|
|
|
+ if (isset($count_arr['up'])) {
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['up'] = 0;
|
|
$count_arr['up'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ($curr_week == $v['weekval']) {
|
|
if ($curr_week == $v['weekval']) {
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['curr'])){
|
|
|
|
|
|
+ if (isset($count_arr['curr'])) {
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['curr'] = 0;
|
|
$count_arr['curr'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -257,7 +263,8 @@ class Dashboard extends AdminControl {
|
|
/**
|
|
/**
|
|
* 获取本周新增商品数量
|
|
* 获取本周新增商品数量
|
|
*/
|
|
*/
|
|
- private function _get_week_goods() {
|
|
|
|
|
|
+ private function _get_week_goods()
|
|
|
|
+ {
|
|
$field = ' COUNT(*) as allnum ';
|
|
$field = ' COUNT(*) as allnum ';
|
|
$current_weekarr = getWeek_SdateAndEdate(TIMESTAMP);
|
|
$current_weekarr = getWeek_SdateAndEdate(TIMESTAMP);
|
|
$stime = strtotime($current_weekarr['sdate']) - 86400 * 7;
|
|
$stime = strtotime($current_weekarr['sdate']) - 86400 * 7;
|
|
@@ -286,9 +293,9 @@ class Dashboard extends AdminControl {
|
|
unset($tmp_weekarr);
|
|
unset($tmp_weekarr);
|
|
}
|
|
}
|
|
$where = array();
|
|
$where = array();
|
|
- $where[] = array('goods_addtime','between', array($stime, $etime));
|
|
|
|
|
|
+ $where[] = array('goods_addtime', 'between', array($stime, $etime));
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(goods_addtime)) as weekval,WEEKDAY(FROM_UNIXTIME(goods_addtime))+1 as dayofweekval ';
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(goods_addtime)) as weekval,WEEKDAY(FROM_UNIXTIME(goods_addtime))+1 as dayofweekval ';
|
|
-
|
|
|
|
|
|
+
|
|
$goodslist = Db::name('goodscommon')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
$goodslist = Db::name('goodscommon')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
|
|
|
|
if ($goodslist) {
|
|
if ($goodslist) {
|
|
@@ -296,25 +303,25 @@ class Dashboard extends AdminControl {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['up'])){
|
|
|
|
|
|
+ if (isset($count_arr['up'])) {
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['up'] = 0;
|
|
$count_arr['up'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ($curr_week == $v['weekval']) {
|
|
if ($curr_week == $v['weekval']) {
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['curr'])){
|
|
|
|
|
|
+ if (isset($count_arr['curr'])) {
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['curr'] = 0;
|
|
$count_arr['curr'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
$stat_arr['series'][0]['name'] = lang('last_week');
|
|
$stat_arr['series'][0]['name'] = lang('last_week');
|
|
$stat_arr['series'][0]['data'] = array_values($up_arr);
|
|
$stat_arr['series'][0]['data'] = array_values($up_arr);
|
|
@@ -327,11 +334,12 @@ class Dashboard extends AdminControl {
|
|
$stat_json = getStatData_LineLabels($stat_arr);
|
|
$stat_json = getStatData_LineLabels($stat_arr);
|
|
View::assign('stat_json_week_goods', $stat_json);
|
|
View::assign('stat_json_week_goods', $stat_json);
|
|
}
|
|
}
|
|
-
|
|
|
|
- /**
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 获取本周新增会员数量
|
|
* 获取本周新增会员数量
|
|
*/
|
|
*/
|
|
- private function _get_week_member() {
|
|
|
|
|
|
+ private function _get_week_member()
|
|
|
|
+ {
|
|
$field = ' COUNT(*) as allnum ';
|
|
$field = ' COUNT(*) as allnum ';
|
|
$current_weekarr = getWeek_SdateAndEdate(TIMESTAMP);
|
|
$current_weekarr = getWeek_SdateAndEdate(TIMESTAMP);
|
|
$stime = strtotime($current_weekarr['sdate']) - 86400 * 7;
|
|
$stime = strtotime($current_weekarr['sdate']) - 86400 * 7;
|
|
@@ -360,7 +368,7 @@ class Dashboard extends AdminControl {
|
|
unset($tmp_weekarr);
|
|
unset($tmp_weekarr);
|
|
}
|
|
}
|
|
$where = array();
|
|
$where = array();
|
|
- $where[] = array('member_addtime','between', array($stime, $etime));
|
|
|
|
|
|
+ $where[] = array('member_addtime', 'between', array($stime, $etime));
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(member_addtime)) as weekval,WEEKDAY(FROM_UNIXTIME(member_addtime))+1 as dayofweekval ';
|
|
$field .= ',WEEKOFYEAR(FROM_UNIXTIME(member_addtime)) as weekval,WEEKDAY(FROM_UNIXTIME(member_addtime))+1 as dayofweekval ';
|
|
$memberlist = Db::name('member')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
$memberlist = Db::name('member')->field($field)->where($where)->group('weekval,dayofweekval')->select()->toArray();
|
|
|
|
|
|
@@ -369,24 +377,24 @@ class Dashboard extends AdminControl {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
if ($up_week == intval($v['weekval'])) {
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$up_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$uplist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['up'])){
|
|
|
|
|
|
+ if (isset($count_arr['up'])) {
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
$count_arr['up'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['up'] = 0;
|
|
$count_arr['up'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ($curr_week == $v['weekval']) {
|
|
if ($curr_week == $v['weekval']) {
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$curr_arr[$v['dayofweekval']] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
$currlist_arr[$v['dayofweekval']]['val'] = intval($v['allnum']);
|
|
- if(isset($count_arr['curr'])){
|
|
|
|
|
|
+ if (isset($count_arr['curr'])) {
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
$count_arr['curr'] += intval($v['allnum']);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
$count_arr['curr'] = 0;
|
|
$count_arr['curr'] = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
$stat_arr['series'][0]['name'] = lang('last_week');
|
|
$stat_arr['series'][0]['name'] = lang('last_week');
|
|
$stat_arr['series'][0]['data'] = array_values($up_arr);
|
|
$stat_arr['series'][0]['data'] = array_values($up_arr);
|
|
$stat_arr['series'][1]['name'] = lang('this_week');
|
|
$stat_arr['series'][1]['name'] = lang('this_week');
|
|
@@ -402,12 +410,14 @@ class Dashboard extends AdminControl {
|
|
/**
|
|
/**
|
|
* 获取当前数据库版本
|
|
* 获取当前数据库版本
|
|
*/
|
|
*/
|
|
- private function _mysql_version() {
|
|
|
|
|
|
+ private function _mysql_version()
|
|
|
|
+ {
|
|
$version = Db::query("select version() as ver");
|
|
$version = Db::query("select version() as ver");
|
|
return $version[0]['ver'];
|
|
return $version[0]['ver'];
|
|
}
|
|
}
|
|
|
|
|
|
- function aboutus() {
|
|
|
|
|
|
+ function aboutus()
|
|
|
|
+ {
|
|
$this->setAdminCurItem('aboutus');
|
|
$this->setAdminCurItem('aboutus');
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
@@ -415,7 +425,8 @@ class Dashboard extends AdminControl {
|
|
/**
|
|
/**
|
|
* 统计
|
|
* 统计
|
|
*/
|
|
*/
|
|
- public function statistics() {
|
|
|
|
|
|
+ public function statistics()
|
|
|
|
+ {
|
|
$statistics = array();
|
|
$statistics = array();
|
|
// 本周开始时间点
|
|
// 本周开始时间点
|
|
$tmp_time = mktime(0, 0, 0, date('m'), date('d'), date('Y')) - (date('w') == 0 ? 7 : date('w') - 1) * 24 * 60 * 60;
|
|
$tmp_time = mktime(0, 0, 0, date('m'), date('d'), date('Y')) - (date('w') == 0 ? 7 : date('w') - 1) * 24 * 60 * 60;
|
|
@@ -426,11 +437,11 @@ class Dashboard extends AdminControl {
|
|
// 会员总数
|
|
// 会员总数
|
|
$statistics['member'] = $member_model->getMemberCount(array());
|
|
$statistics['member'] = $member_model->getMemberCount(array());
|
|
// 新增会员数
|
|
// 新增会员数
|
|
- $statistics['week_add_member'] = $member_model->getMemberCount(array(array('member_addtime','>=', $tmp_time)));
|
|
|
|
|
|
+ $statistics['week_add_member'] = $member_model->getMemberCount(array(array('member_addtime', '>=', $tmp_time)));
|
|
// 预存款提现
|
|
// 预存款提现
|
|
$statistics['cashlist'] = model('predeposit')->getPdcashCount(array('pdc_payment_state' => 0));
|
|
$statistics['cashlist'] = model('predeposit')->getPdcashCount(array('pdc_payment_state' => 0));
|
|
// 会员认证
|
|
// 会员认证
|
|
- $statistics['member_auth'] = $member_model->getMemberCount(array(array('member_auth_state' ,'=', 1)));
|
|
|
|
|
|
+ $statistics['member_auth'] = $member_model->getMemberCount(array(array('member_auth_state', '=', 1)));
|
|
|
|
|
|
/**
|
|
/**
|
|
* 店铺
|
|
* 店铺
|
|
@@ -439,15 +450,15 @@ class Dashboard extends AdminControl {
|
|
// 店铺总数
|
|
// 店铺总数
|
|
$statistics['store'] = model('store')->getStoreCount(array());
|
|
$statistics['store'] = model('store')->getStoreCount(array());
|
|
// 店铺申请数
|
|
// 店铺申请数
|
|
- $statistics['store_joinin'] = model('storejoinin')->getStorejoininCount(array(array('joinin_state','in', array(10, 11))));
|
|
|
|
|
|
+ $statistics['store_joinin'] = model('storejoinin')->getStorejoininCount(array(array('joinin_state', 'in', array(10, 11))));
|
|
//经营类目申请
|
|
//经营类目申请
|
|
$statistics['store_bind_class_applay'] = model('storebindclass')->getStorebindclassCount(array('storebindclass_state' => 0));
|
|
$statistics['store_bind_class_applay'] = model('storebindclass')->getStorebindclassCount(array('storebindclass_state' => 0));
|
|
//店铺续签申请
|
|
//店铺续签申请
|
|
$statistics['store_reopen_applay'] = model('storereopen')->getStorereopenCount(array('storereopen_state' => 1));
|
|
$statistics['store_reopen_applay'] = model('storereopen')->getStorereopenCount(array('storereopen_state' => 1));
|
|
// 即将到期
|
|
// 即将到期
|
|
- $statistics['store_expire'] = $store_model->getStoreCount(array(array('store_state','=',1),array('store_endtime','between',array(TIMESTAMP, TIMESTAMP + 864000))));
|
|
|
|
|
|
+ $statistics['store_expire'] = $store_model->getStoreCount(array(array('store_state', '=', 1), array('store_endtime', 'between', array(TIMESTAMP, TIMESTAMP + 864000))));
|
|
// 已经到期
|
|
// 已经到期
|
|
- $statistics['store_expired'] = $store_model->getStoreCount(array(array('store_state','=',1),array('store_endtime','between',array(1, TIMESTAMP))));
|
|
|
|
|
|
+ $statistics['store_expired'] = $store_model->getStoreCount(array(array('store_state', '=', 1), array('store_endtime', 'between', array(1, TIMESTAMP))));
|
|
|
|
|
|
/**
|
|
/**
|
|
* 商品
|
|
* 商品
|
|
@@ -456,7 +467,7 @@ class Dashboard extends AdminControl {
|
|
// 商品总数
|
|
// 商品总数
|
|
$statistics['goods'] = $goods_model->getGoodsCommonCount(array());
|
|
$statistics['goods'] = $goods_model->getGoodsCommonCount(array());
|
|
// 新增商品数
|
|
// 新增商品数
|
|
- $statistics['week_add_product'] = $goods_model->getGoodsCommonCount(array(array('goods_addtime','>=', $tmp_time)));
|
|
|
|
|
|
+ $statistics['week_add_product'] = $goods_model->getGoodsCommonCount(array(array('goods_addtime', '>=', $tmp_time)));
|
|
// 等待审核
|
|
// 等待审核
|
|
$statistics['product_verify'] = $goods_model->getGoodsCommonWaitVerifyCount(array());
|
|
$statistics['product_verify'] = $goods_model->getGoodsCommonWaitVerifyCount(array());
|
|
// 举报
|
|
// 举报
|
|
@@ -491,14 +502,14 @@ class Dashboard extends AdminControl {
|
|
$statistics['groupbuy_verify_list'] = model('groupbuy')->getGroupbuyCount(array('groupbuy_state' => 10));
|
|
$statistics['groupbuy_verify_list'] = model('groupbuy')->getGroupbuyCount(array('groupbuy_state' => 10));
|
|
// 积分订单
|
|
// 积分订单
|
|
$pointsorder_model = model('pointorder');
|
|
$pointsorder_model = model('pointorder');
|
|
- $condition =array();
|
|
|
|
- $condition =array(array('point_orderstate','in', array(11, 20)));
|
|
|
|
|
|
+ $condition = array();
|
|
|
|
+ $condition = array(array('point_orderstate', 'in', array(11, 20)));
|
|
$statistics['points_order'] = $pointsorder_model->getPointorderCount($condition);
|
|
$statistics['points_order'] = $pointsorder_model->getPointorderCount($condition);
|
|
//待审核账单
|
|
//待审核账单
|
|
$bill_model = model('bill');
|
|
$bill_model = model('bill');
|
|
- $statistics['check_billno'] = $bill_model->getOrderbillCount(array('ob_state'=>BILL_STATE_STORE_COFIRM));
|
|
|
|
|
|
+ $statistics['check_billno'] = $bill_model->getOrderbillCount(array('ob_state' => BILL_STATE_STORE_COFIRM));
|
|
//待支付账单
|
|
//待支付账单
|
|
- $statistics['pay_billno'] = $bill_model->getOrderbillCount(array('ob_state'=>BILL_STATE_STORE_COFIRM));
|
|
|
|
|
|
+ $statistics['pay_billno'] = $bill_model->getOrderbillCount(array('ob_state' => BILL_STATE_STORE_COFIRM));
|
|
// 平台客服
|
|
// 平台客服
|
|
$statistics['mall_consult'] = model('mallconsult')->getMallconsultCount(array('mallconsult_isreply' => 0));
|
|
$statistics['mall_consult'] = model('mallconsult')->getMallconsultCount(array('mallconsult_isreply' => 0));
|
|
// 服务站
|
|
// 服务站
|
|
@@ -510,31 +521,34 @@ class Dashboard extends AdminControl {
|
|
/**
|
|
/**
|
|
* h5链接
|
|
* h5链接
|
|
*/
|
|
*/
|
|
- public function h5_link(){
|
|
|
|
|
|
+ public function h5_link()
|
|
|
|
+ {
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_activity(){
|
|
|
|
|
|
+ public function h5_activity()
|
|
|
|
+ {
|
|
$activity_model = model('activity');
|
|
$activity_model = model('activity');
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$condition = array();
|
|
$condition = array();
|
|
- $condition[] = array('activity_type','=',1); //只显示商品活动
|
|
|
|
- $condition[] = array('activity_state','=',1);
|
|
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('activity_title','like','%'.$keyword.'%');
|
|
|
|
|
|
+ $condition[] = array('activity_type', '=', 1); //只显示商品活动
|
|
|
|
+ $condition[] = array('activity_state', '=', 1);
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('activity_title', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
- $activity_list = $activity_model->getActivityList($condition, 10 , 'activity_sort asc');
|
|
|
|
|
|
+ $activity_list = $activity_model->getActivityList($condition, 10, 'activity_sort asc');
|
|
View::assign('show_page', $activity_model->page_info->render());
|
|
View::assign('show_page', $activity_model->page_info->render());
|
|
View::assign('activity_list', $activity_list);
|
|
View::assign('activity_list', $activity_list);
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_live(){
|
|
|
|
|
|
+ public function h5_live()
|
|
|
|
+ {
|
|
$condition = array();
|
|
$condition = array();
|
|
$store_model = model('store');
|
|
$store_model = model('store');
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ $keyword = input('param.keyword');
|
|
if (config('ds_config.live_type') == 1) {
|
|
if (config('ds_config.live_type') == 1) {
|
|
$minipro_live_model = model('minipro_live');
|
|
$minipro_live_model = model('minipro_live');
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('minipro_live_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('minipro_live_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$minipro_live_list = $minipro_live_model->getMiniproLiveList($condition);
|
|
$minipro_live_list = $minipro_live_model->getMiniproLiveList($condition);
|
|
$store_list = array();
|
|
$store_list = array();
|
|
@@ -549,10 +563,10 @@ class Dashboard extends AdminControl {
|
|
} else {
|
|
} else {
|
|
$live_apply_model = model('live_apply');
|
|
$live_apply_model = model('live_apply');
|
|
$condition[] = array('live_apply_state', '=', 1);
|
|
$condition[] = array('live_apply_state', '=', 1);
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('live_apply_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('live_apply_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
$live_apply_list = $live_apply_model->getLiveApplyList($condition, '*', 10, 'live_apply_state asc,live_apply_id desc');
|
|
$live_apply_list = $live_apply_model->getLiveApplyList($condition, '*', 10, 'live_apply_state asc,live_apply_id desc');
|
|
|
|
|
|
@@ -573,13 +587,14 @@ class Dashboard extends AdminControl {
|
|
}
|
|
}
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_market(){
|
|
|
|
|
|
+ public function h5_market()
|
|
|
|
+ {
|
|
$condition = array();
|
|
$condition = array();
|
|
- $keyword=input('param.keyword');
|
|
|
|
- $marketmanage_type=intval(input('param.type'));
|
|
|
|
- $condition[]=array('marketmanage_type','=',$marketmanage_type);
|
|
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('marketmanage_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ $keyword = input('param.keyword');
|
|
|
|
+ $marketmanage_type = intval(input('param.type'));
|
|
|
|
+ $condition[] = array('marketmanage_type', '=', $marketmanage_type);
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('marketmanage_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$marketmanage_model = model('marketmanage');
|
|
$marketmanage_model = model('marketmanage');
|
|
$marketmanage_list = $marketmanage_model->getMarketmanageList($condition, 10);
|
|
$marketmanage_list = $marketmanage_model->getMarketmanageList($condition, 10);
|
|
@@ -587,13 +602,14 @@ class Dashboard extends AdminControl {
|
|
View::assign('show_page', $marketmanage_model->page_info->render());
|
|
View::assign('show_page', $marketmanage_model->page_info->render());
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_bonus(){
|
|
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ public function h5_bonus()
|
|
|
|
+ {
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$condition = array();
|
|
$condition = array();
|
|
- $condition[]=array('bonus_state','=',1);
|
|
|
|
- $condition[]=array('bonus_type','=',1);
|
|
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('bonus_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ $condition[] = array('bonus_state', '=', 1);
|
|
|
|
+ $condition[] = array('bonus_type', '=', 1);
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('bonus_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$bonus_model = model('bonus');
|
|
$bonus_model = model('bonus');
|
|
$bonus_list = $bonus_model->getBonusList($condition, 10);
|
|
$bonus_list = $bonus_model->getBonusList($condition, 10);
|
|
@@ -601,28 +617,30 @@ class Dashboard extends AdminControl {
|
|
View::assign('show_page', $bonus_model->page_info->render());
|
|
View::assign('show_page', $bonus_model->page_info->render());
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_special(){
|
|
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ public function h5_special()
|
|
|
|
+ {
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$editable_page_model = model('editable_page');
|
|
$editable_page_model = model('editable_page');
|
|
- $store_id=intval(input('param.store_id'));
|
|
|
|
|
|
+ $store_id = intval(input('param.store_id'));
|
|
$condition = array();
|
|
$condition = array();
|
|
- $condition[]=array('store_id','=',$store_id);
|
|
|
|
- $condition[]=array('editable_page_client','=','h5');
|
|
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('editable_page_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ $condition[] = array('store_id', '=', $store_id);
|
|
|
|
+ $condition[] = array('editable_page_client', '=', 'h5');
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('editable_page_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$editable_page_list = $editable_page_model->getEditablePageList($condition, 10);
|
|
$editable_page_list = $editable_page_model->getEditablePageList($condition, 10);
|
|
View::assign('show_page', $editable_page_model->page_info->render());
|
|
View::assign('show_page', $editable_page_model->page_info->render());
|
|
View::assign('editable_page_list', $editable_page_list);
|
|
View::assign('editable_page_list', $editable_page_list);
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_point_prod(){
|
|
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ public function h5_point_prod()
|
|
|
|
+ {
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$pointprod_model = model('pointprod');
|
|
$pointprod_model = model('pointprod');
|
|
$condition = array();
|
|
$condition = array();
|
|
$condition[] = array('pgoods_show', '=', 1);
|
|
$condition[] = array('pgoods_show', '=', 1);
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('pgoods_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('pgoods_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$prod_list = $pointprod_model->getPointProdList($condition, '*', 'pgoods_sort asc,pgoods_id desc', 0, 10);
|
|
$prod_list = $pointprod_model->getPointProdList($condition, '*', 'pgoods_sort asc,pgoods_id desc', 0, 10);
|
|
//信息输出
|
|
//信息输出
|
|
@@ -630,79 +648,86 @@ class Dashboard extends AdminControl {
|
|
View::assign('show_page', $pointprod_model->page_info->render());
|
|
View::assign('show_page', $pointprod_model->page_info->render());
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_article_class(){
|
|
|
|
- if(input('param.ajax')==1){
|
|
|
|
|
|
+ public function h5_article_class()
|
|
|
|
+ {
|
|
|
|
+ if (input('param.ajax') == 1) {
|
|
$articleclass_model = model('articleclass');
|
|
$articleclass_model = model('articleclass');
|
|
- $parent_id=intval(input('param.parent_id'));
|
|
|
|
- $condition=array();
|
|
|
|
- $condition[]=array('ac_parent_id','=',$parent_id);
|
|
|
|
- $data=$articleclass_model->getArticleclassList($condition);
|
|
|
|
|
|
+ $parent_id = intval(input('param.parent_id'));
|
|
|
|
+ $condition = array();
|
|
|
|
+ $condition[] = array('ac_parent_id', '=', $parent_id);
|
|
|
|
+ $data = $articleclass_model->getArticleclassList($condition);
|
|
ds_json_encode(10000, '', $data);
|
|
ds_json_encode(10000, '', $data);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- public function h5_article(){
|
|
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ public function h5_article()
|
|
|
|
+ {
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$article_model = model('article');
|
|
$article_model = model('article');
|
|
- $condition=array();
|
|
|
|
- $condition[]=array('article_show','=',1);
|
|
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('article_title','like','%'.$keyword.'%');
|
|
|
|
|
|
+ $condition = array();
|
|
|
|
+ $condition[] = array('article_show', '=', 1);
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('article_title', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$article_list = $article_model->getArticleList($condition, 10);
|
|
$article_list = $article_model->getArticleList($condition, 10);
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_document(){
|
|
|
|
- $condition=array();
|
|
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ public function h5_document()
|
|
|
|
+ {
|
|
|
|
+ $condition = array();
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$document_model = model('document');
|
|
$document_model = model('document');
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('document_title','like','%'.$keyword.'%');
|
|
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('document_title', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$doc_list = $document_model->getDocumentList($condition);
|
|
$doc_list = $document_model->getDocumentList($condition);
|
|
View::assign('doc_list', $doc_list);
|
|
View::assign('doc_list', $doc_list);
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_store_class(){
|
|
|
|
|
|
+ public function h5_store_class()
|
|
|
|
+ {
|
|
$storeclass_model = model('storeclass');
|
|
$storeclass_model = model('storeclass');
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$store_class_list = $storeclass_model->getStoreclassList(array(), 10);
|
|
$store_class_list = $storeclass_model->getStoreclassList(array(), 10);
|
|
View::assign('class_list', $store_class_list);
|
|
View::assign('class_list', $store_class_list);
|
|
View::assign('show_page', $storeclass_model->page_info->render());
|
|
View::assign('show_page', $storeclass_model->page_info->render());
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_store(){
|
|
|
|
- $keyword=input('param.keyword');
|
|
|
|
- $store_model=model('store');
|
|
|
|
- $condition=array();
|
|
|
|
|
|
+ public function h5_store()
|
|
|
|
+ {
|
|
|
|
+ $keyword = input('param.keyword');
|
|
|
|
+ $store_model = model('store');
|
|
|
|
+ $condition = array();
|
|
$condition[] = array('store_state', '=', 1);
|
|
$condition[] = array('store_state', '=', 1);
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('store_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('store_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$store_list = $store_model->getStoreList($condition, 10, 'store_id desc');
|
|
$store_list = $store_model->getStoreList($condition, 10, 'store_id desc');
|
|
View::assign('store_list', $store_list);
|
|
View::assign('store_list', $store_list);
|
|
View::assign('show_page', $store_model->page_info->render());
|
|
View::assign('show_page', $store_model->page_info->render());
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
- public function h5_goods_class(){
|
|
|
|
- if(input('param.ajax')==1){
|
|
|
|
|
|
+ public function h5_goods_class()
|
|
|
|
+ {
|
|
|
|
+ if (input('param.ajax') == 1) {
|
|
$goodsclass_model = model('goodsclass');
|
|
$goodsclass_model = model('goodsclass');
|
|
- $parent_id=intval(input('param.parent_id'));
|
|
|
|
- $data=$goodsclass_model->getGoodsclassListByParentId($parent_id);
|
|
|
|
|
|
+ $parent_id = intval(input('param.parent_id'));
|
|
|
|
+ $data = $goodsclass_model->getGoodsclassListByParentId($parent_id);
|
|
ds_json_encode(10000, '', $data);
|
|
ds_json_encode(10000, '', $data);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- public function h5_goods(){
|
|
|
|
- $keyword=input('param.keyword');
|
|
|
|
|
|
+ public function h5_goods()
|
|
|
|
+ {
|
|
|
|
+ $keyword = input('param.keyword');
|
|
$goods_model = model('goods');
|
|
$goods_model = model('goods');
|
|
- $condition=array();
|
|
|
|
- $condition[]=array('goods_state','=',1);
|
|
|
|
- $condition[]=array('goods_verify','=',1);
|
|
|
|
- if($keyword){
|
|
|
|
- $condition[] = array('goods_name','like','%'.$keyword.'%');
|
|
|
|
|
|
+ $condition = array();
|
|
|
|
+ $condition[] = array('goods_state', '=', 1);
|
|
|
|
+ $condition[] = array('goods_verify', '=', 1);
|
|
|
|
+ if ($keyword) {
|
|
|
|
+ $condition[] = array('goods_name', 'like', '%' . $keyword . '%');
|
|
}
|
|
}
|
|
$goods_list = $goods_model->getGoodsList($condition, '*', '', '', 0, 10);
|
|
$goods_list = $goods_model->getGoodsList($condition, '*', '', '', 0, 10);
|
|
View::assign('goods_list', $goods_list);
|
|
View::assign('goods_list', $goods_list);
|
|
@@ -710,5 +735,3 @@ class Dashboard extends AdminControl {
|
|
return View::fetch();
|
|
return View::fetch();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-?>
|
|
|