示例#1
0
    if (!FORMTYPE) {
        print_form_header('', '');
        print_table_header("{$vbphrase['styles']} & {$vbphrase['templates']}");
        print_description_row('
		<div class="darkbg" style="border: 2px inset"><ul class="darkbg">
		<li><b>' . $vbphrase['color_key'] . '</b></li>
		<li class="col-g">' . $vbphrase['template_is_unchanged_from_the_default_style'] . '</li>
		<li class="col-i">' . $vbphrase['template_is_inherited_from_a_parent_style'] . '</li>
		<li class="col-c">' . $vbphrase['template_is_customized_in_this_style'] . '</li>
		</ul></div>
	');
        print_table_footer();
    } else {
        echo "<br />\n";
    }
    if ($help = construct_help_button('', NULL, '', 1)) {
        $pagehelplink = "<div style=\"float:{$stylevar['right']}\">{$help}</div>";
    } else {
        $pagehelplink = '';
    }
    ?>

<form action="template.php?do=displayorder" method="post" tabindex="1" name="tform">
<input type="hidden" name="do" value="dodisplayorder" />
<input type="hidden" name="s" value="<?php 
    echo $vbulletin->session->vars['sessionhash'];
    ?>
" />
<input type="hidden" name="adminhash" value="<?php 
    echo ADMINHASH;
    ?>
/**
* Essentially just a wrapper for construct_help_button()
*
* @param	string	Option name
* @param	string	Action / Do name
* @param	string	Script name
* @param	integer	Help type
*
* @return	string
*/
function construct_table_help_button($option = '', $action = NULL, $script = '', $helptype = 0)
{
    if ($helplink = construct_help_button($option, $action, $script, $helptype)) {
        return "{$helplink} ";
    } else {
        return '';
    }
}