function bs_UploadFileForm() { $uploadinputs = wf_HiddenInput('upload', 'true'); $uploadinputs .= __('File') . ' <input id="fileselector" type="file" name="filename" size="10" /><br>'; $uploadinputs .= wf_Submit('Upload'); $uploadform = bs_UploadFormBody('', 'POST', $uploadinputs, 'glamour'); return $uploadform; }
function web_MigrationUploadForm() { $delimiters = array(';' => ';', '|' => '|', ',' => ','); $encodings = array('utf-8' => 'utf-8', 'windows-1251' => 'windows-1251', 'koi8-u' => 'koi8-u', 'cp866' => 'cp866'); $uploadinputs = wf_HiddenInput('uploaduserbase', 'true'); $uploadinputs .= __('Upload userbase') . ' <input id="fileselector" type="file" name="uluserbase" size="10" /><br>'; $uploadinputs .= wf_Selector('delimiter', $delimiters, __('Delimiter'), '', true); $uploadinputs .= wf_Selector('encoding', $encodings, __('Encoding'), '', true); $uploadinputs .= wf_Submit('Upload'); $uploadform = bs_UploadFormBody('', 'POST', $uploadinputs, 'glamour'); return $uploadform; }
public function document_add_form_show($item, $item_id) { $inputs = wf_HiddenInput(self::FORM_ADD . '[' . $item . '_id]', $item_id); $inputs .= wf_TextInput(self::FORM_ADD . '[title]', __('Title'), null, true, '20'); $inputs .= __('Select document from HDD') . wf_tag('br'); $inputs .= wf_tag('input', false, '', 'id="fileselector" type="file" name="' . self::FORM_ADD . '[file]"') . wf_tag('br'); $inputs .= wf_Submit('Upload'); return bs_UploadFormBody('', 'POST', $inputs, 'glamour'); }
/** * returns bank statement upload form * * @return string */ public function bankstaLoadForm() { $uploadinputs = wf_HiddenInput('uploadukvbanksta', 'true'); $uploadinputs .= __('Bank statement') . wf_tag('br'); $uploadinputs .= wf_tag('input', false, '', 'id="fileselector" type="file" name="ukvbanksta"') . wf_tag('br'); $uploadinputs .= __('Bankstatement type'); $uploadinputs .= wf_RadioInput('ukvbankstatype', __('Oschadbank'), 'oschad', false, true); $uploadinputs .= wf_RadioInput('ukvbankstatype', __('Oschadbank terminal'), 'oschadterm', false, false); $uploadinputs .= wf_RadioInput('ukvbankstatype', __('PrivatBank'), 'privatbankdbf', true, false); $uploadinputs .= wf_Submit('Upload'); $uploadform = bs_UploadFormBody('', 'POST', $uploadinputs, 'glamour'); return $uploadform; }
/** * returns template upload form * * @return string */ public function uploadForm() { $uploadinputs = wf_HiddenInput('uploadtemplate', 'true'); $uploadinputs .= wf_TextInput('templatedisplayname', __('Template display name'), '', true, '15'); $uploadinputs .= wf_CheckInput('publictemplate', __('Template is public'), true, false); $uploadinputs .= __('Upload new document template from HDD') . wf_tag('br'); $uploadinputs .= wf_tag('input', false, '', 'id="fileselector" type="file" name="uldocxtempplate"') . wf_tag('br'); $uploadinputs .= wf_Submit('Upload'); $uploadform = bs_UploadFormBody('', 'POST', $uploadinputs, 'glamour'); return $uploadform; }