Authored by whb

在线登记

... ... @@ -9,7 +9,8 @@ class Controller_Onlinereg extends Controller_Abstract
*/
public function indexAction()
{
$mediaTotal = Facade_Onlinereg::getDownloadTotalByType(Facade_Onlinereg::TYPE_ONLINE_MEDIA);
$this->_view['mediaTotal'] = $mediaTotal;
}
/**
... ... @@ -22,7 +23,7 @@ class Controller_Onlinereg extends Controller_Abstract
}
/**
* 赞助商
* 赞助商英文
*/
public function sponsorenAction()
{
... ... @@ -36,11 +37,13 @@ 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);
$this->_view['mediaTotal'] = $mediaTotal;
$this->setSession('yohood', 'type', Facade_Onlinereg::TYPE_ONLINE_MEDIA);
}
/**
* 新闻稿
* 新闻稿英文
*/
public function mediaenAction()
{
... ... @@ -58,7 +61,7 @@ class Controller_Onlinereg extends Controller_Abstract
}
/**
* 参展商
* 参展商英文
*/
public function exhibitorenAction()
{
... ... @@ -230,7 +233,7 @@ class Controller_Onlinereg extends Controller_Abstract
*/
public function downloadAction()
{
$id = $this->_request->query('id');
$id = intval($this->_request->query('id'));
if(!empty($id))
{
$download = Facade_Onlinereg::getDownloadById($id);
... ...
... ... @@ -13,7 +13,9 @@
<div class="background"><a href="/onlinereg/media"></a></div>
<div class="apply-operate">
<a href="/onlinereg/media">在线登记</a>
<a href="/onlinereg/mediadown">新闻稿下载</a>
<?php if(!empty($this->mediaTotal)):?>
<a href="/onlinereg/mediadown">新闻稿下载</a>
<?php endif;?>
</div>
</li>
<li class="apply-right">
... ...
... ... @@ -9,7 +9,9 @@
<div class="submit-content">
<div class="page-header">
<a href="/onlinereg/media" class="active"><span>在线登记</span></a>
<a href="/onlinereg/mediadown" class="end"><span>新闻稿下载</span></a>
<?php if(!empty($this->mediaTotal)):?>
<a href="/onlinereg/mediadown" class="end"><span>新闻稿下载</span></a>
<?php endif;?>
</div>
<div class="pull-left">
<div class="content-sub">
... ...