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


PHP FormContainer::output_row方法代码示例

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


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

示例1: main_page

function main_page()
{
    $form = new Form('index.php?module=cloudflare-purge_cache&action=purge', 'post');
    $form_container = new FormContainer('Purge Cache');
    $form_container->output_row('Purge Entire Cache', 'Remove ALL files from CloudFlare\'s cache. This will include javascript, stylesheets and images. CloudFlare can take up to 3 hours to recache resources again<br /><b>Note: </b>This may have dramatic affects on your origin server load after performing this action.', $form->generate_yes_no_radio('purge_input', 0));
    $form_container->output_row('Purge by URL', 'Granularly remove one or more files from CloudFlare\'s cache either by specifying the URL<br /><b>Note: </b><u>One</u> URL per line (max: 30)', $form->generate_text_area('urls'));
    $form_container->end();
    $buttons[] = $form->generate_submit_button('Submit');
    $form->output_submit_wrapper($buttons);
    $form->end();
}
开发者ID:dequeues,项目名称:MyBB-CloudFlare-Manager,代码行数:11,代码来源:cloudflare_purge_cache.php

示例2: main_page

function main_page()
{
    $form = new Form("index.php?module=cloudflare-whitelist&amp;action=run", "post");
    $form_container = new FormContainer("Whitelist an IP");
    $form_container->output_row("IP Address", "The IP address you would like to whitelist", $form->generate_text_box('ip_address'));
    $form_container->output_row("Notes", "Any notes you would like to add", $form->generate_text_box('notes'));
    $form_container->end();
    $buttons[] = $form->generate_submit_button("Submit");
    $form->output_submit_wrapper($buttons);
    $form->end();
}
开发者ID:dequeues,项目名称:MyBB-CloudFlare-Manager,代码行数:11,代码来源:cloudflare_whitelist.php

示例3: main_page

function main_page()
{
    $form = new Form("index.php?module=cloudflare-challenge&amp;action=add_ip", "post");
    $form_container = new FormContainer("Challenge an IP");
    $form_container->output_row("IP Address", "The IP address won't be able to access your site until they have completed the captcha successfully or you have removed them from the challenge list.", $form->generate_text_box('ip_address'));
    $form_container->output_row("Notes", "Any notes you would like to add", $form->generate_text_box('notes'));
    $form_container->end();
    $buttons[] = $form->generate_submit_button("Submit");
    $form->output_submit_wrapper($buttons);
    $form->end();
}
开发者ID:dequeues,项目名称:MyBB-CloudFlare-Manager,代码行数:11,代码来源:cloudflare_challenge.php

示例4: main_page

function main_page($current_cache_level, $modified_on)
{
    $form = new Form('index.php?module=cloudflare-cache_lvl&amp;action=change', 'post');
    $form_container = new FormContainer('Modify Cache Level');
    $form_container->output_row('Cache Level', "Cache Level functions based off the setting level. The basic setting will cache most static resources (i.e., css, images, and JavaScript). The simplified setting will ignore the query string when delivering a cached resource. The aggressive setting will cache all static resources, including ones with a query string. ", $form->generate_select_box('cache_level', array('basic' => 'Basic', 'simplified' => 'Simplified', 'aggressive' => 'Aggressive'), $current_cache_level));
    $form_container->end();
    $buttons[] = $form->generate_submit_button('Submit');
    $form->output_submit_wrapper($buttons);
    $form->end();
}
开发者ID:dequeues,项目名称:MyBB-CloudFlare-Manager,代码行数:10,代码来源:cloudflare_cache_lvl.php

示例5: main_page

function main_page($enabled)
{
    $form = new Form('index.php?module=cloudflare-ipv46&amp;action=change', 'post');
    $form_container = new FormContainer("IPv6 Support");
    $form_container->output_row('IPv6 Support', 'Enable IPv6 support and gateway', $form->generate_yes_no_radio('enable_ipv6', $enabled ? "1" : "0"));
    $form_container->end();
    $buttons[] = $form->generate_submit_button('Submit');
    $form->output_submit_wrapper($buttons);
    $form->end();
}
开发者ID:dequeues,项目名称:MyBB-CloudFlare-Manager,代码行数:10,代码来源:cloudflare_ipv46.php

示例6: main_page

function main_page($in_dev_mode, $time_remaining = 0)
{
    global $page;
    if ($in_dev_mode) {
        $page->output_alert("CloudFlare is currently in development mode. This will expire in " . gmdate("H:i:s", $time_remaining));
    }
    $form = new Form('index.php?module=cloudflare-dev_mode&amp;action=change', 'post');
    $form_container = new FormContainer('Change development mode');
    $form_container->output_row('Development Mode', "This will bypass CloudFlare's accelerated cache and slow down your site, but is useful if you are making changes to cacheable content (like images, css, or JavaScript) and would like to see those changes right away.", $form->generate_on_off_radio('dev_mode', $in_dev_mode ? 1 : 0));
    $form_container->end();
    $buttons[] = $form->generate_submit_button('Submit');
    $form->output_submit_wrapper($buttons);
    $form->end();
}
开发者ID:dequeues,项目名称:MyBB-CloudFlare-Manager,代码行数:14,代码来源:cloudflare_dev_mode.php

示例7: main_page

function main_page($current_setting)
{
    global $security_levels;
    $form = new Form('index.php?module=cloudflare-security_lvl&amp;action=change_security_level', 'post');
    $form_container = new FormContainer('Modify Security Level');
    $form_container->output_row('Security Level', 'The Security Level you choose will determine which visitors will be presented with a challenge page<br />
		<ul>
			<li><b>Essentially Off:</b> Challenges only the most grievous offenders</li>
			<li><b>Low:</b> Challenges only the most threatening visitors</li>
			<li><b>Medium:</b> Challenges both moderate threat visitors and the most threatening visitors</li>
			<li><b>High:</b> Challenges all visitors that have exhibited threatening behavior within the last 14 days</li>
			<li><b>I\'m Under Attack!:</b> Should only be used if your website is under a DDoS attack</li>
				<ul><li>Visitors will receive an interstitial page while we analyze their traffic and behavior to make sure they are a legitimate human visitor trying to access your website</li></ul>
			</li>
		</ul>', $form->generate_select_box('sec_level', $security_levels, $current_setting));
    $form_container->end();
    $buttons[] = $form->generate_submit_button('Submit');
    $form->output_submit_wrapper($buttons);
    $form->end();
}
开发者ID:dequeues,项目名称:MyBB-CloudFlare-Manager,代码行数:20,代码来源:cloudflare_security_lvl.php

示例8: array

 $page->add_breadcrumb_item($lang->edit_task);
 $page->output_header($lang->scheduled_tasks . " - " . $lang->edit_task);
 $sub_tabs['edit_task'] = array('title' => $lang->edit_task, 'description' => $lang->edit_task_desc, 'link' => "index.php?module=tools/tasks&amp;action=edit&amp;tid={$task['tid']}");
 $page->output_nav_tabs($sub_tabs, 'edit_task');
 $form = new Form("index.php?module=tools/tasks&amp;action=edit", "post");
 if ($errors) {
     $page->output_inline_error($errors);
     $task_data = $mybb->input;
 } else {
     $task_data = $task;
     $task_data['weekday'] = explode(',', $task['weekday']);
     $task_data['month'] = explode(',', $task['month']);
 }
 $form_container = new FormContainer($lang->edit_task);
 echo $form->generate_hidden_field("tid", $task['tid']);
 $form_container->output_row($lang->title . " <em>*</em>", "", $form->generate_text_box('title', $task_data['title'], array('id' => 'title')), 'title');
 $form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $task_data['description'], array('id' => 'description')), 'description');
 $task_list = array();
 $task_files = scandir(MYBB_ROOT . "inc/tasks/");
 foreach ($task_files as $task_file) {
     if (is_file(MYBB_ROOT . "inc/tasks/{$task_file}") && get_extension($task_file) == "php") {
         $file_id = preg_replace("#\\." . get_extension($task_file) . "\$#i", "\$1", $task_file);
         $task_list[$file_id] = $task_file;
     }
 }
 $form_container->output_row($lang->task . " <em>*</em>", $lang->task_desc, $form->generate_select_box("file", $task_list, $task_data['file'], array('id' => 'file')), 'file');
 $form_container->output_row($lang->time_minutes, $lang->time_minutes_desc, $form->generate_text_box('minute', $task_data['minute'], array('id' => 'minute')), 'minute');
 $form_container->output_row($lang->time_hours, $lang->time_hours_desc, $form->generate_text_box('hour', $task_data['hour'], array('id' => 'hour')), 'hour');
 $form_container->output_row($lang->time_days_of_month, $lang->time_days_of_month_desc, $form->generate_text_box('day', $task_data['day'], array('id' => 'day')), 'day');
 $options = array("*" => $lang->every_weekday, "0" => $lang->sunday, "1" => $lang->monday, "2" => $lang->tuesday, "3" => $lang->wednesday, "4" => $lang->thursday, "5" => $lang->friday, "6" => $lang->saturday);
 $form_container->output_row($lang->time_weekdays, $lang->time_weekdays_desc, $form->generate_select_box('weekday[]', $options, $task_data['weekday'], array('id' => 'weekday', 'multiple' => true)), 'weekday');
开发者ID:benn0034,项目名称:SHIELDsite2.old,代码行数:31,代码来源:tasks.php

示例9: array

 if ($table->num_rows() == 0) {
     $table->construct_cell($lang->no_banned_users, array("colspan" => "6"));
     $table->construct_row();
 }
 $table->output($lang->banned_accounts);
 echo $pagination;
 $form = new Form("index.php?module=user-banning", "post");
 if ($errors) {
     $page->output_inline_error($errors);
 }
 if ($mybb->input['uid'] && !$mybb->input['username']) {
     $user = get_user($mybb->input['uid']);
     $mybb->input['username'] = $user['username'];
 }
 $form_container = new FormContainer($lang->ban_a_user);
 $form_container->output_row($lang->ban_username, $lang->autocomplete_enabled, $form->generate_text_box('username', $mybb->input['username'], array('id' => 'username')), 'username');
 $form_container->output_row($lang->ban_reason, "", $form->generate_text_box('reason', $mybb->input['reason'], array('id' => 'reason')), 'reason');
 if (count($banned_groups) > 1) {
     $form_container->output_row($lang->ban_group, $lang->add_ban_group_desc, $form->generate_select_box('usergroup', $banned_groups, $mybb->input['usergroup'], array('id' => 'usergroup')), 'usergroup');
 }
 foreach ($ban_times as $time => $period) {
     if ($time != "---") {
         $friendly_time = my_date("D, jS M Y @ g:ia", ban_date2timestamp($time));
         $period = "{$period} ({$friendly_time})";
     }
     $length_list[$time] = $period;
 }
 $form_container->output_row($lang->ban_time, "", $form->generate_select_box('bantime', $length_list, $mybb->input['bantime'], array('id' => 'bantime')), 'bantime');
 $form_container->end();
 // Autocompletion for usernames
 echo '
开发者ID:Nidrax,项目名称:ppm-1.6,代码行数:31,代码来源:banning.php

示例10: array

        }
    }
    $page->add_breadcrumb_item($lang->add_multiple_smilies);
    $page->output_header($lang->smilies . " - " . $lang->add_multiple_smilies);
    $sub_tabs['manage_smilies'] = array('title' => $lang->manage_smilies, 'link' => "index.php?module=config-smilies");
    $sub_tabs['add_smilie'] = array('title' => $lang->add_smilie, 'link' => "index.php?module=config-smilies&amp;action=add");
    $sub_tabs['add_multiple_smilies'] = array('title' => $lang->add_multiple_smilies, 'link' => "index.php?module=config-smilies&amp;action=add_multiple", 'description' => $lang->add_multiple_smilies_desc);
    $sub_tabs['mass_edit'] = array('title' => $lang->mass_edit, 'link' => "index.php?module=config-smilies&amp;action=mass_edit");
    $page->output_nav_tabs($sub_tabs, 'add_multiple_smilies');
    $form = new Form("index.php?module=config-smilies&amp;action=add_multiple", "post", "add_multiple");
    echo $form->generate_hidden_field("step", "1");
    if ($errors) {
        $page->output_inline_error($errors);
    }
    $form_container = new FormContainer($lang->add_multiple_smilies);
    $form_container->output_row($lang->path_to_images, $lang->path_to_images_desc, $form->generate_text_box('pathfolder', $mybb->input['pathfolder'], array('id' => 'pathfolder')), 'pathfolder');
    $form_container->end();
    $buttons[] = $form->generate_submit_button($lang->show_smilies);
    $form->output_submit_wrapper($buttons);
    $form->end();
    $page->output_footer();
}
if ($mybb->input['action'] == "mass_edit") {
    $plugins->run_hooks("admin_config_smilies_mass_edit");
    if ($mybb->request_method == "post") {
        foreach ($mybb->input['name'] as $sid => $name) {
            $disporder = intval($mybb->input['disporder'][$sid]);
            $sid = intval($sid);
            if ($mybb->input['delete'][$sid] == 1) {
                // Dirty hack to get the disporder working. Note: this doesn't work in every case
                unset($mybb->input['disporder'][$sid]);
开发者ID:GeorgeLVP,项目名称:mybb,代码行数:31,代码来源:smilies.php

示例11: array

            admin_redirect('index.php?module=config/post_icons');
        }
    }
    $page->add_breadcrumb_item($lang->edit_post_icon);
    $page->output_header($lang->post_icons . " - " . $lang->edit_post_icon);
    $sub_tabs['edit_icon'] = array('title' => $lang->edit_post_icon, 'link' => "index.php?module=config/post_icons", 'description' => $lang->edit_post_icon_desc);
    $page->output_nav_tabs($sub_tabs, 'edit_icon');
    $form = new Form("index.php?module=config/post_icons&amp;action=edit", "post", "edit");
    echo $form->generate_hidden_field("iid", $icon['iid']);
    if ($errors) {
        $page->output_inline_error($errors);
    } else {
        $mybb->input = $icon;
    }
    $form_container = new FormContainer($lang->edit_post_icon);
    $form_container->output_row($lang->name . " <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
    $form_container->output_row($lang->image_path . " <em>*</em>", $lang->image_path_desc, $form->generate_text_box('path', $mybb->input['path'], array('id' => 'path')), 'path');
    $form_container->end();
    $buttons[] = $form->generate_submit_button($lang->save_post_icon);
    $buttons[] = $form->generate_reset_button($lang->reset);
    $form->output_submit_wrapper($buttons);
    $form->end();
    $page->output_footer();
}
if ($mybb->input['action'] == "delete") {
    $plugins->run_hooks("admin_config_post_icons_delete");
    $query = $db->simple_select("icons", "*", "iid='" . intval($mybb->input['iid']) . "'");
    $icon = $db->fetch_array($query);
    if (!$icon['iid']) {
        flash_message($lang->error_invalid_post_icon, 'error');
        admin_redirect("index.php?module=config/post_icons");
开发者ID:benn0034,项目名称:SHIELDsite2.old,代码行数:31,代码来源:post_icons.php

示例12: FormContainer

    $enddatemonth .= "<option value=\"08\" {$endmonthsel['08']}>{$lang->august}</option>\n";
    $startdatemonth .= "<option value=\"09\" {$startmonthsel['09']}>{$lang->september}</option>\n";
    $enddatemonth .= "<option value=\"09\" {$endmonthsel['09']}>{$lang->september}</option>\n";
    $startdatemonth .= "<option value=\"10\" {$startmonthsel['10']}>{$lang->october}</option>\n";
    $enddatemonth .= "<option value=\"10\" {$endmonthsel['10']}>{$lang->october}</option>\n";
    $startdatemonth .= "<option value=\"11\" {$startmonthsel['11']}>{$lang->november}</option>\n";
    $enddatemonth .= "<option value=\"11\" {$endmonthsel['11']}>{$lang->november}</option>\n";
    $startdatemonth .= "<option value=\"12\" {$startmonthsel['12']}>{$lang->december}</option>\n";
    $enddatemonth .= "<option value=\"12\" {$endmonthsel['12']}>{$lang->december}</option>\n";
    if (isset($preview)) {
        $form_container = new FormContainer($lang->announcement_preview);
        $form_container->output_row($preview['subject'], "", $preview['message'], 'preview');
        $form_container->end();
    }
    $form_container = new FormContainer($lang->add_an_announcement);
    $form_container->output_row($lang->title . " <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
    $form_container->output_row($lang->start_date . " <em>*</em>", $lang->start_date_desc, "<select name=\"starttime_day\">\n{$startdateday}</select>\n &nbsp; \n<select name=\"starttime_month\">\n{$startdatemonth}</select>\n &nbsp; \n<input type=\"text\" name=\"starttime_year\" value=\"{$startdateyear}\" size=\"4\" maxlength=\"4\" class=\"text_input\" />\n - {$lang->time} " . $form->generate_text_box('starttime_time', $mybb->input['starttime_time'], array('id' => 'starttime_time', 'style' => 'width: 50px;')));
    $actions = "<script type=\"text/javascript\">\n\tfunction checkAction(id)\n\t{\n\t\tvar checked = '';\n\n\t\t\$('.'+id+'s_check').each(function(e, val)\n\t\t{\n\t\t\tif(\$(this).prop('checked') == true)\n\t\t\t{\n\t\t\t\tchecked = \$(this).val();\n\t\t\t}\n\t\t});\n\t\t\$('.'+id+'s').each(function(e)\n\t\t{\n\t\t\t\$(this).hide();\n\t\t});\n\t\tif(\$('#'+id+'_'+checked))\n\t\t{\n\t\t\t\$('#'+id+'_'+checked).show();\n\t\t}\n\t}\n</script>\n\t<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">\n\t<dt><label style=\"display: block;\"><input type=\"radio\" name=\"endtime_type\" value=\"1\" {$endtime_checked[1]} class=\"endtimes_check\" onclick=\"checkAction('endtime');\" style=\"vertical-align: middle;\" /> <strong>{$lang->set_time}</strong></label></dt>\n\t\t<dd style=\"margin-top: 4px;\" id=\"endtime_1\" class=\"endtimes\">\n\t\t\t<table cellpadding=\"4\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td><select name=\"endtime_day\">\n{$enddateday}</select>\n &nbsp; \n<select name=\"endtime_month\">\n{$enddatemonth}</select>\n &nbsp; \n<input type=\"text\" name=\"endtime_year\" value=\"{$enddateyear}\" size=\"4\" maxlength=\"4\" />\n - {$lang->time} " . $form->generate_text_box('endtime_time', $mybb->input['endtime_time'], array('id' => 'endtime_time', 'style' => 'width: 50px;')) . "</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</dd>\n\t\t<dt><label style=\"display: block;\"><input type=\"radio\" name=\"endtime_type\" value=\"2\" {$endtime_checked[2]} class=\"endtimes_check\" onclick=\"checkAction('endtime');\" style=\"vertical-align: middle;\" /> <strong>{$lang->never}</strong></label></dt>\n\t</dl>\n\t<script type=\"text/javascript\">\n\tcheckAction('endtime');\n\t</script>";
    $form_container->output_row($lang->end_date . " <em>*</em>", $lang->end_date_desc, $actions);
    $form_container->output_row($lang->message . " <em>*</em>", "", $form->generate_text_area('message', $mybb->input['message'], array('id' => 'message')), 'message');
    $form_container->output_row($lang->forums_to_appear_in . " <em>*</em>", $lang->forums_to_appear_in_desc, $form->generate_forum_select('fid', $mybb->input['fid'], array('size' => 5, 'main_option' => $lang->all_forums)));
    $form_container->output_row($lang->allow_html . " <em>*</em>", "", $form->generate_yes_no_radio('allowhtml', $mybb->input['allowhtml'], array('style' => 'width: 2em;')));
    $form_container->output_row($lang->allow_mycode . " <em>*</em>", "", $form->generate_yes_no_radio('allowmycode', $mybb->input['allowmycode'], array('style' => 'width: 2em;')));
    $form_container->output_row($lang->allow_smilies . " <em>*</em>", "", $form->generate_yes_no_radio('allowsmilies', $mybb->input['allowsmilies'], array('style' => 'width: 2em;')));
    $form_container->end();
    $buttons[] = $form->generate_submit_button($lang->save_announcement);
    $buttons[] = $form->generate_submit_button($lang->preview_announcement, array('name' => 'preview'));
    $form->output_submit_wrapper($buttons);
    $form->end();
    $page->output_footer();
}
开发者ID:mainhan1804,项目名称:xomvanphong,代码行数:31,代码来源:announcements.php

示例13: array

    $form_container->output_row($lang->move_thread . " <em>*</em>", $lang->move_thread_desc, $actions);
    $actions = "\n\t<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">\n\t<dt><label style=\"display: block;\"><input type=\"radio\" name=\"copy_type\" value=\"1\" {$copy_checked[1]} class=\"copys_check\" onclick=\"checkAction('copy');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_copy_thread}</strong></label></dt>\n\t\t<dt><label style=\"display: block;\"><input type=\"radio\" name=\"copy_type\" value=\"2\" {$copy_checked[2]} class=\"copys_check\" onclick=\"checkAction('copy');\" style=\"vertical-align: middle;\" /> <strong>{$lang->copy_thread}</strong></label></dt>\n\t\t<dd style=\"margin-top: 4px;\" id=\"copy_2\" class=\"copys\">\n\t\t\t<table cellpadding=\"4\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td><small>{$lang->forum_to_copy_to}</small></td>\n\t\t\t\t\t<td>" . $form->generate_forum_select('copy_1_forum', $mybb->input['copy_1_forum']) . "</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</dd>\n\t</dl>\n\t<script type=\"text/javascript\">\n\tcheckAction('copy');\n\t</script>";
    $form_container->output_row($lang->copy_thread . " <em>*</em>", '', $actions);
    $form_container->output_row($lang->delete_thread . " <em>*</em>", '', $form->generate_yes_no_radio('deletethread', $mybb->input['deletethread']));
    $query = $db->simple_select('threadprefixes', 'pid, prefix');
    if ($db->num_rows($query) > 0) {
        $thread_prefixes = array('-1' => $lang->no_change, '0' => $lang->no_prefix);
        while ($prefix = $db->fetch_array($query)) {
            $thread_prefixes[$prefix['pid']] = $prefix['prefix'];
        }
        $form_container->output_row($lang->apply_thread_prefix . " <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, $mybb->input['threadprefix'], array('id' => 'threadprefix')), 'threadprefix');
    }
    $form_container->output_row($lang->new_subject . " <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject']));
    $form_container->end();
    $form_container = new FormContainer($lang->add_new_reply);
    $form_container->output_row($lang->add_new_reply, $lang->add_new_reply_desc, $form->generate_text_area('newreply', $mybb->input['newreply'], array('id' => 'newreply')), 'newreply');
    $form_container->output_row($lang->reply_subject, $lang->reply_subject_desc, $form->generate_text_box('newreplysubject', $mybb->input['newreplysubject'], array('id' => 'newreplysubject')), 'newreplysubject');
    $form_container->end();
    $buttons[] = $form->generate_submit_button($lang->save_post_tool);
    $form->output_submit_wrapper($buttons);
    $form->end();
    $page->output_footer();
}
if (!$mybb->input['action']) {
    $plugins->run_hooks("admin_config_mod_tools_start");
    $page->output_header($lang->mod_tools . " - " . $lang->thread_tools);
    $sub_tabs['thread_tools'] = array('title' => $lang->thread_tools, 'link' => "index.php?module=config-mod_tools", 'description' => $lang->thread_tools_desc);
    $sub_tabs['add_thread_tool'] = array('title' => $lang->add_new_thread_tool, 'link' => "index.php?module=config-mod_tools&amp;action=add_thread_tool");
    $sub_tabs['post_tools'] = array('title' => $lang->post_tools, 'link' => "index.php?module=config-mod_tools&amp;action=post_tools");
    $sub_tabs['add_post_tool'] = array('title' => $lang->add_new_post_tool, 'link' => "index.php?module=config-mod_tools&amp;action=add_post_tool");
    $page->output_nav_tabs($sub_tabs, 'thread_tools');
开发者ID:GeorgeLVP,项目名称:mybb,代码行数:31,代码来源:mod_tools.php

示例14: array

    }
    if ($table->num_rows() == 0) {
        $table->construct_cell($lang->no_bans, array("colspan" => 4));
        $table->construct_row();
    }
    $table->output($title);
    $form = new Form("index.php?module=config/banning&amp;action=add", "post", "add");
    if ($errors) {
        $page->output_inline_error($errors);
    }
    if ($mybb->input['type'] == "usernames") {
        $form_container = new FormContainer($lang->add_disallowed_username);
        $form_container->output_row($lang->username . " <em>*</em>", $lang->username_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
        $buttons[] = $form->generate_submit_button($lang->disallow_username);
    } else {
        if ($mybb->input['type'] == "emails") {
            $form_container = new FormContainer($lang->add_disallowed_email_address);
            $form_container->output_row($lang->email_address . " <em>*</em>", $lang->email_address_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
            $buttons[] = $form->generate_submit_button($lang->disallow_email_address);
        } else {
            $form_container = new FormContainer($lang->ban_ip_address);
            $form_container->output_row($lang->ip_address . " <em>*</em>", $lang->ip_address_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
            $buttons[] = $form->generate_submit_button($lang->ban_ip_address);
        }
    }
    $form_container->end();
    echo $form->generate_hidden_field("type", $type);
    $form->output_submit_wrapper($buttons);
    $form->end();
    $page->output_footer();
}
开发者ID:benn0034,项目名称:SHIELDsite2.old,代码行数:31,代码来源:banning.php

示例15: FormContainer

        $mybb->input = $mycode;
    }
    $form_container = new FormContainer($lang->edit_mycode);
    $form_container->output_row($lang->title . " <em>*</em>", '', $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
    $form_container->output_row($lang->short_description, '', $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
    $form_container->output_row($lang->regular_expression . " <em>*</em>", $lang->regular_expression_desc . '<br /><strong>' . $lang->example . '</strong> \\[b\\](.*?)\\[/b\\]', $form->generate_text_area('regex', $mybb->input['regex'], array('id' => 'regex')), 'regex');
    $form_container->output_row($lang->replacement . " <em>*</em>", $lang->replacement_desc . '<br /><strong>' . $lang->example . '</strong> &lt;strong&gt;$1&lt;/strong&gt;', $form->generate_text_area('replacement', $mybb->input['replacement'], array('id' => 'replacement')), 'replacement');
    $form_container->output_row($lang->enabled . " <em>*</em>", '', $form->generate_yes_no_radio('active', $mybb->input['active']));
    $form_container->output_row($lang->parse_order, $lang->parse_order_desc, $form->generate_text_box('parseorder', $mybb->input['parseorder'], array('id' => 'parseorder')), 'parseorder');
    $form_container->end();
    $buttons[] = $form->generate_submit_button($lang->save_mycode);
    $form->output_submit_wrapper($buttons);
    // Sandbox
    echo "<br />\n";
    $form_container = new FormContainer($lang->sandbox);
    $form_container->output_row($lang->sandbox_desc);
    $form_container->output_row($lang->test_value, $lang->test_value_desc, $form->generate_text_area('test_value', $mybb->input['test_value'], array('id' => 'test_value')) . "<br />" . $form->generate_submit_button($lang->test, array('id' => 'test', 'name' => 'test')), 'test_value');
    $form_container->output_row($lang->result_html, $lang->result_html_desc, $form->generate_text_area('result_html', $sandbox['html'], array('id' => 'result_html', 'disabled' => 1)), 'result_html');
    $form_container->output_row($lang->result_actual, $lang->result_actual_desc, "<div id=\"result_actual\">{$sandbox['actual']}</div>");
    $form_container->end();
    echo '<script type="text/javascript" src="./jscripts/mycode_sandbox.js"></script>';
    echo '<script type="text/javascript">

Event.observe(window, "load", function() {
//<![CDATA[
    new MyCodeSandbox("./index.php?module=config/mycode&action=xmlhttp_test_mycode", $("test"), $("regex"), $("replacement"), $("test_value"), $("result_html"), $("result_actual"));
});
//]]>
</script>';
    $form->end();
    $page->output_footer();
开发者ID:benn0034,项目名称:SHIELDsite2.old,代码行数:31,代码来源:mycode.php


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