115 行
4.5 KiB
HTML
可执行文件
115 行
4.5 KiB
HTML
可执行文件
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>商家管理</title>
|
|
<link href="__PUBLIC__/user/css/base.css" rel="stylesheet">
|
|
<!--<link href="__PUBLIC__/user/css/jquery.validate.unobtrusive.popstyle.css" rel="stylesheet">-->
|
|
<script src="__PUBLIC__/user/js/jquery-2.0.3.min.js"></script>
|
|
<!--<script src="__PUBLIC__/user/js/jquery.validate.js"></script>-->
|
|
<!--<script src="__PUBLIC__/user/js/jquery.validate.unobtrusive.js"></script>-->
|
|
<!--<script src="__PUBLIC__/user/js/jquery.form.js"></script>-->
|
|
<script src="__PUBLIC__/user/js/layer.js"></script>
|
|
<link rel="stylesheet" href="__PUBLIC__/user/css/layer.css?v=3.0.11110" id="layuicss-skinlayercss">
|
|
<!--<script src="__PUBLIC__/user/js/post.loading.js"></script>-->
|
|
</head>
|
|
|
|
<body class="hold-transition skin-blue sidebar-mini" style="cursor: pointer;">
|
|
<link href="__PUBLIC__/user/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="__PUBLIC__/user/css/index.css" rel="stylesheet">
|
|
<link href="__PUBLIC__/user/css/store.css" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
overflow-x: scroll !important;
|
|
}
|
|
.Business_tb1 tr td {
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
<div class="manage" style="height: 78px;">
|
|
<div class="manage_left">
|
|
<div class="Business_lan">
|
|
<a href="{:U('/user/wxconfig/addkeyword')}" addtab="添加"><img src="__PUBLIC__/user/images/yuangongguanli/add1.png">添加</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="Business" style="">
|
|
<div class="Business_tb1">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr>
|
|
<th>索引</th>
|
|
<th>关键字</th>
|
|
<th>回复标题</th>
|
|
<th>图片</th>
|
|
<th>关键字描述</th>
|
|
<th>超链接</th>
|
|
<th>回复样式</th>
|
|
<th>添加时间/修改时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
<volist name="klist" id="clerk">
|
|
<tr>
|
|
<td>{$key+1}</td>
|
|
<td>{$clerk['keyword']}</td>
|
|
<td>{$clerk['name']}</td>
|
|
<if condition="$clerk['type'] eq 1 ">
|
|
<td>纯文本没有图片</td>
|
|
<else />
|
|
<td class="myimg"><img src="{$clerk['pic']}" style="width:100px;"/></td>
|
|
</if>
|
|
|
|
<td>{$clerk['summary']}</td>
|
|
<td><a href="http://{$clerk['url']}" target="_blank">{$clerk['url']}</a> </td>
|
|
<if condition="$clerk['type'] eq 1 "><td>纯文本</td>
|
|
<else /><td>图文</td>
|
|
</if>
|
|
<td>{:date("Y-m-d H-i-sa",$clerk['ctime'])}</td>
|
|
<td>
|
|
<a href="{:U('/user/Wxconfig/editadkeyword')}?id={$clerk['id']}" addtab="编辑" title="编辑"><img src="__PUBLIC__/user/images/yuangongguanli/add_cz3.png"></a>
|
|
<a href="javascript:;" onclick="deletead({$clerk['id']},this)" title="删除"><img src="__PUBLIC__/user/images/yuangongguanli/add_cz4.png"></a>
|
|
</td>
|
|
</tr>
|
|
</volist>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div style="text-align: center;">
|
|
<div id="callBackPager">{$page}</div>
|
|
</div>
|
|
<script>
|
|
var zhu_http = "{:C('zhu_http')}";
|
|
$('.myimg img').on('error',function () {
|
|
var src = $(this).attr('src');
|
|
if(src.indexOf(zhu_http)==-1){
|
|
$(this).attr('src',zhu_http+src);
|
|
}else{
|
|
|
|
}
|
|
|
|
})
|
|
function deletead(id,that) {
|
|
top.layer.confirm('你确定要删除此关键字吗?', function () {
|
|
$.ajax({
|
|
url: "{:U('/user/Wxconfig/delkeyword')}",
|
|
type: 'POST',
|
|
data: {id: id},
|
|
success: function (data) {
|
|
if (data.status==1) {
|
|
layer.msg(data.msg,{icon:1,time: 1000}, function () {
|
|
$(that).parent().parent().remove();
|
|
// window.location.reload();
|
|
})
|
|
}
|
|
else {
|
|
layer.msg(data.msg,{icon:2});
|
|
}
|
|
}
|
|
})
|
|
top.layer.closeAll();
|
|
})
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|