function _allowApply() { $rs = new tw_tours(); return $rs->_allowApply($this); /* $dt=date("Y-m-d"); if ($this->tourStatus!='normal') return false; if (!($this->tourAvPlaces>0)) return false; if (strtotime($this->tourAppStartDate)!=0 && strtotime($dt)<strtotime($this->tourAppStartDate)) return false; //if (strtotime($this->tourAppEndDate)!=0 && strtotime($dt)>strtotime($this->tourAppEndDate)) return false; return true; */ /* return $this->tourStatus=='normal' && ($this->tourAvPlaces>0 ) && (strtotime($this->tourAppStartDate)==0 || strtotime($dt)>=strtotime($this->tourAppStartDate)) && (strtotime($this->tourAppEndDate)==0 || strtotime($dt)<=strtotime($this->tourAppEndDate)) ; */ }