public function form_start($id, $action = null, $params) { $this->form_data['id'] = $id; $this->form_data['params'] = $params; $this->form_data['action'] = helper_post('', $params); if (!empty($action)) { $this->form_data['action'] = $action; } $str = '<form method="POST" action="' . $this->form_data['action'] . '" id="' . $this->form_data['id'] . '" enctype="multipart/form-data"> <input type="hidden" name="phpos_keep_result" value="1" />'; return $str; }
function form_start_ajax($id, $params) { $str .= '<form method="post" action="' . helper_post('', $params) . '" id="' . $id . '">'; return $str; }
<div class="nav_address_container"> <?php echo $html['addressbar']; ?> </div> </div> <?php if (APP_ACTION == 'index' && $my_app->get_param('fs') == 'ftp' || $my_app->get_param('fs') == 'local_files' && (!$readonly && globalconfig('disable_upload') != 1 || is_root())) { ?> <div id="phpos_explorer_uploader_container" class="easyui-tooltip" title="<?php echo txt('tip_explorer_upload_file'); ?> "> <form enctype="multipart/form-data" method="post" action="<?php echo helper_post('null', array('fs' => $app_param['fs'])); ?> " id="upload" style="background: transparent"> <input type="hidden" name="phpos_upload" value="1"> <input type="hidden" name="posttest" value="postyes"> <img style="height:29px" valign="middle" src="<?php echo PHPOS_WEBROOT_URL; ?> _phpos/themes/default/windows/explorer_upload_icon.png"><input type="file" name="file" style="background: transparent; color:white; font-size:10px"> <input type="submit" value="<?php echo txt('upload'); ?> ">
public function render_address_url() { global $address_icon; if (!empty($address_icon)) { $up_icon = $address_icon; } else { $up_icon = $this->get_icon_protocol(); } $str .= '<form class="explorer_address_form" enctype="multipart/form-data" method="post" action="' . helper_post('null', array('fs' => $this->fs)) . '" id="addressbar_' . $this->window->getID() . '"> <div id="explorer_address_list" class="inline_show explorer_bar_mouseleave"><img class="protocol_icon" src="' . $up_icon . '" /> ' . $this->render_address_links() . ' </div> <a href="javascript:void(0);"><img class="refresh_icon" src="' . THEME_URL . 'windows/explorer_header_go.png"></a> </form>'; return $str; }
PHPOS Web Operating system MIT License (c) 2013 Marcin Szczyglinski szczyglis83@gmail.com GitHUB: https://github.com/phpos/ File version: 1.0.0, 2013.10.08 ********************************** */ if (!defined('PHPOS')) { die; } if ($context_fs != 'db_mysql' && !$readonly) { $dropzone = ' $("div#phpos_explorer_div' . div(1) . '").dropzone({ url: "' . helper_post('null') . '", createImageThumbnails: false, init: function() { this.on("sending", function(file) { jNotify( "' . txt('uploading') . '", { autoHide : true, clickOverlay : false, MinWidth : 300, TimeShown : 4000, ShowTimeEffect : 1000, HideTimeEffect : 600, LongTrip :20,