Authored by whb

在线登记

... ... @@ -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);
}
... ...
... ... @@ -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>
... ...
... ... @@ -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>
... ...
... ... @@ -11,7 +11,9 @@
<a href="/onlinereg/media" class="active">
<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">
... ...