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
9 years ago
Commit
a88ed66ba1da13185b98c2710ea57a8346f3c2b1
1 parent
e887e0db
在线登记
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
website/controller/Onlinereg.class.php
website/view/script/onlinereg/index.php
website/view/script/onlinereg/media.php
website/view/script/onlinereg/mediaen.php
website/controller/Onlinereg.class.php
View file @
a88ed66
...
...
@@ -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_
DOWNLOAD_
MEDIA
);
$this
->
_view
[
'mediaTotal'
]
=
$mediaTotal
;
}
...
...
@@ -37,7 +37,7 @@ class Controller_Onlinereg extends Controller_Abstract
public
function
mediaAction
()
{
$this
->
_view
[
'type'
]
=
Facade_Onlinereg
::
TYPE_ONLINE_MEDIA
;
$mediaTotal
=
Facade_Onlinereg
::
getDownloadTotalByType
(
Facade_Onlinereg
::
TYPE_ONLINE_MEDIA
);
$mediaTotal
=
Facade_Onlinereg
::
getDownloadTotalByType
(
Facade_Onlinereg
::
TYPE_ONLINE_
DOWNLOAD_
MEDIA
);
$this
->
_view
[
'mediaTotal'
]
=
$mediaTotal
;
$this
->
setSession
(
'yohood'
,
'type'
,
Facade_Onlinereg
::
TYPE_ONLINE_MEDIA
);
}
...
...
@@ -48,6 +48,8 @@ class Controller_Onlinereg extends Controller_Abstract
public
function
mediaenAction
()
{
$this
->
_view
[
'type'
]
=
Facade_Onlinereg
::
TYPE_ONLINE_MEDIA
;
$mediaTotal
=
Facade_Onlinereg
::
getDownloadTotalByType
(
Facade_Onlinereg
::
TYPE_ONLINE_DOWNLOAD_MEDIA
);
$this
->
_view
[
'mediaTotal'
]
=
$mediaTotal
;
$this
->
setSession
(
'yohood'
,
'type'
,
Facade_Onlinereg
::
TYPE_ONLINE_MEDIA
);
}
...
...
website/view/script/onlinereg/index.php
View file @
a88ed66
...
...
@@ -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
(
!
empty
(
$this
->
view
->
mediaTotal
))
:?>
<
a
href
=
"/onlinereg/mediadown"
>
新闻稿下载
</
a
>
<?
php
endif
;
?>
</div>
...
...
website/view/script/onlinereg/media.php
View file @
a88ed66
...
...
@@ -9,7 +9,7 @@
<div
class=
"submit-content"
>
<div
class=
"page-header"
>
<a
href=
"/onlinereg/media"
class=
"active"
><span>
在线登记
</span></a>
<?php
if
(
!
empty
(
$this
->
mediaTotal
))
:?>
<?php
if
(
!
empty
(
$this
->
view
->
mediaTotal
))
:?>
<
a
href
=
"/onlinereg/mediadown"
class
="
end
"><span>新闻稿下载</span></a>
<?php endif;?>
</div>
...
...
website/view/script/onlinereg/mediaen.php
View file @
a88ed66
...
...
@@ -11,7 +11,9 @@
<a
href=
"/onlinereg/media"
class=
"active"
>
<span>
在线登记
</span>
</a>
<a
href=
"/onlinereg/mediadown"
class=
"end"
><span>
新闻稿下载
</span></a>
<?php
if
(
!
empty
(
$this
->
view
->
mediaTotal
))
:?>
<
a
href
=
"/onlinereg/mediadown"
class
="
end
"><span>新闻稿下载</span></a>
<?php endif;?>
</div>
<div class="
pull
-
left
">
<div class="
content
-
sub
">
...
...
Please
register
or
login
to post a comment