recherche.php
来自「Bug tracker, and reporter.」· PHP 代码 · 共 34 行
PHP
34 行
<?phpclass Form_Recherche extends Zend_Form{ public function __construct($options = null) { parent::__construct($options); $this->setName('recherche'); $search = new Zend_Form_Element_Text('search',array('size' => 50)); $search->setLabel('Rechercher'); $submit = new Zend_Form_Element_Submit('submit'); $submit->setLabel('Rechercher'); $this->addElements(array($search,$submit)); $this->clearDecorators(); $this->addDecorator('FormElements') ->addDecorator('HtmlTag', array('tag' => '<fieldset>')) ->addDecorator('Form'); $this->setElementDecorators(array( array('ViewHelper'), array('Errors',array('class'=>'error')), array('Label', array('separator'=>' ')), )); // buttons do not need labels $submit->setDecorators(array( array('ViewHelper'), )); }}?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?