Exemplo n.º 1
0
	(c) 2013 Marcin Szczyglinski
	szczyglis83@gmail.com
	GitHUB: https://github.com/phpos/
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
echo '<a href="#" title="ssss" rel="tooltip">aaaaaaaaaaaaaaaaaaaaaaaa</a>';
echo $layout->title(txt('messager_section_new_desc'));
$my_app->set_param('msg_id', null);
cache_param('msg_id');
$form = new phpos_forms();
$form->onsuccess(helper_reload(array('section' => 'sended')));
echo $form->form_start('new_msg', '', array('app_params' => ''));
$form->input('hidden', 'action', '', '', 'new_msg');
echo $layout->column('50%');
$form->condition('not_null', true, txt('login_empty'));
$form->input('text', 'msg_title', txt('messager_form_title'), txt('messager_form_title_desc'), $start_title);
$form->status();
echo $form->render();
echo $layout->end('column');
echo $layout->column('50%');
$users = new phpos_users();
$users_ids = $users->get_users('ALL');
$i = 0;
$my_id = logged_id();
foreach ($users_ids as $id) {
    $usr_info = new phpos_users();
Exemplo n.º 2
0
    $button = txt('shortcuts_window_btn_rename');
    $form_id = 'new_rename';
    $default_value = strip_tags(base64_decode($old_name));
    $succ_msg = txt('shortcuts_window_msg_rename');
}
$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);
Exemplo n.º 3
0
//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');
$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']);