} } $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,ityp_ID')); $Form->begin_form('fform', $edited_Itemtype->ID > 0 ? T_('Edit post type') : T_('New post type')); $Form->add_crumb('itemtype'); $Form->hiddens_by_key(get_memorized('action' . ($creating ? ',ityp_ID' : ''))); // (this allows to come back to the right list order & page) $Form->begin_fieldset($creating ? T_('New Post Type') . get_manual_link('item-type-form') : T_('Post type') . get_manual_link('item-type-form')); if ($creating) { $Form->text_input('new_ityp_ID', get_param('new_ityp_ID'), 8, T_('ID'), '', array('maxlength' => 10, 'required' => true)); } else { $Form->hidden('ityp_ID', $edited_Itemtype->ID); } if ($edited_Itemtype->is_special()) { // Don't edit a name of special post types $Form->info(T_('Name'), $edited_Itemtype->name); } else { // Display a field to edit a name $Form->text_input('ityp_name', $edited_Itemtype->name, 50, T_('Name'), '', array('maxlength' => 30, 'required' => true)); } $Form->textarea_input('ityp_description', $edited_Itemtype->description, 2, T_('Description'), array('cols' => 47)); $Form->radio('ityp_perm_level', $edited_Itemtype->perm_level, array(array('standard', T_('Standard')), array('restricted', T_('Restricted')), array('admin', T_('Admin'))), T_('Permission level')); $Form->text_input('ityp_backoffice_tab', $edited_Itemtype->backoffice_tab, 25, T_('Back-office tab'), T_('Items of this type will be listed in this back-office tab. If empty, items will be found only in the "All" tab.'), array('maxlength' => 30)); $Form->text_input('ityp_template_name', $edited_Itemtype->template_name, 25, T_('Template name'), T_('b2evolution will automatically append .main.php or .disp.php'), array('maxlength' => 40)); $Form->end_fieldset(); $options = array(array('required', T_('Required')), array('optional', T_('Optional')), array('never', T_('Never'))); // Check if current type is intro and set specific params for the fields "ityp_allow_breaks" and "ityp_allow_featured": $intro_type_disabled = ItemType::is_intro($edited_Itemtype->ID); $intro_type_note = $intro_type_disabled ? T_('This feature is not compatible with Intro posts.') : ''; $Form->begin_fieldset(T_('Features') . get_manual_link('item-type-features'), array('id' => 'itemtype_features')); $Form->radio('ityp_use_title', $edited_Itemtype->use_title, $options, T_('Use title'));
*/ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $admin_url, $tab; global $users_numbers, $edited_EmailCampaign; $Form = new Form(NULL, 'campaign_form'); $Form->begin_form('fform'); $Form->add_crumb('campaign'); $Form->hidden('ctrl', 'campaigns'); $Form->hidden('current_tab', $tab); $Form->hidden('ecmp_ID', $edited_EmailCampaign->ID); $Form->begin_fieldset(T_('Campaign info') . get_manual_link('creating-an-email-campaign')); $Form->text_input('ecmp_name', $edited_EmailCampaign->get('name'), 60, T_('Name'), '', array('maxlength' => 255, 'required' => true)); $Form->text_input('ecmp_email_title', $edited_EmailCampaign->get('email_title'), 60, T_('Email title'), '', array('maxlength' => 255, 'required' => true)); $Form->info(T_('Campaign created'), mysql2localedatetime_spans($edited_EmailCampaign->get('date_ts'), 'M-d')); $Form->info(T_('Last sent'), $edited_EmailCampaign->get('sent_ts') ? mysql2localedatetime_spans($edited_EmailCampaign->get('sent_ts'), 'M-d') : T_('Not sent yet')); $Form->end_fieldset(); $Form->begin_fieldset(T_('Newsletter recipients')); if (!empty($users_numbers)) { // We know this data only one time after selecting users $Form->info(T_('Number of accounts in filterset'), $users_numbers['all']); $Form->info(T_('Number of active accounts in filterset'), $users_numbers['active']); } $Form->info(T_('Currently selected recipients'), $edited_EmailCampaign->get_users_count(), '(' . T_('Accounts which accept newsletter emails') . ') - <a href="' . $admin_url . '?ctrl=campaigns&action=change_users&ecmp_ID=' . $edited_EmailCampaign->ID . '">' . T_('Change selection') . ' >></a>'); $Form->info(T_('Already received'), $edited_EmailCampaign->get_users_count('accept'), '(' . T_('Accounts which have already been sent this newsletter') . ')'); $Form->info(T_('Ready to send'), $edited_EmailCampaign->get_users_count('wait'), '(' . T_('Accounts which have not been sent this newsletter yet') . ')'); $Form->end_fieldset(); $buttons = array(); if ($current_User->check_perm('emails', 'edit')) { // User must has a permission to edit emails
$Form = new Form(NULL, 'form'); $close_url = get_chapter_redirect_url(get_param('redirect_page'), $edited_Chapter->parent_ID, $edited_Chapter->ID); $Form->global_icon(T_('Cancel editing!'), 'close', $close_url); $Form->begin_form('fform', $creating ? T_('New category') : T_('Category')); $Form->add_crumb('element'); $Form->hidden('action', $creating ? 'create' : 'update'); $Form->hiddens_by_key(get_memorized('action')); $Form->begin_fieldset(T_('Properties')); // We're essentially double checking here... $edited_Blog =& $edited_Chapter->get_Blog(); $move = ''; if ($Settings->get('allow_moving_chapters') && !$creating) { // If moving cats between blogs is allowed: $move = ' ' . action_icon(T_('Move to a different blog...'), 'file_move', regenerate_url('action,cat_ID', 'cat_ID=' . $edited_Chapter->ID . '&action=move'), T_('Move')); } $Form->info(T_('Blog'), $edited_Blog->get_maxlen_name() . $move); $Form->select_input_options('cat_parent_ID', $GenericCategoryCache->recurse_select($edited_Chapter->parent_ID, $subset_ID, true, NULL, 0, array($edited_Chapter->ID)), T_('Parent category')); $Form->text_input('cat_name', $edited_Chapter->name, 40, T_('Name'), '', array('required' => true, 'maxlength' => 255)); $Form->text_input('cat_urlname', $edited_Chapter->urlname, 40, T_('URL "slug"'), T_('Used for clean URLs. Must be unique.'), array('maxlength' => 255)); $Form->text_input('cat_description', $edited_Chapter->description, 40, T_('Description'), T_('May be used as a title tag and/or meta description.'), array('maxlength' => 255)); if ($Settings->get('chapter_ordering') == 'manual') { $Form->text_input('cat_order', $edited_Chapter->order, 5, T_('Order'), T_('For manual ordering of the categories.'), array('maxlength' => 11)); } $Form->checkbox_input('cat_meta', $edited_Chapter->meta, T_('Meta category'), array('note' => T_('If you check this box you will not be able to put any posts into this category.'))); $Form->checkbox_input('cat_lock', $edited_Chapter->lock, T_('Locked category'), array('note' => T_('Check this to lock all posts under this category. (Note: for posts with multiple categories, the post is only locked if *all* its categories are locked.)'))); $Form->end_fieldset(); if ($creating) { $Form->end_form(array(array('submit', 'submit', T_('Record'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton'))); } else { $Form->end_form(array(array('submit', 'submit', T_('Update'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton'))); }
* @package admin */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $cjob_row, $current_User, $admin_url; $Form = new Form(NULL, 'cronlog'); if (empty($cjob_row->clog_status) && $current_User->check_perm('options', 'edit', false, NULL)) { // User can edit this job: $Form->global_icon(T_('Edit this job'), 'edit', $admin_url . '?ctrl=crontab&action=edit&ctsk_ID=' . $cjob_row->ctsk_ID, T_('Edit this job...'), 3, 3); } $Form->global_icon(T_('Close sheet'), 'close', regenerate_url('action,cjob_ID')); $manual_link = cron_job_manual_link($cjob_row->ctsk_key); $Form->begin_form('fform', T_('Scheduled job')); $Form->begin_fieldset(T_('Job details') . $manual_link); $Form->info(T_('Job #'), $cjob_row->ctsk_ID); $Form->info(T_('Job name'), cron_job_name($cjob_row->ctsk_key, $cjob_row->ctsk_name, $cjob_row->ctsk_params) . $manual_link); $Form->info(T_('Scheduled at'), mysql2localedatetime($cjob_row->ctsk_start_datetime)); $cjob_repeat_after = ''; if ($cjob_repeat_after_days = floor($cjob_row->ctsk_repeat_after / 86400)) { $cjob_repeat_after .= $cjob_repeat_after_days . ' ' . T_('days') . ' '; } if ($cjob_repeat_after_hours = floor($cjob_row->ctsk_repeat_after % 86400 / 3600)) { $cjob_repeat_after .= $cjob_repeat_after_hours . ' ' . T_('hours') . ' '; } if ($cjob_repeat_after_minutes = floor($cjob_row->ctsk_repeat_after % 3600 / 60)) { $cjob_repeat_after .= $cjob_repeat_after_minutes . ' ' . T_('minutes'); } $Form->info(T_('Repeat every'), $cjob_repeat_after); $Form->end_fieldset(); $Form->begin_fieldset(T_('Execution details') . get_manual_link('scheduled-job-execution-details'));
* @package admin */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $dispatcher, $flush_action; phpbb_display_steps(6); $Form = new Form(); $Form->begin_form('fform', T_('phpBB Importer') . ' - ' . T_('Step 6: Import replies')); evo_flush(); $Form->add_crumb('phpbb'); $Form->hidden_ctrl(); $Form->hidden('action', 'messages'); if ($flush_action == 'replies') { $Form->begin_fieldset(T_('Import log')); // Import the replies into the comments phpbb_import_replies(); $Form->end_fieldset(); } $Form->begin_fieldset(T_('Report of the replies import')); $Form->info(T_('Count of the imported replies'), '<b>' . (int) phpbb_get_var('replies_count_imported') . '</b>'); $Form->info(T_('Count of the imported topics'), (int) phpbb_get_var('topics_count_imported')); $Form->info(T_('Count of the imported forums'), (int) phpbb_get_var('forums_count_imported')); $Form->info(T_('Count of the imported users'), (int) phpbb_get_var('users_count_imported')); $Form->info(T_('Count of the updated users'), (int) phpbb_get_var('users_count_updated')); $BlogCache =& get_BlogCache(); $Blog =& $BlogCache->get_by_ID(phpbb_get_var('blog_ID')); $Form->info(T_('Collection'), $Blog->get('name'), ''); $Form->end_fieldset(); $Form->buttons(array(array('submit', 'submit', T_('Continue!'), 'SaveButton'))); $Form->end_form();
$Form->begin_fieldset(T_('General parameters'), array('class' => 'fieldset clear')); $Form->text('blog_name', $edited_Blog->get('name'), 50, T_('Title'), T_('Will be displayed on top of the blog.')); $Form->text('blog_shortname', $edited_Blog->get('shortname', 'formvalue'), 12, T_('Short name'), T_('Will be used in selection menus and throughout the admin interface.')); if ($current_User->check_perm('blog_admin', 'edit', false, $edited_Blog->ID)) { // Permission to edit advanced admin settings } $owner_User =& $edited_Blog->get_owner_User(); if ($current_User->check_perm('blog_admin', 'edit', false, $edited_Blog->ID)) { // Permission to edit advanced admin settings $Form->text('blog_urlname', $edited_Blog->get('urlname'), 20, T_('URL "filename"'), sprintf(T_('"slug" used to uniquely identify this blog in URLs. Also used as <a %s>default media folder</a>.'), 'href="?ctrl=coll_settings&tab=advanced&blog=' . $blog . '"'), 255); // fp> Note: There are 2 reasons why we don't provide a select here: // 1. If there are 1000 users, it's a pain. // 2. A single blog owner is not necessarily allowed to see all other users. $Form->text('owner_login', $owner_User->login, 20, T_('Owner'), T_('Login of this blog\'s owner.')); } else { $Form->info(T_('URL Name'), $edited_Blog->get('urlname'), T_('Used to uniquely identify this blog in URLs.')); $Form->info(T_('Owner'), $owner_User->login, $owner_User->dget('fullname')); } $Form->select('blog_locale', $edited_Blog->get('locale'), 'locale_options_return', T_('Main Locale'), T_('Determines the language of the navigation links on the blog.')); $Form->end_fieldset(); $Form->begin_fieldset(T_('Content / Posts')); $Form->select_input_array('orderby', $edited_Blog->get_setting('orderby'), array('datestart' => T_('Date issued (Default)'), 'title' => T_('Title'), 'datecreated' => T_('Date created'), 'datemodified' => T_('Date last modified'), 'urltitle' => T_('URL "filename"'), 'priority' => T_('Priority')), T_('Order by'), T_('Default ordering of posts.')); $Form->select_input_array('orderdir', $edited_Blog->get_setting('orderdir'), array('ASC' => T_('Ascending'), 'DESC' => T_('Descending')), T_('Direction')); $Form->radio('what_to_show', $edited_Blog->get_setting('what_to_show'), array(array('days', T_('days')), array('posts', T_('posts'))), T_('Display unit'), false, T_('Do you want to restrict on the number of days or the number of posts?')); $Form->text('posts_per_page', $edited_Blog->get_setting('posts_per_page'), 4, T_('Posts/Days per page'), T_('How many days or posts fo you want to display on the home page?'), 4); $Form->radio('archive_mode', $edited_Blog->get_setting('archive_mode'), array(array('monthly', T_('monthly')), array('weekly', T_('weekly')), array('daily', T_('daily')), array('postbypost', T_('post by post'))), T_('Archive grouping'), false, T_('How do you want to browse the post archives? May also apply to permalinks.')); $Form->end_fieldset(); $Form->begin_fieldset(T_('Description')); $Form->text('blog_tagline', $edited_Blog->get('tagline'), 50, T_('Tagline'), T_('This is diplayed under the blog name on the blog template.'), 250); $Form->textarea('blog_longdesc', $edited_Blog->get('longdesc'), 5, T_('Long Description'), T_('This is displayed on the blog template.'), 50, 'large'); $Form->end_fieldset();
die('Please, do not access this page directly.'); } /** * @var GeneralSettings */ global $Settings; global $Plugins; $Form = new Form(NULL, 'antispam_checkchanges'); $Form->begin_form('fform'); $Form->add_crumb('antispam'); $Form->hiddens_by_key(get_memorized()); $Form->hidden('action', 'update'); $Form->begin_fieldset(T_('Comments/Feedback') . get_manual_link('antispam-settings-comments')); $Form->text('antispam_threshold_publish', $Settings->get('antispam_threshold_publish'), 3, T_('Publishing threshold'), T_("(-100 to 100). Automatically publish feedbacks with a spam karma below this value.")); $Form->text('antispam_threshold_delete', $Settings->get('antispam_threshold_delete'), 3, T_('Deletion threshold'), T_("(-100 to 100). Automatically delete feedbacks with a spam karma over this value.")); $Form->info('', sprintf(T_('Feedbacks with a spam karma between these two thresholds will get the default status of the blog ("%s").'), T_('New feedback status'))); $Form->end_fieldset(); $Form->begin_fieldset(T_('Misc') . get_manual_link('antispam-settings-misc')); $Form->checkbox('antispam_block_spam_referers', $Settings->get('antispam_block_spam_referers'), T_('Block spam referers'), T_('If a referrer has been detected as spam, should we block the request with a "403 Forbidden" page?')); $Form->checkbox('antispam_report_to_central', $Settings->get('antispam_report_to_central'), T_('Report to central blacklist'), T_('When banning a keyword, offer an option to report to the central blacklist.') . ' [<a href="http://b2evolution.net/about/terms.html">' . T_('Terms of service') . '</a>]'); $Form->end_fieldset(); $Form->begin_fieldset(T_('Spam detection relevance weight') . get_manual_link('antispam-settings-detection-relevance-weight')); echo '<p>' . T_('This defines the weight of the plugin, in relation to the others.') . '</p>'; $karma_plugins = $Plugins->get_list_by_events(array('GetSpamKarmaForComment')); if (empty($karma_plugins)) { echo '<p>' . T_('There are no spam karma plugins enabled.') . '</p>'; } else { foreach ($karma_plugins as $loop_Plugin) { $Form->text('antispam_plugin_spam_weight[' . $loop_Plugin->ID . ']', $Plugins->index_ID_rows[$loop_Plugin->ID]['plug_spam_weight'], 2, $loop_Plugin->name); } }
$Form->begin_form($params['form_class_register']); $Plugins->trigger_event('DisplayRegisterFormBefore', array('Form' => &$Form, 'inskin' => true)); $Form->hidden('action', 'register'); $Form->hidden('source', $source); $Form->hidden('redirect_to', $redirect_to); if ($display_invitation == 'input') { // Display an input field to enter invitation code manually or to change incorrect code $invitation_field_params = array('maxlength' => 32, 'class' => 'input_text', 'style' => 'width:138px'); if ($Settings->get('newusers_canregister') == 'invite') { // Invitation code must be required when users can register ONLY with this code $invitation_field_params['required'] = 'required'; } $Form->text_input('invitation', get_param('invitation'), 22, T_('Your invitation code'), '', $invitation_field_params); } elseif ($display_invitation == 'info') { // Display info field (when invitation code is correct) $Form->info(T_('Your invitation code'), get_param('invitation')); $Form->hidden('invitation', get_param('invitation')); } // Login $Form->text_input($dummy_fields['login'], $login, 22, T_('Login'), $params['register_use_placeholders'] ? '' : T_('Choose an username') . '.', array('placeholder' => $params['register_use_placeholders'] ? T_('Choose an username') : '', 'maxlength' => 20, 'class' => 'input_text', 'required' => true, 'input_suffix' => ' <span id="login_status"></span>', 'style' => 'width:' . ($params['register_field_width'] - 2) . 'px')); // Passwords $Form->password_input($dummy_fields['pass1'], '', 18, T_('Password'), array('note' => $params['register_use_placeholders'] ? '' : T_('Choose a password') . '.', 'placeholder' => $params['register_use_placeholders'] ? T_('Choose a password') : '', 'maxlength' => 70, 'class' => 'input_text', 'required' => true, 'style' => 'width:' . $params['register_field_width'] . 'px', 'autocomplete' => 'off')); $Form->password_input($dummy_fields['pass2'], '', 18, '', array('note' => ($params['register_use_placeholders'] ? '' : T_('Please type your password again') . '.') . '<div id="pass2_status" class="red"></div>', 'placeholder' => $params['register_use_placeholders'] ? T_('Please type your password again') : '', 'maxlength' => 70, 'class' => 'input_text', 'required' => true, 'style' => 'width:' . $params['register_field_width'] . 'px', 'autocomplete' => 'off')); // Email $Form->text_input($dummy_fields['email'], $email, 50, T_('Email'), '<br />' . T_('We respect your privacy. Your email will remain strictly confidential.'), array('placeholder' => $params['register_use_placeholders'] ? T_('Email address') : '', 'maxlength' => 255, 'class' => 'input_text wide_input', 'required' => true)); $registration_require_country = (bool) $Settings->get('registration_require_country'); if ($registration_require_country) { // country required $CountryCache =& get_CountryCache(); $Form->select_country('country', param('country', 'integer', 0), $CountryCache, T_('Country'), array('allow_none' => true, 'required' => true)); }
global $dispatcher, $flush_action; phpbb_display_steps(3); $Form = new Form(); $Form->begin_form('fform', T_('phpBB Importer') . ' - ' . T_('Step 3: Import users')); evo_flush(); $Form->add_crumb('phpbb'); $Form->hidden_ctrl(); $Form->hidden('action', 'forums'); if ($flush_action == 'users') { $Form->begin_fieldset(T_('Import log')); // Import the users phpbb_import_users(); $Form->end_fieldset(); } $Form->begin_fieldset(T_('Report of users import')); $Form->info(T_('Count of the imported users'), '<b>' . (int) phpbb_get_var('users_count_imported') . '</b>'); $Form->info(T_('Count of the updated users'), '<b>' . (int) phpbb_get_var('users_count_updated') . '</b>'); $GroupCache =& get_GroupCache(); $group_default = phpbb_get_var('group_default'); if ($Group =& $GroupCache->get_by_ID($group_default, false)) { $Form->info(T_('Default group'), $Group->get_name()); } $group_invalid = phpbb_get_var('group_invalid'); if (!empty($group_invalid) && ($Group =& $GroupCache->get_by_ID($group_invalid, false))) { $group_invalid_name = $Group->get_name(); } else { $group_invalid_name = T_('No import'); } $Form->info(T_('Group for invalid users'), $group_invalid_name); $Form->end_fieldset(); $Form->buttons(array(array('submit', 'submit', T_('Continue!'), 'SaveButton')));
$message = $unsaved_message_params['message']; $email_author = $unsaved_message_params['sender_name']; $email_author_address = $unsaved_message_params['sender_address']; } $Form = new Form($submit_url); $Form->switch_template_parts($params['skin_form_params']); $Form->begin_form('bComment'); $Form->add_crumb('newmessage'); if (isset($Blog)) { $Form->hidden('blog', $Blog->ID); } $Form->hidden('recipient_id', $recipient_id); $Form->hidden('post_id', $post_id); $Form->hidden('comment_id', $comment_id); $Form->hidden('redirect_to', url_rel_to_same_host($redirect_to, $samedomain_htsrv_url)); $Form->info(T_('To'), $recipient_link); // Note: we use funky field names in order to defeat the most basic guestbook spam bots: // email form $Form->text_input($dummy_fields['name'], $email_author, 40, T_('From'), T_('Your name.'), array('maxlength' => 50, 'class' => 'wide_input', 'required' => true)); $Form->text_input($dummy_fields['email'], $email_author_address, 40, T_('Email'), T_('Your email address. (Will <strong>not</strong> be displayed on this site.)'), array('maxlength' => 150, 'class' => 'wide_input', 'required' => true)); $Form->text_input($dummy_fields['subject'], $subject, 40, T_('Subject'), T_('Subject of your message.'), array('maxlength' => 255, 'class' => 'wide_input', 'required' => true)); $Form->textarea($dummy_fields['content'], $message, 15, T_('Message'), T_('Plain text only.'), 35, 'wide_textarea', true); $Plugins->trigger_event('DisplayMessageFormFieldset', array('Form' => &$Form, 'recipient_ID' => &$recipient_id, 'item_ID' => $post_id, 'comment_ID' => $comment_id)); $Form->begin_fieldset(); ?> <div class="input"> <?php $Form->button_input(array('name' => 'submit_message_' . $recipient_id, 'class' => 'submit', 'value' => T_('Send message'))); $Plugins->trigger_event('DisplayMessageFormButton', array('Form' => &$Form, 'recipient_ID' => &$recipient_id, 'item_ID' => $post_id, 'comment_ID' => $comment_id)); ?> </div>
echo '<p>' . T_('We are sorry to see you leave.') . '</p>' . "\n"; echo '<p>' . T_('We value your feedback. Please be so kind and tell us in a few words why you are leaving us. This will help us to improve the site for the future.') . '</p>'; $Form->textarea_input('account_close_reason', '', 6, NULL, array('cols' => 40, 'class' => 'large', 'maxlength' => 255)); echo '<div id="character_counter" class="section_requires_javascript">'; echo '<div id="characters_left_block"></div>'; ?> <script type="text/javascript"> <?php echo 'var counter_text = "' . T_('%s characters left') . '";'; ?> jQuery("#characters_left_block").html( counter_text.replace( "%s", 255 ) ); jQuery("#account_close_reason").bind( "keyup", function(event) { var char_left = 255 - this.value.length; if( char_left < 0 ) { char_left = 0; } jQuery("#characters_left_block").html( counter_text.replace( "%s", char_left ) ); } ); </script> <noscript> <?php echo T_('255 characters max'); ?> </noscript> <?php echo '</div>'; $Form->buttons(array(array('submit', 'submit', T_('Close my account now'), 'SaveButton'))); $Form->info('', '<a href="' . url_add_param($Blog->gen_blogurl(), 'disp=user') . '">' . T_('I changed my mind, don\'t close my account.') . '</a>'); $Form->end_form();
// BREADCRUMBS echo '<div class="post_panel">'; $comment_Item =& $edited_Comment->get_Item(); $main_Chapter =& $comment_Item->get_main_Chapter(); $Skin->display_breadcrumbs($main_Chapter->ID); echo '</div><div class="clear"></div>'; $Form = new Form($form_action, 'comment_edit', 'post'); $Form->switch_template_parts($disp_params['edit_form_params']); $Form->begin_form('inskin', '', $display_params); $Form->add_crumb('comment'); $Form->hidden('blog', $Blog->ID); $Form->hidden('mname', 'collections'); $Form->hidden('action_type', 'comment'); $Form->hidden('comment_ID', $edited_Comment->ID); $Form->hidden('redirect_to', url_add_tail($comment_Item->get_permanent_url(), '#c' . $edited_Comment->ID)); $Form->info(T_('In response to'), $comment_Item->get_title()); if ($edited_Comment->get_author_User()) { $Form->info(T_('Author'), $edited_Comment->get_author()); } else { $Form->text_input('newcomment_author', $edited_Comment->author, 20, T_('Author'), '', array('maxlength' => 100, 'style' => 'width: 99%;')); $Form->text_input('newcomment_author_email', $edited_Comment->author_email, 20, T_('Email'), '', array('maxlength' => 100, 'style' => 'width: 99%;')); $Form->text_input('newcomment_author_url', $edited_Comment->author_url, 20, T_('Website URL'), '', array('maxlength' => 100, 'style' => 'width: 99%;')); } ob_start(); echo '<div class="comment_toolbars">'; // CALL PLUGINS NOW: $Plugins->trigger_event('AdminDisplayToolbar', array('target_type' => 'Comment', 'edit_layout' => NULL, 'Comment' => $edited_Comment)); echo '</div>'; $plugins_toolbar = ob_get_clean(); $Form->switch_template_parts(array('inputstart' => '<td class="row2 left">' . $plugins_toolbar)); $Form->textarea_input('content', $comment_content, $disp_params['textarea_lines'], $disp_params['form_comment_text'], array('cols' => 60, 'style' => 'width:99%', 'id' => $dummy_fields['content']));
global $redirect_to, $current_User, $admin_url; $perm_slugs_view = $current_User->check_perm('slugs', 'view'); $Form = new Form(); $redirect_to = regenerate_url('action', '', '', '&'); $Form->global_icon(T_('Cancel editing!'), 'close', $redirect_to, 4, 2); $Form->begin_form('fform', T_('Mass edit the current post list') . get_manual_link('mass-edit-screen')); // hidden params $Form->add_crumb('item'); $Form->hidden('ctrl', 'items'); $Form->hidden('blog', $Blog->ID); $Form->hidden('redirect_to', $redirect_to); $Form->hidden('filter', 'restore'); // Run the query: $ItemList->query(); if ($ItemList->get_num_rows() > 100) { $Form->info('', sprintf(T_('There are %d posts in your selection, only the first 100 are displayed'), $ItemList->get_num_rows())); } /* * Display posts: */ while ($Item =& $ItemList->get_item()) { if ($ItemList->current_idx > 100) { break; } $Form->begin_fieldset('', array('class' => 'fieldset clear')); $edit_slug_link = ''; if ($perm_slugs_view) { // user has permission to view slugs: $edit_slug_link = ' ' . action_icon(T_('Edit slugs...'), 'edit', $admin_url . '?ctrl=slugs&slug_item_ID=' . $Item->ID); } $Form->text('mass_title_' . $Item->ID, htmlspecialchars_decode($Item->get('title')), 70, T_('Title'), '', 255);
* @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license} * * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/} * * @package admin */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @var Chapter */ global $edited_Chapter; /** * @var BlogCache */ global $BlogCache; global $action; $Form = new Form(NULL, 'form'); $Form->global_icon(T_('Cancel move!'), 'close', regenerate_url('action')); $Form->begin_form('fform', T_('Move category')); $Form->add_crumb('element'); $Form->hidden('action', 'update_move'); $Form->hiddens_by_key(get_memorized('action')); $Form->begin_fieldset(T_('Properties')); $Form->info(T_('Name'), $edited_Chapter->name); // We're essentially double checking here... $edited_Blog =& $edited_Chapter->get_Blog(); $Form->select_input_options($edited_Chapter->dbprefix . 'coll_ID', $BlogCache->get_option_list($edited_Blog->ID), T_('Attached to blog'), T_('If you select a new blog, you will be able to choose a position within this blog on the next screen.')); $Form->end_fieldset(); $Form->end_form(array(array('submit', 'submit', T_('Save Changes!'), 'SaveButton')));
* * @package evocore * * {@internal Below is a list of authors who have contributed to design/coding of this file: }} * @author efy-maxim: Evo Factory / Maxim. * @author fplanque: Francois Planque. * * @version $Id: _region.form.php 9 2011-10-24 22:32:00Z fplanque $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } load_class('regional/model/_country.class.php', 'Country'); /** * @var String */ global $edited_String; // Determine if we are creating or updating... global $action; $creating = is_create_action($action); $Form = new Form(NULL, 'region_checkchanges', 'post', 'compact'); $Form->global_icon(T_('Delete this translated string!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('translation'))); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action')); $Form->begin_form('fform', $creating ? T_('Add new translated string') : T_('Edit a translated string')); $Form->add_crumb('translation'); $Form->hiddens_by_key(get_memorized('action' . ($creating ? ',itst_ID' : ''))); // (this allows to come back to the right list order & page) $Form->info(T_('Original string'), htmlspecialchars($edited_String->iost_string)); $Form->info(T_('Locale'), $edited_String->itst_locale); $Form->textarea('itst_standard', $edited_String->itst_standard, 5, T_('Translated string'), '', 100, '', true); $Form->end_form(array(array('submit', 'actionArray[update]', $creating ? T_('Add') : T_('Update'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton')));
$Form->text_input('eblog_username', $Settings->get('eblog_username'), 25, T_('Account Name'), T_('User name for authenticating on your mail server. Usually it\'s your email address or a part before the @ sign.'), array('maxlength' => 255)); $Form->password_input('eblog_password', $Settings->get('eblog_password'), 25, T_('Password'), array('maxlength' => 255, 'note' => T_('Password for authenticating on your mail server.'))); $Form->checkbox('eblog_delete_emails', $Settings->get('eblog_delete_emails'), T_('Delete processed emails'), T_('Check this if you want processed messages to be deleted form server after successful processing.')); $Form->end_fieldset(); $Form->begin_fieldset(T_('Posting settings') . get_manual_link('post-by-email-posting-settings')); // TODO: provide a list of categories to choose from $Form->text_input('eblog_default_category', $Settings->get('eblog_default_category'), 5, T_('Default Category ID'), sprintf(T_('This is a default category for your posts.') . '<br />' . T_('You can use the following code in message body to define categories: %s. In this example 2 will be main category and 5, 47 extra categories.'), '<b><category>2, 5, 47</category></b>'), array('maxlength' => 6)); $Form->text_input('eblog_default_title', $Settings->get('eblog_default_title'), 50, T_('Default title'), sprintf(T_('This is a default title for your posts.') . '<br />' . T_('You can use the following code in message body to define post title: %s.'), '<b><title>Post title here</title></b>'), array('maxlength' => 255)); $Form->checkbox('eblog_add_imgtag', $Settings->get('eblog_add_imgtag'), T_('Add <img> tags'), T_('Display image attachments using <img> tags (instead of linking them through file manager).')); $Form->text_input('eblog_subject_prefix', $Settings->get('eblog_subject_prefix'), 15, T_('Subject Prefix'), T_('Email subject must start with this prefix to be imported, messages that don\'t have this tag will be skipped.'), array('maxlength' => 255)); $Form->text_input('eblog_body_terminator', $Settings->get('eblog_body_terminator'), 15, T_('Body Terminator'), T_('Starting from this string, everything will be ignored, including this string.') . '<br />' . T_('You can use this to remove signature from message body.'), array('maxlength' => 255)); /* Automatically select a blog from where get plugins collection settings ( current_User should be able to create post on the selected blog )*/ $autoselect_blog = autoselect_blog('blog_post_statuses', 'edit'); $BlogCache =& get_BlogCache(); $setting_Blog =& $BlogCache->get_by_ID($autoselect_blog); $Form->info(T_('Text Renderers'), $Plugins->get_renderer_checkboxes($Settings->get('eblog_renderers'), array('name_prefix' => 'eblog_', 'Blog' => &$setting_Blog))); $Form->end_fieldset(); $Form->begin_fieldset(T_('HTML messages') . get_manual_link('post-by-email-html-messages')); // sam2kb> TODO: display some warning message about potential risk with HTML emails $Form->checkbox('eblog_html_enabled', $Settings->get('eblog_html_enabled'), T_('Enable HTML messages'), T_('Check this if you want HTML messages to be processed and posted in your blog.')); $Form->checkbox('eblog_html_tag_limit', $Settings->get('eblog_html_tag_limit'), T_('Limit allowed tags'), T_('Check this if you want to limit allowed HTML tags to the following list:') . '<br /><b>' . htmlspecialchars(str_replace('>', '> ', $comment_allowed_tags)) . '</b>'); $Form->end_fieldset(); if ($current_User->check_perm('options', 'edit')) { $Form->end_form(array(array('submit', '', T_('Save Changes!'), 'SaveButton'))); } ?> <script type="text/javascript"> jQuery( document ).ready( function() { jQuery( 'input[name="eblog_method"], input[name="eblog_encrypt"]' ).click( function() { // Change default port depending on selected retrieval and encryption methods:
/** * When a comment form gets displayed, we inject our captcha and an input field to * enter the answer. * * The question ID is saved into the user's Session and in the DB table "ip_question". * * @param array Associative array of parameters * - 'Form': the form where payload should get added (by reference, OPTIONALLY!) * - 'form_use_fieldset': * - 'key': A key that is associated to the caller of the event (string, OPTIONALLY!) * @param string Form type ( comment|register|message ) * @return boolean|NULL true, if displayed; false, if error; NULL if it does not apply */ function CaptchaPayload(&$params, $form_type) { global $DB, $Session; if (!$this->does_apply($params, $form_type)) { return; } $question = $this->CaptchaQuestion(); if (empty($question)) { // No the defined questions return; } $this->debug_log('Question ID is: (' . $this->question_ID . ')'); if (!isset($params['Form'])) { // there's no Form where we add to, but we create our own form: $Form = new Form(regenerate_url()); $Form->begin_form(); } else { $Form =& $params['Form']; if (!isset($params['form_use_fieldset']) || $params['form_use_fieldset']) { $Form->begin_fieldset(); } } $Form->info($this->T_('Captcha question'), $question->cptq_question); $Form->text_input('captcha_qstn_' . $this->ID . '_answer', param('captcha_qstn_' . $this->ID . '_answer', 'string', ''), 10, $this->T_('Captcha answer'), $this->T_('Please answer on question above.')); if (!isset($params['Form'])) { // there's no Form where we add to, but our own form: $Form->end_form(array(array('submit', 'submit', $this->T_('Validate me'), 'ActionButton'))); } else { if (!isset($params['form_use_fieldset']) || $params['form_use_fieldset']) { $Form->end_fieldset(); } } return true; }
* @author fplanque: Francois PLANQUE. * * @version $Id: _skin.form.php 3328 2013-03-26 11:44:11Z yura $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @var Skin */ global $edited_Skin; $Form = new Form(NULL, 'skin_checkchanges'); $Form->global_icon(T_('Uninstall this skin!'), 'delete', regenerate_url('action', 'action=delete&' . url_crumb('skin'))); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action')); $Form->begin_form('fform', T_('Skin properties')); $Form->add_crumb('skin'); $Form->hidden_ctrl(); $Form->hidden('action', 'update'); $Form->hidden('skin_ID', $edited_Skin->ID); $Form->begin_fieldset(T_('Skin properties')); Skin::disp_skinshot($edited_Skin->folder, $edited_Skin->name); $Form->text_input('skin_name', $edited_Skin->name, 32, T_('Skin name'), T_('As seen by blog owners'), array('required' => true)); $Form->radio('skin_type', $edited_Skin->type, array(array('normal', T_('Normal'), T_('Normal skin for general browsing')), array('mobile', T_('Mobile'), T_('Mobile skin for mobile phones browsers')), array('tablet', T_('Tablet'), T_('Tablet skin for tablet browsers')), array('feed', T_('XML Feed'), T_('Special system skin for XML feeds like RSS and Atom')), array('sitemap', T_('XML Sitemap'), T_('Special system skin for XML sitemaps'))), T_('Skin type'), true); if ($skin_containers = $edited_Skin->get_containers()) { $container_ul = '<ul><li>' . implode('</li><li>', $skin_containers) . '</li></ul>'; } else { $container_ul = '-'; } $Form->info(T_('Containers'), $container_ul); $Form->end_fieldset(); $Form->end_form(array(array('submit', 'submit', T_('Update'), 'SaveButton'), array('reset', '', T_('Reset'), 'ResetButton')));
?> :</div> <div class="info"> <strong><?php echo $current_User->get_identity_link(array('link_text' => 'text')); ?> </strong> <?php user_profile_link(' [', ']', T_('Edit profile')); ?> </div> </fieldset> <?php $Form->textarea($dummy_fields['content'], '', 12, T_('Comment text'), '', 40, 'bComment'); global $Plugins; $Form->info(T_('Text Renderers'), $Plugins->get_renderer_checkboxes(array('default'), array('Blog' => &$Blog, 'setting_name' => 'coll_apply_comment_rendering'))); $Form->buttons_input(array(array('name' => 'submit', 'value' => T_('Send comment'), 'class' => 'SaveButton'))); ?> <div class="clear"></div> <?php $Form->end_form(); ?> <!-- ========== END of FORM to add a comment ========== --> <?php } // / can comment ?> </div> <?php }
// Set a class when comment contains a email $msgform_class_start = '<div class="comment_recommended_option">'; $msgform_class_end = '</div>'; } $comment_options[] = $msgform_class_start . '<label><input type="checkbox" class="checkbox" name="comment_allow_msgform" tabindex="8"' . ($comment_allow_msgform ? ' checked="checked"' : '') . ' value="1" /> ' . T_('Allow message form') . '</label>' . ' <span class="note">(' . T_('Allow users to contact me through a message form -- Your email will <strong>not</strong> be revealed!') . ')</span>' . $msgform_class_end; // TODO: If we have an email in a cookie, Add links called "Add a contact icon to all my previous comments" and "Remove contact icon from all my previous comments". } if (!empty($comment_options)) { echo $Form->begin_field(NULL, T_('Options'), true); echo implode('<br />', $comment_options); echo $Form->end_field(); } // Display renderers $comment_renderer_checkboxes = $Plugins->get_renderer_checkboxes($comment_renderers, array('Blog' => &$Blog, 'setting_name' => 'coll_apply_comment_rendering')); if (!empty($comment_renderer_checkboxes)) { $Form->info(T_('Text Renderers'), $comment_renderer_checkboxes); } $Plugins->trigger_event('DisplayCommentFormFieldset', array('Form' => &$Form, 'Item' => &$Item)); $Form->begin_fieldset(); echo $Form->buttonsstart; $preview_text = $Item->can_attach() ? T_('Preview/Add file') : T_('Preview'); $Form->button_input(array('name' => 'submit_comment_post_' . $Item->ID . '[preview]', 'class' => 'preview btn-info', 'value' => $preview_text, 'tabindex' => 9)); $Form->button_input(array('name' => 'submit_comment_post_' . $Item->ID . '[save]', 'class' => 'submit SaveButton', 'value' => $params['form_submit_text'], 'tabindex' => 10)); $Plugins->trigger_event('DisplayCommentFormButton', array('Form' => &$Form, 'Item' => &$Item)); echo $Form->buttonsend; $Form->end_fieldset(); ?> <div class="clear"></div> <?php
$Form = new Form(NULL, 'fm_properties_checkchanges'); if (get_param('mode') != 'modal') { $Form->global_icon(T_('Close properties!'), 'close', regenerate_url()); } $Form->begin_form('fform', get_param('mode') == 'modal' ? '' : T_('File properties')); $Form->add_crumb('file'); $Form->hidden_ctrl(); $Form->hidden('action', 'update_properties'); $Form->hiddens_by_key(get_memorized()); $Form->begin_fieldset(T_('Properties')); if ($edit_allowed_perm) { // User can edit: $Form->text('name', $edited_File->dget('name'), 32, T_('Filename'), T_('This is the name of the file on the server hard drive.'), $filename_max_length); } else { // User can view only: $Form->info(T_('Filename'), $edited_File->dget('name'), T_('This is the name of the file on the server hard drive.')); } $Form->info(T_('Type'), $edited_File->get_icon() . ' ' . $edited_File->get_type()); $Form->end_fieldset(); $Form->begin_fieldset(T_('Meta data')); if ($edit_allowed_perm) { // User can edit: $Form->text('title', $edited_File->title, 50, T_('Long title'), T_('This is a longer descriptive title'), 255); $Form->text('alt', $edited_File->alt, 50, T_('Alternative text'), T_('This is useful for images'), 255); $Form->textarea('desc', $edited_File->desc, 10, T_('Caption/Description')); } else { // User can view only: $Form->info(T_('Long title'), $edited_File->dget('title'), T_('This is a longer descriptive title')); $Form->info(T_('Alternative text'), $edited_File->dget('alt'), T_('This is useful for images')); $Form->info(T_('Caption/Description'), $edited_File->dget('desc')); }
if ($group_ID > 0) { // End previous group $profileForm->end_fieldset(); } $profileForm->begin_fieldset($userfield->ufgp_name, array('id' => 'fieldset_user_fields')); } if ($userfield->ufdf_type == 'text') { // convert textarea values $userfield->uf_varchar = nl2br($userfield->uf_varchar); } $userfield_icon = ''; if (!empty($userfield->ufdf_icon_name)) { // Icon $userfield_icon = '<span class="' . $userfield->ufdf_icon_name . ' ufld_' . $userfield->ufdf_code . ' ufld__textcolor"></span> '; } $profileForm->info($userfield_icon . $userfield->ufdf_name, $userfield->uf_varchar); $group_ID = $userfield->ufgp_ID; } if ($group_ID > 0) { // End fieldset if userfields are exist $profileForm->end_fieldset(); } $profileForm->begin_fieldset(T_('Reputation')); $profileForm->info(T_('Number of posts'), $User->get_reputation_posts()); $profileForm->info(T_('Comments'), $User->get_reputation_comments()); $profileForm->info(T_('Photos'), $User->get_reputation_files(array('file_type' => 'image'))); $profileForm->info(T_('Audio'), $User->get_reputation_files(array('file_type' => 'audio'))); $profileForm->info(T_('Other files'), $User->get_reputation_files(array('file_type' => 'other'))); $profileForm->info(T_('Spam fighter score'), $User->get_reputation_spam()); $profileForm->end_fieldset(); $Plugins->trigger_event('DisplayProfileFormFieldset', array('Form' => &$profileForm, 'User' => &$User, 'edit_layout' => 'public'));
*/ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $dispatcher, $flush_action; $Form = new Form(); $Form->begin_form('fform', T_('phpBB Importer') . ' - ' . T_('Step 7: Import messages')); evo_flush(); $Form->add_crumb('phpbb'); $Form->hidden_ctrl(); $Form->hidden('action', 'finish'); if ($flush_action == 'messages') { $Form->begin_fieldset(T_('Import log')); // Import the messages phpbb_import_messages(); $Form->end_fieldset(); } $Form->begin_fieldset(T_('Report of the mesagges import')); $Form->info(T_('Count of the imported messages'), '<b>' . (int) phpbb_get_var('messages_count_imported') . '</b>'); $Form->info(T_('Count of the messages that are NOT imported because of missing users'), '<b class="red">' . (int) phpbb_get_var('messages_count_missing_users') . '</b>'); $Form->info(T_('Count of the imported replies'), (int) phpbb_get_var('replies_count_imported')); $Form->info(T_('Count of the imported topics'), (int) phpbb_get_var('topics_count_imported')); $Form->info(T_('Count of the imported forums'), (int) phpbb_get_var('forums_count_imported')); $Form->info(T_('Count of the imported users'), (int) phpbb_get_var('users_count_imported')); $Form->info(T_('Count of the updated users'), (int) phpbb_get_var('users_count_updated')); $BlogCache =& get_BlogCache(); $Blog =& $BlogCache->get_by_ID(phpbb_get_var('blog_ID')); $Form->info(T_('Blog'), $Blog->get('name'), ''); $Form->end_fieldset(); $Form->buttons(array(array('submit', 'submit', T_('Go to Forum'), 'SaveButton'))); $Form->end_form();
<?php /** * This file implements the Item history details view * * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}. * See also {@link https://github.com/b2evolution/b2evolution}. * * @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license} * * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}. * * @package admin */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $edited_Item, $Revision; $post_statuses = get_visibility_statuses(); $Form = new Form(NULL, 'history', 'post', 'compact'); $Form->global_icon(T_('Cancel viewing!'), 'close', regenerate_url('action', 'action=history')); $Form->begin_form('fform', sprintf(T_('Revision #%s for: %s'), $Revision->iver_ID == 0 ? '(' . T_('Current version') . ')' : $Revision->iver_ID, $edited_Item->get_title())); $Form->info(T_('Date'), mysql2localedatetime($Revision->iver_edit_datetime, 'Y-m-d', 'H:i:s')); $iver_editor_user_link = get_user_identity_link(NULL, $Revision->iver_edit_user_ID); $Form->info(T_('User'), empty($iver_editor_user_link) ? T_('(deleted user)') : $iver_editor_user_link); $Form->info(T_('Status'), $post_statuses[$Revision->iver_status]); $Form->info(T_('Note'), $Revision->iver_ID > 0 ? T_('Archived version') : T_('Current version')); $Form->info(T_('Title'), $Revision->iver_title); $Form->info(T_('Content'), $Revision->iver_content); $Form->end_form();
* @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/}. * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}. * * @package admin */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } /** * @var Slug */ global $edited_IPRange; // Determine if we are creating or updating... global $action; $creating = $action == 'iprange_new'; $Form = new Form(NULL, 'iprange_checkchanges', 'post', 'compact'); $Form->global_icon(T_('Cancel editing!'), 'close', regenerate_url('action,iprange_ID')); $Form->begin_form('fform', ($creating ? T_('New IP Range') : T_('IP Range')) . get_manual_link('ip-range-editing')); $Form->add_crumb('iprange'); $Form->hidden('action', $creating ? 'iprange_create' : 'iprange_update'); $Form->hidden_ctrl(); $Form->hidden('tab', get_param('tab')); $Form->hidden('tab3', get_param('tab3')); $Form->hidden('iprange_ID', param('iprange_ID', 'integer', 0)); $Form->select_input_array('aipr_status', $edited_IPRange->get('status'), aipr_status_titles(), T_('Status'), '', array('force_keys_as_values' => true, 'background_color' => aipr_status_colors(), 'required' => true)); $Form->text_input('aipr_IPv4start', int2ip($edited_IPRange->get('IPv4start')), 50, T_('IP Range Start'), '', array('maxlength' => 15, 'required' => true)); $Form->text_input('aipr_IPv4end', int2ip($edited_IPRange->get('IPv4end')), 50, T_('IP Range End'), '', array('maxlength' => 15, 'required' => true)); $Form->date_input('aipr_IP_timestamp', date2mysql($edited_IPRange->IP_timestamp), T_('Date'), array('required' => true)); $Form->info(T_('User count'), (int) $edited_IPRange->get('user_count')); $Form->info(T_('Block count'), (int) $edited_IPRange->get('block_count')); $Form->end_form(array(array('submit', 'submit', $creating ? T_('Record') : T_('Save Changes!'), 'SaveButton')));
* * {@internal License choice * - If you have received this file as part of a package, please find the license.txt file in * the same folder or the closest folder above for complete license terms. * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) * then you must choose one of the following licenses before using the file: * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php * }} * * {@internal Open Source relicensing agreement: * }} * * @package admin * * @version $Id: _email_sent_details.view.php 349 2011-11-18 11:18:14Z yura $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $MailReturn; $Form = new Form(NULL, 'mail_returns', 'post', 'compact'); $Form->global_icon(T_('Cancel viewing!'), 'close', regenerate_url('blog')); $Form->begin_form('fform', sprintf(T_('Returned mail ID#%s'), $MailReturn->emret_ID)); $Form->info(T_('Date'), mysql2localedatetime_spans($MailReturn->emret_timestamp, 'Y-m-d', 'H:i:sP')); $Form->info(T_('Error Type'), dre_decode_error_type($MailReturn->emret_errtype)); $Form->info(T_('Address'), '<pre class="email_log"><span>' . htmlspecialchars($MailReturn->emret_address) . '</span></pre>'); $Form->info(T_('Error'), '<pre class="email_log"><span>' . htmlspecialchars($MailReturn->emret_errormsg) . '</span></pre>'); $Form->info(T_('Headers'), '<pre class="email_log_scroll"><span>' . htmlspecialchars($MailReturn->emret_headers) . '</span></pre>'); $Form->info(T_('Message'), '<pre class="email_log_scroll"><span>' . htmlspecialchars($MailReturn->emret_message) . '</span></pre>'); $Form->end_form();
* * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}. * See also {@link http://sourceforge.net/projects/evocms/}. * * @copyright (c)2003-2013 by Francois Planque - {@link http://fplanque.com/}. * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}. * * @license http://b2evolution.net/about/license.html GNU General Public License (GPL) * * @package admin * * {@internal Below is a list of authors who have contributed to design/coding of this file: }} * @author fplanque: Francois PLANQUE. * * @version $Id: _wpxml_import.view.php 505 2011-12-09 20:54:21Z fplanque $ */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } global $wp_blog_ID, $dispatcher; $Form = new Form(NULL, '', 'post', NULL, 'multipart/form-data'); $Form->begin_form('fform', T_('WordPress XML Importer')); $Form->begin_fieldset(T_('Report of the import')); $BlogCache =& get_BlogCache(); $Blog =& $BlogCache->get_by_ID($wp_blog_ID); $Form->info(T_('Blog'), $Blog->get_name()); // Import the data and display a report on the screen wpxml_import(); $Form->end_fieldset(); $Form->buttons(array(array('button', 'button', T_('Go to Blog'), 'SaveButton', 'onclick' => 'location.href="' . $Blog->get('url') . '"'), array('button', 'button', T_('Back'), 'SaveButton', 'onclick' => 'location.href="' . $dispatcher . '?ctrl=wpimportxml"'))); $Form->end_form();
// Determine if we are creating or updating... $creating = is_create_action($action); $Form = new Form(NULL, 'form'); $close_url = get_chapter_redirect_url(get_param('redirect_page'), $edited_Chapter->parent_ID, $edited_Chapter->ID); $Form->global_icon(T_('Cancel editing!'), 'close', $close_url); $Form->begin_form('fform', $creating ? T_('New category') : T_('Category')); $Form->add_crumb('element'); $Form->hidden('action', $creating ? 'create' : 'update'); $Form->hiddens_by_key(get_memorized('action')); $Form->begin_fieldset(T_('Properties') . get_manual_link('categories-tab')); // We're essentially double checking here... $edited_Blog =& $edited_Chapter->get_Blog(); $move = ''; if ($Settings->get('allow_moving_chapters') && !$creating) { // If moving cats between blogs is allowed: $move = ' ' . action_icon(T_('Move to a different blog...'), 'file_move', regenerate_url('action,cat_ID', 'cat_ID=' . $edited_Chapter->ID . '&action=move'), T_('Move')); } $Form->info(T_('Collection'), $edited_Blog->get_maxlen_name() . $move); $Form->select_input_options('cat_parent_ID', $ChapterCache->recurse_select($edited_Chapter->parent_ID, $subset_ID, true, NULL, 0, array($edited_Chapter->ID)), T_('Parent category')); $Form->text_input('cat_name', $edited_Chapter->name, 40, T_('Name'), '', array('required' => true, 'maxlength' => 255)); $Form->text_input('cat_urlname', $edited_Chapter->urlname, 40, T_('URL "slug"'), T_('Used for clean URLs. Must be unique.'), array('maxlength' => 255)); $Form->text_input('cat_description', $edited_Chapter->description, 40, T_('Description'), T_('May be used as a title tag and/or meta description.'), array('maxlength' => 255)); $parent_cat_order = $edited_Chapter->get_parent_subcat_ordering(); if ($parent_cat_order == 'manual') { $Form->text_input('cat_order', $edited_Chapter->order, 5, T_('Order'), T_('For manual ordering of the categories.'), array('maxlength' => 11)); } $Form->radio_input('cat_subcat_ordering', $edited_Chapter->get('subcat_ordering'), array(array('value' => 'parent', 'label' => T_('Same as parent')), array('value' => 'alpha', 'label' => T_('Alphabetically')), array('value' => 'manual', 'label' => T_('Manually'))), T_('Sort sub-categories')); $Form->checkbox_input('cat_meta', $edited_Chapter->meta, T_('Meta category'), array('note' => T_('If you check this box you will not be able to put any posts into this category.'))); $Form->checkbox_input('cat_lock', $edited_Chapter->lock, T_('Locked category'), array('note' => T_('Check this to lock all posts under this category. (Note: for posts with multiple categories, the post is only locked if *all* its categories are locked.)'))); $Form->end_fieldset(); $Form->end_form(array(array('submit', 'submit', $creating ? T_('Record') : T_('Save Changes!'), 'SaveButton')));
$Form->begin_form('fform', $creating ? T_('New scheduled job') : T_('Edit scheduled job')); $Form->add_crumb('crontask'); $Form->hiddens_by_key(get_memorized('action')); $Form->hidden('action', $creating ? 'create' : 'update'); $Form->begin_fieldset(T_('Job details') . get_manual_link('scheduled-job-form')); if ($creating && $action != 'copy') { // New cronjob $cron_jobs_names = get_cron_jobs_config('name'); // Exclude these cron jobs from manual creating unset($cron_jobs_names['send-post-notifications']); unset($cron_jobs_names['send-comment-notifications']); $Form->select_input_array('cjob_type', get_param('cjob_type'), $cron_jobs_names, T_('Job type')); } else { // Edit cronjob if ($action == 'edit') { $Form->info(T_('Job #'), $edited_Cronjob->ID); } $Form->info(T_('Default job name'), cron_job_name($edited_Cronjob->key, '', $edited_Cronjob->params)); $Form->text_input('cjob_name', $edited_Cronjob->name, 50, T_('Job name'), '', array('maxlength' => 255)); } $Form->date_input('cjob_date', date2mysql($edited_Cronjob->start_timestamp), T_('Schedule date'), array('required' => true)); $Form->time_input('cjob_time', date2mysql($edited_Cronjob->start_timestamp), T_('Schedule time'), array('required' => true)); $Form->duration_input('cjob_repeat_after', $edited_Cronjob->repeat_after, T_('Repeat every'), 'days', 'minutes', array('minutes_step' => 1)); $Form->end_fieldset(); if (!$creating) { // We can edit only pending cron jobs, Show this field just for info $Form->begin_fieldset(T_('Execution details') . get_manual_link('scheduled-job-execution-details')); $Form->info(T_('Status'), 'pending'); $Form->end_fieldset(); } $Form->end_form(array(array('submit', 'submit', $creating ? T_('Create') : T_('Save Changes!'), 'SaveButton')));
$Form->global_icon(T_('Display info'), 'info', regenerate_url('action,plugin_class', 'action=info&plugin_class=' . $edit_Plugin->classname)); // Close button: $Form->global_icon(T_('Cancel edit!'), 'close', regenerate_url()); $Form->begin_form('fform', '', array('onsubmit' => 'var es=this.elements; for( var i=0; i < es.length; i++ ) { es[i].disabled=false; };')); $Form->add_crumb('plugin'); $Form->hidden_ctrl(); $Form->hidden('plugin_ID', $edit_Plugin->ID); // --------------------------- INFO --------------------------- $Form->begin_fieldset(T_('Plugin info'), array('class' => 'clear')); // Name: $Form->text_input('edited_plugin_name', $edited_plugin_name, 25, T_('Name'), '', array('maxlength' => 255)); // Desc: $Form->text_input('edited_plugin_shortdesc', $edited_plugin_shortdesc, 50, T_('Short desc'), '', array('maxlength' => 255)); // Links to external manual (dh> has been removed from form's global_icons before by fp, but is very useful IMHO): if ($edit_Plugin->get_help_link('$help_url')) { $Form->info(T_('Help'), $edit_Plugin->get_help_link('$help_url')); } $Form->end_fieldset(); // --------------------------- SETTINGS --------------------------- if ($edit_Plugin->Settings) { load_funcs('plugins/_plugin.funcs.php'); // We use output buffers here to only display the fieldset if there's content in there // (either from PluginSettings or PluginSettingsEditDisplayAfter). ob_start(); foreach ($edit_Plugin->GetDefaultSettings($tmp_params = array('for_editing' => true)) as $l_name => $l_meta) { // Display form field for this setting: autoform_display_field($l_name, $l_meta, $Form, 'Settings', $edit_Plugin); } // This can be used add custom input fields or display custom output (e.g. a test link): $admin_Plugins->call_method($edit_Plugin->ID, 'PluginSettingsEditDisplayAfter', $tmp_params = array('Form' => &$Form)); $setting_contents = ob_get_contents();