Exemplo n.º 1
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();
Exemplo n.º 2
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();