public function __construct()
 {
     parent::__construct();
     $this->setName(get_class());
     $this->getElement("form_name")->setValue(get_class());
     $oSubmit = $this->createElement("submit", "submit");
     $oSubmit->setLabel("Zapisz");
     $this->addElement($oSubmit);
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     $this->setName(get_class());
     $this->getElement("form_name")->setValue(get_class());
     $oCompanyName = new Zend_Form_Element_Text("site_field_company_name");
     $oCompanyName->setLabel("Nazwa firmy:");
     $oCompanyName->setRequired(FALSE);
     $this->addElement($oCompanyName);
     $oName = new Zend_Form_Element_Text("site_field_name");
     $oName->setLabel("Imię i nazwisko:");
     $oName->setRequired(FALSE);
     $this->addElement($oName);
     $oPhoneNumber = new Zend_Form_Element_Text("site_field_phone_number");
     $oPhoneNumber->setLabel("Numer telefonu:");
     $oPhoneNumber->addValidator(new AppCms2_Validate_CellPhone());
     $oPhoneNumber->setRequired(FALSE);
     $this->addElement($oPhoneNumber);
     $oEmailAddress = new Zend_Form_Element_Text("site_field_email_address");
     $oEmailAddress->setLabel("Adres e-mail:");
     $oEmailAddress->addValidator(new Zend_Validate_EmailAddress());
     $oEmailAddress->setRequired(FALSE);
     $this->addElement($oEmailAddress);
     $oSkype = new Zend_Form_Element_Text("site_field_skype");
     $oSkype->setLabel("Skype:");
     $oSkype->setRequired(FALSE);
     $this->addElement($oSkype);
     $oAddress1 = new Zend_Form_Element_Text("site_field_address1");
     $oAddress1->setLabel("Adres 1:");
     $oAddress1->setRequired(FALSE);
     $this->addElement($oAddress1);
     $oAddress2 = new Zend_Form_Element_Text("site_field_address2");
     $oAddress2->setLabel("Adres 2:");
     $oAddress2->setRequired(FALSE);
     $this->addElement($oAddress2);
     $oTaxNo = new Zend_Form_Element_Text("site_field_tax_no");
     $oTaxNo->setLabel("NIP:");
     $oTaxNo->setRequired(FALSE);
     $this->addElement($oTaxNo);
     $oWebSite = new Zend_Form_Element_Text("site_field_web_site");
     $oWebSite->setLabel("Strona WWW:");
     $oWebSite->setRequired(FALSE);
     $this->addElement($oWebSite);
     $oGoldenLine = new Zend_Form_Element_Text("site_field_golden_line");
     $oGoldenLine->setLabel("Profil GoldenLine:");
     $oGoldenLine->setRequired(FALSE);
     $this->addElement($oGoldenLine);
     $oSubmit = $this->createElement("submit", "submit");
     $oSubmit->setLabel("Zapisz");
     $this->addElement($oSubmit);
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     $this->_aAllGallery = parent::getAllGallery();
     $this->setName(get_class());
     $this->getElement("form_name")->setValue(get_class());
     $oImageGalleryId = new Zend_Form_Element_Select("image_gallery_id");
     $oImageGalleryId->setLabel("Galeria:");
     $oImageGalleryId->setRequired(TRUE);
     $oImageGalleryId->addMultiOptions($this->_aAllGallery);
     $oImageGalleryId->setAttrib("class", "valid");
     $this->addElement($oImageGalleryId);
     $oSubmit = $this->createElement("submit", "submit");
     $oSubmit->setLabel("Zapisz");
     $this->addElement($oSubmit);
 }
 public function __construct()
 {
     parent::__construct();
     $this->setName(get_class());
     $this->getElement("form_name")->setValue(get_class());
     $oContactForm = new Zend_Form_Element_Select("site_field_show_contact_form");
     $oContactForm->setLabel("Formularz kontaktowy:");
     $oContactForm->addValidator(new Zend_Validate_GreaterThan(-1));
     $oContactForm->addValidator(new Zend_Validate_LessThan(2));
     $oContactForm->setRequired(FALSE);
     $oContactForm->addMultiOptions(array(0 => "NIE", 1 => "TAK"));
     $this->addElement($oContactForm);
     $oGoogleMaps = new Zend_Form_Element_Select("site_field_show_google_maps");
     $oGoogleMaps->setLabel("Mapa Google Maps:");
     $oGoogleMaps->addValidator(new Zend_Validate_GreaterThan(-1));
     $oGoogleMaps->addValidator(new Zend_Validate_LessThan(2));
     $oGoogleMaps->setRequired(FALSE);
     $oGoogleMaps->addMultiOptions(array(0 => "NIE", 1 => "TAK"));
     $this->addElement($oGoogleMaps);
     $oSubmit = $this->createElement("submit", "submit");
     $oSubmit->setLabel("Zapisz");
     $this->addElement($oSubmit);
 }
Beispiel #5
0
 public function __construct()
 {
     parent::__construct();
     $this->_aAllMoreMenu = parent::getAllMoreMenu();
     $this->_aAllImage = parent::getAllImage();
     $this->setName(get_class());
     $this->getElement("form_name")->setValue(get_class());
     $oImageBox1 = new Zend_Form_Element_Select("site_field_image_box1");
     $oImageBox1->setLabel("Zdjęcie box1:")->setFilters($this->_aFilters);
     $oImageBox1->setRequired(FALSE);
     $oImageBox1->addMultiOptions($this->_aAllImage);
     $this->addElement($oImageBox1);
     $oHeaderBox1 = new Zend_Form_Element_Text("site_field_header_box1");
     $oHeaderBox1->setLabel("Nagłówek box1:")->setFilters($this->_aFilters);
     $oHeaderBox1->setRequired(FALSE);
     $this->addElement($oHeaderBox1);
     $oBox1 = new Zend_Form_Element_Textarea("site_field_box1");
     $oBox1->setLabel("box1:")->setFilters($this->_aFilters);
     $oBox1->setRequired(FALSE)->setAttrib("class", "ckeditor");
     $this->addElement($oBox1);
     $oMoreBox1 = new Zend_Form_Element_Select("more_box1");
     $oMoreBox1->setLabel("Więcej box1:");
     $oMoreBox1->setRequired(FALSE);
     $oMoreBox1->addMultiOptions($this->_aAllMoreMenu);
     $this->addElement($oMoreBox1);
     $oImageBox2 = new Zend_Form_Element_Select("site_field_image_box2");
     $oImageBox2->setLabel("Zdjęcie box2:")->setFilters($this->_aFilters);
     $oImageBox2->setRequired(FALSE);
     $oImageBox2->addMultiOptions($this->_aAllImage);
     $this->addElement($oImageBox2);
     $oHeaderBox2 = new Zend_Form_Element_Text("site_field_header_box2");
     $oHeaderBox2->setLabel("Nagłówek box2:")->setFilters($this->_aFilters);
     $oHeaderBox2->setRequired(FALSE);
     $this->addElement($oHeaderBox2);
     $oBox2 = new Zend_Form_Element_Textarea("site_field_box2");
     $oBox2->setLabel("box2:")->setFilters($this->_aFilters);
     $oBox2->setRequired(FALSE)->setAttrib("class", "ckeditor");
     $this->addElement($oBox2);
     $oMoreBox2 = new Zend_Form_Element_Select("more_box2");
     $oMoreBox2->setLabel("Więcej box2:");
     $oMoreBox2->setRequired(FALSE);
     $oMoreBox2->addMultiOptions($this->_aAllMoreMenu);
     $this->addElement($oMoreBox2);
     $oImageBox3 = new Zend_Form_Element_Select("site_field_image_box3");
     $oImageBox3->setLabel("Zdjęcie box3:")->setFilters($this->_aFilters);
     $oImageBox3->setRequired(FALSE);
     $oImageBox3->addMultiOptions($this->_aAllImage);
     $this->addElement($oImageBox3);
     $oHeaderBox3 = new Zend_Form_Element_Text("site_field_header_box3");
     $oHeaderBox3->setLabel("Nagłówek box3:")->setFilters($this->_aFilters);
     $oHeaderBox3->setRequired(FALSE);
     $this->addElement($oHeaderBox3);
     $oBox3 = new Zend_Form_Element_Textarea("site_field_box3");
     $oBox3->setLabel("box3:")->setFilters($this->_aFilters);
     $oBox3->setRequired(FALSE)->setAttrib("class", "ckeditor");
     $this->addElement($oBox3);
     $oMoreBox3 = new Zend_Form_Element_Select("more_box3");
     $oMoreBox3->setLabel("Więcej box3:");
     $oMoreBox3->setRequired(FALSE);
     $oMoreBox3->addMultiOptions($this->_aAllMoreMenu);
     $this->addElement($oMoreBox3);
     $oSubmit = $this->createElement("submit", "submit");
     $oSubmit->setLabel("Zapisz");
     $this->addElement($oSubmit);
 }
Beispiel #6
0
 public function __construct()
 {
     parent::__construct();
     $this->setName(get_class());
     $this->getElement("form_name")->setValue(get_class());
     $oCompanyName = new Zend_Form_Element_Text("site_field_company_name");
     $oCompanyName->setLabel("Nazwa firmy:");
     $oCompanyName->setRequired(FALSE);
     $this->addElement($oCompanyName);
     $oName = new Zend_Form_Element_Text("site_field_name");
     $oName->setLabel("Imię i nazwisko:");
     $oName->setRequired(FALSE);
     $this->addElement($oName);
     $oPhoneNumber = new Zend_Form_Element_Text("site_field_phone_number");
     $oPhoneNumber->setLabel("Numer telefonu:");
     $oPhoneNumber->addValidator(new AppCms2_Validate_CellPhone());
     $oPhoneNumber->setRequired(FALSE);
     $this->addElement($oPhoneNumber);
     $oEmailAddress = new Zend_Form_Element_Text("site_field_email_address");
     $oEmailAddress->setLabel("Adres e-mail:");
     $oEmailAddress->addValidator(new Zend_Validate_EmailAddress());
     $oEmailAddress->setRequired(FALSE);
     $this->addElement($oEmailAddress);
     $oSkype = new Zend_Form_Element_Text("site_field_skype");
     $oSkype->setLabel("Skype:");
     $oSkype->setRequired(FALSE);
     $this->addElement($oSkype);
     $oAddress1 = new Zend_Form_Element_Text("site_field_address1");
     $oAddress1->setLabel("Adres 1:");
     $oAddress1->setRequired(FALSE);
     $this->addElement($oAddress1);
     $oAddress2 = new Zend_Form_Element_Text("site_field_address2");
     $oAddress2->setLabel("Adres 2:");
     $oAddress2->setRequired(FALSE);
     $this->addElement($oAddress2);
     $oTaxNo = new Zend_Form_Element_Text("site_field_tax_no");
     $oTaxNo->setLabel("NIP:");
     $oTaxNo->setRequired(FALSE);
     $this->addElement($oTaxNo);
     $oRegon = new Zend_Form_Element_Text("site_field_regon");
     $oRegon->setLabel("REGON:");
     $oRegon->setRequired(FALSE);
     $this->addElement($oRegon);
     $oWebSite = new Zend_Form_Element_Text("site_field_web_site");
     $oWebSite->setLabel("Strona WWW:");
     $oWebSite->setRequired(FALSE);
     $this->addElement($oWebSite);
     $oGoldenLine = new Zend_Form_Element_Text("site_field_golden_line");
     $oGoldenLine->setLabel("Profil GoldenLine:");
     $oGoldenLine->setRequired(FALSE);
     $this->addElement($oGoldenLine);
     $oContactForm = new Zend_Form_Element_Select("site_field_show_contact_form");
     $oContactForm->setLabel("Formularz kontaktowy:");
     $oContactForm->addValidator(new Zend_Validate_GreaterThan(-1));
     $oContactForm->addValidator(new Zend_Validate_LessThan(2));
     $oContactForm->setRequired(FALSE);
     $oContactForm->addMultiOptions(array(0 => "NIE", 1 => "TAK"));
     $this->addElement($oContactForm);
     $oGoogleMaps = new Zend_Form_Element_Select("site_field_show_google_maps");
     $oGoogleMaps->setLabel("Mapa Google Maps:");
     $oGoogleMaps->addValidator(new Zend_Validate_GreaterThan(-1));
     $oGoogleMaps->addValidator(new Zend_Validate_LessThan(2));
     $oGoogleMaps->setRequired(FALSE);
     $oGoogleMaps->addMultiOptions(array(0 => "NIE", 1 => "TAK"));
     $this->addElement($oGoogleMaps);
     $oSubmit = $this->createElement("submit", "submit");
     $oSubmit->setLabel("Zapisz");
     $this->addElement($oSubmit);
 }