Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5118232e
authored
2018-03-10 22:16:59 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
ef4e50d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
214 additions
and
136 deletions
application/views/common/header.php
application/views/welcome/index.php
application/views/common/header.php
View file @
5118232
...
...
@@ -10,4 +10,8 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/resource/static/h-ui.admin/css/H-ui.admin.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/resource/lib/Hui-iconfont/1.0.8/iconfont.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/resource/static/h-ui.admin/skin/default/skin.css"
id=
"skin"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/resource/static/h-ui.admin/css/style.css"
/>
\ No newline at end of file
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/resource/static/h-ui.admin/css/style.css"
/>
<meta
name=
"keywords"
content=
""
>
<meta
name=
"description"
content=
""
>
<title>
Page
</title>
</head>
...
...
application/views/welcome/index.php
View file @
5118232
<?php
$this
->
load
->
view
(
'common/header'
);
$this
->
load
->
view
(
'common/header'
);
?>
<title>
资讯列表
</title>
</head>
<body>
<nav
class=
"breadcrumb"
><i
class=
"Hui-iconfont"
>

</i>
首页
<span
class=
"c-gray en"
>
>
</span>
资讯管理
<span
class=
"c-gray en"
>
>
</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=
"page-container"
>
<div
class=
"text-c"
>
<button
onclick=
"removeIframe()"
class=
"btn btn-primary radius"
>
关闭选项卡
</button>
<span
class=
"select-box inline"
>
<select
name=
""
class=
"select"
>
<option
value=
"0"
>
全部分类
</option>
<option
value=
"1"
>
分类一
</option>
<option
value=
"2"
>
分类二
</option>
</select>
</span>
日期范围:
<input
type=
"text"
onfocus=
"WdatePicker({ maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}' })"
id=
"logmin"
class=
"input-text Wdate"
style=
"width:120px;"
>
-
<input
type=
"text"
onfocus=
"WdatePicker({ minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d' })"
id=
"logmax"
class=
"input-text Wdate"
style=
"width:120px;"
>
<input
type=
"text"
name=
""
id=
""
placeholder=
" 资讯名称"
style=
"width:250px"
class=
"input-text"
>
<button
name=
""
id=
""
class=
"btn btn-success"
type=
"submit"
><i
class=
"Hui-iconfont"
>

</i>
搜资讯
</button>
<header
class=
"navbar-wrapper"
>
<div
class=
"navbar navbar-fixed-top"
>
<div
class=
"container-fluid cl"
>
<a
class=
"logo navbar-logo f-l mr-10 hidden-xs"
href=
"/aboutHui.shtml"
>
H-ui.admin
</a>
<a
class=
"logo navbar-logo-m f-l mr-10 visible-xs"
href=
"/aboutHui.shtml"
>
H-ui
</a>
<span
class=
"logo navbar-slogan f-l mr-10 hidden-xs"
>
v3.1
</span>
<a
aria-hidden=
"false"
class=
"nav-toggle Hui-iconfont visible-xs"
href=
"javascript:;"
>

</a>
<nav
class=
"nav navbar-nav"
>
<ul
class=
"cl"
>
<li
class=
"dropDown dropDown_hover"
><a
href=
"javascript:;"
class=
"dropDown_A"
><i
class=
"Hui-iconfont"
>

</i>
新增
<i
class=
"Hui-iconfont"
>

</i></a>
<ul
class=
"dropDown-menu menu radius box-shadow"
>
<li><a
href=
"javascript:;"
onclick=
"article_add('添加资讯','article-add.html')"
><i
class=
"Hui-iconfont"
>

</i>
资讯
</a></li>
<li><a
href=
"javascript:;"
onclick=
"picture_add('添加资讯','picture-add.html')"
><i
class=
"Hui-iconfont"
>

</i>
图片
</a></li>
<li><a
href=
"javascript:;"
onclick=
"product_add('添加资讯','product-add.html')"
><i
class=
"Hui-iconfont"
>

</i>
产品
</a></li>
<li><a
href=
"javascript:;"
onclick=
"member_add('添加用户','member-add.html','','510')"
><i
class=
"Hui-iconfont"
>

</i>
用户
</a></li>
</ul>
</li>
</ul>
</nav>
<nav
id=
"Hui-userbar"
class=
"nav navbar-nav navbar-userbar hidden-xs"
>
<ul
class=
"cl"
>
<li>
超级管理员
</li>
<li
class=
"dropDown dropDown_hover"
>
<a
href=
"#"
class=
"dropDown_A"
>
admin
<i
class=
"Hui-iconfont"
>

</i></a>
<ul
class=
"dropDown-menu menu radius box-shadow"
>
<li><a
href=
"javascript:;"
onClick=
"myselfinfo()"
>
个人信息
</a></li>
<li><a
href=
"#"
>
切换账户
</a></li>
<li><a
href=
"#"
>
退出
</a></li>
</ul>
</li>
<li
id=
"Hui-msg"
>
<a
href=
"#"
title=
"消息"
><span
class=
"badge badge-danger"
>
1
</span><i
class=
"Hui-iconfont"
style=
"font-size:18px"
>

</i></a>
</li>
<li
id=
"Hui-skin"
class=
"dropDown right dropDown_hover"
>
<a
href=
"javascript:;"
class=
"dropDown_A"
title=
"换肤"
><i
class=
"Hui-iconfont"
style=
"font-size:18px"
>

</i></a>
<ul
class=
"dropDown-menu menu radius box-shadow"
>
<li><a
href=
"javascript:;"
data-val=
"default"
title=
"默认(黑色)"
>
默认(黑色)
</a></li>
<li><a
href=
"javascript:;"
data-val=
"blue"
title=
"蓝色"
>
蓝色
</a></li>
<li><a
href=
"javascript:;"
data-val=
"green"
title=
"绿色"
>
绿色
</a></li>
<li><a
href=
"javascript:;"
data-val=
"red"
title=
"红色"
>
红色
</a></li>
<li><a
href=
"javascript:;"
data-val=
"yellow"
title=
"黄色"
>
黄色
</a></li>
<li><a
href=
"javascript:;"
data-val=
"orange"
title=
"橙色"
>
橙色
</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</header>
<aside
class=
"Hui-aside"
>
<div
class=
"menu_dropdown bk_2"
>
<dl
id=
"menu-article"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
资讯管理
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"article-list.html"
data-title=
"资讯管理"
href=
"javascript:void(0)"
>
资讯管理
</a></li>
</ul>
</dd>
</dl>
<dl
id=
"menu-picture"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
图片管理
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"picture-list.html"
data-title=
"图片管理"
href=
"javascript:void(0)"
>
图片管理
</a></li>
</ul>
</dd>
</dl>
<dl
id=
"menu-product"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
产品管理
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"product-brand.html"
data-title=
"品牌管理"
href=
"javascript:void(0)"
>
品牌管理
</a></li>
<li><a
data-href=
"product-category.html"
data-title=
"分类管理"
href=
"javascript:void(0)"
>
分类管理
</a></li>
<li><a
data-href=
"product-list.html"
data-title=
"产品管理"
href=
"javascript:void(0)"
>
产品管理
</a></li>
</ul>
</dd>
</dl>
<dl
id=
"menu-comments"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
评论管理
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"http://h-ui.duoshuo.com/admin/"
data-title=
"评论列表"
href=
"javascript:;"
>
评论列表
</a></li>
<li><a
data-href=
"feedback-list.html"
data-title=
"意见反馈"
href=
"javascript:void(0)"
>
意见反馈
</a></li>
</ul>
</dd>
</dl>
<dl
id=
"menu-member"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
会员管理
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"member-list.html"
data-title=
"会员列表"
href=
"javascript:;"
>
会员列表
</a></li>
<li><a
data-href=
"member-del.html"
data-title=
"删除的会员"
href=
"javascript:;"
>
删除的会员
</a></li>
<li><a
data-href=
"member-level.html"
data-title=
"等级管理"
href=
"javascript:;"
>
等级管理
</a></li>
<li><a
data-href=
"member-scoreoperation.html"
data-title=
"积分管理"
href=
"javascript:;"
>
积分管理
</a></li>
<li><a
data-href=
"member-record-browse.html"
data-title=
"浏览记录"
href=
"javascript:void(0)"
>
浏览记录
</a></li>
<li><a
data-href=
"member-record-download.html"
data-title=
"下载记录"
href=
"javascript:void(0)"
>
下载记录
</a></li>
<li><a
data-href=
"member-record-share.html"
data-title=
"分享记录"
href=
"javascript:void(0)"
>
分享记录
</a></li>
</ul>
</dd>
</dl>
<dl
id=
"menu-admin"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
管理员管理
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"admin-role.html"
data-title=
"角色管理"
href=
"javascript:void(0)"
>
角色管理
</a></li>
<li><a
data-href=
"admin-permission.html"
data-title=
"权限管理"
href=
"javascript:void(0)"
>
权限管理
</a></li>
<li><a
data-href=
"admin-list.html"
data-title=
"管理员列表"
href=
"javascript:void(0)"
>
管理员列表
</a></li>
</ul>
</dd>
</dl>
<dl
id=
"menu-tongji"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
系统统计
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"charts-1.html"
data-title=
"折线图"
href=
"javascript:void(0)"
>
折线图
</a></li>
<li><a
data-href=
"charts-2.html"
data-title=
"时间轴折线图"
href=
"javascript:void(0)"
>
时间轴折线图
</a></li>
<li><a
data-href=
"charts-3.html"
data-title=
"区域图"
href=
"javascript:void(0)"
>
区域图
</a></li>
<li><a
data-href=
"charts-4.html"
data-title=
"柱状图"
href=
"javascript:void(0)"
>
柱状图
</a></li>
<li><a
data-href=
"charts-5.html"
data-title=
"饼状图"
href=
"javascript:void(0)"
>
饼状图
</a></li>
<li><a
data-href=
"charts-6.html"
data-title=
"3D柱状图"
href=
"javascript:void(0)"
>
3D柱状图
</a></li>
<li><a
data-href=
"charts-7.html"
data-title=
"3D饼状图"
href=
"javascript:void(0)"
>
3D饼状图
</a></li>
</ul>
</dd>
</dl>
<dl
id=
"menu-system"
>
<dt><i
class=
"Hui-iconfont"
>

</i>
系统管理
<i
class=
"Hui-iconfont menu_dropdown-arrow"
>

</i></dt>
<dd>
<ul>
<li><a
data-href=
"system-base.html"
data-title=
"系统设置"
href=
"javascript:void(0)"
>
系统设置
</a></li>
<li><a
data-href=
"system-category.html"
data-title=
"栏目管理"
href=
"javascript:void(0)"
>
栏目管理
</a></li>
<li><a
data-href=
"system-data.html"
data-title=
"数据字典"
href=
"javascript:void(0)"
>
数据字典
</a></li>
<li><a
data-href=
"system-shielding.html"
data-title=
"屏蔽词"
href=
"javascript:void(0)"
>
屏蔽词
</a></li>
<li><a
data-href=
"system-log.html"
data-title=
"系统日志"
href=
"javascript:void(0)"
>
系统日志
</a></li>
</ul>
</dd>
</dl>
</div>
<div
class=
"cl pd-5 bg-1 bk-gray mt-20"
>
<span
class=
"l"
><a
href=
"javascript:;"
onclick=
"datadel()"
class=
"btn btn-danger radius"
><i
class=
"Hui-iconfont"
>

</i>
批量删除
</a>
<a
class=
"btn btn-primary radius"
data-title=
"添加资讯"
data-href=
"article-add.html"
onclick=
"Hui_admin_tab(this)"
href=
"javascript:;"
><i
class=
"Hui-iconfont"
>

</i>
添加资讯
</a></span>
<span
class=
"r"
>
共有数据:
<strong>
54
</strong>
条
</span>
</div>
<div
class=
"mt-20"
>
<table
class=
"table table-border table-bordered table-bg table-hover table-sort table-responsive"
>
<thead>
<tr
class=
"text-c"
>
<th
width=
"25"
><input
type=
"checkbox"
name=
""
value=
""
></th>
<th
width=
"80"
>
ID
</th>
<th>
标题
</th>
<th
width=
"80"
>
分类
</th>
<th
width=
"80"
>
来源
</th>
<th
width=
"120"
>
更新时间
</th>
<th
width=
"75"
>
浏览次数
</th>
<th
width=
"60"
>
发布状态
</th>
<th
width=
"120"
>
操作
</th>
</tr>
</thead>
<tbody>
<tr
class=
"text-c"
>
<td><input
type=
"checkbox"
value=
""
name=
""
></td>
<td>
10001
</td>
<td
class=
"text-l"
><u
style=
"cursor:pointer"
class=
"text-primary"
onClick=
"article_edit('查看','article-zhang.html','10001')"
title=
"查看"
>
资讯标题
</u></td>
<td>
行业动态
</td>
<td>
H-ui
</td>
<td>
2014-6-11 11:11:42
</td>
<td>
21212
</td>
<td
class=
"td-status"
><span
class=
"label label-success radius"
>
已发布
</span></td>
<td
class=
"f-14 td-manage"
><a
style=
"text-decoration:none"
onClick=
"article_stop(this,'10001')"
href=
"javascript:;"
title=
"下架"
><i
class=
"Hui-iconfont"
>

</i></a>
<a
style=
"text-decoration:none"
class=
"ml-5"
onClick=
"article_edit('资讯编辑','article-add.html','10001')"
href=
"javascript:;"
title=
"编辑"
><i
class=
"Hui-iconfont"
>

</i></a>
<a
style=
"text-decoration:none"
class=
"ml-5"
onClick=
"article_del(this,'10001')"
href=
"javascript:;"
title=
"删除"
><i
class=
"Hui-iconfont"
>

</i></a></td>
</tr>
<tr
class=
"text-c"
>
<td><input
type=
"checkbox"
value=
""
name=
""
></td>
<td>
10002
</td>
<td
class=
"text-l"
><u
style=
"cursor:pointer"
class=
"text-primary"
onClick=
"article_edit('查看','article-zhang.html','10002')"
title=
"查看"
>
资讯标题
</u></td>
<td>
行业动态
</td>
<td>
H-ui
</td>
<td>
2014-6-11 11:11:42
</td>
<td>
21212
</td>
<td
class=
"td-status"
><span
class=
"label label-success radius"
>
草稿
</span></td>
<td
class=
"f-14 td-manage"
><a
style=
"text-decoration:none"
onClick=
"article_shenhe(this,'10001')"
href=
"javascript:;"
title=
"审核"
>
审核
</a>
<a
style=
"text-decoration:none"
class=
"ml-5"
onClick=
"article_edit('资讯编辑','article-add.html','10001')"
href=
"javascript:;"
title=
"编辑"
><i
class=
"Hui-iconfont"
>

</i></a>
<a
style=
"text-decoration:none"
class=
"ml-5"
onClick=
"article_del(this,'10001')"
href=
"javascript:;"
title=
"删除"
><i
class=
"Hui-iconfont"
>

</i></a></td>
</tr>
</tbody>
</table>
</aside>
<div
class=
"dislpayArrow hidden-xs"
><a
class=
"pngfix"
href=
"javascript:void(0);"
onClick=
"displaynavbar(this)"
></a></div>
<section
class=
"Hui-article-box"
>
<div
id=
"Hui-tabNav"
class=
"Hui-tabNav hidden-xs"
>
<div
class=
"Hui-tabNav-wp"
>
<ul
id=
"min_title_list"
class=
"acrossTab cl"
>
<li
class=
"active"
>
<span
title=
"我的桌面"
data-href=
"welcome.html"
>
我的桌面
</span>
<em></em></li>
</ul>
</div>
<div
class=
"Hui-tabNav-more btn-group"
><a
id=
"js-tabNav-prev"
class=
"btn radius btn-default size-S"
href=
"javascript:;"
><i
class=
"Hui-iconfont"
>

</i></a><a
id=
"js-tabNav-next"
class=
"btn radius btn-default size-S"
href=
"javascript:;"
><i
class=
"Hui-iconfont"
>

</i></a></div>
</div>
<div
id=
"iframe_box"
class=
"Hui-article"
>
<div
class=
"show_iframe"
>
<div
style=
"display:none"
class=
"loading"
></div>
<iframe
scrolling=
"yes"
frameborder=
"0"
src=
"welcome.html"
></iframe>
</div>
</div>
</section>
<div
class=
"contextMenu"
id=
"Huiadminmenu"
>
<ul>
<li
id=
"closethis"
>
关闭当前
</li>
<li
id=
"closeall"
>
关闭全部
</li>
</ul>
</div>
<!--_footer 作为公共模版分离出去-->
<script
type=
"text/javascript"
src=
"lib/jquery/1.9.1/jquery.min.js"
></script>
...
...
@@ -74,22 +169,38 @@ $this->load->view('common/header');
<script
type=
"text/javascript"
src=
"static/h-ui.admin/js/H-ui.admin.js"
></script>
<!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script
type=
"text/javascript"
src=
"lib/My97DatePicker/4.8/WdatePicker.js"
></script>
<script
type=
"text/javascript"
src=
"lib/datatables/1.10.0/jquery.dataTables.min.js"
></script>
<script
type=
"text/javascript"
src=
"lib/laypage/1.2/laypage.js"
></script>
<script
type=
"text/javascript"
src=
"lib/jquery.contextmenu/jquery.contextmenu.r2.js"
></script>
<script
type=
"text/javascript"
>
$
(
'.table-sort'
).
dataTable
({
"aaSorting"
:
[[
1
,
"desc"
]],
//默认第几个排序
"bStateSave"
:
true
,
//状态保存
"pading"
:
false
,
"aoColumnDefs"
:
[
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
{
"orderable"
:
false
,
"aTargets"
:[
0
,
8
]}
// 不参与排序的列
]
$
(
function
(){
/*$("#min_title_list li").contextMenu('Huiadminmenu', {
bindings: {
'closethis': function(t) {
console.log(t);
if(t.find("i")){
t.find("i").trigger("click");
}
},
'closeall': function(t) {
alert('Trigger was '+t.id+'\nAction was Email');
},
}
});*/
});
/*个人信息*/
function
myselfinfo
(){
layer
.
open
({
type
:
1
,
area
:
[
'300px'
,
'200px'
],
fix
:
false
,
//不固定
maxmin
:
true
,
shade
:
0.4
,
title
:
'查看信息'
,
content
:
'<div>管理员信息</div>'
});
}
/*资讯-添加*/
function
article_add
(
title
,
url
,
w
,
h
){
function
article_add
(
title
,
url
){
var
index
=
layer
.
open
({
type
:
2
,
title
:
title
,
...
...
@@ -97,8 +208,8 @@ $this->load->view('common/header');
});
layer
.
full
(
index
);
}
/*
资讯-编辑
*/
function
article_edit
(
title
,
url
,
id
,
w
,
h
){
/*
图片-添加
*/
function
picture_add
(
title
,
url
){
var
index
=
layer
.
open
({
type
:
2
,
title
:
title
,
...
...
@@ -106,70 +217,33 @@ $this->load->view('common/header');
});
layer
.
full
(
index
);
}
/*资讯-删除*/
function
article_del
(
obj
,
id
){
layer
.
confirm
(
'确认要删除吗?'
,
function
(
index
){
$
.
ajax
({
type
:
'POST'
,
url
:
''
,
dataType
:
'json'
,
success
:
function
(
data
){
$
(
obj
).
parents
(
"tr"
).
remove
();
layer
.
msg
(
'已删除!'
,{
icon
:
1
,
time
:
1000
});
},
error
:
function
(
data
)
{
console
.
log
(
data
.
msg
);
},
});
/*产品-添加*/
function
product_add
(
title
,
url
){
var
index
=
layer
.
open
({
type
:
2
,
title
:
title
,
content
:
url
});
layer
.
full
(
index
);
}
/*资讯-审核*/
function
article_shenhe
(
obj
,
id
){
layer
.
confirm
(
'审核文章?'
,
{
btn
:
[
'通过'
,
'不通过'
,
'取消'
],
shade
:
false
,
closeBtn
:
0
},
function
(){
$
(
obj
).
parents
(
"tr"
).
find
(
".td-manage"
).
prepend
(
'<a class="c-primary" onClick="article_start(this,id)" href="javascript:;" title="申请上线">申请上线</a>'
);
$
(
obj
).
parents
(
"tr"
).
find
(
".td-status"
).
html
(
'<span class="label label-success radius">已发布</span>'
);
$
(
obj
).
remove
();
layer
.
msg
(
'已发布'
,
{
icon
:
6
,
time
:
1000
});
},
function
(){
$
(
obj
).
parents
(
"tr"
).
find
(
".td-manage"
).
prepend
(
'<a class="c-primary" onClick="article_shenqing(this,id)" href="javascript:;" title="申请上线">申请上线</a>'
);
$
(
obj
).
parents
(
"tr"
).
find
(
".td-status"
).
html
(
'<span class="label label-danger radius">未通过</span>'
);
$
(
obj
).
remove
();
layer
.
msg
(
'未通过'
,
{
icon
:
5
,
time
:
1000
});
});
}
/*资讯-下架*/
function
article_stop
(
obj
,
id
){
layer
.
confirm
(
'确认要下架吗?'
,
function
(
index
){
$
(
obj
).
parents
(
"tr"
).
find
(
".td-manage"
).
prepend
(
'<a style="text-decoration:none" onClick="article_start(this,id)" href="javascript:;" title="发布"><i class="Hui-iconfont"></i></a>'
);
$
(
obj
).
parents
(
"tr"
).
find
(
".td-status"
).
html
(
'<span class="label label-defaunt radius">已下架</span>'
);
$
(
obj
).
remove
();
layer
.
msg
(
'已下架!'
,{
icon
:
5
,
time
:
1000
});
});
/*用户-添加*/
function
member_add
(
title
,
url
,
w
,
h
){
layer_show
(
title
,
url
,
w
,
h
);
}
/*资讯-发布*/
function
article_start
(
obj
,
id
){
layer
.
confirm
(
'确认要发布吗?'
,
function
(
index
){
$
(
obj
).
parents
(
"tr"
).
find
(
".td-manage"
).
prepend
(
'<a style="text-decoration:none" onClick="article_stop(this,id)" href="javascript:;" title="下架"><i class="Hui-iconfont"></i></a>'
);
$
(
obj
).
parents
(
"tr"
).
find
(
".td-status"
).
html
(
'<span class="label label-success radius">已发布</span>'
);
$
(
obj
).
remove
();
layer
.
msg
(
'已发布!'
,{
icon
:
6
,
time
:
1000
});
});
}
/*资讯-申请上线*/
function
article_shenqing
(
obj
,
id
){
$
(
obj
).
parents
(
"tr"
).
find
(
".td-status"
).
html
(
'<span class="label label-default radius">待审核</span>'
);
$
(
obj
).
parents
(
"tr"
).
find
(
".td-manage"
).
html
(
""
);
layer
.
msg
(
'已提交申请,耐心等待审核!'
,
{
icon
:
1
,
time
:
2000
});
}
</script>
<!--此乃百度统计代码,请自行删除-->
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
var
hm
=
document
.
createElement
(
"script"
);
hm
.
src
=
"https://hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911"
;
var
s
=
document
.
getElementsByTagName
(
"script"
)[
0
];
s
.
parentNode
.
insertBefore
(
hm
,
s
);
})();
</script>
<!--/此乃百度统计代码,请自行删除-->
</body>
</html>
\ No newline at end of file
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment