作者 郭宇鹏
1 个管道 的构建 通过 耗费 8 秒

'0041'

正在显示 100 个修改的文件 包含 4001 行增加3 行删除

要显示太多修改。

为保证性能只显示 100 of 100+ 个文件。

  1 +<?php
  2 +
  3 +namespace app\admin\controller;
  4 +
  5 +use app\common\controller\Backend;
  6 +use think\Db;
  7 +use think\Exception;
  8 +use think\exception\PDOException;
  9 +
  10 +/**
  11 + * 动态礼物订单
  12 + *
  13 + * @icon fa fa-circle-o
  14 + */
  15 +class ArticleGiftOrder extends Backend
  16 +{
  17 +
  18 + /**
  19 + * ArticleGiftOrder模型对象
  20 + * @var \app\admin\model\ArticleGiftOrder
  21 + */
  22 + protected $model = null;
  23 +
  24 + public function _initialize()
  25 + {
  26 + parent::_initialize();
  27 + $this->model = new \app\admin\model\ArticleGiftOrder;
  28 + $this->view->assign("statusList", $this->model->getStatusList());
  29 + $this->view->assign("isCustomList", $this->model->getIsCustomList());
  30 + }
  31 +
  32 + public function import()
  33 + {
  34 + parent::import();
  35 + }
  36 +
  37 + /**
  38 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  39 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  40 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  41 + */
  42 +
  43 +
  44 +
  45 +
  46 + /**
  47 + * 查看
  48 + */
  49 + public function index($ids = '')
  50 + {
  51 + //设置过滤方法
  52 + $this->request->filter(['strip_tags', 'trim']);
  53 + if ($this->request->isAjax()) {
  54 + //如果发送的来源是Selectpage,则转发到Selectpage
  55 + if ($this->request->request('keyField')) {
  56 + return $this->selectpage();
  57 + }
  58 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  59 + $list = $this->model
  60 + ->where($where)
  61 + ->where('article_id',$ids)
  62 + ->order($sort, $order)
  63 + ->paginate($limit);
  64 + $result = array("total" => $list->total(), "rows" => $list->items());
  65 + return json($result);
  66 + }
  67 + return $this->view->fetch();
  68 + }
  69 +
  70 +
  71 +
  72 +
  73 +
  74 +
  75 + /**
  76 + * 删除
  77 + */
  78 + public function del($ids = "")
  79 + {
  80 + if (!$this->request->isPost()) {
  81 + $this->error(__("Invalid parameters"));
  82 + }
  83 + $ids = $ids ? $ids : $this->request->post("ids");
  84 + if ($ids) {
  85 + $pk = $this->model->getPk();
  86 + $adminIds = $this->getDataLimitAdminIds();
  87 + if (is_array($adminIds)) {
  88 + $this->model->where($this->dataLimitField, 'in', $adminIds);
  89 + }
  90 + $list = $this->model->where($pk, 'in', $ids)->select();
  91 +
  92 + $count = 0;
  93 + Db::startTrans();
  94 + try {
  95 + foreach ($list as $k => $v) {
  96 + if ($v['status'] == 1){
  97 + p_exception('该订单已经支付 不允许删除!');
  98 + }
  99 + $count += $v->delete();
  100 + }
  101 + Db::commit();
  102 + } catch (PDOException $e) {
  103 + Db::rollback();
  104 + $this->error($e->getMessage());
  105 + } catch (Exception $e) {
  106 + Db::rollback();
  107 + $this->error($e->getMessage());
  108 + }
  109 + if ($count) {
  110 + $this->success();
  111 + } else {
  112 + $this->error(__('No rows were deleted'));
  113 + }
  114 + }
  115 + $this->error(__('Parameter %s can not be empty', 'ids'));
  116 + }
  117 +
  118 +
  119 +}
  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 ExhibitionBanner extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ExhibitionBanner模型对象
  17 + * @var \app\admin\model\ExhibitionBanner
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ExhibitionBanner;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 ExhibitionCollect extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ExhibitionCollect模型对象
  17 + * @var \app\admin\model\ExhibitionCollect
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ExhibitionCollect;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 ExhibitionComment extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ExhibitionComment模型对象
  17 + * @var \app\admin\model\ExhibitionComment
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ExhibitionComment;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 ExhibitionCommentReport extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ExhibitionCommentReport模型对象
  17 + * @var \app\admin\model\ExhibitionCommentReport
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ExhibitionCommentReport;
  25 + $this->view->assign("statusList", $this->model->getStatusList());
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 ExhibitionGiftOrder extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ExhibitionGiftOrder模型对象
  17 + * @var \app\admin\model\ExhibitionGiftOrder
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ExhibitionGiftOrder;
  25 + $this->view->assign("statusList", $this->model->getStatusList());
  26 + $this->view->assign("isCustomList", $this->model->getIsCustomList());
  27 + }
  28 +
  29 + public function import()
  30 + {
  31 + parent::import();
  32 + }
  33 +
  34 + /**
  35 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  36 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  37 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  38 + */
  39 +
  40 +
  41 +}
  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 ExhibitionPrice extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ExhibitionPrice模型对象
  17 + * @var \app\admin\model\ExhibitionPrice
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ExhibitionPrice;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 ExhibitionReport extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ExhibitionReport模型对象
  17 + * @var \app\admin\model\ExhibitionReport
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ExhibitionReport;
  25 + $this->view->assign("statusList", $this->model->getStatusList());
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  1 +<?php
  2 +
  3 +namespace app\admin\controller;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 礼物
  9 + *
  10 + * @icon fa fa-gift
  11 + */
  12 +class Gift extends Backend
  13 +{
  14 +
  15 + /**
  16 + * Gift模型对象
  17 + * @var \app\admin\model\Gift
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\Gift;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 Production extends Backend
  13 +{
  14 +
  15 + /**
  16 + * Production模型对象
  17 + * @var \app\admin\model\Production
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\Production;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 + /**
  41 + * 查看
  42 + */
  43 + public function index($ids = '')
  44 + {
  45 + //设置过滤方法
  46 + $this->request->filter(['strip_tags', 'trim']);
  47 + if ($this->request->isAjax()) {
  48 + //如果发送的来源是Selectpage,则转发到Selectpage
  49 + if ($this->request->request('keyField')) {
  50 + return $this->selectpage();
  51 + }
  52 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  53 +
  54 + $list = $this->model->where($where);
  55 + if($ids){
  56 + $list = $list->where('id',$ids);
  57 + }
  58 + $list = $list
  59 + ->order($sort, $order)
  60 + ->paginate($limit);
  61 + $result = array("total" => $list->total(), "rows" => $list->items());
  62 +
  63 + return json($result);
  64 + }
  65 + return $this->view->fetch();
  66 + }
  67 +
  68 +
  69 +
  70 +
  71 +
  72 +}
  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 ProductionCollect extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ProductionCollect模型对象
  17 + * @var \app\admin\model\ProductionCollect
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ProductionCollect;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  1 +<?php
  2 +
  3 +namespace app\admin\controller;
  4 +
  5 +use app\common\controller\Backend;
  6 +use fast\Tree;
  7 +
  8 +/**
  9 + * 动态评论
  10 + *
  11 + * @icon fa fa-circle-o
  12 + */
  13 +class ProductionComment extends Backend
  14 +{
  15 +
  16 + /**
  17 + * ProductionComment模型对象
  18 + * @var \app\admin\model\ProductionComment
  19 + */
  20 + protected $model = null;
  21 +
  22 + public function _initialize()
  23 + {
  24 + parent::_initialize();
  25 + // $this->model = new \app\admin\model\ProductionComment;
  26 + if (!$this->auth->isSuperAdmin()) {
  27 + $this->error(__('w'));
  28 + }
  29 + $this->model = model('ProductionComment');
  30 + // 必须将结果集转换为数组
  31 + $ruleList = collection($this->model->field('condition,remark,createtime,updatetime', true)->with(['user','production'])->order('id ASC')->select())->toArray();
  32 + foreach ($ruleList as $k => &$v) {
  33 + $v['content'] = __($v['content']);
  34 + }
  35 + unset($v);
  36 + Tree::instance()->init($ruleList);
  37 + $this->rulelist = Tree::instance()->getTreeList(Tree::instance()->getTreeArray(0), 'content');
  38 + $ruledata = [0 => __('None')];
  39 + foreach ($this->rulelist as $k => &$v) {
  40 +// if (!$v['ismenu']) {
  41 +// continue;
  42 +// }
  43 + $ruledata[$v['id']] = $v['content'];
  44 + }
  45 + unset($v);
  46 + $this->view->assign('ruledata', $ruledata);
  47 + }
  48 +
  49 +
  50 + /**
  51 + * 查看
  52 + */
  53 + public function index($ids = '')
  54 + {
  55 + if($ids){
  56 + //设置过滤方法
  57 + $this->request->filter(['strip_tags', 'trim']);
  58 + if ($this->request->isAjax()) {
  59 + //如果发送的来源是Selectpage,则转发到Selectpage
  60 + if ($this->request->request('keyField')) {
  61 + return $this->selectpage();
  62 + }
  63 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  64 +
  65 + $list = $this->model
  66 + ->with(['user','production'])
  67 + ->where($where)
  68 + ->where('id',$ids)
  69 + ->order($sort, $order)
  70 + ->paginate($limit);
  71 +
  72 + $result = array("total" => $list->total(), "rows" => $list->items());
  73 +
  74 + return json($result);
  75 + }
  76 + return $this->view->fetch();
  77 + }
  78 +
  79 + if ($this->request->isAjax()) {
  80 + $list = $this->rulelist;
  81 + $total = count($this->rulelist);
  82 +
  83 + $result = array("total" => $total, "rows" => $list);
  84 +
  85 + return json($result);
  86 + }
  87 + return $this->view->fetch();
  88 + }
  89 +
  90 +
  91 +
  92 +
  93 +
  94 +
  95 + public function import()
  96 + {
  97 + parent::import();
  98 + }
  99 +
  100 + /**
  101 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  102 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  103 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  104 + */
  105 +
  106 +
  107 +}
  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 ProductionCommentReport extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ProductionCommentReport模型对象
  17 + * @var \app\admin\model\ProductionCommentReport
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ProductionCommentReport;
  25 + $this->view->assign("statusList", $this->model->getStatusList());
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 ProductionCommentZan extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ProductionCommentZan模型对象
  17 + * @var \app\admin\model\ProductionCommentZan
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ProductionCommentZan;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
  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 ProductionGiftOrder extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ProductionGiftOrder模型对象
  17 + * @var \app\admin\model\ProductionGiftOrder
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ProductionGiftOrder;
  25 + $this->view->assign("statusList", $this->model->getStatusList());
  26 + $this->view->assign("isCustomList", $this->model->getIsCustomList());
  27 + }
  28 +
  29 + public function import()
  30 + {
  31 + parent::import();
  32 + }
  33 +
  34 + /**
  35 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  36 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  37 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  38 + */
  39 +
  40 +
  41 +}
  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 ProductionReport extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ProductionReport模型对象
  17 + * @var \app\admin\model\ProductionReport
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\ProductionReport;
  25 + $this->view->assign("statusList", $this->model->getStatusList());
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 + /**
  41 + * 查看
  42 + */
  43 + public function index()
  44 + {
  45 + //设置过滤方法
  46 + $this->request->filter(['strip_tags', 'trim']);
  47 + if ($this->request->isAjax()) {
  48 + //如果发送的来源是Selectpage,则转发到Selectpage
  49 + if ($this->request->request('keyField')) {
  50 + return $this->selectpage();
  51 + }
  52 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  53 +
  54 + $list = $this->model
  55 + ->with(['production'])
  56 + ->where($where)
  57 + ->order($sort, $order)
  58 + ->paginate($limit);
  59 +
  60 + $result = array("total" => $list->total(), "rows" => $list->items());
  61 +
  62 + return json($result);
  63 + }
  64 + return $this->view->fetch();
  65 + }
  66 +
  67 +
  68 +
  69 +}
  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 Treasured extends Backend
  13 +{
  14 +
  15 + /**
  16 + * Treasured模型对象
  17 + * @var \app\admin\model\Treasured
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\Treasured;
  25 + $this->view->assign("statusList", $this->model->getStatusList());
  26 + $this->view->assign("isAuditList", $this->model->getIsAuditList());
  27 + }
  28 +
  29 + public function import()
  30 + {
  31 + parent::import();
  32 + }
  33 +
  34 + /**
  35 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  36 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  37 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  38 + */
  39 +
  40 +
  41 +}
  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 TreasuredSize extends Backend
  13 +{
  14 +
  15 + /**
  16 + * TreasuredSize模型对象
  17 + * @var \app\admin\model\TreasuredSize
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\TreasuredSize;
  25 +
  26 + }
  27 +
  28 + public function import()
  29 + {
  30 + parent::import();
  31 + }
  32 +
  33 + /**
  34 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  35 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  36 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  37 + */
  38 +
  39 +
  40 +}
@@ -27,7 +27,7 @@ class Rule extends Backend @@ -27,7 +27,7 @@ class Rule extends Backend
27 { 27 {
28 parent::_initialize(); 28 parent::_initialize();
29 if (!$this->auth->isSuperAdmin()) { 29 if (!$this->auth->isSuperAdmin()) {
30 - $this->error(__('Access is allowed only to the super management group')); 30 + $this->error(__('w'));
31 } 31 }
32 $this->model = model('AuthRule'); 32 $this->model = model('AuthRule');
33 // 必须将结果集转换为数组 33 // 必须将结果集转换为数组
@@ -10,6 +10,7 @@ return [ @@ -10,6 +10,7 @@ return [
10 'Zan_num' => '点赞数量', 10 'Zan_num' => '点赞数量',
11 'Ping_num' => '评论数量', 11 'Ping_num' => '评论数量',
12 'Xiang_num' => '分享数量', 12 'Xiang_num' => '分享数量',
  13 + 'Shoucang_num' => '收藏日期',
13 'Createtime' => '创建日期', 14 'Createtime' => '创建日期',
14 'Updatetime' => '更新时间', 15 'Updatetime' => '更新时间',
15 'Deletetime' => '删除时间', 16 'Deletetime' => '删除时间',
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Number' => '订单号',
  6 + 'Article_id' => '动态ID',
  7 + 'Article_user_id' => '发布动态用户ID',
  8 + 'User_id' => '当前用户ID',
  9 + 'Avatar' => '头像',
  10 + 'Nickname' => '署名',
  11 + 'Username' => '真实姓名',
  12 + 'Mobile' => '手机号',
  13 + 'Price' => '价格',
  14 + 'Status' => '是否支付',
  15 + 'Status 0' => '未支付',
  16 + 'Status 1' => '已支付',
  17 + 'Is_custom' => '是否自定义金额礼物',
  18 + 'Is_custom 0' => '非自定义',
  19 + 'Is_custom 1' => '自定义金额',
  20 + 'Gift_id' => '礼物id',
  21 + 'Gift_name' => '礼物名称',
  22 + 'Createtime' => '创建日期',
  23 + 'Updatetime' => '更新时间'
  24 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Image' => '图片',
  6 + 'Key_id' => '外键id',
  7 + 'Weigh' => '权重/排序',
  8 + 'Createtime' => '创建日期',
  9 + 'Updatetime' => '更新时间'
  10 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '用户ID',
  6 + 'Exhibition_id' => '展览ID',
  7 + 'Createtime' => '创建日期',
  8 + 'Updatetime' => '更新时间'
  9 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Exhibition_id' => '展览ID',
  6 + 'User_id' => '用户ID',
  7 + 'Content' => '评论内容',
  8 + 'Pid' => '父级评论',
  9 + 'Zan_num' => '点赞数量',
  10 + 'Createtime' => '创建日期',
  11 + 'Updatetime' => '更新时间',
  12 + 'Deletetime' => '删除时间',
  13 + 'Message' => '删除提示'
  14 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '举报人',
  6 + 'Avatar' => '头像',
  7 + 'Nickname' => '署名',
  8 + 'Username' => '真实姓名',
  9 + 'Mobile' => '手机号',
  10 + 'Exhibition_comment_id' => '动态ID',
  11 + 'Content' => '举报内容',
  12 + 'Status' => '是否审核',
  13 + 'Status 0' => '未审核',
  14 + 'Status 1' => '已审核',
  15 + 'Message' => '备注',
  16 + 'Report_type_id' => '举报类型ID',
  17 + 'Report_type_name' => '举报类型名称',
  18 + 'Createtime' => '创建时间',
  19 + 'Updatetime' => '更新时间'
  20 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Number' => '订单号',
  6 + 'Exhibition_id' => '动态ID',
  7 + 'Exhibition_user_id' => '发布动态用户ID',
  8 + 'User_id' => '当前用户ID',
  9 + 'Avatar' => '头像',
  10 + 'Nickname' => '署名',
  11 + 'Username' => '真实姓名',
  12 + 'Mobile' => '手机号',
  13 + 'Price' => '价格',
  14 + 'Status' => '是否支付',
  15 + 'Status 0' => '未支付',
  16 + 'Status 1' => '已支付',
  17 + 'Is_custom' => '是否自定义金额礼物',
  18 + 'Is_custom 0' => '非自定义',
  19 + 'Is_custom 1' => '自定义金额',
  20 + 'Gift_id' => '礼物id',
  21 + 'Gift_name' => '礼物名称',
  22 + 'Createtime' => '创建日期',
  23 + 'Updatetime' => '更新时间'
  24 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Day' => '展览多少天',
  6 + 'Price' => '价格',
  7 + 'Weigh' => '权重/排序',
  8 + 'Createtime' => '创建日期',
  9 + 'Updatetime' => '更新时间'
  10 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '举报人',
  6 + 'Avatar' => '头像',
  7 + 'Nickname' => '署名',
  8 + 'Username' => '真实姓名',
  9 + 'Mobile' => '手机号',
  10 + 'Exhibition_id' => '展览ID',
  11 + 'Content' => '举报内容',
  12 + 'Status' => '是否审核',
  13 + 'Status 0' => '未审核',
  14 + 'Status 1' => '已审核',
  15 + 'Message' => '备注',
  16 + 'Report_type_id' => '举报类型ID',
  17 + 'Report_type_name' => '举报类型名称',
  18 + 'Createtime' => '创建时间',
  19 + 'Updatetime' => '更新时间'
  20 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '用户ID',
  6 + 'Avatar' => '头像',
  7 + 'Nickname' => '署名',
  8 + 'Title' => '作品标题',
  9 + 'Images' => '作品图片',
  10 + 'Content' => '内容',
  11 + 'Typeface' => '字体',
  12 + 'Typeface_id' => '字体ID',
  13 + 'Dynasty' => '朝代',
  14 + 'Dynasty_id' => '朝代ID',
  15 + 'Format' => '格式',
  16 + 'Format_id' => '格式ID',
  17 + 'Width' => '宽度',
  18 + 'Height' => '高度',
  19 + 'Fenxiang_num' => '分享数量',
  20 + 'Zan_num' => '点赞数量',
  21 + 'Ping_num' => '评论数量',
  22 + 'Price_num' => '打赏总数',
  23 + 'Shoucang_num' => '收藏数量',
  24 + 'Createtime' => '创建日期',
  25 + 'Updatetime' => '更新时间',
  26 + 'Deletetime' => '删除时间',
  27 + 'Message' => '删除提示'
  28 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '用户ID',
  6 + 'Production_id' => '动态ID',
  7 + 'Createtime' => '创建日期',
  8 + 'Updatetime' => '更新时间'
  9 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Production_id' => '作品ID',
  6 + 'User_id' => '用户ID',
  7 + 'Content' => '评论内容',
  8 + 'Pid' => '父级评论',
  9 + 'Zan_num' => '点赞数量',
  10 + 'Createtime' => '创建日期',
  11 + 'Updatetime' => '更新时间',
  12 + 'Deletetime' => '删除时间',
  13 + 'Message' => '删除提示'
  14 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '举报人',
  6 + 'Avatar' => '头像',
  7 + 'Nickname' => '署名',
  8 + 'Username' => '真实姓名',
  9 + 'Mobile' => '手机号',
  10 + 'Production_comment_id' => '动态ID',
  11 + 'Content' => '举报内容',
  12 + 'Status' => '是否审核',
  13 + 'Status 0' => '未审核',
  14 + 'Status 1' => '已审核',
  15 + 'Message' => '备注',
  16 + 'Report_type_id' => '举报类型ID',
  17 + 'Report_type_name' => '举报类型名称',
  18 + 'Createtime' => '创建时间',
  19 + 'Updatetime' => '更新时间'
  20 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '用户ID',
  6 + 'Production_comment_id' => '动态评论ID',
  7 + 'Createtime' => '创建日期',
  8 + 'Updatetime' => '更新时间'
  9 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Number' => '订单号',
  6 + 'Production_id' => '作品ID',
  7 + 'Production_user_id' => '发布作品用户ID',
  8 + 'User_id' => '当前用户ID',
  9 + 'Avatar' => '头像',
  10 + 'Nickname' => '署名',
  11 + 'Username' => '真实姓名',
  12 + 'Mobile' => '手机号',
  13 + 'Price' => '价格',
  14 + 'Status' => '是否支付',
  15 + 'Status 0' => '未支付',
  16 + 'Status 1' => '已支付',
  17 + 'Is_custom' => '是否自定义金额礼物',
  18 + 'Is_custom 0' => '非自定义',
  19 + 'Is_custom 1' => '自定义金额',
  20 + 'Gift_id' => '礼物id',
  21 + 'Gift_name' => '礼物名称',
  22 + 'Createtime' => '创建日期',
  23 + 'Updatetime' => '更新时间'
  24 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '举报人',
  6 + 'Avatar' => '头像',
  7 + 'Nickname' => '署名',
  8 + 'Username' => '真实姓名',
  9 + 'Mobile' => '手机号',
  10 + 'Production_id' => '作品ID',
  11 + 'Content' => '举报内容',
  12 + 'Status' => '是否审核',
  13 + 'Status 0' => '未审核',
  14 + 'Status 1' => '已审核',
  15 + 'Message' => '备注',
  16 + 'Report_type_id' => '举报类型ID',
  17 + 'Report_type_name' => '举报类型名称',
  18 + 'Createtime' => '创建时间',
  19 + 'Updatetime' => '更新时间'
  20 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'User_id' => '用户ID',
  6 + 'Avatar' => '头像',
  7 + 'Nickname' => '署名',
  8 + 'Title' => '墨宝标题',
  9 + 'Number' => '墨宝编号',
  10 + 'Author' => '作者',
  11 + 'Images' => '墨宝图片',
  12 + 'Content' => '内容',
  13 + 'Production_typeface' => '字体',
  14 + 'Production_typeface_id' => '字体ID',
  15 + 'Production_format' => '格式',
  16 + 'Production_format_id' => '格式ID',
  17 + 'Treasured_size' => '尺寸名称',
  18 + 'Treasured_size_id' => '尺寸ID',
  19 + 'Status' => '状态',
  20 + 'Status 0' => '待出售',
  21 + 'Status 1' => '已出售',
  22 + 'Status 2' => '非卖品',
  23 + 'Zan_num' => '点赞数量',
  24 + 'Createtime' => '创建日期',
  25 + 'Qr_code' => '二维码',
  26 + 'Qr_code_d' => '大二维码',
  27 + 'Is_audit' => '是否审核',
  28 + 'Is_audit 0' => '审核中',
  29 + 'Is_audit 1' => '审核成功',
  30 + 'Is_audit 2' => '审核失败',
  31 + 'Audit_message' => '审核失败原因 ',
  32 + 'Updatetime' => '更新时间',
  33 + 'Deletetime' => '删除时间',
  34 + 'Message' => '删除提示'
  35 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => '主键',
  5 + 'Name' => '尺寸名称',
  6 + 'Weigh' => '权重/排序',
  7 + 'Createtime' => '创建日期',
  8 + 'Updatetime' => '更新时间'
  9 +];
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ArticleGiftOrder extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'article_gift_order';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text',
  29 + 'is_custom_text'
  30 + ];
  31 +
  32 +
  33 +
  34 + public function getStatusList()
  35 + {
  36 + return ['0' => __('Status 0'), '1' => __('Status 1')];
  37 + }
  38 +
  39 + public function getIsCustomList()
  40 + {
  41 + return ['0' => __('Is_custom 0'), '1' => __('Is_custom 1')];
  42 + }
  43 +
  44 +
  45 + public function getStatusTextAttr($value, $data)
  46 + {
  47 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  48 + $list = $this->getStatusList();
  49 + return isset($list[$value]) ? $list[$value] : '';
  50 + }
  51 +
  52 +
  53 + public function getIsCustomTextAttr($value, $data)
  54 + {
  55 + $value = $value ? $value : (isset($data['is_custom']) ? $data['is_custom'] : '');
  56 + $list = $this->getIsCustomList();
  57 + return isset($list[$value]) ? $list[$value] : '';
  58 + }
  59 +
  60 +
  61 +
  62 +
  63 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ExhibitionBanner extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'exhibition_banner';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 + protected static function init()
  33 + {
  34 + self::afterInsert(function ($row) {
  35 + $pk = $row->getPk();
  36 + $row->getQuery()->where($pk, $row[$pk])->update(['weigh' => $row[$pk]]);
  37 + });
  38 + }
  39 +
  40 +
  41 +
  42 +
  43 +
  44 +
  45 +
  46 +
  47 +
  48 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ExhibitionCollect extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'exhibition_collect';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 +
  33 +
  34 +
  35 +
  36 +
  37 +
  38 +
  39 +
  40 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +use traits\model\SoftDelete;
  7 +
  8 +class ExhibitionComment extends Model
  9 +{
  10 +
  11 + use SoftDelete;
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'exhibition_comment';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = 'deletetime';
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 +
  33 +
  34 +
  35 +
  36 +
  37 +
  38 +
  39 +
  40 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ExhibitionCommentReport extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'exhibition_comment_report';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text'
  29 + ];
  30 +
  31 +
  32 +
  33 + public function getStatusList()
  34 + {
  35 + return ['0' => __('Status 0'), '1' => __('Status 1')];
  36 + }
  37 +
  38 +
  39 + public function getStatusTextAttr($value, $data)
  40 + {
  41 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  42 + $list = $this->getStatusList();
  43 + return isset($list[$value]) ? $list[$value] : '';
  44 + }
  45 +
  46 +
  47 +
  48 +
  49 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ExhibitionGiftOrder extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'exhibition_gift_order';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text',
  29 + 'is_custom_text'
  30 + ];
  31 +
  32 +
  33 +
  34 + public function getStatusList()
  35 + {
  36 + return ['0' => __('Status 0'), '1' => __('Status 1')];
  37 + }
  38 +
  39 + public function getIsCustomList()
  40 + {
  41 + return ['0' => __('Is_custom 0'), '1' => __('Is_custom 1')];
  42 + }
  43 +
  44 +
  45 + public function getStatusTextAttr($value, $data)
  46 + {
  47 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  48 + $list = $this->getStatusList();
  49 + return isset($list[$value]) ? $list[$value] : '';
  50 + }
  51 +
  52 +
  53 + public function getIsCustomTextAttr($value, $data)
  54 + {
  55 + $value = $value ? $value : (isset($data['is_custom']) ? $data['is_custom'] : '');
  56 + $list = $this->getIsCustomList();
  57 + return isset($list[$value]) ? $list[$value] : '';
  58 + }
  59 +
  60 +
  61 +
  62 +
  63 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ExhibitionPrice extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'exhibition_price';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 + protected static function init()
  33 + {
  34 + self::afterInsert(function ($row) {
  35 + $pk = $row->getPk();
  36 + $row->getQuery()->where($pk, $row[$pk])->update(['weigh' => $row[$pk]]);
  37 + });
  38 + }
  39 +
  40 +
  41 +
  42 +
  43 +
  44 +
  45 +
  46 +
  47 +
  48 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ExhibitionReport extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'exhibition_report';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text'
  29 + ];
  30 +
  31 +
  32 +
  33 + public function getStatusList()
  34 + {
  35 + return ['0' => __('Status 0'), '1' => __('Status 1')];
  36 + }
  37 +
  38 +
  39 + public function getStatusTextAttr($value, $data)
  40 + {
  41 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  42 + $list = $this->getStatusList();
  43 + return isset($list[$value]) ? $list[$value] : '';
  44 + }
  45 +
  46 +
  47 +
  48 +
  49 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class Gift extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'gift';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 + protected static function init()
  33 + {
  34 + self::afterInsert(function ($row) {
  35 + $pk = $row->getPk();
  36 + $row->getQuery()->where($pk, $row[$pk])->update(['weigh' => $row[$pk]]);
  37 + });
  38 + }
  39 +
  40 +
  41 +
  42 +
  43 +
  44 +
  45 +
  46 +
  47 +
  48 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +use traits\model\SoftDelete;
  7 +
  8 +class Production extends Model
  9 +{
  10 +
  11 + use SoftDelete;
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'production';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = 'deletetime';
  25 +
  26 +
  27 + // 追加属性
  28 + protected $append = [
  29 + 'one_image'
  30 + ];
  31 +
  32 +
  33 + public function getOneImageAttr($value,$data)
  34 + {
  35 + $arr = explode(',',$data['images']);
  36 + foreach ($arr as $key => $val){
  37 + $arr[$key] = cdnurl($val);
  38 + }
  39 + if (empty($arr)){
  40 + return '';
  41 + }
  42 + return $arr[0];
  43 + }
  44 +
  45 +
  46 +
  47 + /**
  48 + * 关联用户表
  49 + */
  50 + public function User(){
  51 + return $this->belongsTo('user','user_id','id');
  52 + }
  53 +
  54 +
  55 +
  56 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ProductionCollect extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'production_collect';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 +
  33 +
  34 +
  35 +
  36 +
  37 +
  38 +
  39 +
  40 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +use traits\model\SoftDelete;
  7 +
  8 +class ProductionComment extends Model
  9 +{
  10 +
  11 + use SoftDelete;
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'production_comment';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = 'deletetime';
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 +
  33 +
  34 + /**
  35 + * 关联用户表
  36 + */
  37 + public function User(){
  38 + return $this->belongsTo('user','user_id','id');
  39 + }
  40 +
  41 +
  42 + /**
  43 + * 关联用户表
  44 + */
  45 + public function Production(){
  46 + return $this->belongsTo('production','production_id','id');
  47 + }
  48 +
  49 +
  50 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ProductionCommentReport extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'production_comment_report';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text'
  29 + ];
  30 +
  31 +
  32 +
  33 + public function getStatusList()
  34 + {
  35 + return ['0' => __('Status 0'), '1' => __('Status 1')];
  36 + }
  37 +
  38 +
  39 + public function getStatusTextAttr($value, $data)
  40 + {
  41 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  42 + $list = $this->getStatusList();
  43 + return isset($list[$value]) ? $list[$value] : '';
  44 + }
  45 +
  46 +
  47 +
  48 +
  49 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ProductionCommentZan extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'production_comment_zan';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 +
  33 +
  34 +
  35 +
  36 +
  37 +
  38 +
  39 +
  40 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ProductionGiftOrder extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'production_gift_order';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text',
  29 + 'is_custom_text'
  30 + ];
  31 +
  32 +
  33 +
  34 + public function getStatusList()
  35 + {
  36 + return ['0' => __('Status 0'), '1' => __('Status 1')];
  37 + }
  38 +
  39 + public function getIsCustomList()
  40 + {
  41 + return ['0' => __('Is_custom 0'), '1' => __('Is_custom 1')];
  42 + }
  43 +
  44 +
  45 + public function getStatusTextAttr($value, $data)
  46 + {
  47 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  48 + $list = $this->getStatusList();
  49 + return isset($list[$value]) ? $list[$value] : '';
  50 + }
  51 +
  52 +
  53 + public function getIsCustomTextAttr($value, $data)
  54 + {
  55 + $value = $value ? $value : (isset($data['is_custom']) ? $data['is_custom'] : '');
  56 + $list = $this->getIsCustomList();
  57 + return isset($list[$value]) ? $list[$value] : '';
  58 + }
  59 +
  60 +
  61 +
  62 +
  63 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ProductionReport extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'production_report';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text'
  29 + ];
  30 +
  31 +
  32 +
  33 + public function getStatusList()
  34 + {
  35 + return ['0' => __('Status 0'), '1' => __('Status 1')];
  36 + }
  37 +
  38 +
  39 + public function getStatusTextAttr($value, $data)
  40 + {
  41 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  42 + $list = $this->getStatusList();
  43 + return isset($list[$value]) ? $list[$value] : '';
  44 + }
  45 +
  46 +
  47 + /**
  48 + * 关联用户表
  49 + */
  50 + public function Production(){
  51 + return $this->belongsTo('production','production_id','id');
  52 + }
  53 +
  54 +
  55 +
  56 +
  57 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +use traits\model\SoftDelete;
  7 +
  8 +class Treasured extends Model
  9 +{
  10 +
  11 + use SoftDelete;
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'treasured';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = 'deletetime';
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'status_text',
  29 + 'is_audit_text'
  30 + ];
  31 +
  32 +
  33 +
  34 + public function getStatusList()
  35 + {
  36 + return ['0' => __('Status 0'), '1' => __('Status 1'), '2' => __('Status 2')];
  37 + }
  38 +
  39 + public function getIsAuditList()
  40 + {
  41 + return ['0' => __('Is_audit 0'), '1' => __('Is_audit 1'), '2' => __('Is_audit 2')];
  42 + }
  43 +
  44 +
  45 + public function getStatusTextAttr($value, $data)
  46 + {
  47 + $value = $value ? $value : (isset($data['status']) ? $data['status'] : '');
  48 + $list = $this->getStatusList();
  49 + return isset($list[$value]) ? $list[$value] : '';
  50 + }
  51 +
  52 +
  53 + public function getIsAuditTextAttr($value, $data)
  54 + {
  55 + $value = $value ? $value : (isset($data['is_audit']) ? $data['is_audit'] : '');
  56 + $list = $this->getIsAuditList();
  57 + return isset($list[$value]) ? $list[$value] : '';
  58 + }
  59 +
  60 +
  61 +
  62 +
  63 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class TreasuredSize extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'treasured_size';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 + protected static function init()
  33 + {
  34 + self::afterInsert(function ($row) {
  35 + $pk = $row->getPk();
  36 + $row->getQuery()->where($pk, $row[$pk])->update(['weigh' => $row[$pk]]);
  37 + });
  38 + }
  39 +
  40 +
  41 +
  42 +
  43 +
  44 +
  45 +
  46 +
  47 +
  48 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate;
  4 +
  5 +use think\Validate;
  6 +
  7 +class ArticleGiftOrder 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 ExhibitionBanner 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 ExhibitionCollect 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 ExhibitionComment 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 ExhibitionCommentReport 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 ExhibitionGiftOrder 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 ExhibitionPrice 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 ExhibitionReport 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 Gift 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 Production 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 ProductionCollect 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 ProductionComment 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 ProductionCommentReport 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 ProductionCommentZan 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 ProductionGiftOrder 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 ProductionReport 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 Treasured 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 TreasuredSize 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 +}
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 <div class="form-group"> 15 <div class="form-group">
16 <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label> 16 <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
17 <div class="col-xs-12 col-sm-8"> 17 <div class="col-xs-12 col-sm-8">
18 - <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea> 18 + <textarea id="c-content" class="form-control" rows="5" name="row[content]" cols="50"></textarea>
19 </div> 19 </div>
20 </div> 20 </div>
21 <div class="form-group"> 21 <div class="form-group">
@@ -57,6 +57,12 @@ @@ -57,6 +57,12 @@
57 </div> 57 </div>
58 </div> 58 </div>
59 <div class="form-group"> 59 <div class="form-group">
  60 + <label class="control-label col-xs-12 col-sm-2">{:__('Shoucang_num')}:</label>
  61 + <div class="col-xs-12 col-sm-8">
  62 + <input id="c-shoucang_num" class="form-control" name="row[shoucang_num]" type="number" value="0">
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
60 <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label> 66 <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
61 <div class="col-xs-12 col-sm-8"> 67 <div class="col-xs-12 col-sm-8">
62 <input id="c-message" class="form-control" name="row[message]" type="text"> 68 <input id="c-message" class="form-control" name="row[message]" type="text">
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 <div class="form-group"> 15 <div class="form-group">
16 <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label> 16 <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
17 <div class="col-xs-12 col-sm-8"> 17 <div class="col-xs-12 col-sm-8">
18 - <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea> 18 + <textarea id="c-content" class="form-control" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
19 </div> 19 </div>
20 </div> 20 </div>
21 <div class="form-group"> 21 <div class="form-group">
@@ -57,6 +57,12 @@ @@ -57,6 +57,12 @@
57 </div> 57 </div>
58 </div> 58 </div>
59 <div class="form-group"> 59 <div class="form-group">
  60 + <label class="control-label col-xs-12 col-sm-2">{:__('Shoucang_num')}:</label>
  61 + <div class="col-xs-12 col-sm-8">
  62 + <input id="c-shoucang_num" class="form-control" name="row[shoucang_num]" type="number" value="{$row.shoucang_num|htmlentities}">
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
60 <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label> 66 <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
61 <div class="col-xs-12 col-sm-8"> 67 <div class="col-xs-12 col-sm-8">
62 <input id="c-message" class="form-control" name="row[message]" type="text" value="{$row.message|htmlentities}"> 68 <input id="c-message" class="form-control" name="row[message]" type="text" value="{$row.message|htmlentities}">
  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">{:__('Number')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-number" class="form-control" name="row[number]" type="number">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Article_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-article_id" data-rule="required" data-source="article/index" class="form-control selectpage" name="row[article_id]" type="text" value="">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Article_user_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-article_user_id" data-rule="required" data-source="article/user/index" class="form-control selectpage" name="row[article_user_id]" type="text" value="">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <div class="input-group">
  31 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
  32 + <div class="input-group-addon no-border no-padding">
  33 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  34 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  35 + </div>
  36 + <span class="msg-box n-right" for="c-avatar"></span>
  37 + </div>
  38 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-username" class="form-control" name="row[username]" type="text" value="">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  57 + </div>
  58 + </div>
  59 + <div class="form-group">
  60 + <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  61 + <div class="col-xs-12 col-sm-8">
  62 + <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 +
  69 + <div class="radio">
  70 + {foreach name="statusList" item="vo"}
  71 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  72 + {/foreach}
  73 + </div>
  74 +
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_custom')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 +
  81 + <select id="c-is_custom" class="form-control selectpicker" name="row[is_custom]">
  82 + {foreach name="isCustomList" item="vo"}
  83 + <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  84 + {/foreach}
  85 + </select>
  86 +
  87 + </div>
  88 + </div>
  89 + <div class="form-group">
  90 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_id')}:</label>
  91 + <div class="col-xs-12 col-sm-8">
  92 + <input id="c-gift_id" data-rule="required" data-source="gift/index" class="form-control selectpage" name="row[gift_id]" type="text" value="">
  93 + </div>
  94 + </div>
  95 + <div class="form-group">
  96 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_name')}:</label>
  97 + <div class="col-xs-12 col-sm-8">
  98 + <input id="c-gift_name" class="form-control" name="row[gift_name]" type="text">
  99 + </div>
  100 + </div>
  101 + <div class="form-group layer-footer">
  102 + <label class="control-label col-xs-12 col-sm-2"></label>
  103 + <div class="col-xs-12 col-sm-8">
  104 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  105 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  106 + </div>
  107 + </div>
  108 +</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">{:__('Number')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-number" class="form-control" name="row[number]" type="number" value="{$row.number|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Article_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-article_id" data-rule="required" data-source="article/index" class="form-control selectpage" name="row[article_id]" type="text" value="{$row.article_id|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Article_user_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-article_user_id" data-rule="required" data-source="article/user/index" class="form-control selectpage" name="row[article_user_id]" type="text" value="{$row.article_user_id|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <div class="input-group">
  31 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  32 + <div class="input-group-addon no-border no-padding">
  33 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  34 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  35 + </div>
  36 + <span class="msg-box n-right" for="c-avatar"></span>
  37 + </div>
  38 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  57 + </div>
  58 + </div>
  59 + <div class="form-group">
  60 + <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  61 + <div class="col-xs-12 col-sm-8">
  62 + <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 +
  69 + <div class="radio">
  70 + {foreach name="statusList" item="vo"}
  71 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  72 + {/foreach}
  73 + </div>
  74 +
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_custom')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 +
  81 + <select id="c-is_custom" class="form-control selectpicker" name="row[is_custom]">
  82 + {foreach name="isCustomList" item="vo"}
  83 + <option value="{$key}" {in name="key" value="$row.is_custom"}selected{/in}>{$vo}</option>
  84 + {/foreach}
  85 + </select>
  86 +
  87 + </div>
  88 + </div>
  89 + <div class="form-group">
  90 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_id')}:</label>
  91 + <div class="col-xs-12 col-sm-8">
  92 + <input id="c-gift_id" data-rule="required" data-source="gift/index" class="form-control selectpage" name="row[gift_id]" type="text" value="{$row.gift_id|htmlentities}">
  93 + </div>
  94 + </div>
  95 + <div class="form-group">
  96 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_name')}:</label>
  97 + <div class="col-xs-12 col-sm-8">
  98 + <input id="c-gift_name" class="form-control" name="row[gift_name]" type="text" value="{$row.gift_name|htmlentities}">
  99 + </div>
  100 + </div>
  101 + <div class="form-group layer-footer">
  102 + <label class="control-label col-xs-12 col-sm-2"></label>
  103 + <div class="col-xs-12 col-sm-8">
  104 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  105 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  106 + </div>
  107 + </div>
  108 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 +
  3 + <div class="panel-heading">
  4 + {:build_heading(null,FALSE)}
  5 + <ul class="nav nav-tabs" data-field="status">
  6 + <li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
  7 + {foreach name="statusList" item="vo"}
  8 + <li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
  9 + {/foreach}
  10 + </ul>
  11 + </div>
  12 +
  13 +
  14 + <div class="panel-body">
  15 + <div id="myTabContent" class="tab-content">
  16 + <div class="tab-pane fade active in" id="one">
  17 + <div class="widget-body no-padding">
  18 + <div id="toolbar" class="toolbar">
  19 +<!-- <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>-->
  20 +<!-- <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('article_gift_order/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
  21 +<!-- <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('article_gift_order/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
  22 +<!-- <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('article_gift_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
  23 +<!-- <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('article_gift_order/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>-->
  24 +
  25 +<!-- <div class="dropdown btn-group {:$auth->check('article_gift_order/multi')?'':'hide'}">-->
  26 +<!-- <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
  27 +<!-- <ul class="dropdown-menu text-left" role="menu">-->
  28 +<!-- <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>-->
  29 +<!-- <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>-->
  30 +<!-- </ul>-->
  31 +<!-- </div>-->
  32 +
  33 +
  34 + </div>
  35 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  36 + data-operate-edit="{:$auth->check('article_gift_order/edit')}"
  37 + data-operate-del="{:$auth->check('article_gift_order/del')}"
  38 + width="100%">
  39 + </table>
  40 + </div>
  41 + </div>
  42 +
  43 + </div>
  44 + </div>
  45 +</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">{:__('Image')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <div class="input-group">
  7 + <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
  8 + <div class="input-group-addon no-border no-padding">
  9 + <span><button type="button" id="faupload-image" class="btn btn-danger faupload" 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 faupload-preview" id="p-image"></ul>
  15 + </div>
  16 + </div>
  17 + <div class="form-group">
  18 + <label class="control-label col-xs-12 col-sm-2">{:__('Key_id')}:</label>
  19 + <div class="col-xs-12 col-sm-8">
  20 + <input id="c-key_id" data-rule="required" data-source="key/index" class="form-control selectpage" name="row[key_id]" type="text" value="">
  21 + </div>
  22 + </div>
  23 + <div class="form-group">
  24 + <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  25 + <div class="col-xs-12 col-sm-8">
  26 + <input id="c-weigh" class="form-control" name="row[weigh]" type="number">
  27 + </div>
  28 + </div>
  29 + <div class="form-group layer-footer">
  30 + <label class="control-label col-xs-12 col-sm-2"></label>
  31 + <div class="col-xs-12 col-sm-8">
  32 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  33 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  34 + </div>
  35 + </div>
  36 +</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" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  8 + <div class="input-group-addon no-border no-padding">
  9 + <span><button type="button" id="faupload-image" class="btn btn-danger faupload" 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 faupload-preview" id="p-image"></ul>
  15 + </div>
  16 + </div>
  17 + <div class="form-group">
  18 + <label class="control-label col-xs-12 col-sm-2">{:__('Key_id')}:</label>
  19 + <div class="col-xs-12 col-sm-8">
  20 + <input id="c-key_id" data-rule="required" data-source="key/index" class="form-control selectpage" name="row[key_id]" type="text" value="{$row.key_id|htmlentities}">
  21 + </div>
  22 + </div>
  23 + <div class="form-group">
  24 + <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  25 + <div class="col-xs-12 col-sm-8">
  26 + <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  27 + </div>
  28 + </div>
  29 + <div class="form-group layer-footer">
  30 + <label class="control-label col-xs-12 col-sm-2"></label>
  31 + <div class="col-xs-12 col-sm-8">
  32 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  33 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  34 + </div>
  35 + </div>
  36 +</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('exhibition_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('exhibition_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('exhibition_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('exhibition_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('exhibition_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 +
  23 +
  24 + </div>
  25 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  26 + data-operate-edit="{:$auth->check('exhibition_banner/edit')}"
  27 + data-operate-del="{:$auth->check('exhibition_banner/del')}"
  28 + width="100%">
  29 + </table>
  30 + </div>
  31 + </div>
  32 +
  33 + </div>
  34 + </div>
  35 +</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">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="">
  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">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="{$row.exhibition_id|htmlentities}">
  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('exhibition_collect/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('exhibition_collect/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('exhibition_collect/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 + <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('exhibition_collect/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('exhibition_collect/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 +
  23 +
  24 + </div>
  25 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  26 + data-operate-edit="{:$auth->check('exhibition_collect/edit')}"
  27 + data-operate-del="{:$auth->check('exhibition_collect/del')}"
  28 + width="100%">
  29 + </table>
  30 + </div>
  31 + </div>
  32 +
  33 + </div>
  34 + </div>
  35 +</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">{:__('Exhibition_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-content" class="form-control" name="row[content]" type="text">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-pid" class="form-control" name="row[pid]" type="number" value="0">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Zan_num')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <input id="c-zan_num" class="form-control" name="row[zan_num]" type="number">
  31 + </div>
  32 + </div>
  33 + <div class="form-group">
  34 + <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
  35 + <div class="col-xs-12 col-sm-8">
  36 + <input id="c-message" class="form-control" name="row[message]" type="text">
  37 + </div>
  38 + </div>
  39 + <div class="form-group layer-footer">
  40 + <label class="control-label col-xs-12 col-sm-2"></label>
  41 + <div class="col-xs-12 col-sm-8">
  42 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  43 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  44 + </div>
  45 + </div>
  46 +</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">{:__('Exhibition_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="{$row.exhibition_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-pid" class="form-control" name="row[pid]" type="number" value="{$row.pid|htmlentities}">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Zan_num')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <input id="c-zan_num" class="form-control" name="row[zan_num]" type="number" value="{$row.zan_num|htmlentities}">
  31 + </div>
  32 + </div>
  33 + <div class="form-group">
  34 + <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
  35 + <div class="col-xs-12 col-sm-8">
  36 + <input id="c-message" class="form-control" name="row[message]" type="text" value="{$row.message|htmlentities}">
  37 + </div>
  38 + </div>
  39 + <div class="form-group layer-footer">
  40 + <label class="control-label col-xs-12 col-sm-2"></label>
  41 + <div class="col-xs-12 col-sm-8">
  42 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  43 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  44 + </div>
  45 + </div>
  46 +</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('exhibition_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('exhibition_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('exhibition_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('exhibition_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 +
  15 + <div class="dropdown btn-group {:$auth->check('exhibition_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>
  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 +
  23 + <a class="btn btn-success btn-recyclebin btn-dialog {:$auth->check('exhibition_comment/recyclebin')?'':'hide'}" href="exhibition_comment/recyclebin" title="{:__('Recycle bin')}"><i class="fa fa-recycle"></i> {:__('Recycle bin')}</a>
  24 + </div>
  25 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  26 + data-operate-edit="{:$auth->check('exhibition_comment/edit')}"
  27 + data-operate-del="{:$auth->check('exhibition_comment/del')}"
  28 + width="100%">
  29 + </table>
  30 + </div>
  31 + </div>
  32 +
  33 + </div>
  34 + </div>
  35 +</div>
  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 + {:build_toolbar('refresh')}
  10 + <a class="btn btn-info btn-multi btn-disabled disabled {:$auth->check('exhibition_comment/restore')?'':'hide'}" href="javascript:;" data-url="exhibition_comment/restore" data-action="restore"><i class="fa fa-rotate-left"></i> {:__('Restore')}</a>
  11 + <a class="btn btn-danger btn-multi btn-disabled disabled {:$auth->check('exhibition_comment/destroy')?'':'hide'}" href="javascript:;" data-url="exhibition_comment/destroy" data-action="destroy"><i class="fa fa-times"></i> {:__('Destroy')}</a>
  12 + <a class="btn btn-success btn-restoreall {:$auth->check('exhibition_comment/restore')?'':'hide'}" href="javascript:;" data-url="exhibition_comment/restore" title="{:__('Restore all')}"><i class="fa fa-rotate-left"></i> {:__('Restore all')}</a>
  13 + <a class="btn btn-danger btn-destroyall {:$auth->check('exhibition_comment/destroy')?'':'hide'}" href="javascript:;" data-url="exhibition_comment/destroy" title="{:__('Destroy all')}"><i class="fa fa-times"></i> {:__('Destroy all')}</a>
  14 + </div>
  15 + <table id="table" class="table table-striped table-bordered table-hover"
  16 + data-operate-restore="{:$auth->check('exhibition_comment/restore')}"
  17 + data-operate-destroy="{:$auth->check('exhibition_comment/destroy')}"
  18 + width="100%">
  19 + </table>
  20 + </div>
  21 + </div>
  22 +
  23 + </div>
  24 + </div>
  25 +</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">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <div class="input-group">
  13 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
  14 + <div class="input-group-addon no-border no-padding">
  15 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  16 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  17 + </div>
  18 + <span class="msg-box n-right" for="c-avatar"></span>
  19 + </div>
  20 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  21 + </div>
  22 + </div>
  23 + <div class="form-group">
  24 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  25 + <div class="col-xs-12 col-sm-8">
  26 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="">
  27 + </div>
  28 + </div>
  29 + <div class="form-group">
  30 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  31 + <div class="col-xs-12 col-sm-8">
  32 + <input id="c-username" class="form-control" name="row[username]" type="text" value="">
  33 + </div>
  34 + </div>
  35 + <div class="form-group">
  36 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  37 + <div class="col-xs-12 col-sm-8">
  38 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_comment_id')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-exhibition_comment_id" data-rule="required" data-source="exhibition/comment/index" class="form-control selectpage" name="row[exhibition_comment_id]" type="text" value="">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-content" class="form-control" name="row[content]" type="text">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 +
  57 + <div class="radio">
  58 + {foreach name="statusList" item="vo"}
  59 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  60 + {/foreach}
  61 + </div>
  62 +
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 + <input id="c-message" class="form-control" name="row[message]" type="text">
  69 + </div>
  70 + </div>
  71 + <div class="form-group">
  72 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_id')}:</label>
  73 + <div class="col-xs-12 col-sm-8">
  74 + <input id="c-report_type_id" data-rule="required" data-source="report/type/index" class="form-control selectpage" name="row[report_type_id]" type="text" value="">
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_name')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 + <input id="c-report_type_name" class="form-control" name="row[report_type_name]" type="text">
  81 + </div>
  82 + </div>
  83 + <div class="form-group layer-footer">
  84 + <label class="control-label col-xs-12 col-sm-2"></label>
  85 + <div class="col-xs-12 col-sm-8">
  86 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  87 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  88 + </div>
  89 + </div>
  90 +</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">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <div class="input-group">
  13 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  14 + <div class="input-group-addon no-border no-padding">
  15 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  16 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  17 + </div>
  18 + <span class="msg-box n-right" for="c-avatar"></span>
  19 + </div>
  20 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  21 + </div>
  22 + </div>
  23 + <div class="form-group">
  24 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  25 + <div class="col-xs-12 col-sm-8">
  26 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  27 + </div>
  28 + </div>
  29 + <div class="form-group">
  30 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  31 + <div class="col-xs-12 col-sm-8">
  32 + <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  33 + </div>
  34 + </div>
  35 + <div class="form-group">
  36 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  37 + <div class="col-xs-12 col-sm-8">
  38 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_comment_id')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-exhibition_comment_id" data-rule="required" data-source="exhibition/comment/index" class="form-control selectpage" name="row[exhibition_comment_id]" type="text" value="{$row.exhibition_comment_id|htmlentities}">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 +
  57 + <div class="radio">
  58 + {foreach name="statusList" item="vo"}
  59 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  60 + {/foreach}
  61 + </div>
  62 +
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 + <input id="c-message" class="form-control" name="row[message]" type="text" value="{$row.message|htmlentities}">
  69 + </div>
  70 + </div>
  71 + <div class="form-group">
  72 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_id')}:</label>
  73 + <div class="col-xs-12 col-sm-8">
  74 + <input id="c-report_type_id" data-rule="required" data-source="report/type/index" class="form-control selectpage" name="row[report_type_id]" type="text" value="{$row.report_type_id|htmlentities}">
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_name')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 + <input id="c-report_type_name" class="form-control" name="row[report_type_name]" type="text" value="{$row.report_type_name|htmlentities}">
  81 + </div>
  82 + </div>
  83 + <div class="form-group layer-footer">
  84 + <label class="control-label col-xs-12 col-sm-2"></label>
  85 + <div class="col-xs-12 col-sm-8">
  86 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  87 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  88 + </div>
  89 + </div>
  90 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 +
  3 + <div class="panel-heading">
  4 + {:build_heading(null,FALSE)}
  5 + <ul class="nav nav-tabs" data-field="status">
  6 + <li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
  7 + {foreach name="statusList" item="vo"}
  8 + <li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
  9 + {/foreach}
  10 + </ul>
  11 + </div>
  12 +
  13 +
  14 + <div class="panel-body">
  15 + <div id="myTabContent" class="tab-content">
  16 + <div class="tab-pane fade active in" id="one">
  17 + <div class="widget-body no-padding">
  18 + <div id="toolbar" class="toolbar">
  19 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  20 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('exhibition_comment_report/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  21 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('exhibition_comment_report/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  22 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('exhibition_comment_report/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  23 + <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('exhibition_comment_report/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>
  24 +
  25 + <div class="dropdown btn-group {:$auth->check('exhibition_comment_report/multi')?'':'hide'}">
  26 + <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
  27 + <ul class="dropdown-menu text-left" role="menu">
  28 + <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>
  29 + <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>
  30 + </ul>
  31 + </div>
  32 +
  33 +
  34 + </div>
  35 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  36 + data-operate-edit="{:$auth->check('exhibition_comment_report/edit')}"
  37 + data-operate-del="{:$auth->check('exhibition_comment_report/del')}"
  38 + width="100%">
  39 + </table>
  40 + </div>
  41 + </div>
  42 +
  43 + </div>
  44 + </div>
  45 +</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">{:__('Number')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-number" class="form-control" name="row[number]" type="number">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_user_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-exhibition_user_id" data-rule="required" data-source="exhibition/user/index" class="form-control selectpage" name="row[exhibition_user_id]" type="text" value="">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <div class="input-group">
  31 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
  32 + <div class="input-group-addon no-border no-padding">
  33 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  34 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  35 + </div>
  36 + <span class="msg-box n-right" for="c-avatar"></span>
  37 + </div>
  38 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-username" class="form-control" name="row[username]" type="text" value="">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  57 + </div>
  58 + </div>
  59 + <div class="form-group">
  60 + <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  61 + <div class="col-xs-12 col-sm-8">
  62 + <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 +
  69 + <div class="radio">
  70 + {foreach name="statusList" item="vo"}
  71 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  72 + {/foreach}
  73 + </div>
  74 +
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_custom')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 +
  81 + <select id="c-is_custom" class="form-control selectpicker" name="row[is_custom]">
  82 + {foreach name="isCustomList" item="vo"}
  83 + <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  84 + {/foreach}
  85 + </select>
  86 +
  87 + </div>
  88 + </div>
  89 + <div class="form-group">
  90 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_id')}:</label>
  91 + <div class="col-xs-12 col-sm-8">
  92 + <input id="c-gift_id" data-rule="required" data-source="gift/index" class="form-control selectpage" name="row[gift_id]" type="text" value="">
  93 + </div>
  94 + </div>
  95 + <div class="form-group">
  96 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_name')}:</label>
  97 + <div class="col-xs-12 col-sm-8">
  98 + <input id="c-gift_name" class="form-control" name="row[gift_name]" type="text">
  99 + </div>
  100 + </div>
  101 + <div class="form-group layer-footer">
  102 + <label class="control-label col-xs-12 col-sm-2"></label>
  103 + <div class="col-xs-12 col-sm-8">
  104 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  105 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  106 + </div>
  107 + </div>
  108 +</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">{:__('Number')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-number" class="form-control" name="row[number]" type="number" value="{$row.number|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="{$row.exhibition_id|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_user_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-exhibition_user_id" data-rule="required" data-source="exhibition/user/index" class="form-control selectpage" name="row[exhibition_user_id]" type="text" value="{$row.exhibition_user_id|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <div class="input-group">
  31 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  32 + <div class="input-group-addon no-border no-padding">
  33 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  34 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  35 + </div>
  36 + <span class="msg-box n-right" for="c-avatar"></span>
  37 + </div>
  38 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  57 + </div>
  58 + </div>
  59 + <div class="form-group">
  60 + <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  61 + <div class="col-xs-12 col-sm-8">
  62 + <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 +
  69 + <div class="radio">
  70 + {foreach name="statusList" item="vo"}
  71 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  72 + {/foreach}
  73 + </div>
  74 +
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_custom')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 +
  81 + <select id="c-is_custom" class="form-control selectpicker" name="row[is_custom]">
  82 + {foreach name="isCustomList" item="vo"}
  83 + <option value="{$key}" {in name="key" value="$row.is_custom"}selected{/in}>{$vo}</option>
  84 + {/foreach}
  85 + </select>
  86 +
  87 + </div>
  88 + </div>
  89 + <div class="form-group">
  90 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_id')}:</label>
  91 + <div class="col-xs-12 col-sm-8">
  92 + <input id="c-gift_id" data-rule="required" data-source="gift/index" class="form-control selectpage" name="row[gift_id]" type="text" value="{$row.gift_id|htmlentities}">
  93 + </div>
  94 + </div>
  95 + <div class="form-group">
  96 + <label class="control-label col-xs-12 col-sm-2">{:__('Gift_name')}:</label>
  97 + <div class="col-xs-12 col-sm-8">
  98 + <input id="c-gift_name" class="form-control" name="row[gift_name]" type="text" value="{$row.gift_name|htmlentities}">
  99 + </div>
  100 + </div>
  101 + <div class="form-group layer-footer">
  102 + <label class="control-label col-xs-12 col-sm-2"></label>
  103 + <div class="col-xs-12 col-sm-8">
  104 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  105 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  106 + </div>
  107 + </div>
  108 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 +
  3 + <div class="panel-heading">
  4 + {:build_heading(null,FALSE)}
  5 + <ul class="nav nav-tabs" data-field="status">
  6 + <li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
  7 + {foreach name="statusList" item="vo"}
  8 + <li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
  9 + {/foreach}
  10 + </ul>
  11 + </div>
  12 +
  13 +
  14 + <div class="panel-body">
  15 + <div id="myTabContent" class="tab-content">
  16 + <div class="tab-pane fade active in" id="one">
  17 + <div class="widget-body no-padding">
  18 + <div id="toolbar" class="toolbar">
  19 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  20 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('exhibition_gift_order/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  21 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('exhibition_gift_order/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  22 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('exhibition_gift_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  23 + <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('exhibition_gift_order/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>
  24 +
  25 + <div class="dropdown btn-group {:$auth->check('exhibition_gift_order/multi')?'':'hide'}">
  26 + <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
  27 + <ul class="dropdown-menu text-left" role="menu">
  28 + <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>
  29 + <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>
  30 + </ul>
  31 + </div>
  32 +
  33 +
  34 + </div>
  35 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  36 + data-operate-edit="{:$auth->check('exhibition_gift_order/edit')}"
  37 + data-operate-del="{:$auth->check('exhibition_gift_order/del')}"
  38 + width="100%">
  39 + </table>
  40 + </div>
  41 + </div>
  42 +
  43 + </div>
  44 + </div>
  45 +</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">{:__('Day')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-day" class="form-control" name="row[day]" type="number">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-weigh" class="form-control" name="row[weigh]" type="number">
  19 + </div>
  20 + </div>
  21 + <div class="form-group layer-footer">
  22 + <label class="control-label col-xs-12 col-sm-2"></label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  25 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  26 + </div>
  27 + </div>
  28 +</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">{:__('Day')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-day" class="form-control" name="row[day]" type="number" value="{$row.day|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group layer-footer">
  22 + <label class="control-label col-xs-12 col-sm-2"></label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  25 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  26 + </div>
  27 + </div>
  28 +</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('exhibition_price/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('exhibition_price/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('exhibition_price/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 + <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('exhibition_price/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('exhibition_price/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 +
  23 +
  24 + </div>
  25 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  26 + data-operate-edit="{:$auth->check('exhibition_price/edit')}"
  27 + data-operate-del="{:$auth->check('exhibition_price/del')}"
  28 + width="100%">
  29 + </table>
  30 + </div>
  31 + </div>
  32 +
  33 + </div>
  34 + </div>
  35 +</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">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <div class="input-group">
  13 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
  14 + <div class="input-group-addon no-border no-padding">
  15 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  16 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  17 + </div>
  18 + <span class="msg-box n-right" for="c-avatar"></span>
  19 + </div>
  20 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  21 + </div>
  22 + </div>
  23 + <div class="form-group">
  24 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  25 + <div class="col-xs-12 col-sm-8">
  26 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="">
  27 + </div>
  28 + </div>
  29 + <div class="form-group">
  30 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  31 + <div class="col-xs-12 col-sm-8">
  32 + <input id="c-username" class="form-control" name="row[username]" type="text" value="">
  33 + </div>
  34 + </div>
  35 + <div class="form-group">
  36 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  37 + <div class="col-xs-12 col-sm-8">
  38 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_id')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-content" class="form-control" name="row[content]" type="text">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 +
  57 + <div class="radio">
  58 + {foreach name="statusList" item="vo"}
  59 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  60 + {/foreach}
  61 + </div>
  62 +
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 + <input id="c-message" class="form-control" name="row[message]" type="text">
  69 + </div>
  70 + </div>
  71 + <div class="form-group">
  72 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_id')}:</label>
  73 + <div class="col-xs-12 col-sm-8">
  74 + <input id="c-report_type_id" data-rule="required" data-source="report/type/index" class="form-control selectpage" name="row[report_type_id]" type="text" value="">
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_name')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 + <input id="c-report_type_name" class="form-control" name="row[report_type_name]" type="text">
  81 + </div>
  82 + </div>
  83 + <div class="form-group layer-footer">
  84 + <label class="control-label col-xs-12 col-sm-2"></label>
  85 + <div class="col-xs-12 col-sm-8">
  86 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  87 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  88 + </div>
  89 + </div>
  90 +</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">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <div class="input-group">
  13 + <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  14 + <div class="input-group-addon no-border no-padding">
  15 + <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  16 + <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  17 + </div>
  18 + <span class="msg-box n-right" for="c-avatar"></span>
  19 + </div>
  20 + <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  21 + </div>
  22 + </div>
  23 + <div class="form-group">
  24 + <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  25 + <div class="col-xs-12 col-sm-8">
  26 + <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  27 + </div>
  28 + </div>
  29 + <div class="form-group">
  30 + <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  31 + <div class="col-xs-12 col-sm-8">
  32 + <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  33 + </div>
  34 + </div>
  35 + <div class="form-group">
  36 + <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  37 + <div class="col-xs-12 col-sm-8">
  38 + <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  39 + </div>
  40 + </div>
  41 + <div class="form-group">
  42 + <label class="control-label col-xs-12 col-sm-2">{:__('Exhibition_id')}:</label>
  43 + <div class="col-xs-12 col-sm-8">
  44 + <input id="c-exhibition_id" data-rule="required" data-source="exhibition/index" class="form-control selectpage" name="row[exhibition_id]" type="text" value="{$row.exhibition_id|htmlentities}">
  45 + </div>
  46 + </div>
  47 + <div class="form-group">
  48 + <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  49 + <div class="col-xs-12 col-sm-8">
  50 + <input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">
  51 + </div>
  52 + </div>
  53 + <div class="form-group">
  54 + <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  55 + <div class="col-xs-12 col-sm-8">
  56 +
  57 + <div class="radio">
  58 + {foreach name="statusList" item="vo"}
  59 + <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  60 + {/foreach}
  61 + </div>
  62 +
  63 + </div>
  64 + </div>
  65 + <div class="form-group">
  66 + <label class="control-label col-xs-12 col-sm-2">{:__('Message')}:</label>
  67 + <div class="col-xs-12 col-sm-8">
  68 + <input id="c-message" class="form-control" name="row[message]" type="text" value="{$row.message|htmlentities}">
  69 + </div>
  70 + </div>
  71 + <div class="form-group">
  72 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_id')}:</label>
  73 + <div class="col-xs-12 col-sm-8">
  74 + <input id="c-report_type_id" data-rule="required" data-source="report/type/index" class="form-control selectpage" name="row[report_type_id]" type="text" value="{$row.report_type_id|htmlentities}">
  75 + </div>
  76 + </div>
  77 + <div class="form-group">
  78 + <label class="control-label col-xs-12 col-sm-2">{:__('Report_type_name')}:</label>
  79 + <div class="col-xs-12 col-sm-8">
  80 + <input id="c-report_type_name" class="form-control" name="row[report_type_name]" type="text" value="{$row.report_type_name|htmlentities}">
  81 + </div>
  82 + </div>
  83 + <div class="form-group layer-footer">
  84 + <label class="control-label col-xs-12 col-sm-2"></label>
  85 + <div class="col-xs-12 col-sm-8">
  86 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  87 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  88 + </div>
  89 + </div>
  90 +</form>