本文整理匯總了PHP中print_table_break函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_table_break函數的具體用法?PHP print_table_break怎麽用?PHP print_table_break使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了print_table_break函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: print_stop_message
}
if (is_newer_version($template['customversion'], $product_version)) {
$template['customversion'] = $product_version;
}
if (is_newer_version($template['globalversion'], $template['customversion'])) {
$customcache["{$template['styleid']}"]["{$template['templateid']}"] = $template;
}
}
if (empty($customcache)) {
print_stop_message('all_templates_are_up_to_date');
}
cache_styles();
print_form_header('', '');
print_table_header($vbphrase['updated_default_templates']);
print_description_row('<span class="smallfont">' . construct_phrase($vbphrase['updated_default_templates_desc'], $vbulletin->options['templateversion']) . '</span>');
print_table_break(' ');
foreach ($stylecache as $styleid => $style) {
if (is_array($customcache["{$styleid}"])) {
print_description_row($style['title'], 0, 2, 'thead');
foreach ($customcache["{$styleid}"] as $templateid => $template) {
if (!$template['customuser']) {
$template['customuser'] = $vbphrase['n_a'];
}
if (!$template['customversion']) {
$template['customversion'] = $vbphrase['n_a'];
}
$product_name = $full_product_info["{$template['product']}"]['title'];
print_label_row("\n\t\t\t\t\t<b>{$template['title']}</b><br />\n\t\t\t\t\t<span class=\"smallfont\">" . construct_phrase($vbphrase['default_template_updated_desc'], "{$product_name} {$template['globalversion']}", $template['globaluser'], "{$product_name} {$template['customversion']}", $template['customuser']) . '</span>', '<span class="smallfont">' . construct_link_code($vbphrase['edit_template'], "template.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&templateid={$templateid}", 'templatewin') . '<br />' . construct_link_code($vbphrase['view_history'], 'template.php?do=history&dostyleid=' . $styleid . '&title=' . urlencode($template['title']), 'templatewin') . '<br />' . construct_link_code($vbphrase['revert'], "template.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&templateid={$templateid}&dostyleid={$styleid}", 'templatewin') . '</span>');
}
}
}
示例2: print_table_header
print_table_header('MySQL');
print_column_style_code(array('width:30%'));
print_label_row(construct_link_code('Run Query', THIS_SCRIPT . '?do=mysql&type=query'), 'This allows you to run alter and update queries on the database');
print_label_row(construct_link_code('Repair Tables', THIS_SCRIPT . '?do=mysql&type=repair'), 'You can select tables that need repaired here');
print_label_row(construct_link_code('Reset Admin Access', THIS_SCRIPT . '?do=user&type=access'), 'Reset admin access for a user');
print_table_break();
$randnumb = vbrand(0, 100000000);
print_table_header('Other Tools');
print_column_style_code(array('width:30%'));
print_label_row(construct_link_code($vbulletin->options['bbactive'] ? 'Turn Off Forum' : 'Turn On Forum', THIS_SCRIPT . '?do=bbactive'), 'Your forum is <b>' . ($vbulletin->options['bbactive'] ? 'On' : 'Off') . '</b>');
$childcount = $db->query_first("\n\t\tSELECT COUNT(*) AS count\n\t\tFROM " . TABLE_PREFIX . "forum\n\t\tWHERE childlist = ''\n\t");
if ($childcount['count']) {
print_label_row(construct_link_code('Rebuild', THIS_SCRIPT . '?do=childlist'), 'You have forum with empty childlists, which is not good.');
}
print_label_row(construct_link_code('Default Language', THIS_SCRIPT . '?do=language'), 'Reset board default language.');
print_table_break();
print_table_header('Time');
print_column_style_code(array('width:30%'));
print_label_row('System Time', $systemdate = date('r T'));
print_label_row('Your Time', $userdate = vbdate('r T'));
print_table_footer();
} else {
if ($_REQUEST['do'] == 'xml') {
switch ($vbulletin->GPC['type']) {
case 'style':
require_once './includes/adminfunctions_template.php';
if (!($xml = file_read('./install/vbulletin-style.xml'))) {
echo '<p>Uh oh, ./install/vbulletin-style.xml doesn\'t appear to exist! Upload it and refresh the page.</p>';
break;
}
echo '<p>Importing vbulletin-style.xml</p>';
示例3: print_css_row
/**
* Prints a block of controls for editing a CSS item on css.php?do=edit
*
* @param string Item title
* @param string Item description
* @param array Item info array
* @param boolean Print links edit section
* @param boolean Print table break
*/
function print_css_row($title, $description, $item, $dolinks = false, $restarttable = true)
{
global $bgcounter, $css, $css_info, $color, $vbphrase, $stylevar, $vbulletin;
static $item_js;
++$item_js;
$color = fetch_inherited_color($css_info["{$item}"], $vbulletin->GPC['dostyleid']);
$title = htmlspecialchars_uni($title);
switch ($css_info["{$item}"]) {
case -1:
$tblhead_title = $title;
$revertlink = '';
$revertctrl = '';
break;
case $vbulletin->GPC['dostyleid']:
$tblhead_title = "{$title} <span class=\"normal\">(" . $vbphrase['customized_in_this_style'] . ")</span>";
$revertlink = 'title=' . urlencode($title) . '&item=' . urlencode($item);
$revertctrl = "<label for=\"rvcss_{$item}\">{$vbphrase['revert_this_group_of_settings']}<input type=\"checkbox\" id=\"rvcss_{$item}\" name=\"delete[css][{$item}]\" value=\"1\" tabindex=\"1\" title=\"{$vbphrase['revert']}\" /></label>";
break;
default:
$tblhead_title = "{$title} <span class=\"normal\">(" . construct_phrase($vbphrase['customized_in_a_parent_style_x'], $css_info["{$item}"]) . ")</span>";
$revertlink = 'title=' . urlencode($title) . '&item=' . urlencode($item);
$revertctrl = '';
break;
}
echo "\n\n<!-- START {$title} CSS -->\n\n";
print_column_style_code(array('width: 50%', 'width: 50%'));
print_table_header($tblhead_title, 2);
print_label_row("\n\t<fieldset title=\"{$vbphrase['standard_css']}\">\n\t\t<legend>{$vbphrase['standard_css']}</legend>\n\t\t<table cellpadding=\"0\" cellspacing=\"2\" border=\"0\" width=\"100%\">\n\t\t<col width=\"50%\"></col>\n" . construct_css_input_row($vbphrase['background'], "['{$item}']['background']", $color, true) . construct_css_input_row($vbphrase['font_color'], "['{$item}']['color']", $color, true) . construct_css_input_row($vbphrase['font_style'], "['{$item}']['font']['style']", $color) . construct_css_input_row($vbphrase['font_size'], "['{$item}']['font']['size']", $color) . construct_css_input_row($vbphrase['font_family'], "['{$item}']['font']['family']", $color) . construct_text_align_code($vbphrase['alignment'], "['{$item}']['text-align']", $color) . "\n\t\t</table>\n\t\t</fieldset>\n\t", "\n\t\t<fieldset id=\"extra_a_{$item_js}\" title=\"{$vbphrase['extra_css']}\">\n\t\t<legend>{$vbphrase['extra_css']}</legend>\n\t\t<div align=\"center\" style=\"padding: 2px\">\n\t\t<textarea name=\"css[{$item}][EXTRA]\" rows=\"4\" cols=\"50\" class=\"{$color}\" style=\"padding: 2px; width: 90%\" tabindex=\"1\" dir=\"ltr\">" . htmlspecialchars_uni($css["{$item}"]['EXTRA']) . "</textarea>\n\t\t</div>\n\t\t</fieldset>\n\t\t" . iif($description != '', "<fieldset id=\"desc_a_{$item_js}\" title=\"{$vbphrase['description']}\" style=\"margin-bottom:4px;\">\n\t\t<legend>{$vbphrase['description']}</legend>\n\t\t<div class=\"smallfont\" style=\"margin:4px 4px 0px 4px\">\n\t\t\t<img src=\"../cpstyles/" . $vbulletin->options['cpstylefolder'] . "/cp_help.gif\" alt=\"{$title}\" align=\"{$stylevar['right']}\" style=\"padding:0px 0px 0px 2px\" />\n\t\t\t{$description}\n\t\t</div>\n\t\t</fieldset>") . "\n", 'alt2');
if (is_browser('mozilla')) {
echo "<script type=\"text/javascript\">reflow_fieldset('a_{$item_js}', true);</script>\n";
}
if ($dolinks) {
print_description_row('
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr>
' . construct_link_css_input_row($vbphrase['normal_link'], $item, 'N', $color) . '
' . construct_link_css_input_row($vbphrase['visited_link'], $item, 'V', $color) . '
' . construct_link_css_input_row($vbphrase['hover_link'], $item, 'M', $color) . '
</tr>
</table>
', 0, 2, 'alt2" style="padding: 0px');
}
if ($revertctrl != '') {
print_description_row('<div class="smallfont" style="text-align: center">' . $revertctrl . '</div>', 0, 2, 'thead');
}
print_description_row("\n\t\t<div class=\"alt1\" style=\"border:inset 1px; padding:2px 10px 2px 10px; float:{$stylevar['left']}\">" . construct_phrase($vbphrase['css_selector_x'], "<code>{$item}</code>") . "</div>\n\t\t<!--" . iif($revertlink != '', "<input type=\"button\" class=\"button\" style=\"font-weight:normal\" value=\"{$vbphrase['show_default']}\" tabindex=\"1\" onclick=\"js_show_default_item('{$revertlink}', {$dolinks});\" />") . "-->\n\t\t<input type=\"submit\" class=\"button\" style=\"font-weight:normal\" value=\" " . $vbphrase['save_css'] . " \" tabindex=\"1\" />\n\t", 0, 2, 'tfoot" align="right');
echo "\n\n<!-- END {$title} CSS -->\n\n";
if ($restarttable) {
print_table_break(' ');
}
}
示例4: badhook_check
/**
* Checks existince of a stupid vbcms bug that has been around since RC2
*
*/
function badhook_check()
{
if (file_exists(DIR . "/includes/xml/hooks_vbcms.xml")) {
$badhookfile = file_read(DIR . "/includes/xml/hooks_vbcms.xml");
if (strpos($badhookfile, "data_preparse_bbcode_video_start")) {
print_table_header("WARNING");
print_description_row("vBulletin contains a known bug that prevents AME from working. You must follow these steps or you may as well disable AME now");
print_description_row("1. Edit your <strong>includes/xml/hooks_vbcms.xml</strong> file");
print_description_row("2. Delete <strong><hook>data_preparse_bbcode_video_start</hook></strong> and save the file.");
print_description_row("3. Rebuild your hooks by browsing to your Plugin Manager, edit the <strong>AME - Auto Convert URLs</strong> hook and save (you don't need to change anything).");
print_description_row("You can read more about this issue here: <a href='http://www.vbulletin.com/forum/project.php?issueid=33859' target='_blank'>http://www.vbulletin.com/forum/project.php?issueid=33859</a>");
print_table_break();
}
}
}
示例5: print_table_break
print_table_break(' ');
}
// #############################################################################
// REPLACEMENT VARS
if ($vbulletin->GPC['dowhat'] == 'replacements' or $vbulletin->GPC['dowhat'] == 'all') {
construct_hidden_code('dowhat[replacements]', 1);
if (sizeof($replacement) > 0) {
print_table_header($vbphrase['replacement_variables'], 3);
print_cells_row(array($vbphrase['search_for_text'], $vbphrase['replace_with_text'], ''), 1);
foreach ($replacement as $findword => $replaceword) {
print_replacement_row($findword, $replaceword);
}
} else {
print_description_row($vbphrase['no_replacements_defined']);
}
print_table_break("<center>" . construct_link_code($vbphrase['add_new_replacement_variable'], "replacement.php?" . $vbulletin->session->vars['sessionurl'] . "do=add&dostyleid=" . $vbulletin->GPC['dostyleid']) . "</center>");
}
print_table_footer(2, '
<input type="submit" class="button" value="' . $vbphrase['save'] . '" accesskey="s" tabindex="1" />
<input type="reset" class="button" value="' . $vbphrase['reset'] . '" accesskey="r" tabindex="1" onclick="this.form.reset(); init_color_preview(); return false;" />
');
echo $colorPicker;
?>
<script type="text/javascript">
<!--
var bburl = "<?php
echo $vbulletin->options['bburl'];
?>
/";
var cpstylefolder = "<?php
示例6: array
else
{
$blog['subscribeothers'] = 'email';
}
$checked['member_canviewmyblog'] = $vbulletin->bf_misc_vbblogregoptions['viewblog_member'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
$checked['guest_canviewmyblog'] = $vbulletin->bf_misc_vbblogregoptions['viewblog_guest'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
$checked['buddy_canviewmyblog'] = $vbulletin->bf_misc_vbblogregoptions['viewblog_buddy'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
$checked['ignore_canviewmyblog'] = $vbulletin->bf_misc_vbblogregoptions['viewblog_ignore'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
$checked['member_cancommentmyblog'] = $vbulletin->bf_misc_vbblogregoptions['commentblog_member'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
$checked['guest_cancommentmyblog'] = $vbulletin->bf_misc_vbblogregoptions['commentblog_guest'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
$checked['buddy_cancommentmyblog'] = $vbulletin->bf_misc_vbblogregoptions['commentblog_buddy'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
$checked['ignore_cancommentmyblog'] = $vbulletin->bf_misc_vbblogregoptions['commentblog_ignore'] & $vbulletin->options['vbblog_defaultoptions'] ? 'checked="checked"' : '';
}
print_table_break('', $INNERTABLEWIDTH);
print_table_header($vbphrase['blog']);
print_input_row($vbphrase['title'], 'blog[title]', $blog['title'], 0);
print_textarea_row($vbphrase['description'], 'blog[description]', $blog['description'], 8, 45);
print_yes_no_row($vbphrase['allow_comments_to_be_posted'], 'blog[options][allowcomments]', $blog['allowcomments']);
print_yes_no_row($vbphrase['moderate_comments_before_displaying'], 'blog[options][moderatecomments]', $blog['moderatecomments']);
print_yes_no_row($vbphrase['allow_trackback_pingback'], 'blog[options][allowpingback]', $blog['allowpingback']);
print_yes_no_row($vbphrase['show_others_custom_blog_style'], 'user[showblogcss]', $user['showblogcss']);
print_input_row($vbphrase['wordpress_api_key'], 'blog[akismet_key]', $blog['akismet_key']);
print_radio_row("$vbphrase[default_subscription_mode] $vbphrase[blog_entries]", 'blog[subscribeown]', array(
'none' => $vbphrase['subscribe_choice_none'],
'usercp' => $vbphrase['subscribe_choice_0'],
示例7: printUpload
function printUpload($sessionid)
{
global $vbphrase;
print_cp_header($vbphrase['verticalresponse']);
require_once DIR . '/includes/adminfunctions_user.php';
require_once DIR . '/includes/adminfunctions_profilefield.php';
print_form_header('verticalresponse', 'confirm_upload', false, true, 'verticalresponse');
print_table_header($vbphrase['upload_list'], 2);
//get the current lists
if ($sessionid) {
$client = new vB_VerticalResponse();
if (!$client->checkStatus($sessionid)) {
printLogin($vbphrase['vr_login_first_desc']);
return;
}
$lists = $client->enumerateLists($sessionid);
}
if ($lists) {
$current_lists = '';
foreach ($lists as $list) {
if ($list->status == 'active') {
$current_lists .= "<option value=\"" . $list->id . "\">" . htmlspecialchars_uni($list->name) . '- ' . '- ' . $list->size . "</option>" . "\n";
}
}
if (!empty($current_lists)) {
$current_lists = "<option value=\"\"> </option>" . "\n" . $current_lists;
print_cells_row(array($vbphrase['select_vr_list_desc'], "<select id=\"listid\" name=\"listid\"/>{$current_lists}</select>"));
}
}
print_cells_row(array($vbphrase['verticalresponse_list_desc'], "<input id=\"listname\" type=\"text\" name=\"listname\"/ value=\"\">"));
print_cells_row(array($vbphrase['vr_dopercycle_desc'], "<input id=\"do_percycle\" type=\"text\" name=\"do_percycle\"/ value=\"1000\">"));
print_table_break();
print_user_search_rows(true);
print_submit_row($vbphrase['submit']);
print_table_footer();
}