✏️ 正在编辑: FiltrosDinamicos.php
路径:
/srv/systems_dir/yuppiecred/application/forms/Filtro/FiltrosDinamicos.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_FiltrosDinamicos extends Core_Form { public function init() { $dbtable = new Model_DbTable_CallcenterBase(); $cols = $dbtable->getColsTable(); $opcoes = array( '=' => '=', '>' => '>', '<' => '<' ); $col = $cols['nome']; // foreach ($cols as $col){ $operacoes = new Zend_Form_Element_Select('operacao'); $operacoes->setName('operacao_'. $col['COLUMN_NAME']); $operacoes->setLabel($col['COLUMN_NAME']); $operacoes->setMultiOptions($opcoes); $this->addElement($operacoes); $this->addElement('text', $col['COLUMN_NAME']); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find' )); $this->_setDefaultDecorators(); } protected function _setDefaultDecorators() { $this->setDecorators(array( 'FormElements', array('HtmlTag', array('tag' => 'dl')), 'Form' )); } }
💾 保存文件
← 返回文件管理器