die;
}
// if section access
$new_id = helper_result('update_ftp_id');
$ftp_id = $my_app->get_param('ftp_id');
if (!empty($ftp_id)) {
    $ftp = new phpos_ftp();
    if ($ftp->is_my_ftp($ftp_id) || is_root() || is_admin() && $ftp->is_my_ftp($ftp_id)) {
        $ftp->set_id($ftp_id);
        $ftp->get_ftp();
        echo $layout->title(txt('edit_ftp'), 'icon.png');
        echo $layout->txtdesc(txt('dsc_ftp_title'));
        echo helper_result('update_ftp');
        $form = new phpos_forms();
        echo $form->form_start('update_ftp', helper_ajax('section.edit_account.php'), array('app_params' => ''));
        $form->reload_after_submit(array('nowy'));
        $form->input('hidden', 'action', '', '', 'update_ftp');
        echo $layout->column('50%');
        $form->title($ftp->get_title(), null, ICONS . 'edit.png');
        $form->condition('not_null', true, txt('form_empty_field') . txt('title'));
        $form->input('text', 'ftp_new_title', txt('title'), txt('dsc_ftp_name'), $ftp->get_title());
        $form->input('text', 'ftp_new_desc', txt('desc'), txt('dsc_ftp_desc'), $ftp->get_desc());
        if (is_root() || is_admin()) {
            $items = array('0' => txt('no'), '1' => txt('yes'));
            $form->radio('ftp_new_public', txt('ftp_form_public'), txt('ftp_form_public_desc'), $items, $ftp->get_is_public());
        } else {
            $form->input('hidden', 'ftp_new_public', '', '', '0');
        }
        echo $form->render();
        echo $layout->end('column');
        echo $layout->column('50%');
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
$layout->set_region('south');
$layout->set_split('false');
$layout->set_fit('true');
$layout->set_style('width:100%;height:100px;background-color:#eff5fb');
echo $layout->custom();
$form = new phpos_forms();
//$form->onsuccess(winclose(WIN_ID));
echo $form->form_start('explorer_api' . WIN_ID, helper_ajax(null), array('app_params' => ''));
$form->reload_after_submit(array(WIN_ID));
echo $layout->column('60%');
$form->condition('not_null', true, txt('name_empty'));
$form->input('text', 'explorer_save_as_filename', txt('explorer_api_file_name'), '', $default_value);
$form->submit('', txt('explorer_api_file_btn'));
echo $form->render();
echo $form->form_end();
echo $layout->end('column');
echo $layout->column('40%');
$select_view['allowed'] = '';
$select_view['all'] = '';
$select_choosen = $my_app->get_param('view_files_types');
$select_view[$select_choosen] = ' selected';
echo '<div class="form_area_row input_row_mouseleave" style="border:0px;padding-top:5px">
		
		<select id="explorer_api_showfiles_' . WIN_ID . '" onchange="$(this).submit();" name="type"><option value="allowed"' . $select_view['allowed'] . '>' . txt('explorer_api_window_view_allowed') . '</option><option value="all"' . $select_view['all'] . '>' . txt('explorer_api_window_view_all') . '</option></select>
Example #3
0
$monit_success = "\n\t\tjSuccess(\n\t\t\t'" . $succ_msg . "',\n\t\t\t{\n\t\t\t\tautoHide : true, \n\t\t\t\tclickOverlay : false,\n\t\t\t\tMinWidth : 200,\n\t\t\t\tTimeShown : 5000,\n\t\t\t\tShowTimeEffect : 1000,\n\t\t\t\tHideTimeEffect : 600,\n\t\t\t\tLongTrip :20,\n\t\t\t\tHorizontalPosition : 'right',\n\t\t\t\tVerticalPosition : 'bottom',\n\t\t\t\tShowOverlay : false\n\t\t\t}\n\t\t);";
$success_code = winclose(WIN_ID) . $monit_success;
/*
**************************
*/
$app = new phpos_app();
$app->set_app_id($link_param);
$app->load_config();
$after_reload = $my_app->get_param('after_reload');
$form = new phpos_forms();
$form->onsuccess($success_code);
if (empty($old_name)) {
    $html .= $layout->subtitle(txt('shortcuts_newdir_title'), MY_RESOURCES_URL . 'folder.png');
    $html .= $layout->txtdesc(txt('shortcuts_newdir_desc'));
} else {
    $html .= $layout->subtitle(txt('shortcuts_rename_title'), MY_RESOURCES_URL . 'rename.png');
    $html .= $layout->txtdesc(txt('shortcuts_rename_desc'));
}
$html .= $form->form_start($form_id, helper_post_outside('null', '', $after_reload), array('app_params' => ''));
$form->reload_after_submit(array($after_reload));
if (!empty($edit_id)) {
    $form->input('hidden', 'edit_id', '', '', strip_tags(base64_decode($edit_id)));
}
$form->status();
$form->condition('not_null', true, txt('name_empty'));
$form->input('text', 'new_folder_name', $input_title, $input_tip, $default_value);
$html .= $form->render();
$form->submit_btn($button);
$next_button = $form->render();
//$html.= $form->render();
$html .= $form->form_end();
Example #4
0
    $explorerAPI->set_file_info($file_info);
    $str_file = '<span style="color:black; font-weight:bold;font-size:16px">' . $file_info['basename'] . ' </span>';
    $str_fileinfo = '<img src="' . MY_RESOURCES_URL . 'db_file.png" />' . $str_file . ' <b style="padding-left:30px;color:black">' . txt('last_mod') . ':</b> ' . date('Y.m.d. H:i', $file_info['modified_at']) . ', <b style="color:black">' . txt('filesystem') . ':</b> ' . txt('fs_' . $file_info['fs']);
    echo "<script>\$('#notepadform input[name=action]').val('save');</script>";
    //echo $layout->subtitle('<span style="color:black">'.$file_info['basename'].' </span>', MY_RESOURCES_URL.'db_file.png');
} else {
    $str_fileinfo = '<img src="' . MY_RESOURCES_URL . 'db_file.png" /><span style="color:black; font-weight:bold;font-size:16px">' . txt('app_notepad_new_unsaved') . '</span>';
}
$save_action = "\t\t\t\n\t\t\$('#notepadform input[name=action]').val('save');\n\t\t\$('#notepadform').submit(); \t\t\n\t\t";
$save_as_action = "\t\t\t\n\t\t\$('#notepadform input[name=action]').val('save_as');\n\t\t\$('#notepadform').submit(); \t\t\n\t\t";
$forma = new phpos_forms();
$forma->onsuccess($explorerAPI->savefile_dialog());
echo $forma->form_start('notepadform', '', array('app_params' => ''));
$forma->input('hidden', 'win_id', '', '', WIN_ID);
$forma->input('hidden', 'action', '', '', 'save_as');
$forma->reload_after_submit(array('n'));
$forma->texteditor('txt', null, null, $my_app->get_param('notepad'));
if (is_array($file_info)) {
    $forma->button(txt('save'), $save_action, 'filesave');
}
$forma->button(txt('save_as'), $save_as_action, 'edit_add');
$forma->status();
echo $forma->render();
echo $forma->form_end();
/*	
	echo '<pre>';
	print_r($_SESSION['phpos_savefiles_handler']);
	echo '</pre>';
*/
?>