代码拉取完成,页面将自动刷新
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link href="assets/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="css/style.css"/>
<link href="assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/ace.min.css"/>
<link rel="stylesheet" href="font/css/font-awesome.min.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="assets/css/ace-ie.min.css"/>
<![endif]-->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/typeahead-bs2.min.js"></script>
<script src="js/lrtk.js" type="text/javascript"></script>
<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
<script src="assets/layer/layer.js" type="text/javascript"></script>
<script src="assets/laydate/laydate.js" type="text/javascript"></script>
<script src="js/H-ui.js" type="text/javascript"></script>
<script src="js/displayPart.js" type="text/javascript"></script>
<title>文章管理</title>
</head>
<body>
<div class="clearfix">
<div class="article_style" id="article_style">
<div id="scrollsidebar" class="left_Treeview">
<div class="show_btn" id="rightArrow"><span></span></div>
<div class="widget-box side_content">
<div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
<div class="side_list">
<div class="widget-header header-color-green2">
<h4 class="lighter smaller">所属文章类</h4>
</div>
<div class="widget-body">
<ul class="b_P_Sort_list">
<li><i class="orange fa fa-list "></i><a href="#">全部(235)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">帮助中心(5)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">常见问题(3)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">客服服务(3)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">购物指南(3)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">配送方式(33)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">支付方式(13)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">特色服务(23)</a></li>
<li><i class="fa fa-newspaper-o pink "></i> <a href="#">售后服务(6)</a></li>
</ul>
</div>
</div>
</div>
</div>
<!--文章列表-->
<div class="Ads_list">
<div class="border clearfix">
<span class="l_f">
<a href="article_add.html" title="添加文章" id="add_page" class="btn btn-warning"><i
class="fa fa-plus"></i> 添加文章</a>
<a href="javascript:ovid()" class="btn btn-danger"><i class="fa fa-trash"></i> 批量删除</a>
</span>
<span class="r_f">共:<b>45</b>条文章</span>
</div>
<div class="article_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
<th width="80px">ID</th>
<th width="80px">排序</th>
<th width="100">所属分类</th>
<th width="220px">标题</th>
<th width="">简介</th>
<th width="150px">添加时间</th>
<th width="80px">状态</th>
<th width="150px">操作</th>
</tr>
</thead>
<tbody>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>12</td>
<td>2</td>
<td>帮助中心</td>
<td> 订单已提交成功,如何付款?</td>
<td class="displayPart" displayLength="60">付款方式分为以下几种:(注:先款订单请您在订单提交后24小时内完成支付, 否则订单会自动取消)</td>
<td>2016-7-25 12:34</td>
<td>显示</td>
<td class="td-manage">
<a title="编辑" onclick="member_edit('编辑','member-add.html','4','','510')" href="javascript:;"
class="btn btn-xs btn-info"><i class="fa fa-edit bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')"
class="btn btn-xs btn-danger"><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>12</td>
<td>3</td>
<td>帮助中心</td>
<td> 我所在的地区支持货到付款吗?</td>
<td class="displayPart" displayLength="60">付款方式分为以下几种:(注:先款订单请您在订单提交后24小时内完成支付, 否则订单会自动取消)</td>
<td>2016-7-25 12:34</td>
<td>未显示</td>
<td class="td-manage">
<a title="编辑" onclick="member_edit('编辑','member-add.html','4','','510')" href="javascript:;"
class="btn btn-xs btn-info"><i class="fa fa-edit bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')"
class="btn btn-xs btn-danger"><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>12</td>
<td>1</td>
<td>帮助中心</td>
<td> 支付方式有哪些?如何支付?</td>
<td class="displayPart" displayLength="60">付款方式分为以下几种:(注:先款订单请您在订单提交后24小时内完成支付, 否则订单会自动取消)</td>
<td>2016-7-25 12:34</td>
<td>待发布</td>
<td class="td-manage">
<a title="编辑" onclick="member_edit('编辑','member-add.html','4','','510')" href="javascript:;"
class="btn btn-xs btn-info"><i class="fa fa-edit bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')"
class="btn btn-xs btn-danger"><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
$(function () {
$(".displayPart").displayPart();
});
//面包屑返回值
var index = parent.layer.getFrameIndex(window.name);
parent.layer.iframeAuto(index);
$('#add_page').on('click', function () {
var cname = $(this).attr("title");
var chref = $(this).attr("href");
var cnames = parent.$('.Current_page').html();
var herf = parent.$("#iframe").attr("src");
parent.$('#parentIframe').html(cname);
parent.$('#iframe').attr("src", chref).ready();
;
parent.$('#parentIframe').css("display", "inline-block");
parent.$('.Current_page').attr({"name": herf, "href": "javascript:void(0)"}).css({
"color": "#4c8fbd",
"cursor": "pointer"
});
//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
parent.layer.close(index);
});
$(function () {
var oTable1 = $('#sample-table').dataTable({
"aaSorting": [[1, "desc"]],//默认第几个排序
"bStateSave": true,//状态保存
"aoColumnDefs": [
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
{"orderable": false, "aTargets": [0, 2, 3, 4, 5, 7,]}// 制定列不参与排序
]
});
$('table th input:checkbox').on('click', function () {
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function () {
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
})
$(function () {
$("#article_style").fix({
float: 'left',
//minStatue : true,
skin: 'green',
durationTime: false,
stylewidth: '220',
spacingw: 30,//设置隐藏时的距离
spacingh: 250,//设置显示时间距
set_scrollsidebar: '.Ads_style',
table_menu: '.Ads_list'
});
});
//初始化宽度、高度
$(".widget-box").height($(window).height());
$(".Ads_list").width($(window).width() - 220);
//当文档窗口发生改变时 触发
$(window).resize(function () {
$(".widget-box").height($(window).height());
$(".Ads_list").width($(window).width() - 220);
});
/*文章-删除*/
function member_del(obj, id) {
layer.confirm('确认要删除吗?', {icon: 0,}, function (index) {
$(obj).parents("tr").remove();
layer.msg('已删除!', {icon: 1, time: 1000});
});
}
</script>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。