コード例 #1
0
ファイル: Sale.php プロジェクト: stepanets/kww-domstorlib-c
 public function __construct($attr)
 {
     parent::__construct($attr);
     $this->getField('type')->setTitle('Тип участка');
     $square_field = new Domstor_List_Field_SquareGround(array('name' => 'square_ground', 'title' => 'Площадь', 'css_class' => 'domstor_square_ground', 'position' => 101, 'sort_name' => 'sort-square'));
     $living_building_field = new HtmlTableField(array('name' => 'living_building', 'title' => 'Жилые постройки', 'css_class' => 'living_building_type', 'position' => 232));
     $square_house_field = new HtmlTableField(array('name' => 'square_house', 'title' => 'Площадь жилой постройки', 'dont_show_if' => '0', 'adds' => ' кв.м', 'css_class' => 'square_house_type', 'position' => 234));
     $other_building_field = new HtmlYesNoTableField(array('name' => 'other_building', 'title' => 'Прочие постройки', 'yes' => 'Есть', 'css_class' => 'other_building_type', 'position' => 236));
     $this->addField($square_field)->addField($living_building_field)->addField($square_house_field)->addField($other_building_field);
 }
コード例 #2
0
ファイル: Sale.php プロジェクト: stepanets/kww-domstorlib-c
 public function __construct($attr)
 {
     parent::__construct($attr);
     $room_count_field = new HtmlTableField(array('name' => 'room_count', 'title' => 'Число комнат', 'css_class' => 'domstor_room_count', 'dont_show_if' => '0', 'position' => 101, 'sort_name' => 'sort-rooms'));
     $floor_field = new HtmlTableField(array('name' => 'building_floor', 'title' => 'Этажей', 'css_class' => 'domstor_floor', 'dont_show_if' => '0', 'position' => 102, 'sort_name' => 'sort-floor'));
     $square_field = new Domstor_List_Field_Flat_Square(array('name' => 'square', 'title' => 'Площадь, кв.м<br />общ./жил./кух.', 'css_class' => 'domstor_square', 'sort_name' => 'sort-square', 'position' => 234));
     $square_ground_field = new Domstor_List_Field_SquareGround(array('name' => 'square_round', 'title' => 'Площадь участка', 'css_class' => 'domstor_square_round', 'sort_name' => 'sort-ground', '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($floor_field)->addField($square_field)->addField($square_ground_field)->addField($other_building_field);
 }
コード例 #3
0
ファイル: Sale.php プロジェクト: stepanets/kww-domstorlib-c
 public function __construct($attr)
 {
     parent::__construct($attr);
     $this->getField('type')->setTitle('Вид гаража');
     $placing_type_field = new HtmlTableField(array('name' => 'placing_type', 'title' => 'Вид размещения', 'css_class' => 'domstor_placing_type', 'position' => 101));
     $material_wall_field = new HtmlTableField(array('name' => 'material_wall', 'title' => 'Материал стен', 'css_class' => 'domstor_material_wall', 'sort_name' => 'sort-wall', 'position' => 102));
     $size_field = new HtmlDelimitedTableField(array('name' => 'size', 'title' => 'Размеры,&nbsp;м<br />Ш&nbsp;х&nbsp;Д&nbsp;х&nbsp;В', 'css_class' => 'domstor_size', 'params' => array('size_x', 'size_y', 'size_z'), 'delimiter' => '&nbsp;x&nbsp;', 'dont_show_if' => '0', 'position' => 232));
     $cellar_field = new HtmlTableField(array('name' => 'cellar', 'title' => 'Погреб', 'css_class' => 'domstor_cellar', 'position' => 234));
     $this->addField($placing_type_field)->addField($material_wall_field)->addField($size_field)->addField($cellar_field);
 }
コード例 #4
0
ファイル: Sale.php プロジェクト: stepanets/kww-domstorlib-c
 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));
     $floor_field = new Domstor_List_Field_Commerce_Floor(array('name' => 'floor', 'title' => 'Этаж', 'css_class' => 'domstor_floor', 'position' => 231));
     $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_Price(array('name' => 'price', 'css_class' => 'domstor_price', 'action' => $this->action, 'sort_name' => 'sort-price', 'position' => 260));
     $this->checkSquare();
     $this->addField($type_field)->addField($floor_field)->addField($price_field);
     if ($this->show_square_house) {
         $this->addField($square_field);
     }
     if ($this->show_square_ground) {
         $this->addField($square_ground_field);
     }
     if ($this->action == 'rent') {
         $this->getField('price')->setSortName('sort-rent');
     }
 }