12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace Cas\Controller\Admin\Activity;
- use Cas\Module\Lottery;
- use Cas\Dao\PlatformBulletin;
- use KIF\Core\Request;
- use Cas\Dao\LotteryEvents;
- use Cas\Controller\Admin\Controller;
- /**
- * "活动相关" - "创建活动类型选择入口"
- * 页面:默认 doDefault
- *
- * @author lihuanchun
- *
- */
- class CreateEntrance extends Controller {
- private $objLottery; // 活动后端
- private $operatorData;
- /**
- * 初始化
- */
- public function __construct() {
- header ( "Content-Type: text/html; charset=utf-8" );
- $this->objLottery = new Lottery ();
- $this->operatorData = $this->getUser ();
- }
-
- /**
- * 默认页面
- * 1.吐出三种 "大类型" 活动 链接地址
- * 地址:http://cas.lishuy.com/?c=Admin_Activity_CreateEntrance
- */
- public function doDefault() {
- $url = Request::schemeDomain () . '/?c=Admin_Activity_SetBasics&a=PageCreate&bigType=';
- $bigTypeUrlData = array (
- '活动' => $url . 'Event',
- 'H5' => $url . 'H5',
- '文章' => $url . 'Article'
- );
-
- $this->setOutput ( 'bigTypeData', $bigTypeData ); // 获取所有活动
- $this->setOutput('pagePublicData', $this->getPagePublicData()); // 后台管理相关数据
- }
-
-
- public function display() {
- return $this->render ();
- }
- }
-
|