當前位置: 首頁>>代碼示例>>PHP>>正文


PHP select::setAttribute方法代碼示例

本文整理匯總了PHP中select::setAttribute方法的典型用法代碼示例。如果您正苦於以下問題:PHP select::setAttribute方法的具體用法?PHP select::setAttribute怎麽用?PHP select::setAttribute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在select的用法示例。


在下文中一共展示了select::setAttribute方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 /**
  * Initialize the products form
  */
 public function initialize($entity = null, $options = array())
 {
     $f = new text("url_base");
     $f->setLabel('URL BASE');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("ativo", array('1' => 'Sim', '0' => 'Não'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("manutencao", array('1' => 'Sim', '0' => 'Não'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("orcamento", array('1' => 'Sim', '0' => 'Não'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("adicionar_carrinho", array('1' => 'Sim', '0' => 'Não'));
     $f->setLabel('Adicionar Carrinho');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("plano");
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new numeric("limite_produtos");
     $f->setLabel('Limite de Produtos');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("certificado", array('certising' => 'Certising', 'comodo' => 'Comodo', 'norton' => 'Norton', 'rapidssl' => 'Rapid SSL', 'site_blindado' => 'Site Blindado'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
 }
開發者ID:denners777,項目名稱:phalcon_ecommerce,代碼行數:33,代碼來源:LojaGeralConfigForm.php

示例2: initialize

 /**
  * Initialize the products form
  */
 public function initialize($entity = null, $options = array())
 {
     $f = new select("template_nome", array('7store' => '7store', 'Bewear' => 'Bewear', 'Bohase' => 'Bohase', 'Classic' => 'Classic', 'Everything' => 'Everything', 'Hosoren' => 'Hosoren', 'Micra' => 'Micra', 'ShopMe' => 'ShopMe', 'Smile' => 'Smile', 'Unicase' => 'Unicase'));
     $f->setLabel('Template Nome');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("template_variacao");
     $f->setLabel('Template Variação');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("imagem_size");
     $f->setLabel('Imagem Size');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("thumbnail_size");
     $f->setLabel('Thumbnail Size');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("paginacao_tipo");
     $f->setLabel('Paginaçao Tipo');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
 }
開發者ID:denners777,項目名稱:phalcon_ecommerce,代碼行數:26,代碼來源:LojaLayoutForm.php


注:本文中的select::setAttribute方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。