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
Plain Diff
Browse Files
Authored by
microTT
9 years ago
Commit
686e3f37927d6f62bcd1af93fe953b45243ffd6e
2 parents
e8a8241a
e006fdad
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
website/controller/News.class.php
website/controller/Onlinereg.class.php
website/view/script/news/index.php
website/view/script/onlinereg/index.php
website/controller/News.class.php
View file @
686e3f3
...
...
@@ -33,6 +33,11 @@ class Controller_News extends Controller_Abstract
$list
=
Facade_News
::
getList
(
$tag
,
$page
->
getOffset
(),
$limit
,
$exceptTags
);
$this
->
_view
[
'list'
]
=
$list
;
$newTags
=
Facade_News
::
getTags
();
$nums
=
0
;
foreach
(
$newTags
as
$vo
){
$nums
+=
$vo
[
'num'
];
}
$this
->
_view
[
'nums'
]
=
$nums
;
$this
->
_view
[
'total'
]
=
0
;
$tags
=
$temp
=
array
();
foreach
(
$newTags
as
$tag
)
...
...
website/controller/Onlinereg.class.php
View file @
686e3f3
...
...
@@ -9,7 +9,7 @@ class Controller_Onlinereg extends Controller_Abstract
*/
public
function
indexAction
()
{
$mediaTotal
=
Facade_Onlinereg
::
getDownloadTotalByType
(
Facade_Onlinereg
::
TYPE_ONLINE_
MEDIA
);
$mediaTotal
=
Facade_Onlinereg
::
getDownloadTotalByType
(
Facade_Onlinereg
::
TYPE_ONLINE_
SPONSOR
);
$this
->
_view
[
'mediaTotal'
]
=
$mediaTotal
;
}
...
...
website/view/script/news/index.php
View file @
686e3f3
...
...
@@ -11,7 +11,11 @@
?>
<li
<?php
echo
(
$this
->
view
->
current_tag
==
$tag
[
'tag'
])
?
'class="current"'
:
''
?>
>
<a
href=
"
<?php
echo
url
(
'news/index'
,
array
(
'tag'
=>
$tag
[
'tag'
]))
?>
"
>
<?php
if
(
$tag
[
'tag'
]
==
''
){
?>
<?php
echo
sprintf
(
"%s(%s)"
,
$tag
[
'tag'
]
==
''
?
'全部资讯'
:
$tag
[
'tag'
],
$this
->
view
->
nums
);
?>
<?php
}
else
{
?>
<?php
echo
sprintf
(
"%s(%s)"
,
$tag
[
'tag'
]
==
''
?
'全部资讯'
:
$tag
[
'tag'
],
$tag
[
'num'
]);
?>
<?php
}
?>
</a>
</li>
<?php
endforeach
;
?>
...
...
website/view/script/onlinereg/index.php
View file @
686e3f3
...
...
@@ -13,7 +13,7 @@
<div
class=
"background"
><a
href=
"/onlinereg/media"
></a></div>
<div
class=
"apply-operate"
>
<a
href=
"/onlinereg/media"
>
在线登记
</a>
<?php
if
(
!
empty
(
$this
->
mediaTotal
)
)
:?>
<?php
if
(
$this
->
view
->
mediaTotal
!=
0
)
:?>
<
a
href
=
"/onlinereg/mediadown"
>
新闻稿下载
</
a
>
<?
php
endif
;
?>
</div>
...
...
Please
register
or
login
to post a comment