✏️ 正在编辑: SolicitacaoPac.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/forms/Filtro/SolicitacaoPac.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_SolicitacaoPac extends Zend_Form { public function init() { $this->setName('f_filtro_solicitacao_pac'); $this->addElement('text', 'nome', array( 'label' => 'Nome:', )); $this->addElement('select', 'atendido', array( 'label' => 'Atendido:', 'multiOptions' => Core_Combos::getSimNaoOptions() )); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); if( Yuppie_Auth::getIdentity()->grupo == 'Corretor' ){ $this->addElement('button', 'btn_new', array( 'label' => 'Nova Solicitação', 'class' => 'bt_new', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/solicitacao-pac/save'" )); } else { $select = new Zend_Form_Element_Select('corretor_id'); $select->setLabel('Corretor:') ->addMultiOptions(Core_Combos::getCorretoresOptions()); $this->addElement($select); } $this->addDisplayGroup(array( 'btn_filtrar', 'btn_new' ), 'buttons'); } }
💾 保存文件
← 返回文件管理器