Пример #1
0
<?php

/*
**********************************

	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;
}
$my_app->set_param('url', null);
$my_app->using('params');
$url_encoded = $my_app->get_param('url');
winset('width', '520');
winset('height', '400');
wincenter();
if (!empty($url_encoded)) {
    $url = base64_decode($url_encoded);
    winset('title', $url);
}
Пример #2
0
        break;
    case 'file_info':
        include MY_APP_DIR . 'controllers/shortcuts_file_info.php';
        break;
    case 'upload':
        include MY_APP_DIR . 'controllers/shortcuts_upload.php';
        break;
    case 'share':
        include MY_APP_DIR . 'controllers/shortcuts_shared.php';
        break;
}
/*
**************************
*/
if (!empty($wincfg['title'])) {
    winset('title', $wincfg['title']);
}
if (!empty($wincfg['width'])) {
    winset('width', $wincfg['width']);
}
if (!empty($wincfg['back']) == 1) {
    $back_button = $layout->back_button($wincfg['back'], link_action($wincfg['back_action']), $wincfg['back'], null);
    if (!empty($wincfg['height'])) {
        $wincfg['height'] = $wincfg['height'] + 100;
    }
}
if (!empty($wincfg['height'])) {
    winset('height', $wincfg['height']);
}
wincenter();
$my_app->jquery_onready(msg::showMessages());
Пример #3
0
	GitHUB: https://github.com/phpos/
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
$layout = new phpos_layout();
$layout->set_fit('true');
$layout->set_style('background:transparent');
$layout->set_id('phpos_explorer_window');
$explorerAPI = $my_app->get_param('api_dialog');
if ($explorerAPI) {
    winset('width', 850);
    winset('height', 500);
    wincenter();
}
?>

<?php 
echo $layout->start();
?>
	

			<?php 
if (!$explorerAPI) {
    include MY_APP_DIR . 'views/inc.layout_header.php';
} else {
    include MY_APP_DIR . 'views/inc.layout_header_api.php';
}
Пример #4
0
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
$link_param = $my_app->get_param('link_param');
$input_title = txt('folder_name');
$button = txt('btn_create');
$form_id = 'new_folder';
$default_value = '';
$succ_msg = txt('created');
$fs = $my_app->get_param('fs');
$success_code = winclose(WIN_ID) . $monit_success;
winset('title', txt('fileinfo_title'));
winset('width', '600');
winset('height', '400');
wincenter();
$app = new phpos_app();
$app->set_app_id($link_param);
$app->load_config();
$form = new phpos_forms();
$html .= $form->form_start($form_id, helper_post_outside('null', '', $after_reload), array('app_params' => ''));
$form->label(txt('fileinfo_name'), base64_decode($my_app->get_param('file_name')));
$form->label(txt('fileinfo_dir'), base64_decode($my_app->get_param('dir_name')));
$form->label(txt('fileinfo_fs'), $fs);
$form->label(txt('fileinfo_type'), base64_decode($my_app->get_param('file_type')));
$form->label(txt('fileinfo_created'), date(DATE_FORMAT, base64_decode($my_app->get_param('file_created'))));
$form->label(txt('fileinfo_modified'), date(DATE_FORMAT, base64_decode($my_app->get_param('file_modified'))));
$form->label(txt('fileinfo_chmod'), file_chmod(base64_decode($my_app->get_param('file_chmod'))));
$html .= $form->render();
$html .= $form->form_end();
Пример #5
0
*/
if (!defined('PHPOS')) {
    die;
}
$link_param = $my_app->get_param('link_param');
$link_id = $my_app->get_param('link_id');
echo 'link_param-' . $link_param . '<br>';
echo 'link_id-' . $link_id . '<br>';
if (!empty($link_id)) {
    $shortcut = new phpos_shortcuts();
    $row = $shortcut->get_shortcut($link_id);
    $start_title = $row['file_title'];
}
$monit_success = "\n\t\tjSuccess(\n\t\t\t'" . txt('created') . "',\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;
winset('title', txt('new_icon_title') . ' - Menu Start');
winset('width', '600');
winset('height', '300');
wincenter();
$form = new phpos_forms();
$form->onsuccess($success_code);
$html .= $form->form_start('new_menustart', helper_ajax('menustartAction.php'), array('app_params' => ''));
$after_reload = $my_app->get_param('after_reload');
$form->reload_after_submit(array($after_reload));
$form->input('hidden', 'new_link_type', '', '', 'menustart');
$form->status();
$form->condition('not_null', true, txt('name_empty'));
$form->input('text', 'new_link_name', txt('icon_name'), '', $start_title);
$form->submit_btn(txt('btn_create'));
$html .= $form->render();
$html .= $form->form_end();
Пример #6
0
<?php 
echo $layout->main();
?>
	



<?php 
$explorerAPI = new phpos_explorerAPI();
$explorerAPI->set_file_extension('txt');
$explorerAPI->set_allowed_extensions($my_app->get_param('allowed_extensions'));
//echo 'id file: '.$my_app->get_param('id_file').'<br>';
if ($my_app->get_param('file_info') !== null) {
    $file_info = $my_app->get_param('file_info');
    winset('title', $file_info['basename']);
    $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');