public static function getRoomsTypeShortly($number)
 {
     $data = RealEstateAgency_Object_RealEstateObjectSupport::listOfRoomsTypesShortly();
     foreach ($data as $index => $hash) {
         $id = $hash['id'];
         $name = $hash['name'];
         if ($id == $number) {
             return $name;
         }
     }
     return '';
 }
コード例 #2
0
    echo 'value="' . $this->escape($this->rooms) . '"';
    ?>
/>
<?php 
    echo tools_validation_error('rooms', $this->validation);
    ?>
</td>
</tr>

<tr>
<td>
Кімнати:
</td>
<td>
<?php 
    $data = RealEstateAgency_Object_RealEstateObjectSupport::listOfRoomsTypes();
    echo RealEstateAgency_Util::htmlSelect('rooms_type', '', $data, $this->rooms_type, NULL, '');
    echo tools_validation_error('rooms_type', $this->validation);
    ?>
</td>
</tr>

<tr style="background:#dddddd;">
<td>
Вартість, євро:
</td>
<td>
    <input type="text" name="price"
        <?php 
    echo 'value="' . $this->escape($this->price) . '"';
    ?>
コード例 #3
0
     echo $this->escape(' (' . $object->getSettlementSubPartName() . ')');
 }
 echo '</td>';
 echo '<td>';
 echo $this->escape($object->getPrice());
 echo '</td>';
 if (1 == $this->op_type) {
     echo '<td>';
     echo $this->escape($object->getRentPeriod());
     echo '</td>';
 }
 echo '<td align="center">';
 echo $this->escape($object->getRooms());
 echo '</td>';
 echo '<td>';
 echo RealEstateAgency_Object_RealEstateObjectSupport::getRoomsTypeShortly($object->getRoomsType());
 echo '&nbsp;';
 echo '</td>';
 echo '<td>';
 echo $this->escape($object->getFloor());
 echo '&nbsp;/&nbsp;';
 echo $this->escape($object->getFloors());
 echo '</td>';
 echo '<td>';
 echo $this->escape($object->getSquareAll());
 echo '&nbsp;/&nbsp;';
 echo $this->escape($object->getSquareLive());
 echo '&nbsp;/&nbsp;';
 echo $this->escape($object->getSquareKitchen());
 echo '</td>';
 $objectID = $object->getObjectID();
コード例 #4
0
        ?>
 
/>
<?php 
        echo tools_validation_error('external', $this->validation);
        ?>
</td>
</tr>

<tr>
<td>
Наявність телефону:
</td>
<td>
<?php 
        $data = RealEstateAgency_Object_RealEstateObjectSupport::listOfTelephoneTypes();
        echo RealEstateAgency_Util::htmlSelect('tel_type', '', $data, $this->tel_type, NULL, '');
        echo tools_validation_error('tel_type', $this->validation);
        ?>
</td>
</tr>

<tr>
<td>
Додаткова інформація:
</td>
<td>
<textarea type="text" name="description" rows="3" cols="50">
<?php 
        echo $this->escape($this->description);
        ?>