public function init() { $this->draft = new Zend_Form_Element_Submit('action'); $this->draft->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label')->setAttrib('class', 'btn'); $this->submit = new Zend_Form_Element_Submit('action'); $this->submit->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label')->setAttrib('class', 'btn btn-success'); $tableArea = new Model_DbTable_Area(); $this->article_title = $this->createElement('text', 'ArticleTitle'); $this->article_title->removeDecorator('HtmlTag'); $this->article_title->removeDecorator('DtDdWrapper'); $this->article_title->removeDecorator('Label'); $this->article_title->setAttrib('class', 'mediumele'); $this->article_title->setRequired(TRUE); $this->SaveStatus = $this->createElement('hidden', 'SaveStatus'); $this->SaveStatus->removeDecorator('HtmlTag'); $this->SaveStatus->removeDecorator('DtDdWrapper'); $this->SaveStatus->removeDecorator('Label'); $this->SaveStatus->setValue(1); $this->articleSortOrder = $this->createElement('text', 'articleSortOrder'); $this->articleSortOrder->removeDecorator('HtmlTag'); $this->articleSortOrder->removeDecorator('DtDdWrapper'); $this->articleSortOrder->removeDecorator('Label'); $this->articleSortOrder->setAttrib('class', 'smallele'); $this->articleSortOrder->setValue(0); $this->article_content = $this->createElement('textarea', 'ArticleContent'); $this->article_content->removeDecorator('HtmlTag'); $this->article_content->removeDecorator('DtDdWrapper'); $this->article_content->removeDecorator('Label'); $this->article_content->setAttribs(array('cols' => 5, 'rows' => 5)); $this->article_content->setRequired(TRUE); $this->article_status = $this->createElement('hidden', 'ArticlePoi'); $this->article_status->removeDecorator('HtmlTag'); $this->article_status->removeDecorator('DtDdWrapper'); $this->article_status->removeDecorator('Label'); $this->article_status->setAttrib('minlength', '2'); $this->article_status->setRequired(TRUE); $this->article_poi_id = $this->createElement('hidden', 'PoiId'); $this->article_poi_id->removeDecorator('HtmlTag'); $this->article_poi_id->removeDecorator('DtDdWrapper'); $this->article_poi_id->removeDecorator('Label'); $this->article_poi_id->setRequired(TRUE); $data = $tableArea->setAreaForSelectElement($this->languageID); // $data = $tableArea->setAreaForSelectElement(1); $temp = array(0 => 'select Island'); $area_data = $temp + $data; $data = array("multiOptions" => $area_data); $this->island_select = $this->createElement('select', 'IslandListOptions', $data); $this->island_select->removeDecorator('HtmlTag'); $this->island_select->removeDecorator('DtDdWrapper'); $this->island_select->removeDecorator('Label'); $this->island_select->setAttrib('onchange', "getAreaList(this.value,0," . $this->languageID . ");"); $this->article_main_image = $this->createElement('text', 'ArticleMainImage'); $this->article_main_image->removeDecorator('HtmlTag'); $this->article_main_image->removeDecorator('DtDdWrapper'); $this->article_main_image->removeDecorator('Label'); }
public function init() { $tableArea = new Model_DbTable_Area(); $tableCategory = new Model_DbTable_Category(); $this->Poi_Name = $this->createElement('text', 'PoiName'); $this->Poi_Name->removeDecorator('HtmlTag'); $this->Poi_Name->removeDecorator('DtDdWrapper'); $this->Poi_Name->removeDecorator('Label'); $this->Poi_Name->setRequired(TRUE); $this->Poi_Name->setAttrib('class', 'mediumele'); $popular = array("multiOptions" => array(0 => "No", 1 => "Yes")); $this->Popular_Select = $this->createElement('select', 'PopularSelect', $popular); $this->Popular_Select->removeDecorator('HtmlTag'); $this->Popular_Select->removeDecorator('DtDdWrapper'); $this->Popular_Select->removeDecorator('Label'); $this->Poi_TagLine = $this->createElement('text', 'PoiTagline'); $this->Poi_TagLine->removeDecorator('HtmlTag'); $this->Poi_TagLine->removeDecorator('DtDdWrapper'); $this->Poi_TagLine->removeDecorator('Label'); $this->Poi_TagLine->setAttrib('class', 'mediumele'); $this->Poi_Address = $this->createElement('text', 'PoiAddress'); $this->Poi_Address->setAttrib('class', 'tableFormInputLong'); $this->Poi_Address->removeDecorator('HtmlTag'); $this->Poi_Address->removeDecorator('DtDdWrapper'); $this->Poi_Address->removeDecorator('Label'); $this->Poi_Address->setAttrib('class', 'mediumele'); $this->Poi_Phone = $this->createElement('text', 'PoiPhone'); $this->Poi_Phone->removeDecorator('HtmlTag'); $this->Poi_Phone->removeDecorator('DtDdWrapper'); $this->Poi_Phone->removeDecorator('Label'); $this->Poi_Phone->setAttrib('class', 'mediumele'); $this->Poi_Website = $this->createElement('text', 'PoiWebsite'); $this->Poi_Website->removeDecorator('HtmlTag'); $this->Poi_Website->removeDecorator('DtDdWrapper'); $this->Poi_Website->removeDecorator('Label'); $this->Poi_Website->setAttrib('class', 'mediumele'); $this->SpecialDestination = $this->createElement('checkbox', 'SpecialDestination'); $this->SpecialDestination->removeDecorator('HtmlTag'); $this->SpecialDestination->removeDecorator('DtDdWrapper'); $this->SpecialDestination->removeDecorator('Label'); $this->SpecialDestination->setCheckedValue(1); $this->SpecialDestination->setUncheckedValue(0); $this->SpecialDestination->setAttrib('onclick', 'showHeaderImage($(this));'); $this->HeaderImage = $this->createElement('text', 'HeaderImage'); $this->HeaderImage->removeDecorator('HtmlTag'); $this->HeaderImage->removeDecorator('DtDdWrapper'); $this->HeaderImage->removeDecorator('Label'); $this->HeaderImage->setAttrib('class', 'disabled'); $category = $tableCategory->getAllParentIdNameForSelectByLangId(2); $this->Category_Select = $this->createElement('select', 'CategorySelect', $category); $this->Category_Select->removeDecorator('HtmlTag'); $this->Category_Select->removeDecorator('DtDdWrapper'); $this->Category_Select->removeDecorator('Label'); $this->Category_Select->setAttrib('onchange', 'getChildCategoryIndo(this.value);'); $category_child = $tableCategory->getAllChildIdNameByParentIdLangId(null, 2); $this->Category_Child = $this->createElement('select', 'CategoryChild', $category_child); $this->Category_Child->removeDecorator('HtmlTag'); $this->Category_Child->removeDecorator('DtDdWrapper'); $this->Category_Child->removeDecorator('Label'); $data = $tableArea->setAreaForSelectElement(1); $temp = array(0 => 'select Island'); $area_data = $temp + $data; $data = array("multiOptions" => $area_data); $this->Island_Select = $this->createElement('select', 'IslandListOptions', $data); $this->Island_Select->removeDecorator('HtmlTag'); $this->Island_Select->removeDecorator('DtDdWrapper'); $this->Island_Select->removeDecorator('Label'); $this->Island_Select->setAttrib('onchange', 'getAreaList(this.value,0);'); $this->Poi_x = $this->createElement('text', 'pointx'); $this->Poi_x->removeDecorator('HtmlTag'); $this->Poi_x->setAttrib('class', 'required'); $this->Poi_x->removeDecorator('DtDdWrapper'); $this->Poi_x->removeDecorator('Label'); $this->Poi_x->setAttrib('onkeyup', 'UpdatePosition();'); $this->Poi_x->setAttrib('class', 'smallele'); $this->Poi_x->setRequired(TRUE); $this->Poi_y = $this->createElement('text', 'pointy'); $this->Poi_y->removeDecorator('HtmlTag'); $this->Poi_y->setAttrib('class', 'required'); $this->Poi_y->removeDecorator('DtDdWrapper'); $this->Poi_y->removeDecorator('Label'); $this->Poi_y->setAttrib('onkeyup', 'UpdatePosition();'); $this->Poi_y->setAttrib('class', 'smallele'); $this->Poi_y->setRequired(TRUE); $this->Poi_Information = $this->createElement('textarea', 'PoiInformation'); $this->Poi_Information->removeDecorator('HtmlTag'); $this->Poi_Information->removeDecorator('DtDdWrapper'); $this->Poi_Information->removeDecorator('Label'); $this->Poi_Information->setAttribs(array('cols' => 5, 'rows' => 5)); $this->Poi_HowToGetThere = $this->createElement('textarea', 'PoiHowToGetThere'); $this->Poi_HowToGetThere->removeDecorator('HtmlTag'); $this->Poi_HowToGetThere->removeDecorator('DtDdWrapper'); $this->Poi_HowToGetThere->removeDecorator('Label'); $this->Poi_HowToGetAround = $this->createElement('textarea', 'PoiHowToGetAround'); $this->Poi_HowToGetAround->removeDecorator('HtmlTag'); $this->Poi_HowToGetAround->removeDecorator('DtDdWrapper'); $this->Poi_HowToGetAround->removeDecorator('Label'); $this->Poi_WhatToDo = $this->createElement('textarea', 'PoiWhatToDo'); $this->Poi_WhatToDo->removeDecorator('HtmlTag'); $this->Poi_WhatToDo->removeDecorator('DtDdWrapper'); $this->Poi_WhatToDo->removeDecorator('Label'); $this->Poi_WhereToEat = $this->createElement('textarea', 'PoiWhereToEat'); $this->Poi_WhereToEat->removeDecorator('HtmlTag'); $this->Poi_WhereToEat->removeDecorator('DtDdWrapper'); $this->Poi_WhereToEat->removeDecorator('Label'); $this->Poi_WhereToStay = $this->createElement('textarea', 'PoiWhereToStay'); $this->Poi_WhereToStay->removeDecorator('HtmlTag'); $this->Poi_WhereToStay->removeDecorator('DtDdWrapper'); $this->Poi_WhereToStay->removeDecorator('Label'); $this->Poi_WhatToBuy = $this->createElement('textarea', 'PoiWhatToBuy'); $this->Poi_WhatToBuy->removeDecorator('HtmlTag'); $this->Poi_WhatToBuy->removeDecorator('DtDdWrapper'); $this->Poi_WhatToBuy->removeDecorator('Label'); $this->Poi_Tips = $this->createElement('textarea', 'PoiTips'); $this->Poi_Tips->removeDecorator('HtmlTag'); $this->Poi_Tips->removeDecorator('DtDdWrapper'); $this->Poi_Tips->removeDecorator('Label'); /*hidden element*/ $this->relPoi_counter = $this->createElement('hidden', 'relPoi_counter'); $this->relPoi_counter->removeDecorator('HtmlTag'); $this->relPoi_counter->removeDecorator('DtDdWrapper'); $this->relPoi_counter->removeDecorator('Label'); $this->relPoi_counter->setValue(0); $this->SaveStatus = $this->createElement('hidden', 'SaveStatus'); $this->SaveStatus->removeDecorator('HtmlTag'); $this->SaveStatus->removeDecorator('DtDdWrapper'); $this->SaveStatus->removeDecorator('Label'); $this->SaveStatus->setValue(1); /** * This element will be used for maximum area counter storage, * when you remove an area this counter number wont be decreased */ $this->Count_area = $this->createElement('hidden', 'MaxArea'); $this->Count_area->removeDecorator('HtmlTag'); $this->Count_area->removeDecorator('DtDdWrapper'); $this->Count_area->removeDecorator('Label'); $this->Count_area->setValue(0); /** * This element will be used for maximum category counter storage, * when you remove a category this counter number wont be decreased */ $this->Count_category = $this->createElement('hidden', 'MaxCategory'); $this->Count_category->removeDecorator('HtmlTag'); $this->Count_category->removeDecorator('DtDdWrapper'); $this->Count_category->removeDecorator('Label'); $this->Count_category->setValue(0); $this->Area_counter = $this->createElement('hidden', 'AreaCounter'); $this->Area_counter->removeDecorator('HtmlTag'); $this->Area_counter->removeDecorator('DtDdWrapper'); $this->Area_counter->removeDecorator('Label'); $this->Area_counter->setValue(0); $this->Category_counter = $this->createElement('hidden', 'CategoryCounter'); $this->Category_counter->removeDecorator('HtmlTag'); $this->Category_counter->removeDecorator('DtDdWrapper'); $this->Category_counter->removeDecorator('Label'); $this->Category_counter->setValue(0); $this->Main_category = $this->createElement('hidden', 'MainCategory'); $this->Main_category->removeDecorator('HtmlTag'); $this->Main_category->removeDecorator('DtDdWrapper'); $this->Main_category->removeDecorator('Label'); $this->Main_category->setValue(0); }
public function init() { $tableArea = new Model_DbTable_Area(); $tableCategory = new Model_DbTable_Category(); $dateValidator = new Zend_Validate_Date(); $this->name = new Zend_Form_Element_Text('Name'); $this->name->setRequired(true)->setAttrib('class', 'span7')->setAttrib('placeholder', 'Masukan Nama Kebudayaan Disini...')->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label'); $this->featured = new Zend_Form_Element_Checkbox('Featured'); $this->featured->setAttrib('class', 'checkbox')->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label'); $this->description = new Zend_Form_Element_Textarea('Description'); $this->description->setAttrib('style', 'width:100%')->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label'); $this->header_image = new Zend_Form_Element_File('Header_image'); $this->header_image->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label'); $this->submit = new Zend_Form_Element_Submit('Submit'); $this->submit->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label')->setAttribs(array('class' => 'btn btn-success', 'id' => 'submit-btn')); $this->draft = new Zend_Form_Element_Submit('Draft'); $this->draft->removeDecorator('HtmlTag')->removeDecorator('DtDdWrapper')->removeDecorator('Label')->setAttribs(array('class' => 'btn', 'id' => 'draft-btn')); $this->videos = new Zend_Form_SubForm(); $category = $tableCategory->getAllParentIdNameForSelectByLangId(1); $this->Category_Select = $this->createElement('select', 'CategorySelect', $category); $this->Category_Select->removeDecorator('HtmlTag'); $this->Category_Select->removeDecorator('DtDdWrapper'); $this->Category_Select->removeDecorator('Label'); $this->Category_Select->setAttrib('onchange', 'getChildCategory(this.value);'); $category_child = $tableCategory->getAllChildIdNameByParentIdLangId(); $this->Category_Child = $this->createElement('select', 'CategoryChild', $category_child); $this->Category_Child->removeDecorator('HtmlTag'); $this->Category_Child->removeDecorator('DtDdWrapper'); $this->Category_Child->removeDecorator('Label'); $data = $tableArea->setAreaForSelectElement(1); $temp = array(0 => 'Pilih Area'); $area_data = $temp + $data; $data = array("multiOptions" => $area_data); $this->Island_Select = $this->createElement('select', 'IslandListOptions', $data); $this->Island_Select->removeDecorator('HtmlTag'); $this->Island_Select->removeDecorator('DtDdWrapper'); $this->Island_Select->removeDecorator('Label'); $this->Island_Select->setAttrib('onchange', 'getAreaList(this.value,0);'); $this->Poi_x = $this->createElement('hidden', 'pointx'); $this->Poi_x->removeDecorator('HtmlTag'); $this->Poi_x->setAttrib('class', 'required'); $this->Poi_x->removeDecorator('DtDdWrapper'); $this->Poi_x->removeDecorator('Label'); $this->Poi_x->setAttrib('onkeyup', 'updatePosition();'); $this->Poi_x->setAttrib('class', 'smallele'); $this->Poi_x->setRequired(TRUE); $this->Poi_y = $this->createElement('hidden', 'pointy'); $this->Poi_y->removeDecorator('HtmlTag'); $this->Poi_y->setAttrib('class', 'required'); $this->Poi_y->removeDecorator('DtDdWrapper'); $this->Poi_y->removeDecorator('Label'); $this->Poi_y->setAttrib('onkeyup', 'updatePosition();'); $this->Poi_y->setAttrib('class', 'smallele'); $this->Poi_y->setRequired(TRUE); /* hidden element */ $this->relPoi_counter = $this->createElement('hidden', 'relPoi_counter'); $this->relPoi_counter->removeDecorator('HtmlTag'); $this->relPoi_counter->removeDecorator('DtDdWrapper'); $this->relPoi_counter->removeDecorator('Label'); $this->relPoi_counter->setValue(0); $this->SaveStatus = $this->createElement('hidden', 'SaveStatus'); $this->SaveStatus->removeDecorator('HtmlTag'); $this->SaveStatus->removeDecorator('DtDdWrapper'); $this->SaveStatus->removeDecorator('Label'); $this->SaveStatus->setValue(1); /** * This element will be used for maximum area counter storage, * when you remove an area this counter number wont be decreased */ $this->Count_area = $this->createElement('hidden', 'MaxArea'); $this->Count_area->removeDecorator('HtmlTag'); $this->Count_area->removeDecorator('DtDdWrapper'); $this->Count_area->removeDecorator('Label'); $this->Count_area->setValue(0); /** * This element will be used for maximum category counter storage, * when you remove a category this counter number wont be decreased */ $this->Count_category = $this->createElement('hidden', 'MaxCategory'); $this->Count_category->removeDecorator('HtmlTag'); $this->Count_category->removeDecorator('DtDdWrapper'); $this->Count_category->removeDecorator('Label'); $this->Count_category->setValue(0); $this->Area_counter = $this->createElement('hidden', 'AreaCounter'); $this->Area_counter->removeDecorator('HtmlTag'); $this->Area_counter->removeDecorator('DtDdWrapper'); $this->Area_counter->removeDecorator('Label'); $this->Area_counter->setValue(0); $this->Category_counter = $this->createElement('hidden', 'CategoryCounter'); $this->Category_counter->removeDecorator('HtmlTag'); $this->Category_counter->removeDecorator('DtDdWrapper'); $this->Category_counter->removeDecorator('Label'); $this->Category_counter->setValue(0); $this->Main_category = $this->createElement('hidden', 'MainCategory'); $this->Main_category->removeDecorator('HtmlTag'); $this->Main_category->removeDecorator('DtDdWrapper'); $this->Main_category->removeDecorator('Label'); $this->Main_category->setValue(0); }
public function init() { $table_classification = new Model_DbTable_Classification(); $table_area = new Model_DbTable_Area(); $this->Count_class = $this->createElement('hidden', 'MaxClass'); $this->Count_class->removeDecorator('HtmlTag'); $this->Count_class->removeDecorator('DtDdWrapper'); $this->Count_class->removeDecorator('Label'); $this->Count_class->setValue(0); $this->TourismOperatorArea = $this->createElement('hidden', 'TourismArea'); $this->TourismOperatorArea->removeDecorator('HtmlTag'); $this->TourismOperatorArea->removeDecorator('DtDdWrapper'); $this->TourismOperatorArea->removeDecorator('Label'); $this->TourismOperatorArea->setValue(0); $this->Class_counter = $this->createElement('hidden', 'ClassCounter'); $this->Class_counter->removeDecorator('HtmlTag'); $this->Class_counter->removeDecorator('DtDdWrapper'); $this->Class_counter->removeDecorator('Label'); $this->Class_counter->setValue(0); $this->TourismOperatorFax = $this->createElement('text', 'TourismOperatorFax'); $this->TourismOperatorFax->removeDecorator('HtmlTag'); $this->TourismOperatorFax->removeDecorator('DtDdWrapper'); $this->TourismOperatorFax->setAttrib('class', 'mediumele'); $this->TourismOperatorFax->removeDecorator('Label'); $this->TourismOperatorStar = $this->createElement('text', 'TourismOperatorStar'); $this->TourismOperatorStar->removeDecorator('HtmlTag'); $this->TourismOperatorStar->removeDecorator('DtDdWrapper'); $this->TourismOperatorStar->setAttrib('class', 'smallele'); $this->TourismOperatorStar->removeDecorator('Label'); $this->TourismOperatorStar->setValue(0); $this->TourismOperatorEmail = $this->createElement('text', 'TourismOperatorEmail'); $this->TourismOperatorEmail->removeDecorator('HtmlTag'); $this->TourismOperatorEmail->removeDecorator('DtDdWrapper'); $this->TourismOperatorEmail->removeDecorator('Label'); $this->TourismOperatorEmail->setAttrib('class', 'mediumele'); $this->TourismOperatorEmail->setAttrib('class', 'tableFormInputNormal'); $this->TourismOperatorLangName = $this->createElement('text', 'TourismOperatorLangName'); $this->TourismOperatorLangName->removeDecorator('HtmlTag'); $this->TourismOperatorLangName->setAttrib('class', 'mediumele'); $this->TourismOperatorLangName->removeDecorator('DtDdWrapper'); $this->TourismOperatorLangName->removeDecorator('Label'); $this->TourismOperatorPhone = $this->createElement('text', 'TourismOperatorPhone'); $this->TourismOperatorPhone->removeDecorator('HtmlTag'); $this->TourismOperatorPhone->removeDecorator('DtDdWrapper'); $this->TourismOperatorPhone->setAttrib('class', 'mediumele'); $this->TourismOperatorPhone->removeDecorator('Label'); $this->TourismOperatorWebsite = $this->createElement('text', 'TourismOperatorWebsite'); $this->TourismOperatorWebsite->removeDecorator('HtmlTag'); $this->TourismOperatorWebsite->removeDecorator('DtDdWrapper'); $this->TourismOperatorWebsite->removeDecorator('Label'); $this->TourismOperatorWebsite->setAttrib('class', 'mediumele'); $this->Pointx = $this->createElement('text', 'Pointx'); $this->Pointx->removeDecorator('HtmlTag'); $this->Pointx->removeDecorator('DtDdWrapper'); $this->Pointx->removeDecorator('Label'); $this->Pointx->setAttrib('class', 'smallele'); $this->Pointx->setAttrib('onkeyup', 'UpdatePosition();'); $this->Pointy = $this->createElement('text', 'Pointy'); $this->Pointy->removeDecorator('HtmlTag'); $this->Pointy->removeDecorator('DtDdWrapper'); $this->Pointy->removeDecorator('Label'); $this->Pointy->setAttrib('onkeyup', 'UpdatePosition();'); $this->Pointy->setAttrib('class', 'smallele'); $classification_list = $table_classification->setClassificationForSelectElement(); $option_value = array("multiOptions" => $classification_list); $this->ClassificationSelect = $this->createElement('select', 'ClassSelect', $option_value); $this->ClassificationSelect->removeDecorator('HtmlTag'); $this->ClassificationSelect->removeDecorator('DtDdWrapper'); $this->ClassificationSelect->removeDecorator('Label'); $data = $table_area->setAreaForSelectElement(1); $temp = array(0 => 'select Island'); $area_data = $temp + $data; $data = array("multiOptions" => $area_data); $this->Island_Select = $this->createElement('select', 'IslandCoverOptions', $data); $this->Island_Select->removeDecorator('HtmlTag'); $this->Island_Select->removeDecorator('DtDdWrapper'); $this->Island_Select->removeDecorator('Label'); $this->Island_Select->setAttrib('onchange', 'getAreaCover(this.value,0);'); $data = $table_area->setAreaForSelectElement(1); $temp = array(0 => 'select Island'); $area_data = $temp + $data; $data = array("multiOptions" => $area_data); $this->AreaSelect = $this->createElement('select', 'IslandListOptions', $data); $this->AreaSelect->removeDecorator('HtmlTag'); $this->AreaSelect->removeDecorator('DtDdWrapper'); $this->AreaSelect->removeDecorator('Label'); $this->AreaSelect->setAttrib('onchange', 'getAreaList(this.value,0);'); $this->Poiselect = $this->createElement('select', 'PopularSelect', $popular); $this->Poiselect->removeDecorator('HtmlTag'); $this->Poiselect->removeDecorator('DtDdWrapper'); $this->Poiselect->removeDecorator('Label'); $this->TourismOperatorAddress = $this->createElement('textarea', 'TourismOperatorAddress'); $this->TourismOperatorAddress->removeDecorator('HtmlTag'); $this->TourismOperatorAddress->removeDecorator('DtDdWrapper'); $this->TourismOperatorAddress->removeDecorator('Label'); $this->TourismOperatorAddress->setAttribs(array('cols' => 20, 'rows' => 5)); $this->TourismOperatorDescription = $this->createElement('textarea', 'TourismOperatorDescription'); $this->TourismOperatorDescription->removeDecorator('HtmlTag'); $this->TourismOperatorDescription->removeDecorator('DtDdWrapper'); $this->TourismOperatorDescription->removeDecorator('Label'); $this->TourismOperatorDescription->setAttribs(array('cols' => 5, 'rows' => 5)); }