123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
- namespace Cas\Controller\Admin;
- use Cas\Module\Lottery;
- use Cas\Dao\PlatformBulletin;
- use KIF\Core\Request;
- use Cas\Dao\LotteryEvents;
- class Index 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();
- $this->setOutput('title', $title);
- }
-
-
- public function doDefault(){
-
-
- $bulletinData = array();
- $objPlatformBulletin = new PlatformBulletin();
- $condition = array();
- $limit = 6;
- $order = 'create_time desc';
- $bulletinIds = $objPlatformBulletin -> findIdsBy($condition,$limit,$order);
- $bulletinData = $objPlatformBulletin -> gets($bulletinIds);
-
-
- $url = Request::schemeDomain().'/?c=Admin_Activity_SetBasics&a=PageCreate&type=';
-
-
-
- $allActivityData = array();
- $objDLotteryEvents = new LotteryEvents();
- $limit = null;
- $order = 'id desc';
- $condition = array(
- 'operator_uid' => $this->operatorData['uid']
- );
- $ids = $objDLotteryEvents->findIdsBy($condition,null,'id desc');
- $allActivityData = $objDLotteryEvents -> gets($ids);
-
- $this->tpl = 'admin/index';
- $title = '活动首页';
- $this->setOutput('title', $title);
- $this->setOutput('menu_active', array('name' => 'platfromhome', 'item' => ''));
- $this->addNavMenu($title, Request::url());
-
- $allTypeData = $objDLotteryEvents ->getType();
-
- $this->setOutput('allTypeData', $allTypeData);
- $this->setOutput('bulletinData', $bulletinData);
- $this->setOutput('operatorData', $this->operatorData);
- $this->setOutput('myReleaseActivityData', $allActivityData);
- $this->setOutput('pagePublicData', $this->getPagePublicData());
-
- }
-
-
- public function display() {
- return $this->render();
- }
-
-
-
- public function doTMPCreateImg(){
- $url = Request::p('url');
- $this -> createImgCodeUrl($url);
- $this->ajax_success_exit('ok');
- }
-
-
-
-
- }
-
|