作者 景龙
1 个管道 的构建 失败 耗费 5 秒

修改废品问题

正在显示 56 个修改的文件 包含 1149 行增加303 行删除
@@ -21,7 +21,7 @@ class About extends Backend @@ -21,7 +21,7 @@ class About extends Backend
21 public function _initialize() 21 public function _initialize()
22 { 22 {
23 parent::_initialize(); 23 parent::_initialize();
24 - $this->request->filter(['strip_tags']); 24 +// $this->request->filter(['strip_tags']);
25 $this->model = new \app\admin\model\About; 25 $this->model = new \app\admin\model\About;
26 26
27 } 27 }
  1 +<?php
  2 +
  3 +namespace app\admin\controller;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 首页banner图标
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class Banner extends Backend
  13 +{
  14 +
  15 + /**
  16 + * Banner模型对象
  17 + * @var \app\admin\model\Banner
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\Banner;
  25 +
  26 + }
  27 +
  28 + /**
  29 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  30 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  31 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  32 + */
  33 +
  34 +
  35 +}
@@ -4,6 +4,7 @@ namespace app\admin\controller; @@ -4,6 +4,7 @@ namespace app\admin\controller;
4 4
5 use app\common\controller\Backend; 5 use app\common\controller\Backend;
6 use think\Config; 6 use think\Config;
  7 +use think\Db;
7 8
8 /** 9 /**
9 * 控制台 10 * 控制台
@@ -33,11 +34,18 @@ class Dashboard extends Backend @@ -33,11 +34,18 @@ class Dashboard extends Backend
33 Config::parse($addonComposerCfg, "json", "composer"); 34 Config::parse($addonComposerCfg, "json", "composer");
34 $config = Config::get("composer"); 35 $config = Config::get("composer");
35 $addonVersion = isset($config['version']) ? $config['version'] : __('Unknown'); 36 $addonVersion = isset($config['version']) ? $config['version'] : __('Unknown');
  37 + //平台总金额
  38 + $totalorderamount = Db::table('gc_platform')->where('id',1)->field('account_balance')->find();
  39 + //总会员数
  40 + $totaluser = Db::table('gc_user')->count();
  41 + //总订单数
  42 + $totalproduct = Db::table('gc_porder')->count();
  43 + $totalgift = Db::table('gc_gorder')->count();
36 $this->view->assign([ 44 $this->view->assign([
37 - 'totaluser' => 35200, 45 + 'totaluser' => $totaluser,
38 'totalviews' => 219390, 46 'totalviews' => 219390,
39 - 'totalorder' => 32143,  
40 - 'totalorderamount' => 174800, 47 + 'totalorder' => $totalproduct+$totalgift,
  48 + 'totalorderamount' => $totalorderamount['account_balance'],
41 'todayuserlogin' => 321, 49 'todayuserlogin' => 321,
42 'todayusersignup' => 430, 50 'todayusersignup' => 430,
43 'todayorder' => 2324, 51 'todayorder' => 2324,
@@ -4,6 +4,7 @@ namespace app\admin\controller; @@ -4,6 +4,7 @@ namespace app\admin\controller;
4 4
5 use app\common\controller\Backend; 5 use app\common\controller\Backend;
6 use app\admin\model\User; 6 use app\admin\model\User;
  7 +use app\admin\model\Platform;
7 use think\Db; 8 use think\Db;
8 9
9 /** 10 /**
@@ -20,12 +21,18 @@ class Porder extends Backend @@ -20,12 +21,18 @@ class Porder extends Backend
20 */ 21 */
21 protected $model = null; 22 protected $model = null;
22 protected $status = 0; 23 protected $status = 0;
23 - protected $percent = 0.01;//按照比例扣取费用1% 24 + protected $percent = 0;//按照比例扣取费用1%
24 25
25 public function _initialize() 26 public function _initialize()
26 { 27 {
27 parent::_initialize(); 28 parent::_initialize();
28 $this->model = new \app\admin\model\Porder; 29 $this->model = new \app\admin\model\Porder;
  30 + $percent = Db::table('gc_spercentage')
  31 + ->order('id desc')
  32 + ->field('percentage')
  33 + ->find();
  34 + $percent = $percent['percentage']/100;
  35 + $this->percent = $percent;
29 } 36 }
30 37
31 /** 38 /**
@@ -105,8 +112,15 @@ class Porder extends Backend @@ -105,8 +112,15 @@ class Porder extends Backend
105 $data = $this->model->where($pk, '=', $ids)->find(); 112 $data = $this->model->where($pk, '=', $ids)->find();
106 $userModel = new User(); 113 $userModel = new User();
107 $money = (1 - $this->percent) * $data['total_price']; 114 $money = (1 - $this->percent) * $data['total_price'];
  115 + //用户账户增加余额
108 $result = $userModel->where(['id'=>$data['s_uid'],'status'=>'normal'])->setInc('money',$money); 116 $result = $userModel->where(['id'=>$data['s_uid'],'status'=>'normal'])->setInc('money',$money);
109 - if($result){ 117 + //平台账户增加余额
  118 + $platformModel = new Platform();
  119 + $account_balance = $this->percent * $data['total_price'];
  120 + $result1 = $platformModel->where('id',1)->setInc('account_balance',$account_balance);
  121 + //订单更新扣取费用字段
  122 + $result2 = $this->model->where($pk, '=', $ids)->update(['is_due'=>1]);
  123 + if($result && $result1 && $result2){
110 $this->success('扣取成功'); 124 $this->success('扣取成功');
111 }else{ 125 }else{
112 $this->error('扣取失败'); 126 $this->error('扣取失败');
  1 +<?php
  2 +
  3 +namespace app\admin\controller;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 扣取百分比管理
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class Spercentage extends Backend
  13 +{
  14 +
  15 + /**
  16 + * Spercentage模型对象
  17 + * @var \app\admin\model\Spercentage
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\Spercentage;
  25 +
  26 + }
  27 +
  28 + /**
  29 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  30 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  31 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  32 + */
  33 +
  34 +
  35 +}
  1 +<?php
  2 +
  3 +namespace app\admin\controller;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 设置获得积分管理
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class Sscore extends Backend
  13 +{
  14 +
  15 + /**
  16 + * Sscore模型对象
  17 + * @var \app\admin\model\Sscore
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\Sscore;
  25 +
  26 + }
  27 +
  28 + /**
  29 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  30 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  31 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  32 + */
  33 +
  34 +
  35 +}
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'Image' => '图片',
  6 + 'Createtime' => '创建时间',
  7 + 'Updatetime' => '更新时间',
  8 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'Percentage' => '扣取百分比',
  6 + 'Createtime' => '创建时间',
  7 + 'Updatetime' => '更新时间',
  8 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'Set_rule' => '积分规则',
  6 + 'Set_score' => '所获积分',
  7 + 'Createtime' => '创建时间',
  8 + 'Updatetime' => '更新时间',
  9 +];
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +class Banner extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'banner';
  11 +
  12 + // 自动写入时间戳字段
  13 + protected $autoWriteTimestamp = 'int';
  14 +
  15 + // 定义时间戳字段名
  16 + protected $createTime = 'createtime';
  17 + protected $updateTime = 'updatetime';
  18 +
  19 + // 追加属性
  20 + protected $append = [
  21 + 'deletetime_text'
  22 + ];
  23 +
  24 +
  25 +
  26 +
  27 +
  28 +
  29 + public function getDeletetimeTextAttr($value, $data)
  30 + {
  31 + $value = $value ? $value : (isset($data['deletetime']) ? $data['deletetime'] : '');
  32 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  33 + }
  34 +
  35 + protected function setDeletetimeAttr($value)
  36 + {
  37 + return $value && !is_numeric($value) ? strtotime($value) : $value;
  38 + }
  39 +
  40 +
  41 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +class Platform extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'platform';
  11 +
  12 + // 自动写入时间戳字段
  13 + protected $autoWriteTimestamp = 'int';
  14 +
  15 + // 定义时间戳字段名
  16 + protected $createTime = 'createtime';
  17 + protected $updateTime = 'updatetime';
  18 +
  19 + // 追加属性
  20 + protected $append = [
  21 + 'deletetime_text'
  22 + ];
  23 +
  24 +
  25 +
  26 +
  27 +
  28 +
  29 + public function getDeletetimeTextAttr($value, $data)
  30 + {
  31 + $value = $value ? $value : (isset($data['deletetime']) ? $data['deletetime'] : '');
  32 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  33 + }
  34 +
  35 + protected function setDeletetimeAttr($value)
  36 + {
  37 + return $value && !is_numeric($value) ? strtotime($value) : $value;
  38 + }
  39 +
  40 +
  41 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +class Spercentage extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'spercentage';
  11 +
  12 + // 自动写入时间戳字段
  13 + protected $autoWriteTimestamp = 'int';
  14 +
  15 + // 定义时间戳字段名
  16 + protected $createTime = 'createtime';
  17 + protected $updateTime = 'updatetime';
  18 +
  19 + // 追加属性
  20 + protected $append = [
  21 + 'deletetime_text'
  22 + ];
  23 +
  24 +
  25 +
  26 +
  27 +
  28 +
  29 + public function getDeletetimeTextAttr($value, $data)
  30 + {
  31 + $value = $value ? $value : (isset($data['deletetime']) ? $data['deletetime'] : '');
  32 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  33 + }
  34 +
  35 + protected function setDeletetimeAttr($value)
  36 + {
  37 + return $value && !is_numeric($value) ? strtotime($value) : $value;
  38 + }
  39 +
  40 +
  41 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +class Sscore extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'sscore';
  11 +
  12 + // 自动写入时间戳字段
  13 + protected $autoWriteTimestamp = 'int';
  14 +
  15 + // 定义时间戳字段名
  16 + protected $createTime = 'createtime';
  17 + protected $updateTime = 'updatetime';
  18 +
  19 + // 追加属性
  20 + protected $append = [
  21 + 'deletetime_text'
  22 + ];
  23 +
  24 +
  25 +
  26 +
  27 +
  28 +
  29 + public function getDeletetimeTextAttr($value, $data)
  30 + {
  31 + $value = $value ? $value : (isset($data['deletetime']) ? $data['deletetime'] : '');
  32 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  33 + }
  34 +
  35 + protected function setDeletetimeAttr($value)
  36 + {
  37 + return $value && !is_numeric($value) ? strtotime($value) : $value;
  38 + }
  39 +
  40 +
  41 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate;
  4 +
  5 +use think\Validate;
  6 +
  7 +class Banner extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate;
  4 +
  5 +use think\Validate;
  6 +
  7 +class Spercentage extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate;
  4 +
  5 +use think\Validate;
  6 +
  7 +class Sscore extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 <div class="form-group"> 28 <div class="form-group">
29 <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label> 29 <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
30 <div class="col-xs-12 col-sm-8"> 30 <div class="col-xs-12 col-sm-8">
31 - <textarea data-rule="required" class="form-control editor" rows="5" name="row[description]" cols="50">{$row.description}</textarea> 31 + <textarea id="c-description" data-rule="required" class="form-control editor" rows="5" name="row[description]" cols="50">{$row.description}</textarea>
32 </div> 32 </div>
33 </div> 33 </div>
34 <div class="form-group layer-footer"> 34 <div class="form-group layer-footer">
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('about/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> 10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('about/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('about/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('about/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('about/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('about/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('about/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('about/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('about/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('about/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <div class="form-group"> 17 <div class="form-group">
18 <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label> 18 <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
19 <div class="col-xs-12 col-sm-8"> 19 <div class="col-xs-12 col-sm-8">
20 - <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="0.00"> 20 + <input id="c-money" data-rule="required range(0~)" class="form-control" step="0.01" name="row[money]" type="number" value="0.00">
21 </div> 21 </div>
22 </div> 22 </div>
23 <div class="form-group layer-footer"> 23 <div class="form-group layer-footer">
@@ -9,10 +9,10 @@ @@ -9,10 +9,10 @@
9 <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a> 9 <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('account/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> 10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('account/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
11 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('account/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 11 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('account/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
12 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('account/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 12 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('account/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
13 13
14 <div class="dropdown btn-group {:$auth->check('account/multi')?'':'hide'}"> 14 <div class="dropdown btn-group {:$auth->check('account/multi')?'':'hide'}">
15 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 15 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
16 <ul class="dropdown-menu text-left" role="menu"> 16 <ul class="dropdown-menu text-left" role="menu">
17 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 17 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('bank/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> 10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('bank/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('bank/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('bank/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('bank/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('bank/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('bank/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('bank/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('bank/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('bank/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <div class="input-group">
  7 + <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="">
  8 + <div class="input-group-addon no-border no-padding">
  9 + <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  10 + <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  11 + </div>
  12 + <span class="msg-box n-right" for="c-image"></span>
  13 + </div>
  14 + <ul class="row list-inline plupload-preview" id="p-image"></ul>
  15 + </div>
  16 + </div>
  17 + <div class="form-group layer-footer">
  18 + <label class="control-label col-xs-12 col-sm-2"></label>
  19 + <div class="col-xs-12 col-sm-8">
  20 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  21 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  22 + </div>
  23 + </div>
  24 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <div class="input-group">
  7 + <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image}">
  8 + <div class="input-group-addon no-border no-padding">
  9 + <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  10 + <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  11 + </div>
  12 + <span class="msg-box n-right" for="c-image"></span>
  13 + </div>
  14 + <ul class="row list-inline plupload-preview" id="p-image"></ul>
  15 + </div>
  16 + </div>
  17 + <div class="form-group layer-footer">
  18 + <label class="control-label col-xs-12 col-sm-2"></label>
  19 + <div class="col-xs-12 col-sm-8">
  20 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  21 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  22 + </div>
  23 + </div>
  24 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('banner/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('banner/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('banner/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('banner/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
  14 +
  15 + <div class="dropdown btn-group {:$auth->check('banner/multi')?'':'hide'}">
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <ul class="dropdown-menu text-left" role="menu">
  18 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
  19 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
  20 + </ul>
  21 + </div>
  22 + </div>
  23 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  24 + data-operate-edit="{:$auth->check('banner/edit')}"
  25 + data-operate-del="{:$auth->check('banner/del')}"
  26 + width="100%">
  27 + </table>
  28 + </div>
  29 + </div>
  30 +
  31 + </div>
  32 + </div>
  33 +</div>
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <div id="toolbar" class="toolbar"> 10 <div id="toolbar" class="toolbar">
11 {:build_toolbar('refresh,add,edit,del')} 11 {:build_toolbar('refresh,add,edit,del')}
12 <div class="dropdown btn-group {:$auth->check('category/multi')?'':'hide'}"> 12 <div class="dropdown btn-group {:$auth->check('category/multi')?'':'hide'}">
13 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 13 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
14 <ul class="dropdown-menu text-left" role="menu"> 14 <ul class="dropdown-menu text-left" role="menu">
15 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 15 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
16 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 16 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('comment/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>--> 10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('comment/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('comment/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('comment/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('comment/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('comment/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('comment/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('comment/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('comment/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('comment/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -132,7 +132,7 @@ @@ -132,7 +132,7 @@
132 {:build_heading(null, false)} 132 {:build_heading(null, false)}
133 <ul class="nav nav-tabs"> 133 <ul class="nav nav-tabs">
134 <li class="active"><a href="#one" data-toggle="tab">{:__('Dashboard')}</a></li> 134 <li class="active"><a href="#one" data-toggle="tab">{:__('Dashboard')}</a></li>
135 - <li><a href="#two" data-toggle="tab">{:__('Custom')}</a></li> 135 + <!--<li><a href="#two" data-toggle="tab">{:__('Custom')}</a></li>-->
136 </ul> 136 </ul>
137 </div> 137 </div>
138 <div class="panel-body"> 138 <div class="panel-body">
@@ -149,15 +149,15 @@ @@ -149,15 +149,15 @@
149 </div> 149 </div>
150 </div> 150 </div>
151 </div> 151 </div>
152 - <div class="col-sm-3 col-xs-6">  
153 - <div class="sm-st clearfix">  
154 - <span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>  
155 - <div class="sm-st-info">  
156 - <span>{$totalviews}</span>  
157 - {:__('Total view')}  
158 - </div>  
159 - </div>  
160 - </div> 152 + <!--<div class="col-sm-3 col-xs-6">-->
  153 + <!--<div class="sm-st clearfix">-->
  154 + <!--<span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>-->
  155 + <!--<div class="sm-st-info">-->
  156 + <!--<span>{$totalviews}</span>-->
  157 + <!--{:__('Total view')}-->
  158 + <!--</div>-->
  159 + <!--</div>-->
  160 + <!--</div>-->
161 <div class="col-sm-3 col-xs-6"> 161 <div class="col-sm-3 col-xs-6">
162 <div class="sm-st clearfix"> 162 <div class="sm-st clearfix">
163 <span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span> 163 <span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span>
@@ -178,254 +178,254 @@ @@ -178,254 +178,254 @@
178 </div> 178 </div>
179 </div> 179 </div>
180 180
181 - <div class="row">  
182 - <div class="col-lg-8">  
183 - <div id="echart" style="height:200px;width:100%;"></div>  
184 - </div>  
185 - <div class="col-lg-4">  
186 - <div class="card sameheight-item stats">  
187 - <div class="card-block">  
188 - <div class="row row-sm stats-container">  
189 - <div class="col-xs-6 stat-col">  
190 - <div class="stat-icon"> <i class="fa fa-rocket"></i> </div>  
191 - <div class="stat">  
192 - <div class="value"> {$todayusersignup} </div>  
193 - <div class="name"> {:__('Today user signup')} </div>  
194 - </div>  
195 - <div class="progress">  
196 - <div class="progress-bar progress-bar-success" style="width: 30%"></div>  
197 - </div>  
198 - </div>  
199 - <div class="col-xs-6 stat-col">  
200 - <div class="stat-icon"> <i class="fa fa-shopping-cart"></i> </div>  
201 - <div class="stat">  
202 - <div class="value"> {$todayuserlogin} </div>  
203 - <div class="name"> {:__('Today user login')} </div>  
204 - </div>  
205 - <div class="progress">  
206 - <div class="progress-bar progress-bar-success" style="width: 25%"></div>  
207 - </div>  
208 - </div>  
209 - <div class="col-xs-6 stat-col">  
210 - <div class="stat-icon"> <i class="fa fa-line-chart"></i> </div>  
211 - <div class="stat">  
212 - <div class="value"> {$todayorder} </div>  
213 - <div class="name"> {:__('Today order')} </div>  
214 - </div>  
215 - <div class="progress">  
216 - <div class="progress-bar progress-bar-success" style="width: 25%"></div>  
217 - </div>  
218 - </div>  
219 - <div class="col-xs-6 stat-col">  
220 - <div class="stat-icon"> <i class="fa fa-users"></i> </div>  
221 - <div class="stat">  
222 - <div class="value"> {$unsettleorder} </div>  
223 - <div class="name"> {:__('Unsettle order')} </div>  
224 - </div>  
225 - <div class="progress">  
226 - <div class="progress-bar progress-bar-success" style="width: 25%"></div>  
227 - </div>  
228 - </div>  
229 - <div class="col-xs-6 stat-col">  
230 - <div class="stat-icon"> <i class="fa fa-list-alt"></i> </div>  
231 - <div class="stat">  
232 - <div class="value"> {$sevendnu} </div>  
233 - <div class="name"> {:__('Seven dnu')} </div>  
234 - </div>  
235 - <div class="progress">  
236 - <div class="progress-bar progress-bar-success" style="width: 25%"></div>  
237 - </div>  
238 - </div>  
239 - <div class="col-xs-6 stat-col">  
240 - <div class="stat-icon"> <i class="fa fa-dollar"></i> </div>  
241 - <div class="stat">  
242 - <div class="value"> {$sevendau} </div>  
243 - <div class="name"> {:__('Seven dau')} </div>  
244 - </div>  
245 - <div class="progress">  
246 - <div class="progress-bar progress-bar-success" style="width: 25%"></div>  
247 - </div>  
248 - </div>  
249 - </div>  
250 - </div>  
251 - </div>  
252 - </div>  
253 - </div> 181 + <!--<div class="row">-->
  182 + <!--<div class="col-lg-8">-->
  183 + <!--<div id="echart" style="height:200px;width:100%;"></div>-->
  184 + <!--</div>-->
  185 + <!--<div class="col-lg-4">-->
  186 + <!--<div class="card sameheight-item stats">-->
  187 + <!--<div class="card-block">-->
  188 + <!--<div class="row row-sm stats-container">-->
  189 + <!--<div class="col-xs-6 stat-col">-->
  190 + <!--<div class="stat-icon"> <i class="fa fa-rocket"></i> </div>-->
  191 + <!--<div class="stat">-->
  192 + <!--<div class="value"> {$todayusersignup} </div>-->
  193 + <!--<div class="name"> {:__('Today user signup')} </div>-->
  194 + <!--</div>-->
  195 + <!--<div class="progress">-->
  196 + <!--<div class="progress-bar progress-bar-success" style="width: 30%"></div>-->
  197 + <!--</div>-->
  198 + <!--</div>-->
  199 + <!--<div class="col-xs-6 stat-col">-->
  200 + <!--<div class="stat-icon"> <i class="fa fa-shopping-cart"></i> </div>-->
  201 + <!--<div class="stat">-->
  202 + <!--<div class="value"> {$todayuserlogin} </div>-->
  203 + <!--<div class="name"> {:__('Today user login')} </div>-->
  204 + <!--</div>-->
  205 + <!--<div class="progress">-->
  206 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  207 + <!--</div>-->
  208 + <!--</div>-->
  209 + <!--<div class="col-xs-6 stat-col">-->
  210 + <!--<div class="stat-icon"> <i class="fa fa-line-chart"></i> </div>-->
  211 + <!--<div class="stat">-->
  212 + <!--<div class="value"> {$todayorder} </div>-->
  213 + <!--<div class="name"> {:__('Today order')} </div>-->
  214 + <!--</div>-->
  215 + <!--<div class="progress">-->
  216 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  217 + <!--</div>-->
  218 + <!--</div>-->
  219 + <!--<div class="col-xs-6 stat-col">-->
  220 + <!--<div class="stat-icon"> <i class="fa fa-users"></i> </div>-->
  221 + <!--<div class="stat">-->
  222 + <!--<div class="value"> {$unsettleorder} </div>-->
  223 + <!--<div class="name"> {:__('Unsettle order')} </div>-->
  224 + <!--</div>-->
  225 + <!--<div class="progress">-->
  226 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  227 + <!--</div>-->
  228 + <!--</div>-->
  229 + <!--<div class="col-xs-6 stat-col">-->
  230 + <!--<div class="stat-icon"> <i class="fa fa-list-alt"></i> </div>-->
  231 + <!--<div class="stat">-->
  232 + <!--<div class="value"> {$sevendnu} </div>-->
  233 + <!--<div class="name"> {:__('Seven dnu')} </div>-->
  234 + <!--</div>-->
  235 + <!--<div class="progress">-->
  236 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  237 + <!--</div>-->
  238 + <!--</div>-->
  239 + <!--<div class="col-xs-6 stat-col">-->
  240 + <!--<div class="stat-icon"> <i class="fa fa-dollar"></i> </div>-->
  241 + <!--<div class="stat">-->
  242 + <!--<div class="value"> {$sevendau} </div>-->
  243 + <!--<div class="name"> {:__('Seven dau')} </div>-->
  244 + <!--</div>-->
  245 + <!--<div class="progress">-->
  246 + <!--<div class="progress-bar progress-bar-success" style="width: 25%"></div>-->
  247 + <!--</div>-->
  248 + <!--</div>-->
  249 + <!--</div>-->
  250 + <!--</div>-->
  251 + <!--</div>-->
  252 + <!--</div>-->
  253 + <!--</div>-->
254 254
255 - <div class="row" style="margin-top:15px;"> 255 + <!--<div class="row" style="margin-top:15px;">-->
256 256
257 - <div class="col-lg-12">  
258 - </div>  
259 - <div class="col-xs-6 col-md-3">  
260 - <div class="panel bg-blue">  
261 - <div class="panel-body">  
262 - <div class="panel-title">  
263 - <span class="label label-success pull-right">{:__('Real time')}</span>  
264 - <h5>{:__('Category count')}</h5>  
265 - </div>  
266 - <div class="panel-content">  
267 - <h1 class="no-margins">1234</h1>  
268 - <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 1234</div>  
269 - <small>{:__('Category count tips')}</small>  
270 - </div>  
271 - </div>  
272 - </div>  
273 - </div>  
274 - <div class="col-xs-6 col-md-3">  
275 - <div class="panel bg-aqua-gradient">  
276 - <div class="panel-body">  
277 - <div class="ibox-title">  
278 - <span class="label label-info pull-right">{:__('Real time')}</span>  
279 - <h5>{:__('Attachment count')}</h5>  
280 - </div>  
281 - <div class="ibox-content">  
282 - <h1 class="no-margins">1043</h1>  
283 - <div class="stat-percent font-bold text-gray"><i class="fa fa-modx"></i> 2592</div>  
284 - <small>{:__('Attachment count tips')}</small>  
285 - </div>  
286 - </div>  
287 - </div>  
288 - </div> 257 + <!--<div class="col-lg-12">-->
  258 + <!--</div>-->
  259 + <!--<div class="col-xs-6 col-md-3">-->
  260 + <!--<div class="panel bg-blue">-->
  261 + <!--<div class="panel-body">-->
  262 + <!--<div class="panel-title">-->
  263 + <!--<span class="label label-success pull-right">{:__('Real time')}</span>-->
  264 + <!--<h5>{:__('Category count')}</h5>-->
  265 + <!--</div>-->
  266 + <!--<div class="panel-content">-->
  267 + <!--<h1 class="no-margins">1234</h1>-->
  268 + <!--<div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 1234</div>-->
  269 + <!--<small>{:__('Category count tips')}</small>-->
  270 + <!--</div>-->
  271 + <!--</div>-->
  272 + <!--</div>-->
  273 + <!--</div>-->
  274 + <!--<div class="col-xs-6 col-md-3">-->
  275 + <!--<div class="panel bg-aqua-gradient">-->
  276 + <!--<div class="panel-body">-->
  277 + <!--<div class="ibox-title">-->
  278 + <!--<span class="label label-info pull-right">{:__('Real time')}</span>-->
  279 + <!--<h5>{:__('Attachment count')}</h5>-->
  280 + <!--</div>-->
  281 + <!--<div class="ibox-content">-->
  282 + <!--<h1 class="no-margins">1043</h1>-->
  283 + <!--<div class="stat-percent font-bold text-gray"><i class="fa fa-modx"></i> 2592</div>-->
  284 + <!--<small>{:__('Attachment count tips')}</small>-->
  285 + <!--</div>-->
  286 + <!--</div>-->
  287 + <!--</div>-->
  288 + <!--</div>-->
289 289
290 - <div class="col-xs-6 col-md-3">  
291 - <div class="panel bg-purple-gradient">  
292 - <div class="panel-body">  
293 - <div class="ibox-title">  
294 - <span class="label label-primary pull-right">{:__('Real time')}</span>  
295 - <h5>{:__('Article count')}</h5>  
296 - </div>  
297 - <div class="ibox-content"> 290 + <!--<div class="col-xs-6 col-md-3">-->
  291 + <!--<div class="panel bg-purple-gradient">-->
  292 + <!--<div class="panel-body">-->
  293 + <!--<div class="ibox-title">-->
  294 + <!--<span class="label label-primary pull-right">{:__('Real time')}</span>-->
  295 + <!--<h5>{:__('Article count')}</h5>-->
  296 + <!--</div>-->
  297 + <!--<div class="ibox-content">-->
298 298
299 - <div class="row">  
300 - <div class="col-md-6">  
301 - <h1 class="no-margins">1234</h1>  
302 - <div class="font-bold"><i class="fa fa-commenting"></i> <small>{:__('Comment count')}</small></div>  
303 - </div>  
304 - <div class="col-md-6">  
305 - <h1 class="no-margins">6754</h1>  
306 - <div class="font-bold"><i class="fa fa-heart"></i> <small>{:__('Like count')}</small></div>  
307 - </div>  
308 - </div>  
309 - </div>  
310 - </div>  
311 - </div>  
312 - </div>  
313 - <div class="col-xs-6 col-md-3">  
314 - <div class="panel bg-green-gradient">  
315 - <div class="panel-body">  
316 - <div class="ibox-title">  
317 - <span class="label label-primary pull-right">{:__('Real time')}</span>  
318 - <h5>{:__('News count')}</h5>  
319 - </div>  
320 - <div class="ibox-content"> 299 + <!--<div class="row">-->
  300 + <!--<div class="col-md-6">-->
  301 + <!--<h1 class="no-margins">1234</h1>-->
  302 + <!--<div class="font-bold"><i class="fa fa-commenting"></i> <small>{:__('Comment count')}</small></div>-->
  303 + <!--</div>-->
  304 + <!--<div class="col-md-6">-->
  305 + <!--<h1 class="no-margins">6754</h1>-->
  306 + <!--<div class="font-bold"><i class="fa fa-heart"></i> <small>{:__('Like count')}</small></div>-->
  307 + <!--</div>-->
  308 + <!--</div>-->
  309 + <!--</div>-->
  310 + <!--</div>-->
  311 + <!--</div>-->
  312 + <!--</div>-->
  313 + <!--<div class="col-xs-6 col-md-3">-->
  314 + <!--<div class="panel bg-green-gradient">-->
  315 + <!--<div class="panel-body">-->
  316 + <!--<div class="ibox-title">-->
  317 + <!--<span class="label label-primary pull-right">{:__('Real time')}</span>-->
  318 + <!--<h5>{:__('News count')}</h5>-->
  319 + <!--</div>-->
  320 + <!--<div class="ibox-content">-->
321 321
322 - <div class="row">  
323 - <div class="col-md-6">  
324 - <h1 class="no-margins">5302</h1>  
325 - <div class="font-bold"><i class="fa fa-commenting"></i> <small>{:__('Comment count')}</small></div>  
326 - </div>  
327 - <div class="col-md-6">  
328 - <h1 class="no-margins">8205</h1>  
329 - <div class="font-bold"><i class="fa fa-user"></i> <small>{:__('Like count')}</small></div>  
330 - </div>  
331 - </div>  
332 - </div>  
333 - </div>  
334 - </div>  
335 - </div>  
336 - </div> 322 + <!--<div class="row">-->
  323 + <!--<div class="col-md-6">-->
  324 + <!--<h1 class="no-margins">5302</h1>-->
  325 + <!--<div class="font-bold"><i class="fa fa-commenting"></i> <small>{:__('Comment count')}</small></div>-->
  326 + <!--</div>-->
  327 + <!--<div class="col-md-6">-->
  328 + <!--<h1 class="no-margins">8205</h1>-->
  329 + <!--<div class="font-bold"><i class="fa fa-user"></i> <small>{:__('Like count')}</small></div>-->
  330 + <!--</div>-->
  331 + <!--</div>-->
  332 + <!--</div>-->
  333 + <!--</div>-->
  334 + <!--</div>-->
  335 + <!--</div>-->
  336 + <!--</div>-->
337 337
338 <!--如果需要删除最新新闻和最新发贴,删除HTML后还需要删除dashboard.js中的代码--> 338 <!--如果需要删除最新新闻和最新发贴,删除HTML后还需要删除dashboard.js中的代码-->
339 - <div class="row">  
340 - <div class="col-lg-4">  
341 - <div class="box box-danger">  
342 - <div class="box-header">  
343 - <h3 class="box-title">{:__('Recent news')}</h3>  
344 - <div class="box-tools pull-right">  
345 - <a href="https://www.fastadmin.net" target="_blank" class="btn btn-box-tool">{:__('More')}</a>  
346 - </div>  
347 - </div>  
348 - <div class="box-body" id="news-list">  
349 -  
350 - </div>  
351 - </div>  
352 - </div>  
353 - <div class="col-lg-4">  
354 - <div class="box box-success">  
355 - <div class="box-header">  
356 - <h3 class="box-title">{:__('Recent discussion')}</h3>  
357 - <div class="box-tools pull-right">  
358 - <a href="https://forum.fastadmin.net" class="btn btn-box-tool">{:__('More')}</a>  
359 - </div>  
360 - </div>  
361 - <div class="box-body" id="discussion-list">  
362 -  
363 - </div>  
364 - </div>  
365 - </div>  
366 - <div class="col-lg-4">  
367 - <div class="box box-info">  
368 - <div class="box-header"><h3 class="box-title">{:__('Server info')}</h3></div>  
369 - <div class="box-body">  
370 - <table class="table table-striped">  
371 - <tbody>  
372 - <tr>  
373 - <td width="140">{:__('FastAdmin version')}</td>  
374 - <td>{$Think.config.fastadmin.version} <a href="javascript:;" class="btn btn-xs btn-checkversion">检查最新版</a></td>  
375 - </tr>  
376 - <tr>  
377 - <td>{:__('FastAdmin addon version')}</td>  
378 - <td>{$addonversion}</td>  
379 - </tr>  
380 - <tr>  
381 - <td>{:__('Sapi name')}</td>  
382 - <td>{:php_sapi_name()}</td>  
383 - </tr>  
384 - <tr>  
385 - <td>{:__('Debug mode')}</td>  
386 - <td>{$Think.config.app_debug?__('Yes'):__('No')}</td>  
387 - </tr>  
388 - <tr>  
389 - <td>{:__('Software')}</td>  
390 - <td>{$Think.server.SERVER_SOFTWARE}</td>  
391 - </tr>  
392 - <tr>  
393 - <td>{:__('Upload mode')}</td>  
394 - <td>{$uploadmode}</td>  
395 - </tr>  
396 - <tr>  
397 - <td>{:__('Upload url')}</td>  
398 - <td>{$config.upload.uploadurl}</td>  
399 - </tr>  
400 - <tr>  
401 - <td>{:__('Upload Cdn url')}</td>  
402 - <td>{$config.upload.cdnurl}</td>  
403 - </tr>  
404 - <tr>  
405 - <td>{:__('Timezone')}</td>  
406 - <td>{:date_default_timezone_get()}</td>  
407 - </tr>  
408 - <tr>  
409 - <td>{:__('Cdn url')}</td>  
410 - <td>__CDN__</td>  
411 - </tr>  
412 - <tr>  
413 - <td>{:__('Language')}</td>  
414 - <td>{$config.language}</td>  
415 - </tr>  
416 - </tbody></table>  
417 - </div>  
418 - </div>  
419 - </div>  
420 - </div>  
421 - </div>  
422 - <div class="tab-pane fade" id="two">  
423 - <div class="row">  
424 - <div class="col-xs-12">  
425 - {:__('Custom zone')}  
426 - </div>  
427 - </div>  
428 - </div> 339 + <!--<div class="row">-->
  340 + <!--<div class="col-lg-4">-->
  341 + <!--<div class="box box-danger">-->
  342 + <!--<div class="box-header">-->
  343 + <!--<h3 class="box-title">{:__('Recent news')}</h3>-->
  344 + <!--<div class="box-tools pull-right">-->
  345 + <!--<a href="https://www.fastadmin.net" target="_blank" class="btn btn-box-tool">{:__('More')}</a>-->
  346 + <!--</div>-->
  347 + <!--</div>-->
  348 + <!--<div class="box-body" id="news-list">-->
  349 + <!---->
  350 + <!--</div>-->
  351 + <!--</div>-->
  352 + <!--</div>-->
  353 + <!--<div class="col-lg-4">-->
  354 + <!--<div class="box box-success">-->
  355 + <!--<div class="box-header">-->
  356 + <!--<h3 class="box-title">{:__('Recent discussion')}</h3>-->
  357 + <!--<div class="box-tools pull-right">-->
  358 + <!--<a href="https://forum.fastadmin.net" class="btn btn-box-tool">{:__('More')}</a>-->
  359 + <!--</div>-->
  360 + <!--</div>-->
  361 + <!--<div class="box-body" id="discussion-list">-->
  362 + <!---->
  363 + <!--</div>-->
  364 + <!--</div>-->
  365 + <!--</div>-->
  366 + <!--<div class="col-lg-4">-->
  367 + <!--<div class="box box-info">-->
  368 + <!--<div class="box-header"><h3 class="box-title">{:__('Server info')}</h3></div>-->
  369 + <!--<div class="box-body">-->
  370 + <!--<table class="table table-striped">-->
  371 + <!--<tbody>-->
  372 + <!--<tr>-->
  373 + <!--<td width="140">{:__('FastAdmin version')}</td>-->
  374 + <!--<td>{$Think.config.fastadmin.version} <a href="javascript:;" class="btn btn-xs btn-checkversion">检查最新版</a></td>-->
  375 + <!--</tr>-->
  376 + <!--<tr>-->
  377 + <!--<td>{:__('FastAdmin addon version')}</td>-->
  378 + <!--<td>{$addonversion}</td>-->
  379 + <!--</tr>-->
  380 + <!--<tr>-->
  381 + <!--<td>{:__('Sapi name')}</td>-->
  382 + <!--<td>{:php_sapi_name()}</td>-->
  383 + <!--</tr>-->
  384 + <!--<tr>-->
  385 + <!--<td>{:__('Debug mode')}</td>-->
  386 + <!--<td>{$Think.config.app_debug?__('Yes'):__('No')}</td>-->
  387 + <!--</tr>-->
  388 + <!--<tr>-->
  389 + <!--<td>{:__('Software')}</td>-->
  390 + <!--<td>{$Think.server.SERVER_SOFTWARE}</td>-->
  391 + <!--</tr>-->
  392 + <!--<tr>-->
  393 + <!--<td>{:__('Upload mode')}</td>-->
  394 + <!--<td>{$uploadmode}</td>-->
  395 + <!--</tr>-->
  396 + <!--<tr>-->
  397 + <!--<td>{:__('Upload url')}</td>-->
  398 + <!--<td>{$config.upload.uploadurl}</td>-->
  399 + <!--</tr>-->
  400 + <!--<tr>-->
  401 + <!--<td>{:__('Upload Cdn url')}</td>-->
  402 + <!--<td>{$config.upload.cdnurl}</td>-->
  403 + <!--</tr>-->
  404 + <!--<tr>-->
  405 + <!--<td>{:__('Timezone')}</td>-->
  406 + <!--<td>{:date_default_timezone_get()}</td>-->
  407 + <!--</tr>-->
  408 + <!--<tr>-->
  409 + <!--<td>{:__('Cdn url')}</td>-->
  410 + <!--<td>__CDN__</td>-->
  411 + <!--</tr>-->
  412 + <!--<tr>-->
  413 + <!--<td>{:__('Language')}</td>-->
  414 + <!--<td>{$config.language}</td>-->
  415 + <!--</tr>-->
  416 + <!--</tbody></table>-->
  417 + <!--</div>-->
  418 + <!--</div>-->
  419 + <!--</div>-->
  420 + <!--</div>-->
  421 + </div>
  422 + <!--<div class="tab-pane fade" id="two">-->
  423 + <!--<div class="row">-->
  424 + <!--<div class="col-xs-12">-->
  425 + <!--{:__('Custom zone')}-->
  426 + <!--</div>-->
  427 + <!--</div>-->
  428 + <!--</div>-->
429 </div> 429 </div>
430 </div> 430 </div>
431 </div> 431 </div>
@@ -23,13 +23,13 @@ @@ -23,13 +23,13 @@
23 <div class="form-group"> 23 <div class="form-group">
24 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label> 24 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label>
25 <div class="col-xs-12 col-sm-8"> 25 <div class="col-xs-12 col-sm-8">
26 - <input id="c-stock" data-rule="required" class="form-control" name="row[stock]" type="number"> 26 + <input id="c-stock" data-rule="required range(1~)" class="form-control" name="row[stock]" type="number" value="1">
27 </div> 27 </div>
28 </div> 28 </div>
29 <div class="form-group"> 29 <div class="form-group">
30 <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label> 30 <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
31 <div class="col-xs-12 col-sm-8"> 31 <div class="col-xs-12 col-sm-8">
32 - <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="0"> 32 + <input id="c-score" data-rule="required range(1~)" class="form-control" name="row[score]" type="number" value="1">
33 </div> 33 </div>
34 </div> 34 </div>
35 <div class="form-group"> 35 <div class="form-group">
@@ -23,13 +23,13 @@ @@ -23,13 +23,13 @@
23 <div class="form-group"> 23 <div class="form-group">
24 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label> 24 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label>
25 <div class="col-xs-12 col-sm-8"> 25 <div class="col-xs-12 col-sm-8">
26 - <input id="c-stock" data-rule="required" class="form-control" name="row[stock]" type="number" value="{$row.stock}"> 26 + <input id="c-stock" data-rule="required range(1~)" class="form-control" name="row[stock]" type="number" value="{$row.stock}">
27 </div> 27 </div>
28 </div> 28 </div>
29 <div class="form-group"> 29 <div class="form-group">
30 <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label> 30 <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
31 <div class="col-xs-12 col-sm-8"> 31 <div class="col-xs-12 col-sm-8">
32 - <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="{$row.score}"> 32 + <input id="c-score" data-rule="required range(1~)" class="form-control" name="row[score]" type="number" value="{$row.score}">
33 </div> 33 </div>
34 </div> 34 </div>
35 <div class="form-group"> 35 <div class="form-group">
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('gift/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> 10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('gift/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('gift/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('gift/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('gift/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('gift/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('gift/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('gift/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('gift/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('gift/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('gorder/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>--> 10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('gorder/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
11 <!--<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('gorder/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>--> 11 <!--<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('gorder/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('gorder/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('gorder/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('gorder/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('gorder/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('gorder/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('gorder/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('porder/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>--> 10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('porder/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
11 <!--<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('porder/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>--> 11 <!--<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('porder/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('porder/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('porder/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('porder/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('porder/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('porder/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('porder/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('problem/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> 10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('problem/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('problem/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('problem/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('problem/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('problem/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('problem/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('problem/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('problem/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('problem/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -40,13 +40,13 @@ @@ -40,13 +40,13 @@
40 <div class="form-group"> 40 <div class="form-group">
41 <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label> 41 <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
42 <div class="col-xs-12 col-sm-8"> 42 <div class="col-xs-12 col-sm-8">
43 - <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number"> 43 + <input id="c-price" data-rule="required range(0.01~)" class="form-control" name="row[price]" type="number">
44 </div> 44 </div>
45 </div> 45 </div>
46 <div class="form-group"> 46 <div class="form-group">
47 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label> 47 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label>
48 <div class="col-xs-12 col-sm-8"> 48 <div class="col-xs-12 col-sm-8">
49 - <input id="c-stock" data-rule="required" class="form-control" name="row[stock]" type="number" value="0"> 49 + <input id="c-stock" data-rule="required range(1~)" class="form-control" name="row[stock]" type="number" value="0">
50 </div> 50 </div>
51 </div> 51 </div>
52 <!--<div class="form-group">--> 52 <!--<div class="form-group">-->
@@ -41,13 +41,13 @@ @@ -41,13 +41,13 @@
41 <div class="form-group"> 41 <div class="form-group">
42 <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label> 42 <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
43 <div class="col-xs-12 col-sm-8"> 43 <div class="col-xs-12 col-sm-8">
44 - <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number" value="{$row.price}"> 44 + <input id="c-price" data-rule="required range(0.01~)" class="form-control" name="row[price]" type="number" value="{$row.price}">
45 </div> 45 </div>
46 </div> 46 </div>
47 <div class="form-group"> 47 <div class="form-group">
48 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label> 48 <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label>
49 <div class="col-xs-12 col-sm-8"> 49 <div class="col-xs-12 col-sm-8">
50 - <input id="c-stock" data-rule="required" class="form-control" name="row[stock]" type="number" value="{$row.stock}"> 50 + <input id="c-stock" data-rule="required range(1~)" class="form-control" name="row[stock]" type="number" value="{$row.stock}">
51 </div> 51 </div>
52 </div> 52 </div>
53 <!--<div class="form-group">--> 53 <!--<div class="form-group">-->
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('product/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> 10 <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('product/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('product/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('product/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('product/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('product/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('product/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('product/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('product/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('product/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('sell/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>--> 10 <!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('sell/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('sell/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> 11 <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('sell/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('sell/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> 12 <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('sell/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
13 - <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('sell/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a> 13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('sell/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
14 14
15 <div class="dropdown btn-group {:$auth->check('sell/multi')?'':'hide'}"> 15 <div class="dropdown btn-group {:$auth->check('sell/multi')?'':'hide'}">
16 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
17 <ul class="dropdown-menu text-left" role="menu"> 17 <ul class="dropdown-menu text-left" role="menu">
18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 18 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 19 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Percentage')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-percentage" data-rule="required range(1~100)" class="form-control" name="row[percentage]" type="number">
  7 + </div>
  8 + </div>
  9 + <div class="form-group layer-footer">
  10 + <label class="control-label col-xs-12 col-sm-2"></label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  13 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  14 + </div>
  15 + </div>
  16 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Percentage')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-percentage" data-rule="required range(1~100)" class="form-control" name="row[percentage]" type="number" value="{$row.percentage}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group layer-footer">
  10 + <label class="control-label col-xs-12 col-sm-2"></label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  13 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  14 + </div>
  15 + </div>
  16 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('spercentage/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('spercentage/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('spercentage/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('spercentage/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
  14 +
  15 + <div class="dropdown btn-group {:$auth->check('spercentage/multi')?'':'hide'}">
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <ul class="dropdown-menu text-left" role="menu">
  18 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
  19 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
  20 + </ul>
  21 + </div>
  22 + </div>
  23 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  24 + data-operate-edit="{:$auth->check('spercentage/edit')}"
  25 + data-operate-del="{:$auth->check('spercentage/del')}"
  26 + width="100%">
  27 + </table>
  28 + </div>
  29 + </div>
  30 +
  31 + </div>
  32 + </div>
  33 +</div>
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Set_rule')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-set_rule" data-rule="required" class="form-control" name="row[set_rule]" type="text">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Set_score')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-set_score" data-rule="required range(1~)" class="form-control" name="row[set_score]" type="number" value="0">
  13 + </div>
  14 + </div>
  15 + <div class="form-group layer-footer">
  16 + <label class="control-label col-xs-12 col-sm-2"></label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  19 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  20 + </div>
  21 + </div>
  22 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Set_rule')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-set_rule" data-rule="required" class="form-control" name="row[set_rule]" type="text" value="{$row.set_rule}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Set_score')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-set_score" data-rule="required range(1~)" class="form-control" name="row[set_score]" type="number" value="{$row.set_score}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group layer-footer">
  16 + <label class="control-label col-xs-12 col-sm-2"></label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  19 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  20 + </div>
  21 + </div>
  22 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('sscore/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('sscore/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('sscore/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 + <!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('sscore/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
  14 +
  15 + <div class="dropdown btn-group {:$auth->check('sscore/multi')?'':'hide'}">
  16 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  17 + <ul class="dropdown-menu text-left" role="menu">
  18 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
  19 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
  20 + </ul>
  21 + </div>
  22 + </div>
  23 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  24 + data-operate-edit="{:$auth->check('sscore/edit')}"
  25 + data-operate-del="{:$auth->check('sscore/del')}"
  26 + width="100%">
  27 + </table>
  28 + </div>
  29 + </div>
  30 +
  31 + </div>
  32 + </div>
  33 +</div>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <div id="toolbar" class="toolbar"> 8 <div id="toolbar" class="toolbar">
9 {:build_toolbar('refresh,add,edit,del')} 9 {:build_toolbar('refresh,add,edit,del')}
10 <div class="dropdown btn-group {:$auth->check('user/group/multi')?'':'hide'}"> 10 <div class="dropdown btn-group {:$auth->check('user/group/multi')?'':'hide'}">
11 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 11 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
12 <ul class="dropdown-menu text-left" role="menu"> 12 <ul class="dropdown-menu text-left" role="menu">
13 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 13 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
14 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 14 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <div id="toolbar" class="toolbar"> 8 <div id="toolbar" class="toolbar">
9 {:build_toolbar('refresh,add,edit,del')} 9 {:build_toolbar('refresh,add,edit,del')}
10 <div class="dropdown btn-group {:$auth->check('user/rule/multi')?'':'hide'}"> 10 <div class="dropdown btn-group {:$auth->check('user/rule/multi')?'':'hide'}">
11 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 11 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
12 <ul class="dropdown-menu text-left" role="menu"> 12 <ul class="dropdown-menu text-left" role="menu">
13 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 13 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
14 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 14 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -114,6 +114,12 @@ @@ -114,6 +114,12 @@
114 </div> 114 </div>
115 {/if} 115 {/if}
116 116
  117 + <div class="form-group">
  118 + <label for="c-address" class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  119 + <div class="col-xs-12 col-sm-4">
  120 + <input id="c-address" data-rule="" class="form-control" name="row[address]" type="text" value="{$row.address}">
  121 + </div>
  122 + </div>
117 123
118 <div class="form-group"> 124 <div class="form-group">
119 <label for="c-successions" class="control-label col-xs-12 col-sm-2">{:__('Successions')}:</label> 125 <label for="c-successions" class="control-label col-xs-12 col-sm-2">{:__('Successions')}:</label>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <div id="toolbar" class="toolbar"> 8 <div id="toolbar" class="toolbar">
9 {:build_toolbar('refresh,edit,del')} 9 {:build_toolbar('refresh,edit,del')}
10 <div class="dropdown btn-group {:$auth->check('user/user/multi')?'':'hide'}"> 10 <div class="dropdown btn-group {:$auth->check('user/user/multi')?'':'hide'}">
11 - <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a> 11 + <!--<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
12 <ul class="dropdown-menu text-left" role="menu"> 12 <ul class="dropdown-menu text-left" role="menu">
13 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li> 13 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
14 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li> 14 <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
@@ -51,4 +51,37 @@ class Index extends Api @@ -51,4 +51,37 @@ class Index extends Api
51 $this->error('请求方式错误'); 51 $this->error('请求方式错误');
52 } 52 }
53 } 53 }
  54 +
  55 + /**
  56 + * @ApiTitle (获取banner图)
  57 + * @ApiSummary (获取banner图)
  58 + * @ApiMethod (GET)
  59 + * @ApiRoute (/api/index/getBanner)
  60 + * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
  61 + * @ApiReturn ({
  62 + "code": 1,
  63 + "msg": "成功",
  64 + "time": "1553831004",
  65 + "data": [
  66 + {
  67 + "id": 1,
  68 + "image": "http://feipin.w.brotop.cn/uploads/20190319/4a4c015ca04593f70a4836da45f2dea4.jpg"//banner图
  69 + },
  70 + {
  71 + "id": 2,
  72 + "image": "http://feipin.w.brotop.cn/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg"
  73 + },
  74 + ]
  75 + })
  76 + */
  77 + public function getBanner(){
  78 + if($this->request->isGet()){
  79 + $data = Db::table('gc_banner')
  80 + ->field('id,image')
  81 + ->select();
  82 + $this->success('成功', $data);
  83 + }else{
  84 + $this->error('请求方式错误');
  85 + }
  86 + }
54 } 87 }
@@ -254,8 +254,22 @@ class Person extends Api @@ -254,8 +254,22 @@ class Person extends Api
254 * @return bool 254 * @return bool
255 */ 255 */
256 public function getScore($share_uid,$type){ 256 public function getScore($share_uid,$type){
257 - $score = config('site.'.$type);  
258 - 257 + if($type == 'share_purchase'){
  258 + $scoreRule = Db::table('gc_sscore')
  259 + ->where('set_rule','like','%购买%')
  260 + ->field('set_score')
  261 + ->find();
  262 + }else if($type == 'share_sell'){
  263 + $scoreRule = Db::table('gc_sscore')
  264 + ->where('set_rule','like','%卖废品%')
  265 + ->field('set_score')
  266 + ->find();
  267 + }
  268 +// $score = config('site.'.$type);
  269 + $score = 0;
  270 + if($scoreRule){
  271 + $score = $scoreRule['set_score'];
  272 + }
259 $offlineModel = new Line(); 273 $offlineModel = new Line();
260 //此处判断不能相互成为下线(你成为我的下线,我就不能成为你的下线) 274 //此处判断不能相互成为下线(你成为我的下线,我就不能成为你的下线)
261 $offlineModel->where(['off_uid'=>$share_uid,'uid'=>$this->user_id])->find(); 275 $offlineModel->where(['off_uid'=>$share_uid,'uid'=>$this->user_id])->find();
@@ -40,7 +40,7 @@ class Wxpay extends Api @@ -40,7 +40,7 @@ class Wxpay extends Api
40 * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") 40 * @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
41 * @ApiParams (name="openid", type="string", required=true, description="小程序openid") 41 * @ApiParams (name="openid", type="string", required=true, description="小程序openid")
42 * @ApiParams (name="pay_order_sn", type="string", required=true, description="支付订单号") 42 * @ApiParams (name="pay_order_sn", type="string", required=true, description="支付订单号")
43 - * @ApiParams (name="type", type="integer", required=true, description="支付方式(0:微信支付,1:余额支付)") 43 + * @ApiParams (name="type", type="string", required=true, description="支付方式(wx:微信支付,balance:余额支付)")
44 * @ApiReturn ({code: 0, msg: "无效的订单", time: "1554176100", data: null}) 44 * @ApiReturn ({code: 0, msg: "无效的订单", time: "1554176100", data: null})
45 */ 45 */
46 public function pay(){ 46 public function pay(){
此 diff 太大无法显示。
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'banner/index',
  9 + add_url: 'banner/add',
  10 + edit_url: 'banner/edit',
  11 + del_url: 'banner/del',
  12 + multi_url: 'banner/multi',
  13 + table: 'banner',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'image', title: __('Image'), formatter: Table.api.formatter.image},
  29 + {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  30 + {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  31 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  32 + ]
  33 + ]
  34 + });
  35 +
  36 + // 为表格绑定事件
  37 + Table.api.bindevent(table);
  38 + },
  39 + add: function () {
  40 + Controller.api.bindevent();
  41 + },
  42 + edit: function () {
  43 + Controller.api.bindevent();
  44 + },
  45 + api: {
  46 + bindevent: function () {
  47 + Form.api.bindevent($("form[role=form]"));
  48 + }
  49 + }
  50 + };
  51 + return Controller;
  52 +});
@@ -57,12 +57,25 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -57,12 +57,25 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
57 Layer.alert(ret.msg); 57 Layer.alert(ret.msg);
58 return false; 58 return false;
59 },visible: function (row) { 59 },visible: function (row) {
60 - if(row.status == 3){ 60 + if(row.status == 3 && row.is_due == 0){
  61 + return true;
  62 + }else{
  63 + return false;
  64 + }
  65 + }
  66 + },
  67 + {
  68 + name: 'ajax',
  69 + text: __('已扣取'),
  70 + title: __('已扣取'),
  71 + classname: 'btn btn-xs btn-success btn-magic',
  72 + icon: 'fa fa-magic',
  73 + visible: function (row) {
  74 + if(row.status == 3 && row.is_due == 1){
61 return true; 75 return true;
62 }else{ 76 }else{
63 return false; 77 return false;
64 } 78 }
65 -  
66 } 79 }
67 } 80 }
68 ]} 81 ]}
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'spercentage/index',
  9 + add_url: 'spercentage/add',
  10 + edit_url: 'spercentage/edit',
  11 + del_url: 'spercentage/del',
  12 + multi_url: 'spercentage/multi',
  13 + table: 'spercentage',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'percentage', title: __('Percentage')},
  29 + {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  30 + {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  31 + // {field: 'deletetime', title: __('Deletetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  32 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  33 + ]
  34 + ]
  35 + });
  36 +
  37 + // 为表格绑定事件
  38 + Table.api.bindevent(table);
  39 + },
  40 + add: function () {
  41 + Controller.api.bindevent();
  42 + },
  43 + edit: function () {
  44 + Controller.api.bindevent();
  45 + },
  46 + api: {
  47 + bindevent: function () {
  48 + Form.api.bindevent($("form[role=form]"));
  49 + }
  50 + }
  51 + };
  52 + return Controller;
  53 +});
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'sscore/index',
  9 + add_url: 'sscore/add',
  10 + edit_url: 'sscore/edit',
  11 + del_url: 'sscore/del',
  12 + multi_url: 'sscore/multi',
  13 + table: 'sscore',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'set_rule', title: __('Set_rule')},
  29 + {field: 'set_score', title: __('Set_score')},
  30 + {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  31 + {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  32 + // {field: 'deletetime', title: __('Deletetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  33 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  34 + ]
  35 + ]
  36 + });
  37 +
  38 + // 为表格绑定事件
  39 + Table.api.bindevent(table);
  40 + },
  41 + add: function () {
  42 + Controller.api.bindevent();
  43 + },
  44 + edit: function () {
  45 + Controller.api.bindevent();
  46 + },
  47 + api: {
  48 + bindevent: function () {
  49 + Form.api.bindevent($("form[role=form]"));
  50 + }
  51 + }
  52 + };
  53 + return Controller;
  54 +});
@@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
25 [ 25 [
26 {checkbox: true}, 26 {checkbox: true},
27 {field: 'id', title: __('Id'), sortable: true}, 27 {field: 'id', title: __('Id'), sortable: true},
28 - {field: 'group.name', title: __('Group')}, 28 + // {field: 'group.name', title: __('Group')},
29 {field: 'username', title: __('Username'), operate: 'LIKE'}, 29 {field: 'username', title: __('Username'), operate: 'LIKE'},
30 {field: 'nickname', title: __('Nickname'), operate: 'LIKE'}, 30 {field: 'nickname', title: __('Nickname'), operate: 'LIKE'},
31 // {field: 'email', title: __('Email'), operate: 'LIKE'}, 31 // {field: 'email', title: __('Email'), operate: 'LIKE'},
@@ -33,15 +33,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -33,15 +33,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
33 {field: 'mobile', title: __('Mobile'), operate: 'LIKE'}, 33 {field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
34 {field: 'avatar', title: __('Avatar'), formatter: Table.api.formatter.image, operate: false}, 34 {field: 'avatar', title: __('Avatar'), formatter: Table.api.formatter.image, operate: false},
35 {field: 'score', title: __('Score'), operate: 'BETWEEN', sortable: true}, 35 {field: 'score', title: __('Score'), operate: 'BETWEEN', sortable: true},
  36 + {field: 'money', title: __('Money')},
36 // {field: 'level', title: __('Level'), operate: 'BETWEEN', sortable: true}, 37 // {field: 'level', title: __('Level'), operate: 'BETWEEN', sortable: true},
37 {field: 'address', title: __('Address')},//上门地址 38 {field: 'address', title: __('Address')},//上门地址
38 // {field: 'gender', title: __('Gender'), visible: false, searchList: {1: __('Male'), 0: __('Female')}}, 39 // {field: 'gender', title: __('Gender'), visible: false, searchList: {1: __('Male'), 0: __('Female')}},
39 - {field: 'successions', title: __('Successions'), visible: false, operate: 'BETWEEN', sortable: true},  
40 - {field: 'maxsuccessions', title: __('Maxsuccessions'), visible: false, operate: 'BETWEEN', sortable: true},  
41 - {field: 'logintime', title: __('Logintime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},  
42 - {field: 'loginip', title: __('Loginip'), formatter: Table.api.formatter.search},  
43 - {field: 'jointime', title: __('Jointime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},  
44 - {field: 'joinip', title: __('Joinip'), formatter: Table.api.formatter.search}, 40 + // {field: 'successions', title: __('Successions'), visible: false, operate: 'BETWEEN', sortable: true},
  41 + // {field: 'maxsuccessions', title: __('Maxsuccessions'), visible: false, operate: 'BETWEEN', sortable: true},
  42 + // {field: 'logintime', title: __('Logintime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
  43 + // {field: 'loginip', title: __('Loginip'), formatter: Table.api.formatter.search},
  44 + // {field: 'jointime', title: __('Jointime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
  45 + // {field: 'joinip', title: __('Joinip'), formatter: Table.api.formatter.search},
45 {field: 'status', title: __('Status'), formatter: Table.api.formatter.status, searchList: {normal: __('Normal'), hidden: __('Hidden')}}, 46 {field: 'status', title: __('Status'), formatter: Table.api.formatter.status, searchList: {normal: __('Normal'), hidden: __('Hidden')}},
46 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,buttons: [ 47 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,buttons: [
47 {name: 'offline', text: '我的团队', title: '我的团队', icon: 'fa fa-list', classname: 'btn btn-xs btn-success btn-dialog', url: "off/line/offline"} 48 {name: 'offline', text: '我的团队', title: '我的团队', icon: 'fa fa-list', classname: 'btn btn-xs btn-success btn-dialog', url: "off/line/offline"}