コード例 #1
0
 public function __construct($attr)
 {
     parent::__construct($attr);
     $this->getField('type')->setTitle('Вид гаража');
     $cellar_field = new HtmlTableField(array('name' => 'cellar_want', 'title' => 'Наличие погреба', 'css_class' => 'domstor_cellar', 'position' => 234));
     $this->addField($cellar_field);
 }
コード例 #2
0
 public function __construct($attr)
 {
     parent::__construct($attr);
     $this->getField('type')->setTitle('Тип участка');
     $square_field = new Domstor_List_Field_SquareGroundDemand(array('name' => 'square_ground', 'title' => 'Площадь', 'css_class' => 'domstor_square_ground', 'position' => 101));
     $address_field = new Domstor_List_Field_AddressDemand(array('name' => 'address', 'title' => 'Местоположение', 'css_class' => 'domstor_address', 'position' => 230, 'object_href' => $this->object_href));
     $living_building_field = new HtmlTableField(array('name' => 'living_building', 'title' => 'Жилые постройки', 'css_class' => 'living_building_type', 'position' => 232));
     $this->addField($square_field)->addField($address_field)->addField($living_building_field);
 }
コード例 #3
0
 public function __construct($attr)
 {
     parent::__construct($attr);
     $room_count_field = new HtmlMinMaxTableField(array('name' => 'room_count', 'title' => 'Число комнат', 'min' => 'room_count_min', 'max' => 'room_count_max', 'dont_show_if' => '0', 'position' => 101));
     $square_field = new HtmlMinMaxTableField(array('name' => 'square_house', 'title' => 'Площадь дома', 'min' => 'square_house_min', 'max' => 'square_house_max', 'dont_show_if' => '0', 'adds' => ' кв.м.', 'position' => 234));
     $square_ground_field = new Domstor_List_Field_SquareGroundDemand(array('name' => 'square_round', 'title' => 'Площадь участка', 'css_class' => 'domstor_square_round', 'position' => 236));
     $other_building_field = new HtmlTableField(array('name' => 'other_building', 'title' => 'Постройки', 'css_class' => 'domstor_other_building', 'position' => 238));
     $this->addField($room_count_field)->addField($square_field)->addField($square_ground_field);
 }
コード例 #4
0
 public function __construct($attr)
 {
     parent::__construct($attr);
     $room_count_field = new Domstor_List_Field_Flat_DemandRooms(array('name' => 'room_count', 'title' => 'Число комнат', 'css_class' => 'domstor_room_count', 'sort_name' => 'sort-rooms', 'position' => 1));
     $floor_field = new Domstor_List_Field_Flat_DemandFloor(array('name' => 'floor', 'title' => 'Этаж', 'css_class' => 'domstor_floor', 'position' => 201));
     $building_material_field = new HtmlTableField(array('name' => 'building_material', 'title' => 'Материал строения', 'css_class' => 'domstor_building_material', 'position' => 101));
     $phone_field = new HtmlTableField(array('name' => 'phone_want', 'title' => 'Телефон', 'css_class' => 'domstor_phone', 'position' => 236));
     $this->addField($room_count_field)->addField($floor_field)->addField($building_material_field)->addField($phone_field)->getField('type')->removeSortName();
 }
コード例 #5
0
 public function __construct($attr)
 {
     parent::__construct($attr);
     $this->addCssClass('commerce_' . $this->action);
     $type_field = new Domstor_List_Field_Commerce_Purpose(array('name' => 'type', 'title' => 'Назначение', 'css_class' => 'domstor_type', 'sort_name' => 'sort-purpose', 'position' => 100));
     $square_field = new Domstor_List_Field_Commerce_Square(array('name' => 'square_house', 'title' => 'Площадь', 'css_class' => 'domstor_square_house', 'sort_name' => 'sort-square', 'position' => 232));
     $square_ground_field = new Domstor_List_Field_Commerce_SquareGround(array('name' => 'square_ground', 'title' => 'Площадь земельного участка', 'css_class' => 'domstor_square_ground', 'sort_name' => 'sort-groundsq', 'position' => 233));
     $price_field = new Domstor_List_Field_Commerce_DemandPrice(array('name' => 'price', 'css_class' => 'domstor_price', 'sort_name' => 'sort-price', 'position' => 260, 'action' => $this->action));
     $this->checkSquare();
     $this->addField($type_field)->addField($price_field);
     if ($this->show_square_house) {
         $this->addField($square_field);
     }
     if ($this->show_square_ground) {
         $this->addField($square_ground_field);
     }
 }