<?php
require_once('Page.php');
class LotterySettings extends Page{
	function show(){
		require_once(dirname(__FILE__) .DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'models'.DIRECTORY_SEPARATOR.'system_config_model.php');
		$currentplug=isset($_GET['plug'])?strval($_GET['plug']):'cj';
		$system_config_model=new System_Config_model();
		//抽奖
		$data=$system_config_model->get("cjshowtype");
		$cjshowtype=intval($data['configvalue']);
		//3d抽奖
		$data=$system_config_model->get("threedimensionallotteryshowtype");
		$threedimensionallotteryshowtype=intval($data['configvalue']);
		//抽奖箱
		$data=$system_config_model->get("cjxshowtype");
		$cjxshowtype=intval($data['configvalue']);
		//砸金蛋
		$data=$system_config_model->get("zjdshowtype");
		$zjdshowtype=intval($data['configvalue']);
		//抽奖显示方式
		$this->assign('cjshowtype',$cjshowtype);
		//3d抽奖显示方式
		$this->assign('threedimensionallotteryshowtype',$threedimensionallotteryshowtype);
		//抽奖箱显示方式
		$this->assign('cjxshowtype',$cjxshowtype);
		//砸金蛋显示方式
		$this->assign('zjdshowtype',$zjdshowtype);
		
		$this->assign('currentplug',$currentplug);
		$this->display('templates/lotterysettings.html');
	}
}
$page=new LotterySettings();
$page->setTitle('抽奖设置');
$page->show();
