✏️ 正在编辑: FolhaPonto.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/application/forms/Filtro/FolhaPonto.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Filtro_FolhaPonto extends Core_Form { public function init() { $this->setMethod('post'); $this->setAttrib('autocomplete', 'on'); $select = new Zend_Form_Element_Select('funcionario_id'); $select->setLabel('Funcionário:') ->setRequired(true) ->addMultiOptions(Core_Combos::getFuncionariosOptions()); $this->addElement($select); $this->addElement('text', 'mes_ano', array( 'label' => "Mês/Ano: ", 'required' => true, 'onkeypress' => 'mascara(this, mesAno)', 'maxlength' => 7, 'value' => Zend_Date::now()->get("MM/yyyy") )); $this->addElement('submit', 'btn_filtrar', array( 'label' => 'Buscar', 'class' => 'bt_find', )); $this->addElement('button', 'btn_new', array( 'label' => 'Novo Registro', 'class' => 'bt_new', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/folha-ponto/save'" )); $this->addElement('button', 'btn_dias_folga', [ 'label' => 'Registrar dias de folga', 'class' => 'bt_folgas', 'onclick' => "window.location='" . $this->getView()->baseUrl() . "/folha-ponto/listar-folgas'" ]); $excel = new Zend_Form_Element_Button('btn_exportar_ponto'); $excel->setAttrib('class', 'bt_excel') ->setLabel('Exportar ponto geral'); $this->addElement($excel); $this->addDisplayGroup(['btn_filtrar', 'btn_new', 'btn_dias_folga', 'btn_exportar_ponto'], 'buttons'); } }
💾 保存文件
← 返回文件管理器