//VOTE_DEMO
$this->PrjectName = 'Ctrlzxcv';
$this->Standard = array('ClassA','ClassB');
$this->DominName = 'www.ctrlzxcv.com';
$residue = fmod($Int,10);// 設定除法餘數
//$TodayName = $ObjVoteMod->TodayVoteName('ClassA',$residue);
//投票基準名稱 標準話 Ctrlzxcv_Ary_TodayVote_20120614_ClassA_1 (類別,餘數)
function TodayVoteName($Class,$Residue)
{
return $this->PrjectName.'_Ary_TodayVote_'.date("Ymd").'_'.$Class.'_'.$Residue;
}
//投票前台總數名稱 預餘顯示前台(ID)
//$VtewTotalName = $ObjVoteMod->ViewTotalName('40');
function ViewTotalName($Key)
{
return $this->PrjectName.'_Int_ViewTotal_'.$Key; //直接顯示前台
}
//用於快取 暫存資料 (ID)
function ViewNumName($Key)
{
return $this->PrjectName.'_Int_Num_'.$Key; //直接顯示前台
}
2012年7月18日 星期三
PHP-VoteDemo
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言