text_img.html
4.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<include file="public/layout" />
<style type="text/css">
.item-title ul {
font-size: 0;
}
.item-title ul li {
font-size: 14px;
vertical-align: middle;
display: inline-block;
*display: inline;
*zoom: 1;
margin-right: 10px;
padding: 5px;
}
.item-title ul li.on,
.item-title ul li:hover {
background-color: #d4d5d5;
}
.flexigrid .bDiv {
overflow: auto;
height: 300px;
}
</style>
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page" style="padding-top: 40px;">
<div class="fixed-bar">
<div class="item-title">
<ul>
<li>文本回复列表</li>
<li class="on">图文回复列表</li>
</ul>
</div>
<div class="flexigrid">
<div class="img ">
<div class="hDiv">
<div class="hDivBox">
<table cellspacing="0" cellpadding="0">
<thead>
<tr>
<th align="left" abbr="order_sn" axis="col3" class="w160">
<div style="text-align: left; " class="">关键词</div>
</th>
<th align="center" abbr="article_time" axis="col6" class="w120">
<div style="text-align: left; " class="">标题</div>
</th>
<th align="center" abbr="article_time" axis="col6" class="w260">
<div style="text-align: left; " class="">描述</div>
</th>
<th align="center" abbr="article_time" axis="col6" class="w200">
<div style="text-align: left; " class="">封面图片</div>
</th>
<th align="center" axis="col1" class="handle w200">
<div style="text-align: center; ">操作</div>
</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="tDiv">
<div class="tDiv2">
<div class="fbutton">
<a href="{:U('Admin/Wechat/add_img')}">
<div class="add" title="添加关键词">
<span><i class="fa fa-plus"></i>添加图文</span>
</div>
</a>
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="bDiv">
<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
<table>
<tbody id="tbody">
<volist name="lists" id="list">
<tr date-id="{$list.id}">
<td align="left" abbr="order_sn" axis="col3" class="w160">
<div style="text-align: left; " class="">{$list.keyword}</div>
</td>
<td align="center" abbr="article_time" axis="col6" class="w120">
<div style="text-align: left; " class="">{$list.title}</div>
</td>
<td align="center" abbr="article_time" axis="col6" class="w260">
<div style="text-align: left;" class="">{$list.desc}</div>
</td>
<td align="center" abbr="article_time" axis="col6" class="w200">
<div style="text-align: left; ">
<a class="btn green" href="javascript:preview('{$list.pic}')"><i class="fa fa-youtube-play"></i>预览</a>
</div>
</td>
<td class='w200' style='text-align:center'>
<a href="javascript:void(0);" thisid="{$list.id}" thiskeyword="{$list.keyword}" onclick="window.parent.select_send(this);" class='btn red'>选择</a>
</td>
</tr>
</volist>
</tbody>
</table>
</div>
<div class="iDiv" style="display: none;"></div>
</div>
<!--分页位置-->
<div class="te_le">
{$page}
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
//菜单切换
$(function() {
$(".item-title ul li").click(function() {
var url = "/index.php/admin/Wechat/text_img";
if ($(this).text() == "文本回复列表") {
url = "/index.php/admin/Wechat/text_txt";
}
location.href = url;
// layer.open({
// type: 2,
// title: '选择关键字',
// shadeClose: true,
// shade: 0.3,
// area: ['96%', '80%'],
// content: url,
// });
});
});
// 删除操作
function del(id, t) {
if (confirm('确定要删除吗?')) {
location.href = $(t).data('href');
}
}
function preview(url) {
layer.open({
type: 1,
title: false,
closeBtn: false,
area: '300px 300px',
skin: 'layui-layer-nobg', //没有背景色
shadeClose: true,
content: "<img src='" + url + "'>"
});
}
</script>
</body>
</html>