コード例 #1
0
ファイル: RealestateDetailTab.php プロジェクト: xinghao/shs
 public function getTab1Content()
 {
     $contentArray = array();
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Location:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $categoryTable = new Refcategory();
     $contentArray[] = array('head' => 'Property Type:', 'value' => $categoryTable->getCatNameById($this->_posting->cat3), 'cssClass' => '');
     $contentArray[] = array('head' => 'Bedrooms:', 'value' => Tag::getUnitsAmount($this->_pstCategory->rooms), 'cssClass' => '');
     $contentArray[] = array('head' => 'Bathrooms:', 'value' => Tag::getUnitsAmount($this->_pstCategory->baths), 'cssClass' => '');
     $contentArray[] = array('head' => 'Parking:', 'value' => Tag::getUnitsAmount($this->_pstCategory->parking), 'cssClass' => '');
     if (!empty($this->_pstCategory->buildingArea)) {
         $contentArray[] = array('head' => 'Building Area:', 'value' => $this->_pstCategory->buildingArea . 'm&sup2', 'cssClass' => '');
     }
     if (!empty($this->_pstCategory->landArea)) {
         $contentArray[] = array('head' => 'Land Area:', 'value' => $this->_pstCategory->landArea . 'm&sup2', 'cssClass' => '');
     }
     $contentArray[] = array('head' => 'Property Age:', 'value' => Tag::getAges($this->_pstCategory->age), 'cssClass' => '');
     $contentArray[] = array('head' => 'Morning Sun Dir:', 'value' => $this->_pstCategory->sunDirection, 'cssClass' => '');
     $contentArray[] = array('head' => 'Views of:', 'value' => $this->_pstCategory->views, 'cssClass' => '');
     $contentArray[] = array('head' => 'Levels in Building:', 'value' => $this->_pstCategory->buildingLevel, 'cssClass' => '');
     $contentArray[] = array('head' => 'Property is on floor:', 'value' => $this->_pstCategory->level, 'cssClass' => '');
     if (!empty($this->_pstCategory->strataRate)) {
         $contentArray[] = array('head' => 'Strata Rate:', 'value' => $location->getCurrencySymbol() . $this->_pstCategory->strataRate . ' per quarter', 'cssClass' => '');
     }
     if (!empty($this->_pstCategory->councilRate)) {
         $contentArray[] = array('head' => 'Council Rate:', 'value' => $location->getCurrencySymbol() . $this->_pstCategory->councilRate . ' per quarter', 'cssClass' => '');
     }
     if (!empty($this->_pstCategory->waterRate)) {
         $contentArray[] = array('head' => 'Water Rate:', 'value' => $location->getCurrencySymbol() . $this->_pstCategory->waterRate . ' per quarter', 'cssClass' => '');
     }
     $contentArray[] = array('head' => 'Best Features:', 'value' => $this->_pstCategory->bestFeatures, 'cssClass' => '');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
コード例 #2
0
ファイル: ListingsDetailTab.php プロジェクト: xinghao/shs
 public function getTitle()
 {
     $title = parent::getTitle();
     $cat2 = $this->getCat2();
     $location = new Location($this->_posting->locId);
     $secondLing = $this->strAdd($cat2, '<span class="titleend"> (' . $location->getLocationString() . ")</span>", '');
     if (!empty($secondLing)) {
         $secondLing = '<span class="titlesecond">' . $secondLing . '</span>';
     }
     return $this->strAdd($title, $secondLing, '<br />');
 }
コード例 #3
0
ファイル: RestaurantsDetailTab.php プロジェクト: xinghao/shs
 public function getTab1Content()
 {
     $contentArray = array();
     $contentArray[] = array('head' => 'Cuisine:', 'value' => $this->getCatsString(false), 'cssClass' => '');
     $contentArray[] = array('head' => 'Special Feature:', 'value' => $this->getCat1(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Address:', 'value' => $this->_pstCategory->address, 'cssClass' => '');
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Suburb:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Phone#:', 'value' => $this->_pstCategory->contactPhone, 'cssClass' => '');
     $contentArray[] = array('head' => 'Website:', 'value' => Tag::webSites($this->_pstCategory->website), 'cssClass' => '');
     $opendayTables = new Refopenday();
     $contentArray[] = array('head' => 'Open Days:', 'value' => $opendayTables->getOpenday($this->_pstCategory->openDays), 'cssClass' => '');
     $contentArray[] = array('head' => 'Price:', 'value' => $this->strAdd($this->_posting->priceDisplay, $this->_pstCategory->priceInfo), 'cssClass' => '');
     $contentArray[] = array('head' => '', 'value' => 'dummy', 'cssClass' => '');
     $contentArray[] = array('head' => '', 'value' => 'dummy', 'cssClass' => '');
     $contentArray[] = array('head' => $this->_pstCategory->shortDescription, 'value' => 'dummy', 'cssClass' => 'black');
     $contentArray[] = array('head' => $this->_pstCategory->about, 'value' => 'dummy', 'cssClass' => 'black');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
コード例 #4
0
ファイル: JobDetailTab.php プロジェクト: xinghao/shs
 public function getTab1Content()
 {
     $contentArray = array();
     $contentArray[] = array('head' => 'Employer:', 'value' => $this->_pstCategory->employerCompany . ', ' . $this->getCat1(), 'cssClass' => 'bold');
     $contentArray[] = array('head' => '', 'value' => 'dummy', 'cssClass' => '');
     $contentArray[] = array('head' => 'Job Type:', 'value' => $this->getCatsString(false), 'cssClass' => '');
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Location:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Salary Info:', 'value' => $this->strAdd($this->_posting->priceDisplay, $this->_pstCategory->priceInfo), 'cssClass' => '');
     $contentArray[] = array('head' => 'Short Description:', 'value' => $this->_pstCategory->shortDescription, 'cssClass' => '');
     $contentArray[] = array('head' => 'Required Skills:', 'value' => $this->_pstCategory->skills, 'cssClass' => '');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
コード例 #5
0
ファイル: ClassifiedsDetailTab.php プロジェクト: xinghao/shs
 public function getTab1Content()
 {
     $contentArray = array();
     $contentArray[] = array('head' => 'Category:', 'value' => $this->getCatsString(false), 'cssClass' => '');
     $contentArray[] = array('head' => 'Price:', 'value' => $this->strAdd($this->_posting->priceDisplay, $this->_pstCategory->priceDescription), 'cssClass' => '');
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Suburb:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Phone#:', 'value' => $this->_pstCategory->contactPhone, 'cssClass' => '');
     $contentArray[] = array('head' => $this->_pstCategory->shortDescription, 'value' => 'dummy', 'cssClass' => 'black');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
コード例 #6
0
ファイル: CarsDetailTab.php プロジェクト: xinghao/shs
 public function getTab1Content()
 {
     $contentArray = array();
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Location:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Vehicle:', 'value' => $this->strAdds(array($this->getCat2(), $this->getCat3(), $this->_pstCategory->makeYear)), 'cssClass' => '');
     $contentArray[] = array('head' => 'Kilometers:', 'value' => $this->addEnding(number_format($this->_pstCategory->km), "Km's"), 'cssClass' => '');
     $contentArray[] = array('head' => '# Plate:', 'value' => $this->_pstCategory->numberPlate, 'cssClass' => '');
     $contentArray[] = array('head' => 'Registration Expire:', 'value' => Tag::getHtmlDateTime($this->_pstCategory->registrationExpire), 'cssClass' => '');
     $contentArray[] = array('head' => 'Body:', 'value' => $this->_pstCategory->seats . " seats , " . $this->_pstCategory->bodyType . ' , ' . $this->_pstCategory->drive, 'cssClass' => '');
     $engine = $this->addEnding($this->_pstCategory->engin, 'Litres');
     $power = '';
     if (!empty($this->_pstCategory->power)) {
         if (stristr($this->_pstCategory->power, 'KW')) {
             $power = $this->_pstCategory->power;
         } else {
             $power = $this->_pstCategory->power . ' Kw';
         }
     }
     $contentArray[] = array('head' => 'Transmission:', 'value' => $this->strAdds(array($this->_pstCategory->transmission, $engine, $power)), 'cssClass' => '');
     $contentArray[] = array('head' => 'Fuel:', 'value' => $this->_pstCategory->fuel, 'cssClass' => '');
     $contentArray[] = array('head' => 'Fuel Consumption:', 'value' => $this->addEnding($this->_pstCategory->fuelConsumption, 'L/100Km'), 'cssClass' => '');
     $contentArray[] = array('head' => 'CO2 Rating:', 'value' => $this->addEnding($this->_pstCategory->co2 == "Select" ? "" : $this->_pstCategory->co2, 'g/Km'), 'cssClass' => '');
     $contentArray[] = array('head' => 'Body colour:', 'value' => $this->_pstCategory->bodyColour, 'cssClass' => '');
     $contentArray[] = array('head' => 'Interior colour:', 'value' => $this->_pstCategory->interiorColour, 'cssClass' => '');
     $contentArray[] = array('head' => '# of owners:', 'value' => $this->_pstCategory->owners, 'cssClass' => '');
     $contentArray[] = array('head' => 'Faults:', 'value' => $this->_pstCategory->faults, 'cssClass' => '');
     $contentArray[] = array('head' => '', 'value' => $this->_pstCategory->shortDescription, 'cssClass' => '');
     $contentArray[] = array('head' => 'Entertainmant:', 'value' => $this->getFeatures($this->_pstCategory->featuresEntertainmant, $this->_posting->typeID, 2), 'cssClass' => '');
     $contentArray[] = array('head' => 'Safety:', 'value' => $this->getFeatures($this->_pstCategory->featuresSafety, $this->_posting->typeID, 2), 'cssClass' => '');
     $contentArray[] = array('head' => 'Interior:', 'value' => $this->getFeatures($this->_pstCategory->featuresInterior, $this->_posting->typeID, 2), 'cssClass' => '');
     $contentArray[] = array('head' => 'Exterior:', 'value' => $this->getFeatures($this->_pstCategory->featuresExterior, $this->_posting->typeID, 2), 'cssClass' => '');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }