### 公共頁面模板代碼
```
<!--_meta 作為公共模版分離出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="Bookmark" href="/admin/favicon.ico">
<link rel="Shortcut Icon" href="/admin/favicon.ico"/>
<!--[if lt IE 9]>
<script type="text/javascript" src="/admin/lib/html5.js"></script>
<script type="text/javascript" src="/admin/lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui/css/H-ui.min.css"/>
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/H-ui.admin.css"/>
<link rel="stylesheet" type="text/css" href="/admin/lib/Hui-iconfont/1.0.8/iconfont.css"/>
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/skin/default/skin.css" id="skin"/>
<link rel="stylesheet" type="text/css" href="/admin/static/h-ui.admin/css/style.css"/>
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js"></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<!--/meta 作為公共模版分離出去-->
<title>xxxx系統</title>
</head>
<body>
{include file="common:header" /}
{include file="common:left" /}
<section class="Hui-article-box">
<nav class="breadcrumb"><i class="Hui-iconfont"></i>
<a href="{:url('Index/index')}" class="maincolor">首頁</a>
<span class="c-999 en">></span>
<span class="c-666">我的桌面</span>
<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i>
</a>
</nav>
<div class="Hui-article">
{block name="right"}
<article class="cl pd-20">
<p class="f-20 text-success">歡迎使用后臺</p>
<table class="table table-border table-bordered table-bg">
<thead>
<tr>
<th colspan="7" scope="col">信息統計</th>
</tr>
<tr class="text-c">
<th>統計</th>
<th>資訊庫</th>
<th>圖片庫</th>
<th>產品庫</th>
<th>用戶</th>
<th>管理員</th>
</tr>
</thead>
<tbody>
<tr class="text-c">
<td>總數</td>
<td>92</td>
<td>9</td>
<td>0</td>
<td>8</td>
<td>20</td>
</tr>
<tr class="text-c">
<td>今日</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr class="text-c">
<td>昨日</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr class="text-c">
<td>本周</td>
<td>2</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr class="text-c">
<td>本月</td>
<td>2</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
</article>
{/block}
</div>
</section>
<!--_footer 作為公共模版分離出去-->
<script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/admin/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.page.js"></script>
<!--/_footer /作為公共模版分離出去-->
<!--請在下方寫此頁面業務相關的腳本-->
<script type="text/javascript">
$(function () {
$('.del').click(function () {
var url = $(this).attr('link');
layer.confirm('你確定要此操作嗎?', {
icon: 5,
btn: ['確定', '取消'] //按鈕
}, function () {
$.get(url, function (data) {
if (data.code == 1) {
layer.alert(data.msg, {icon: 6}, function (index) {
layer.close(index);
window.location.reload();
});
} else {
layer.alert(data.msg);
}
});
});
});
$('form').submit(function (e) {
var res = $(this).serialize();
var url = $(this).attr('action');
$.ajax({
url: url,
data: res,
type: 'post',
success: function (data) {
if (data.code == 1) {
layer.alert(data.msg, {icon: 6}, function (index) {
layer.close(index);
window.location.href = "{:url('index')}";
});
} else {
layer.alert(data.msg, {icon: 5}, function (index) {
layer.close(index);
});
}
}
});
return false; // 阻止表單跳轉
});
$('.logout').click(function () {
var url = $(this).attr('link');
layer.confirm('你確定要此操作嗎?', {
icon: 5,
btn: ['確定', '取消'] //按鈕
}, function () {
$.get(url, function (data) {
if (data.code == 1) {
layer.alert(data.msg, {icon: 6}, function (index) {
layer.close(index);
window.location.reload();
});
} else {
layer.alert(data.msg);
}
});
});
});
});
</script>
<!--/請在上方寫此頁面業務相關的腳本-->
</body>
</html>
```
- 序言介紹
- 個人介紹
- sql文件建表語句
- 后端開發
- 后臺登錄
- 后臺登錄頁面
- 后臺登錄控制器代碼
- 驗證器
- 后臺管理員模型
- 商品管理
- 添加商品
- 修改商品
- 刪除商品
- 列表
- 后臺商品控制器
- 后臺商品模型
- 后臺商品驗證碼器
- 拼團活動
- 添加拼團活動
- 修改拼團活動
- 刪除活動
- 活動列表
- 分類管理
- 添加分類
- 修改分類
- 刪除分類
- 分類列表
- 廣告管理
- 添加廣告
- 修改廣告
- 刪除廣告
- 廣告列表
- 訂單管理
- 訂單列表
- 用戶管理
- 用戶列表
- 圖片上傳
- 圖片上傳控制器
- 數據管理
- 導出表格功能
- 后臺首頁
- 首頁控制器
- 后臺首頁模板
- 后臺修改密碼
- 公共頁面
- 公共頭部
- 公共左邊部分
- 后臺公共頁面模板
- api接口文檔目錄
- api-用戶注冊
- api-用戶登錄
- api-用戶中心
- api-用戶基本信息
- api-安全設置
- api-登錄密碼修改
- api-支付密碼修改
- api-拼團
- api-參團
- api-開團
- api-訂單詳情
- api-收貨地址管理
- api-新增收貨地址
- api-修改收貨地址
- api-刪除收貨地址
- api-收貨地址列表
- api-購物車
- api-購物車列表
- api-購物車商品詳情
- api-商城
- api-商品列表
- api-商品詳情
- api-商品分類列表
- 跨域
- app前端開發
- app-會員
- app-注冊
- app-會員登錄
- app-找回密碼
- app-商品
- app-商品列表頁
- app-商品詳情頁
- app-商品分類頁
- app-用戶
- app-個人資料
- app-安全設置
- app-登錄密碼修改頁
- app-支付密碼修改頁
- app-訂單
- app-訂單列表頁面
- app-訂單詳情頁
- app-收貨地址
- app-收貨地址列表
- app-添加收貨地址
- app-修改收貨地址
- app-刪除收貨地址
- app-購物車列表頁
- 全局函數
- 掃碼
- 升級檢查
- 底部導航
- 組件
- 登錄組件
- 登錄組件1
- 注冊組件
- 忘記密碼