Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
2bb61317
Commit
2bb61317
authored
Dec 10, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除添加非美
parent
893f3989
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
75 deletions
+0
-75
application/admin/view/project/addcatalogs.html
+0
-75
No files found.
application/admin/view/project/addcatalogs.html
deleted
100644 → 0
View file @
893f3989
{layout name="public/layout_main"}
<link
rel=
"stylesheet"
href=
"/static/fileinput/css/fileinput.css"
>
<section
class=
"wrapper"
>
<h3><i
class=
"fa fa-angle-right"
></i>
<a
href=
"{:url('admin/project/catalogs')}"
>
分类管理
</a>
<i
class=
"fa fa-angle-right"
></i>
修改分类
</h3>
<!-- 分割线 -->
<hr>
<div
class=
"col-xs-12"
>
<form
method=
"post"
class=
"form-horizontal"
enctype=
"multipart/form-data"
action=
"{:url('admin/project/addCatalogs')}"
>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-1 control-label text-right"
>
分类名
</label>
<div
class=
"col-lg-10"
>
<input
type=
"text"
class=
"form-control"
name=
"name"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-1 control-label text-right"
>
分类图标
</label>
<div
class=
"col-lg-10"
>
<input
type=
"hidden"
name=
'old_poster'
>
<input
id=
"input-b1"
name=
"poster"
type=
"file"
>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-1 control-label text-right"
>
排序
</label>
<div
class=
"col-lg-10"
>
<input
type=
"number"
class=
"form-control"
name=
"sort"
>
</div>
</div>
<button
type=
"submit"
class=
"btn btn-success"
>
修改
</button>
</form>
</div>
</section>
<!-- 文件上传和select插件 -->
<script
type=
"text/javascript"
src=
"/static/fileinput/js/fileinput.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/fileinput/js/locales/zh.js"
></script>
<script
type=
"text/javascript"
>
// 文档加载完毕之后,会进入该方法
// 初始化文件上传
var
fileInput
=
$
(
"#input-b1"
).
fileinput
({
language
:
'zh'
,
showUpload
:
false
,
//是否显示上传按钮
allowedFileExtensions
:
[
'bmp'
,
'jpg'
,
'png'
,
'tif'
,
'gif'
,
'pcx'
,
'tga'
,
'exif'
,
'fpx'
,
'svg'
,
'cdr'
,
'pcd'
,
'dxf'
,
'ufo'
,
'eps'
,
'raw'
,
'WMF'
,
'webp'
],
//接收的文件后缀
})
$
(
"#input-b1"
).
change
(
function
(
data
){
if
(
this
.
files
.
length
>
0
){
$
(
"#poster_view"
).
hide
();
}
else
{
$
(
"#poster_view"
).
show
();
}
})
$
(
"#input-b1"
).
on
(
"fileclear"
,
function
(
event
,
data
,
msg
){
$
(
"#poster_view"
).
show
();
});
$
(
function
(){
$
(
".btn-delete"
).
click
(
function
(){
var
_this
=
$
(
this
);
var
url
=
"delete"
;
var
oid
=
_this
.
attr
(
'oid'
);
showDialog
(
"提示"
,
"确定删除这篇文章吗?"
,
function
()
{
// ajax post 方法
$
.
post
(
url
,
{
id
:
oid
},
function
(
res
)
{
var
res
=
JSON
.
parse
(
res
);
if
(
res
.
error
==
1
)
{
// javascript 的默认弹出提示方法
alert
(
res
.
msg
);
}
else
{
_this
.
remove
();
$
(
"#tr_"
+
oid
).
fadeOut
();
}
});
});
});
});
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment