当前位置: 首页>>代码示例>>PHP>>正文


PHP Form::info方法代码示例

本文整理汇总了PHP中Form::info方法的典型用法代码示例。如果您正苦于以下问题:PHP Form::info方法的具体用法?PHP Form::info怎么用?PHP Form::info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Form的用法示例。


在下文中一共展示了Form::info方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

    }
}
$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'));
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_itemtype.form.php

示例2: die

 */
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&amp;action=change_users&amp;ecmp_ID=' . $edited_EmailCampaign->ID . '">' . T_('Change selection') . ' &gt;&gt;</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
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_campaigns_info.form.php

示例3: Form

$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 . '&amp;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')));
}
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_chapter.form.php

示例4: die

 * @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&amp;action=edit&amp;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'));
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_cronjob.view.php

示例5: die

 * @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();
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_phpbb_replies.form.php

示例6: array

$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();
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:_coll_general.form.php

示例7: die

    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);
    }
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_antispam_settings.form.php

示例8: array

$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));
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_register.disp.php

示例9: Form

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')));
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_phpbb_users.form.php

示例10: Form

    $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>
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_contact_msg.form.php

示例11: T_

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();
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_closeaccount.disp.php

示例12: 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']));
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_edit_comment.disp.php

示例13: Form

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 = '&nbsp;' . action_icon(T_('Edit slugs...'), 'edit', $admin_url . '?ctrl=slugs&amp;slug_item_ID=' . $Item->ID);
    }
    $Form->text('mass_title_' . $Item->ID, htmlspecialchars_decode($Item->get('title')), 70, T_('Title'), '', 255);
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_item_mass_edit.view.php

示例14: die

 * @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')));
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:31,代码来源:_chapter_move.form.php

示例15: die

 *
 * @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&amp;' . 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')));
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_translation.form.php


注:本文中的Form::info方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。