更新功能
This commit is contained in:
@@ -25,6 +25,8 @@ function is_administrator() {
|
||||
|
||||
function hook() {}
|
||||
|
||||
function widget() {}
|
||||
|
||||
/**
|
||||
* 获取客户端IP地址
|
||||
* @param integer $type 返回类型 0 返回IP地址 1 返回IPV4地址数字
|
||||
|
||||
@@ -76,6 +76,7 @@ class Database extends Admin {
|
||||
$this->assign('list', $list);
|
||||
return $this->fetch($type);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 优化表
|
||||
* @param String $tables 表名
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\admin;
|
||||
|
||||
namespace app\admin\controller;
|
||||
use app\common\controller\Admin;
|
||||
use app\controller\Admin;
|
||||
use app\model\Form as FormM;
|
||||
|
||||
/**
|
||||
* @title 自定义表单
|
||||
@@ -16,33 +17,20 @@ use app\common\controller\Admin;
|
||||
*/
|
||||
class Form extends Admin {
|
||||
|
||||
public function _initialize() {
|
||||
parent::_initialize();
|
||||
$this->model = model('Form');
|
||||
$this->Fattr = model('FormAttr');
|
||||
//遍历属性列表
|
||||
foreach (get_attribute_type() as $key => $value) {
|
||||
$this->attr[$key] = $value[0];
|
||||
}
|
||||
$this->field = $this->getField();
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 表单列表
|
||||
*/
|
||||
public function index() {
|
||||
$map = array();
|
||||
$map = [];
|
||||
|
||||
$order = "id desc";
|
||||
$list = $this->model->where($map)->order($order)->paginate(25, false, array(
|
||||
'query' => $this->request->param()
|
||||
));
|
||||
|
||||
$data = array(
|
||||
$list = FormM::where($map)->order($order)->paginate($this->request->pageConfig);
|
||||
|
||||
$this->data = [
|
||||
'list' => $list,
|
||||
'page' => $list->render(),
|
||||
);
|
||||
$this->setMeta('自定义表单');
|
||||
$this->assign($data);
|
||||
];
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ class Index extends Admin {
|
||||
\think\Log::clear();
|
||||
}
|
||||
}
|
||||
return $this->success("更新成功!", url('admin/index/index'));
|
||||
return $this->success("更新成功!", url('/admin/index/index'));
|
||||
} else {
|
||||
$keylist = array(
|
||||
array('name' => 'clear', 'title' => '更新缓存', 'type' => 'checkbox', 'help' => '', 'option' => array(
|
||||
|
||||
@@ -43,7 +43,9 @@ class Menu extends Admin {
|
||||
/**
|
||||
* @title 编辑菜单字段
|
||||
*/
|
||||
public function editable($name = null, $value = null, $pk = null) {
|
||||
public function editable() {
|
||||
$data = $this->request->param();
|
||||
|
||||
if ($name && ($value != null || $value != '') && $pk) {
|
||||
db('Menu')->where(array('id' => $pk))->setField($name, $value);
|
||||
}
|
||||
@@ -67,18 +69,20 @@ class Menu extends Admin {
|
||||
return $this->error('新增失败');
|
||||
}
|
||||
} else {
|
||||
$this->assign('info', array('pid' => input('pid')));
|
||||
$menus = db('Menu')->select();
|
||||
$tree = new \com\Tree();
|
||||
$menus = MenuM::select()->toArray();
|
||||
|
||||
$tree = new \sent\tree\Tree();
|
||||
$menus = $tree->toFormatTree($menus);
|
||||
|
||||
if (!empty($menus)) {
|
||||
$menus = array_merge(array(0 => array('id' => 0, 'title_show' => '顶级菜单')), $menus);
|
||||
} else {
|
||||
$menus = array(0 => array('id' => 0, 'title_show' => '顶级菜单'));
|
||||
}
|
||||
|
||||
$this->assign('Menus', $menus);
|
||||
$this->setMeta('新增菜单');
|
||||
$this->data = [
|
||||
'info' => ['pid' => $this->request->param('pid', 0)],
|
||||
'Menus' => $menus
|
||||
];
|
||||
return $this->fetch('edit');
|
||||
}
|
||||
}
|
||||
@@ -89,31 +93,34 @@ class Menu extends Admin {
|
||||
*/
|
||||
public function edit($id = 0) {
|
||||
if ($this->request->isPost()) {
|
||||
$Menu = model('Menu');
|
||||
$data = input('post.');
|
||||
if ($Menu->save($data, array('id' => $data['id'])) !== false) {
|
||||
session('admin_menu_list', null);
|
||||
//记录行为
|
||||
action_log('update_menu', 'Menu', $data['id'], session('user_auth.uid'));
|
||||
return $this->success('更新成功', Cookie('__forward__'));
|
||||
$data = $this->request->post();
|
||||
|
||||
$result = MenuM::update($data, ['id' => $data['id']]);
|
||||
|
||||
if (false !== $result) {
|
||||
return $this->success('更新成功', '/admin/menu/index');
|
||||
} else {
|
||||
return $this->error('更新失败');
|
||||
}
|
||||
} else {
|
||||
$info = array();
|
||||
$info = [];
|
||||
/* 获取数据 */
|
||||
$info = db('Menu')->field(true)->find($id);
|
||||
$menus = db('Menu')->field(true)->select();
|
||||
$tree = new \com\Tree();
|
||||
$info = MenuM::find($id);
|
||||
|
||||
$menus = MenuM::select()->toArray();
|
||||
|
||||
$tree = new \sent\tree\Tree();
|
||||
$menus = $tree->toFormatTree($menus);
|
||||
|
||||
$menus = array_merge(array(0 => array('id' => 0, 'title_show' => '顶级菜单')), $menus);
|
||||
$this->assign('Menus', $menus);
|
||||
if (false === $info) {
|
||||
return $this->error('获取后台菜单信息错误');
|
||||
}
|
||||
$this->assign('info', $info);
|
||||
$this->setMeta('编辑后台菜单');
|
||||
|
||||
$this->data = [
|
||||
'Menus' => $menus,
|
||||
'info' => $info
|
||||
];
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,41 +6,32 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\controller\admin;
|
||||
|
||||
use app\controller\Admin;
|
||||
use app\model\SeoRule;
|
||||
use app\model\Rewrite;
|
||||
|
||||
/**
|
||||
* @title SEO管理
|
||||
*/
|
||||
class Seo extends Admin {
|
||||
|
||||
protected $seo;
|
||||
protected $rewrite;
|
||||
|
||||
public function _initialize() {
|
||||
parent::_initialize();
|
||||
$this->seo = model('SeoRule');
|
||||
$this->rewrite = model('Rewrite');
|
||||
}
|
||||
|
||||
/**
|
||||
* @title SEO列表
|
||||
*/
|
||||
public function index($page = 1, $r = 20) {
|
||||
$map = [];
|
||||
|
||||
//读取规则列表
|
||||
$map = array('status' => array('EGT', 0));
|
||||
$map[] = ['status', '>=', 0];
|
||||
|
||||
$list = $this->seo->where($map)->order('sort asc')->paginate(10, false, array(
|
||||
'query' => $this->request->param(),
|
||||
));
|
||||
$list = SeoRule::where($map)->order('sort asc')->paginate($this->request->pageConfig);
|
||||
|
||||
$data = array(
|
||||
$this->data = [
|
||||
'list' => $list,
|
||||
'page' => $list->render(),
|
||||
);
|
||||
$this->assign($data);
|
||||
$this->setMeta("规则列表");
|
||||
];
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
@@ -111,14 +102,14 @@ class Seo extends Admin {
|
||||
* @title 伪静态列表
|
||||
*/
|
||||
public function rewrite() {
|
||||
$list = db('Rewrite')->paginate(10);
|
||||
$map = [];
|
||||
|
||||
$data = array(
|
||||
$list = Rewrite::where($map)->paginate($this->request->pageConfig);
|
||||
|
||||
$this->data = [
|
||||
'list' => $list,
|
||||
'page' => $list->render(),
|
||||
);
|
||||
$this->assign($data);
|
||||
$this->setMeta("路由规则");
|
||||
];
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class Admin {
|
||||
$request->pageConfig = array(
|
||||
'list_rows' => $request->param('limit', 20),
|
||||
'page' => $request->param('page', 1),
|
||||
'query' => $request->param()
|
||||
);
|
||||
|
||||
$response = $next($request);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace app\model;
|
||||
/**
|
||||
* 表单
|
||||
*/
|
||||
class Form {
|
||||
class Form extends \think\Model {
|
||||
|
||||
protected $auto = ['update_time'];
|
||||
protected $insert = ['name', 'create_time', 'status' => 1, 'list_grid' => "id:ID\r\ntitle:标题\r\ncreate_time:添加时间|time_format\r\nupdate_time:更新时间|time_format"];
|
||||
@@ -34,53 +34,53 @@ class Form {
|
||||
array('name' => 'list_grid', 'title' => '列表定义', 'type' => 'textarea', 'help' => ''),
|
||||
);
|
||||
|
||||
protected static function init() {
|
||||
self::beforeInsert(function ($event) {
|
||||
$data = $event->toArray();
|
||||
$tablename = 'form_' . strtolower($data['name']);
|
||||
//实例化一个数据库操作类
|
||||
$db = new \com\Datatable();
|
||||
//检查表是否存在并创建
|
||||
if (!$db->CheckTable($tablename)) {
|
||||
//创建新表
|
||||
return $db->initTable($tablename, $data['title'], 'id')->query();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
self::afterInsert(function ($event) {
|
||||
$data = $event->toArray();
|
||||
// protected static function init() {
|
||||
// self::beforeInsert(function ($event) {
|
||||
// $data = $event->toArray();
|
||||
// $tablename = 'form_' . strtolower($data['name']);
|
||||
// //实例化一个数据库操作类
|
||||
// $db = new \com\Datatable();
|
||||
// //检查表是否存在并创建
|
||||
// if (!$db->CheckTable($tablename)) {
|
||||
// //创建新表
|
||||
// return $db->initTable($tablename, $data['title'], 'id')->query();
|
||||
// } else {
|
||||
// return false;
|
||||
// }
|
||||
// });
|
||||
// self::afterInsert(function ($event) {
|
||||
// $data = $event->toArray();
|
||||
|
||||
$fields = include (APP_PATH . 'admin/fields.php');
|
||||
if (!empty($fields)) {
|
||||
foreach ($fields as $key => $value) {
|
||||
if (in_array($key, array('uid', 'status', 'view', 'create_time', 'update_time'))) {
|
||||
$fields[$key]['form_id'] = $data['id'];
|
||||
} else {
|
||||
unset($fields[$key]);
|
||||
}
|
||||
}
|
||||
model('FormAttr')->saveAll($fields);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
// self::beforeUpdate(function($event){
|
||||
// $data = $event->toArray();
|
||||
// if (isset($data['attribute_sort']) && $data['attribute_sort']) {
|
||||
// $attribute_sort = json_decode($data['attribute_sort'], true);
|
||||
// $fields = include (APP_PATH . 'admin/fields.php');
|
||||
// if (!empty($fields)) {
|
||||
// foreach ($fields as $key => $value) {
|
||||
// if (in_array($key, array('uid', 'status', 'view', 'create_time', 'update_time'))) {
|
||||
// $fields[$key]['form_id'] = $data['id'];
|
||||
// } else {
|
||||
// unset($fields[$key]);
|
||||
// }
|
||||
// }
|
||||
// model('FormAttr')->saveAll($fields);
|
||||
// }
|
||||
// return true;
|
||||
// });
|
||||
// // self::beforeUpdate(function($event){
|
||||
// // $data = $event->toArray();
|
||||
// // if (isset($data['attribute_sort']) && $data['attribute_sort']) {
|
||||
// // $attribute_sort = json_decode($data['attribute_sort'], true);
|
||||
|
||||
// if (!empty($attribute_sort)) {
|
||||
// foreach ($attribute_sort as $key => $value) {
|
||||
// db('FormAttr')->where('id', 'IN', $value)->setField('group_id', $key);
|
||||
// foreach ($value as $k => $v) {
|
||||
// db('FormAttr')->where('id', $v)->setField('sort', $k);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return true;
|
||||
// });
|
||||
}
|
||||
// // if (!empty($attribute_sort)) {
|
||||
// // foreach ($attribute_sort as $key => $value) {
|
||||
// // db('FormAttr')->where('id', 'IN', $value)->setField('group_id', $key);
|
||||
// // foreach ($value as $k => $v) {
|
||||
// // db('FormAttr')->where('id', $v)->setField('sort', $k);
|
||||
// // }
|
||||
// // }
|
||||
// // }
|
||||
// // }
|
||||
// // return true;
|
||||
// // });
|
||||
// }
|
||||
|
||||
public function getStatusTextAttr($value, $data) {
|
||||
$status = array(
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace app\model;
|
||||
/**
|
||||
* 伪静态
|
||||
*/
|
||||
class Rewrite {
|
||||
class Rewrite extends \think\Model {
|
||||
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace app\model;
|
||||
/**
|
||||
* 用户模型
|
||||
*/
|
||||
class SeoRule {
|
||||
class SeoRule extends \think\Model {
|
||||
|
||||
public $keyList = array(
|
||||
array('name' => 'id', 'title' => '标识', 'type' => 'hidden'),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{extend name="admin/public/base"/}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
|
||||
<link rel="stylesheet" type="text/css" href="__static__/common/css/bootstrap-editable.css">
|
||||
{/block}
|
||||
{block name="body"}
|
||||
<div class="main-box clearfix">
|
||||
@@ -51,7 +51,7 @@
|
||||
</div>
|
||||
{/block}
|
||||
{block name="script"}
|
||||
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-editable.min.js"></script>
|
||||
<script type="text/javascript" src="__static__/common/js/bootstrap-editable.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
//点击排序
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{extend name="admin/public/base"/}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
|
||||
<link rel="stylesheet" type="text/css" href="__static__/common/css/bootstrap-editable.css">
|
||||
{/block}
|
||||
{block name="body"}
|
||||
<div class="main-box clearfix">
|
||||
|
||||
@@ -40,9 +40,9 @@
|
||||
<div class="form-group">
|
||||
<label class="col-lg-2 control-label">上级菜单</label>
|
||||
<div class="col-lg-10">
|
||||
<select name="pid" class="form-control" style="width: 50%">
|
||||
<select name="pid" class="form-control" style="width: auto;">
|
||||
{volist name="Menus" id="menu"}
|
||||
<option value="{$menu['id']}" {if $info['pid'] == $menu['id']}selected{/if}>{$menu.title_show}</option>
|
||||
<option value="{$menu['id']}" {if $info['pid'] == $menu['id']}selected{/if}>{$menu.title_show|raw}</option>
|
||||
{/volist}
|
||||
</select>
|
||||
<span class="help-block">(所属的上级菜单)</span>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<span class="input-group-btn"><a class="btn btn-default" href="javascript:;" id="search" url="__SELF__"><i class="icon-search"></i></a></span>
|
||||
</div>
|
||||
</div> -->
|
||||
<a class="btn btn-primary" href="{:url('/admin/menu/add',array('pid'=>input('get.pid',0)))}">新 增</a>
|
||||
<a class="btn btn-primary" href="{:url('/admin/menu/add',['pid'=>input('get.pid',0)])}">新 增</a>
|
||||
<button class="btn btn-danger ajax-post confirm" url="{:url('/admin/menu/del')}" target-form="ids">删 除</button>
|
||||
<a class="btn btn-success" href="{:url('/admin/menu/import',array('pid'=>input('get.pid',0)))}">导 入</a>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<td>
|
||||
{$menu['level_show']|raw}
|
||||
<a href="#" class="editable editable-click" data-id="{$menu['id']}" data-name="title" data-type="text" data-pk="{$menu['id']}" data-url="{:url('/admin/menu/editable')}">{$menu['title']}</a>
|
||||
<a class="add-sub-cate" title="添加子分类" href="{:url('/admin/menu/add?pid='.$menu['id'])}">
|
||||
<a class="add-sub-cate" title="添加子分类" href="{:url('/admin/menu/add', ['pid' => $menu['id']])}">
|
||||
<i class="fa fa-plus-square"></i>
|
||||
</a>
|
||||
</td>
|
||||
@@ -72,8 +72,8 @@
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a title="编辑" href="{:url('/admin/menu/edit?id='.$menu['id'])}">编辑</a>
|
||||
<a class="confirm ajax-get" title="删除" href="{:url('/admin/menu/del?id='.$menu['id'])}">删除</a>
|
||||
<a title="编辑" href="{:url('/admin/menu/edit', ['id' =>$menu['id']])}">编辑</a>
|
||||
<a class="confirm ajax-get" title="删除" href="{:url('/admin/menu/del', ['id' =>$menu['id']])}">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/volist}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="{:url('Index/index')}" id="logo" class="navbar-brand">
|
||||
<a href="{:url('admin.index/index')}" id="logo" class="navbar-brand">
|
||||
<img src="__static__/common/images/logo.png" alt="" class="normal-logo logo-white"/>
|
||||
</a>
|
||||
<ul class="nav navbar-nav pull-right visible-xs">
|
||||
@@ -131,7 +131,7 @@
|
||||
<ul class="submenu">
|
||||
{volist name="item['_child']" id="vo" key="k"}
|
||||
<li class="{$vo['style']}">
|
||||
<a href="{$vo['url']|url}">
|
||||
<a href="{$vo['url']}">
|
||||
<i class="fa fa-{$vo['icon']|default='file'}"></i>
|
||||
<span>{$vo['title']}</span>
|
||||
</a>
|
||||
@@ -141,7 +141,7 @@
|
||||
</li>
|
||||
{else/}
|
||||
<li class="{$item['style']}">
|
||||
<a href="{$item['url']|url}">
|
||||
<a href="{$item['url']}">
|
||||
<i class="fa fa-{$item['icon']|default='file'}"></i>
|
||||
<span>{$item['title']}</span>
|
||||
</a>
|
||||
@@ -154,7 +154,7 @@
|
||||
{if is_string($key)}<li class="nav-header hidden-sm hidden-xs">{$key}</li>{/if}
|
||||
{volist name="sub" id="item"}
|
||||
<li class="{$item['style']}">
|
||||
<a href="{$item['url']|url}">
|
||||
<a href="{$item['url']}">
|
||||
<i class="fa fa-{$item['icon']|default='file'}"></i>
|
||||
<span>{$item['title']}</span>
|
||||
</a>
|
||||
@@ -178,7 +178,7 @@
|
||||
<div class="pull-left">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="{:url('Admin/Index/index')}">后台首页</a>
|
||||
<a href="{:url('/admin/index/index')}">后台首页</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
{if $meta_title}
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{extend name="admin/public/base"/}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" href="__PUBLIC__/plugs/tagsinput/bootstrap-tagsinput.css">
|
||||
<script src="__PUBLIC__/plugs/tagsinput/bootstrap-tagsinput.js"></script>
|
||||
<link rel="stylesheet" href="__static__/plugins/tagsinput/bootstrap-tagsinput.css">
|
||||
<script src="__static__/plugins/tagsinput/bootstrap-tagsinput.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugs/webuploader/webuploader.css">
|
||||
<link rel="stylesheet" type="text/css" href="__static__/plugins/webuploader/webuploader.css">
|
||||
<!-- 配置文件 -->
|
||||
<script type="text/javascript" src="__PUBLIC__/plugs/ueditor/ueditor.config.js"></script>
|
||||
<script type="text/javascript" src="__static__/plugins/ueditor/ueditor.config.js"></script>
|
||||
<!-- 编辑器源码文件 -->
|
||||
<script type="text/javascript" src="__PUBLIC__/plugs/ueditor/ueditor.all.min.js"></script>
|
||||
<script type="text/javascript" src="__static__/plugins/ueditor/ueditor.all.min.js"></script>
|
||||
<!-- datepicker statr -->
|
||||
<link href="__PUBLIC__/plugs/datepicker/css/foundation-datepicker.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="__PUBLIC__/plugs/datepicker/js/foundation-datepicker.js"></script>
|
||||
<script src="__PUBLIC__/plugs/datepicker/js/foundation-datepicker.zh-CN.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugs/board/board.min.css">
|
||||
<link href="__static__/plugins/datepicker/css/foundation-datepicker.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="__static__/plugins/datepicker/js/foundation-datepicker.js"></script>
|
||||
<script src="__static__/plugins/datepicker/js/foundation-datepicker.zh-CN.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="__static__/plugins/board/board.min.css">
|
||||
<!-- datepicker end -->
|
||||
{/block}
|
||||
{block name="body"}
|
||||
@@ -81,8 +81,8 @@
|
||||
</div>
|
||||
{/block}
|
||||
{block name="script"}
|
||||
<script type="text/javascript" src="__PUBLIC__/plugs/webuploader/webuploader.min.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/plugs/webuploader/webuploader.custom.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/js/droppable.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/plugs/board/board.min.js"></script>
|
||||
<script type="text/javascript" src="__static__/plugins/webuploader/webuploader.min.js"></script>
|
||||
<script type="text/javascript" src="__static__/plugins/webuploader/webuploader.custom.js"></script>
|
||||
<script type="text/javascript" src="__static__/common/js/droppable.js"></script>
|
||||
<script type="text/javascript" src="__static__/plugins/board/board.min.js"></script>
|
||||
{/block}
|
||||
@@ -1,6 +1,6 @@
|
||||
{extend name="admin/public/base"/}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
|
||||
<link rel="stylesheet" type="text/css" href="__static__/common/css/bootstrap-editable.css">
|
||||
{/block}
|
||||
{block name="body"}
|
||||
<div class="main-box clearfix">
|
||||
@@ -51,7 +51,7 @@
|
||||
{/block}
|
||||
|
||||
{block name="script"}
|
||||
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-editable.min.js"></script>
|
||||
<script type="text/javascript" src="__static__/common/js/bootstrap-editable.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
//点击排序
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{extend name="admin/public/base"/}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
|
||||
<link rel="stylesheet" type="text/css" href="__static__/common/css/bootstrap-editable.css">
|
||||
{/block}
|
||||
{block name="body"}
|
||||
<div class="main-box clearfix">
|
||||
|
||||
Reference in New Issue
Block a user