</tr> <?php } ?> <tr> <td> Тип нерухомості: </td> <td> <?php $data = NULL; if (1 == $this->op_type) { $data = RealEstateAgency_Object_RealEstateObjectSupport::listOfTypesForRent(); } else { $data = RealEstateAgency_Object_RealEstateObjectSupport::listOfTypes(); } echo RealEstateAgency_Util::htmlSelect('r_e_type', '', $data, $this->r_e_type, NULL, ''); ?> <?php echo tools_validation_error('r_e_type', $this->validation); ?> </td> </tr> <tr> <td> Кількість кімнат: </td> <td> <input type="text" name="rooms"
public static function listOfTypesForRent() { return RealEstateAgency_Object_RealEstateObjectSupport::listOfTypes(); }