$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%'); $form->title(txt('ftp_authentication'), '', ICONS . 'system_info/key_icon.png'); $form->condition('not_null', true, txt('form_empty_field') . 'Host'); $form->input('text', 'ftp_new_host', 'Host/IP', txt('dsc_ftp_host'), $ftp->get_host()); $form->condition('not_null', true, txt('form_empty_field') . 'Login'); $form->input('text', 'ftp_new_login', 'Login', txt('dsc_ftp_login'), $ftp->get_login()); $form->condition('not_null', true, txt('form_empty_field') . txt('password')); $form->input('password', 'ftp_new_pass', txt('password'), txt('dsc_ftp_pass'), $ftp->get_password()); $form->input('text', 'ftp_new_port', 'Port', txt('dsc_ftp_port'), $ftp->get_port()); $form->status(); $delete_action = "\n\t\t\t\$.messager.confirm('" . txt('delete') . "', '" . txt('delete_confirm') . "?', function(r){\n\t\t\tif (r){\n\t\t\t\tphpos.windowRefresh('" . WIN_ID . "', 'section:list,action:delete,delete_id:" . $ftp->get_id() . "');\t\n\t\t\t}\n\t\t\t});\t"; $form->button(txt('delete'), $delete_action, 'cancel'); $form->submit('', txt('btn_update'), 'edit_add'); //$form->button('', 'button', 'edit_add'); echo $form->render(); echo $layout->end('column'); echo $layout->clr(); echo $form->form_end(); } else { echo $layout->access_denied(); } } else { winreload(WIN_ID, array('section' => 'list')); }
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> </div>'; echo $layout->end('column'); echo $layout->clr(); $js = "\n\t\t\$('#explorer_api_showfiles_" . WIN_ID . "').change(function() {\n\t\t\tvar w = \$('#explorer_api_showfiles_" . WIN_ID . " option:selected').val();\n\t\t\tphpos.windowRefresh('" . WIN_ID . "','view_files_types:'+w);\n\t\t\t//alert(w);\t\t\n\t\t});\n\t\t\n\t\t";
include MY_APP_DIR . 'views/cloud_help_google.php'; echo $layout->end('column'); echo $layout->column('50%'); switch ($cloud_type) { case 'google_drive': echo $layout->txtdesc(txt('dsc_cloud_google_info')); $form->title(txt('cloud_authentication'), '', ICONS . 'auth_key.png'); $form->condition('not_null', true, txt('form_empty_field') . 'ClientID'); $form->input('text', 'cloud_new_login', 'Client ID', txt('dsc_cloud_login'), ''); $form->condition('not_null', true, txt('form_empty_field') . 'Secret'); $form->input('password', 'cloud_new_pass', 'Client Secret', txt('dsc_cloud_pass'), ''); $form->input('text', 'cloud_new_url', 'Redirect URL', txt('dsc_cloud_port'), $_SESSION['PHPOS_NETURL']); break; } $form->status(); $form->submit('', txt('btn_create'), 'edit_add', 'right'); //$form->button('', 'button', 'edit_add'); echo $form->render(); echo $layout->end('column'); echo $layout->clr(); echo $form->form_end(); } else { echo $layout->title('Adding new workgroup', 'icon.png'); echo $layout->column('50%'); echo helper_result('new_ftp'); echo '<script>' . winreload(WIN_ID, array('section' => 'list')) . '</script>'; //echo '<img src="'.MY_RESOURCES_URL.'user_added_img.png" style="width:100px;padding-left:50px"/>'; echo $layout->end('column'); echo $layout->column('50%'); echo $layout->end('column'); echo $layout->clr();
$i = 0; $my_id = logged_id(); foreach ($users_ids as $id) { $usr_info = new phpos_users(); $usr_info->set_id_user($id); $usr_info->get_user_by_id(); $items[$id] = $usr_info->get_user_login(); if ($my_id == $id) { $items[$id] = txt('messager_tbl_me'); } $i++; } $reply_id = $my_app->get_param('reply_id'); $start_user_to = ''; $start_title = ''; $start_msg = ''; if ($reply_id !== null) { $msg = new phpos_messages(); $reply = $msg->get_msg($reply_id); $start_user_to = $reply['id_user_from']; $start_title = 'Re: ' . $reply['title']; $start_msg = '<br /><br />------------------------<br /><b>Reply for message:</b><br />Sent: ' . date('Y.m.d H:i:s', $reply['sended_at']) . '<br /><i>' . $reply['msg'] . '</i><br />------------------------'; } $form->select('msg_to', txt('messager_form_to'), txt('messager_form_to_desc'), $items, $start_user_to); echo $form->render(); echo $layout->end('column'); echo $layout->clr(); $form->texteditor('msg_body', null, null, $start_msg); $form->submit('', txt('messager_btn_send')); echo $form->render(); echo $form->form_end();