✏️ 正在编辑: Prospecto.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/Filtro/Prospecto.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_Prospecto extends Zend_Form { public function init() { $this->setMethod('post'); $this->setName('f_filtro_cliente'); $this->setAttrib('autocomplete', 'off'); $select = new Zend_Form_Element_Select('tipo_registro'); $select->setLabel('Tipo:') ->addMultiOptions($this->_getTiposOptions()); $this->addElement($select); $this->addElement('text', 'nome', array( 'label' => 'Nome:', 'size' => 20 )); $this->addElement('text', 'cpf', array( 'label' => 'CPF:', 'maxlength' => 14, 'onkeypress' => 'mascara(this, fcpf)', 'size' => 14 )); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); $this->addElement('button', 'btn_new', array( 'label' => 'Novo Cadastro', 'class' => 'bt_new', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/prospecto/save'" )); } public function _getTiposOptions() { return array( "-1" => "", "0" => "Prospecto", "1" => "Cliente" ); } }
💾 保存文件
← 返回文件管理器