Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
4209189082c36195bdad8d9f72c01923e9bad50d
1 parent
a3530894
后台去掉手机视频
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
website/controller/admin/News.class.php
website/view/script/admin/news/create.php
website/view/script/admin/news/index.php
website/controller/admin/News.class.php
View file @
4209189
...
...
@@ -16,7 +16,7 @@ class Controller_Admin_News extends Controller_Admin_Base
$total
=
Facade_News
::
getTotal
(
$tag
);
$pagination
=
new
Lib_Helper_Pagination
(
$total
,
$limit
);
$pagination
->
setParames
(
$url_args
);
$list
=
Facade_News
::
getList
(
$tag
,
$pagination
->
getOffset
(),
$limit
);
$list
=
Facade_News
::
getList
(
$tag
,
$pagination
->
getOffset
(),
$limit
,
array
(
'手机视频'
)
);
foreach
(
$list
as
$k
=>
$v
)
{
$list
[
$k
][
'content'
]
=
str_replace
(
array
(
"
\n
"
,
"
\r
"
,
"
\t
"
),
''
,
Util_StringHelper
::
substr_cn
(
strip_tags
(
$v
[
'content'
]),
30
));
...
...
website/view/script/admin/news/create.php
View file @
4209189
...
...
@@ -26,7 +26,7 @@ a.btn
<td
colspan=
"2"
>
<select
id=
"tag"
name=
"tag"
>
<?php
$tags
=
array
(
'品牌资讯'
,
'现场活动'
,
'独家合作'
,
'主理人'
,
'明星'
,
'限量产品'
,
'票务'
,
'视频'
,
'
手机视频'
,
'专题'
);
$tags
=
array
(
'品牌资讯'
,
'现场活动'
,
'独家合作'
,
'主理人'
,
'明星'
,
'限量产品'
,
'票务'
,
'视频'
,
'
专题'
);
//'手机视频'
foreach
(
$tags
as
$tag
)
{
echo
sprintf
(
'<option value="%s" %s>%s</option>'
,
$tag
,
$tag
==
$this
->
view
->
info
[
'tag'
]
?
'selected'
:
''
,
$tag
);
...
...
website/view/script/admin/news/index.php
View file @
4209189
...
...
@@ -5,7 +5,7 @@
<select
name=
"tag"
style=
"margin-left: 20px;margin-top:10px;width:150px;"
id=
"choose_tag"
>
<option
value=
""
<?php
''
==
$this
->
view
->
tag
?
'selected'
:
''
?>
>
全部资讯
</option>
<?php
$tags
=
array
(
'品牌资讯'
,
'现场活动'
,
'独家合作'
,
'主理人'
,
'明星'
,
'限量产品'
,
'票务'
,
'视频'
,
'
手机视频'
,
'专题'
);
$tags
=
array
(
'品牌资讯'
,
'现场活动'
,
'独家合作'
,
'主理人'
,
'明星'
,
'限量产品'
,
'票务'
,
'视频'
,
'
专题'
);
//'手机视频'
foreach
(
$tags
as
$tag
)
{
echo
sprintf
(
'<option value="%s" %s>%s</option>'
,
$tag
,
$tag
==
$this
->
view
->
tag
?
'selected'
:
''
,
$tag
);
...
...
Please
register
or
login
to post a comment