CreateEntrance.class.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace Cas\Controller\Admin\Activity;
  3. use Cas\Module\Lottery;
  4. use Cas\Dao\PlatformBulletin;
  5. use KIF\Core\Request;
  6. use Cas\Dao\LotteryEvents;
  7. use Cas\Controller\Admin\Controller;
  8. /**
  9. * "活动相关" - "创建活动类型选择入口"
  10. * 页面:默认 doDefault
  11. *
  12. * @author lihuanchun 
  13. *  
  14. */
  15. class CreateEntrance extends Controller {
  16. private $objLottery; // 活动后端
  17. private $operatorData;
  18. /**
  19. *  初始化
  20. */
  21. public function __construct() {
  22. header ( "Content-Type: text/html; charset=utf-8" );
  23. $this->objLottery = new Lottery ();
  24. $this->operatorData = $this->getUser ();
  25. }
  26. /**
  27. * 默认页面
  28. * 1.吐出三种 "大类型" 活动 链接地址
  29. * 地址:http://cas.lishuy.com/?c=Admin_Activity_CreateEntrance
  30. */
  31. public function doDefault() {
  32. $url = Request::schemeDomain () . '/?c=Admin_Activity_SetBasics&a=PageCreate&bigType=';
  33. $bigTypeUrlData = array (
  34. '活动' => $url . 'Event',
  35. 'H5' => $url . 'H5',
  36. '文章' => $url . 'Article'
  37. );
  38. $this->setOutput ( 'bigTypeData', $bigTypeData ); // 获取所有活动
  39. $this->setOutput('pagePublicData', $this->getPagePublicData()); // 后台管理相关数据
  40. }
  41. public function display() {
  42. return $this->render ();
  43. }
  44. }