<?php
//-- ------ ### ------ --
class CollectionOperate extends netsCache{
	
	public function FilterDescriptions_List(&$pData){
		$tmpWeb_Data=$pData;
		
		
		
		$pData=$tmpWeb_Data;
		return 0;
	}
	public function FilterDescriptions_Detail(&$pData){
		$tmpWeb_Data=array();
		$tmpCode=new netsCode();

		$Coun0=0;
		foreach($pData as $Row0){
			//-- ------ ### ------ --
			$tmpWeb_Data[$Coun0]['{Nets.Name}']='';
			$tmpWeb_Data[$Coun0]['{Nets.URL}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnatZoneid}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnatState}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnatTag}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactInfo_Numcode}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_StartTime}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_EndTime}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Origin}']=0.00;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Now}']=0.00;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Sale}']=0.00;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Save}']=0.00;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_LimitPeople}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_LimitOnes}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_TotalCount}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactSpeak}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactCom_Logo}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactCom_Introduct}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactMapIntroduct}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactMapX}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactMapY}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactCount_Order}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactCount_Views}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactCount_Discuss}']=0;
			$tmpWeb_Data[$Coun0]['{Nets.gsnactSourceR00}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactSourceR01}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactIntroduct}']='';
			$tmpWeb_Data[$Coun0]['{Nets.gsnactContent}']='';
			//-- ------ ### ------ --
			if($Row0['{Nets.Name}']=='' || $Row0['{Nets.URL}']==''){
				$tmpWeb_Data[$Coun0]['{Nets.Name}']='------NON------';
			}else{
				/*
				$tmpWeb_Data[$Coun0]['{Nets.gsnatZoneid}']=$Row0['{Nets.gsnatZoneid}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnatState}']=$Row0['{Nets.gsnatState}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnatTag}']=$Row0['{Nets.gsnatTag}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactInfo_Numcode}']=$Row0['{Nets.gsnactInfo_Numcode}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_StartTime}']=$Row0['{Nets.gsnactPrice_StartTime}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_EndTime}']=$Row0['{Nets.gsnactPrice_EndTime}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Origin}']=$Row0['{Nets.gsnactPrice_Origin}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Now}']=$Row0['{Nets.gsnactPrice_Now}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Sale}']=$Row0['{Nets.gsnactPrice_Sale}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Save}']=$Row0['{Nets.gsnactPrice_Save}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_LimitPeople}']=$Row0['{Nets.gsnactPrice_LimitPeople}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_LimitOnes}']=$Row0['{Nets.gsnactPrice_LimitOnes}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_TotalCount}']=$Row0['{Nets.gsnactPrice_TotalCount}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactSpeak}']=$Row0['{Nets.gsnactSpeak}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactCom_Logo}']=$Row0['{Nets.gsnactCom_Logo}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactCom_Introduct}']=$Row0['{Nets.gsnactCom_Introduct}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactMapIntroduct}']=$Row0['{Nets.gsnactMapIntroduct}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactMapX}']=$Row0['{Nets.gsnactMapX}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactMapY}']=$Row0['{Nets.gsnactMapY}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactCount_Order}']=$Row0['{Nets.gsnactCount_Order}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactCount_Views}']=$Row0['{Nets.gsnactCount_Views}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactCount_Discuss}']=$Row0['{Nets.gsnactCount_Discuss}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactSourceR00}']=$Row0['{Nets.gsnactSourceR00}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactSourceR01}']=$Row0['{Nets.gsnactSourceR01}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactIntroduct}']=$Row0['{Nets.gsnactIntroduct}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactContent}']=$Row0['{Nets.gsnactContent}'];
				*/
				//-- ------ ### ------ --
				$tmpWeb_Data[$Coun0]['{Nets.URL}']=$Row0['{Nets.URL}'];
				$tmpWeb_Data[$Coun0]['{Nets.Name}']=$Row0['{Nets.Name}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactSourceR00}']=$Row0['{Nets.gsnactSourceR00}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactSourceR01}']=$Row0['{Nets.gsnactSourceR01}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactMapX}']=$Row0['{Nets.gsnactMapX}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactMapY}']=$Row0['{Nets.gsnactMapY}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactCom_Introduct}']=$Row0['{Nets.gsnactCom_Introduct}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnatState}']=$Row0['{Nets.gsnatState}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_StartTime}']=$Row0['{Nets.gsnactPrice_StartTime}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_EndTime}']=$Row0['{Nets.gsnactPrice_EndTime}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactCount_Order}']=$Row0['{Nets.gsnactCount_Order}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Now}']=$Row0['{Nets.gsnactPrice_Now}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Origin}']=$Row0['{Nets.gsnactPrice_Origin}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Save}']=$Row0['{Nets.gsnactPrice_Save}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Sale}']=$Row0['{Nets.gsnactPrice_Sale}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_LimitPeople}']=$Row0['{Nets.gsnactPrice_LimitPeople}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_LimitOnes}']=$Row0['{Nets.gsnactPrice_LimitOnes}'];
				$tmpWeb_Data[$Coun0]['{Nets.gsnactContent}']=$Row0['{Nets.gsnactContent}'];

				//-- ------ ### ------ --
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_StartTime}']=date($this->sysTimeFormat);
				if($Row0['{Nets.gsnatState}']=='open'){
					$tmpWeb_Data[$Coun0]['{Nets.gsnatState}']=2;
				}else{
					$tmpWeb_Data[$Coun0]['{Nets.gsnatState}']=4;
				}
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Sale}']=str_replace('折','',$Row0['{Nets.gsnactPrice_Sale}']);
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Sale}']=$tmpCode->Decimal($tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_Sale}'],0.00);
				
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_EndTime}']=str_replace('T','',$Row0['{Nets.gsnactPrice_EndTime}']);
				$tmpWeb_Data[$Coun0]['{Nets.gsnactPrice_EndTime}']=str_replace('+08:00','',$Row0['{Nets.gsnactPrice_EndTime}']);


				$Coun0++;
			}
			
		}



		$pData=$tmpWeb_Data;
		return 0;
	}
	
}


?>