Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion_group
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
章建武
fashion_group
Commits
3e1ab9b5
Commit
3e1ab9b5
authored
Jun 03, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
00671e44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
GroupCultureController.php
...n/application/admin/controller/GroupCultureController.php
+0
-14
add.html
admin/application/admin/view/group_culture/add.html
+8
-1
No files found.
admin/application/admin/controller/GroupCultureController.php
View file @
3e1ab9b5
...
@@ -55,13 +55,6 @@ class GroupCultureController extends Controller
...
@@ -55,13 +55,6 @@ class GroupCultureController extends Controller
}
else
{
}
else
{
return
error
(
$attachment_avatar
->
getError
());
return
error
(
$attachment_avatar
->
getError
());
}
}
if
(
$param
[
'type'
]
==
1
){
$param
[
'title'
]
=
'时尚与城市'
;
}
elseif
(
$param
[
'type'
]
==
2
){
$param
[
'title'
]
=
'时尚与安全'
;
}
else
{
$param
[
'title'
]
=
'时尚与公益'
;
}
$result
=
$model
::
create
(
$param
);
$result
=
$model
::
create
(
$param
);
$url
=
URL_BACK
;
$url
=
URL_BACK
;
...
@@ -104,13 +97,6 @@ class GroupCultureController extends Controller
...
@@ -104,13 +97,6 @@ class GroupCultureController extends Controller
$param
[
'pic_path'
]
=
$file_avatar
->
url
;
$param
[
'pic_path'
]
=
$file_avatar
->
url
;
}
}
}
}
if
(
$param
[
'type'
]
==
1
){
$param
[
'title'
]
=
'时尚与城市'
;
}
elseif
(
$param
[
'type'
]
==
2
){
$param
[
'title'
]
=
'时尚与安全'
;
}
else
{
$param
[
'title'
]
=
'时尚与公益'
;
}
$result
=
$data
->
save
(
$param
);
$result
=
$data
->
save
(
$param
);
return
$result
?
success
()
:
error
();
return
$result
?
success
()
:
error
();
}
}
...
...
admin/application/admin/view/group_culture/add.html
View file @
3e1ab9b5
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
$
(
'#user_level_id'
).
select2
();
$
(
'#user_level_id'
).
select2
();
</script>
</script>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"type"
class=
"col-sm-2 control-label"
>
标题
</label>
<label
for=
"type"
class=
"col-sm-2 control-label"
>
分类
</label>
<div
class=
"col-sm-10 col-md-4"
>
<div
class=
"col-sm-10 col-md-4"
>
<select
name=
"type"
id=
"type"
class=
"form-control select2"
>
<select
name=
"type"
id=
"type"
class=
"form-control select2"
>
{foreach name='type' item='item'}
{foreach name='type' item='item'}
...
@@ -72,6 +72,13 @@
...
@@ -72,6 +72,13 @@
</select>
</select>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-sm-2 control-label"
>
标题
</label>
<div
class=
"col-sm-10 col-md-4"
>
<input
id=
"title"
name=
"title"
value=
"{$data.title|default=''}"
placeholder=
"请输入标题"
required
type=
"text"
class=
"form-control field-text"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
内容:
</label>
<label
class=
"col-sm-2 control-label"
>
内容:
</label>
...
...
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