function init() { parent::init(); $cur_year = date('Y'); $this->setYearRange($cur_year - 1, $cur_year + 5); $this->c_year = $cur_year; $this->c_month = date('m'); }
function init() { parent::init(); $l = $this->api->locate('addons', __NAMESPACE__, 'location'); $this->api->pathfinder->addLocation($this->api->locate('addons', __NAMESPACE__), array('js' => 'js'))->setParent($l); $this->js()->_load('blueimp/jquery.iframe-transport'); $this->js()->_load('blueimp/jquery.fileupload'); $this->js()->_load('blueimp/atk4-upload'); $this->progressbar = $this->belowField()->add('View'); $this->progressbar->js(true)->progressbar(array('value' => 0)); }
function init() { parent::init(); $this->days = array(); for ($i = 1; $i <= 31; $i++) { $this->days[$i] = str_pad($i, 2, '0', STR_PAD_LEFT); } $cur_year = date('Y'); $this->setYearRange($cur_year - 3, $cur_year + 3); $this->c_year = $cur_year; $this->c_month = date('m'); $this->c_day = date('d'); $this->enable(); }
public function init() { parent::init(); $this->owner->template->set('enctype', 'enctype="multipart/form-data"'); $this->attr['type'] = 'file'; $max_post = $this->convertToBytes(ini_get('post_max_size')) / 2; $max_upload = $this->convertToBytes(ini_get('upload_max_filesize')); $this->max_file_size = (int) min($max_upload, $max_post); /* if($_POST[$this->name.'_token']){ $t=json_decode(stripslashes($_POST[$this->name.'_token'])); $_FILES[$this->name]=array( 'name'=>$t->fileInfo->name, 'tmp_name'=>'upload/temp/'.$t->filename, ); } */ }
function init() { $this->setAttr('rows', $this->rows); parent::init(); }
function init() { parent::init(); $this->default_value = ''; }
function init() { $this->attr = array('rows' => 5); parent::init(); }