✏️ 正在编辑: Split.php
路径:
/srv/systems_dir/koruspay/application/forms/Split.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Form_Split extends Yuppie_Form_Save { public function init() { $this->addElement('file', 'file', [ 'label' => 'Arquivo (.csv)', 'validators' => [ ['Size', false, '2MB'], ['Extension', false, 'csv'] ] ]); $this->_initButtons(); } protected function _initButtons() { $front = Zend_Controller_Front::getInstance(); $request = $front->getRequest(); $params = $request->getParams(); $this->addElement('submit', 'save', [ 'label' => 'Enviar', 'iconLeft' => 'glyphicon glyphicon-floppy-disk', 'buttonType' => 'primary', 'ignore' => true, 'class' => 'btn-xs-block' ]); $this->addElement('button', 'back', array( 'label' => 'Voltar', 'iconLeft' => 'glyphicon glyphicon-arrow-left', 'ignore' => true, 'formnovalidate' => 'formnovalidate', 'onclick' => "window.location='". $this->getView()->url([ 'module' => $params['module'], 'controller' => $params['controller'], 'action' => 'index' ], null, true) ."'", 'class' => 'btn-xs-block' )); $this->addDisplayGroup( array('back', 'save'), 'buttons', array( 'decorators' => array( 'FormElements', array('HtmlTag', array( 'class' => 'col-sm-12 buttons', 'tag' => 'div') ) ) ) ); } }
💾 保存文件
← 返回文件管理器