class Cparkstage{
public $StageID=0;//道具ID
public $StageName="";//道具名
public $StagePrice=0;//道具价格
public $StageIntr="";//道具介绍
public $StageScript="";//道具脚本
public $StageImg="";//图片
public $arrStage=array();//道具数组
//构造函数
public function Cparkstage($stageid){
$sql="select * from ".tname('park_stage')." where StageID='$stageid'";
$value=getSqlResult($sql); //道具表返回数组
$this->StageID=$value[StageID];
$this->StageName=$value[StageName];
$this->StagePrice=$value[StagePrice];
$this->StageName=$value[StageName];
$this->StagePrice=$value[StagePrice];
$this->StageIntr=$value[StageIntr];
$this->StageScript=$value[StageScript];
$this->StageImg=$value[StageImg];
$this->arrStage=$value;
}
//根据ID号返回我的道具单条记录
public function getMyStageByID($ID){
global $_SGLOBAL;
$sql="select * from ".tname('park_mystage')." where ID='$ID' and uid ='".$_SGLOBAL['supe_uid']."'";
$value=getSqlResult($sql);
$value == null && showmessage("您没有此道具!","parkApp.php?ac=index",1);
return $value;
}
}