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


PHP print_column_style_code函数代码示例

本文整理汇总了PHP中print_column_style_code函数的典型用法代码示例。如果您正苦于以下问题:PHP print_column_style_code函数的具体用法?PHP print_column_style_code怎么用?PHP print_column_style_code使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: print_setting_group

/**
* Prints a setting group for use in options.php?do=options
*
* @param	string	Settings group ID
* @param	boolean	Show advanced settings?
*/
function print_setting_group($dogroup, $advanced = 0)
{
    global $settingscache, $grouptitlecache, $bgcounter, $settingphrase;
    if (!is_array($settingscache["{$dogroup}"])) {
        return;
    }
    $userContext = vB::getUserContext();
    if (!empty($settingscache[$dogroup]['groupperm']) and !$userContext->hasAdminPermission($settingscache[$dogroup]['groupperm'])) {
        return;
    }
    $vbphrase = vB_Api::instanceInternal('phrase')->fetch(array('group_requires_admin_perm', 'edit', 'delete', 'add_setting', 'rebuild', 'rebuild_all_attachments'));
    print_column_style_code(array('width:45%', 'width:55%'));
    echo "<thead>\r\n";
    $vb5_config = vB::getConfig();
    $title = $settingphrase["settinggroup_{$grouptitlecache[$dogroup]}"];
    if ($vb5_config['Misc']['debug'] and $userContext->hasAdminPermission('canadminsettingsall')) {
        $title .= '<span class="normal">' . construct_link_code($vbphrase['edit'], "options.php?" . vB::getCurrentSession()->get('sessionurl') . "do=editgroup&amp;grouptitle={$dogroup}") . construct_link_code($vbphrase['delete'], "options.php?" . vB::getCurrentSession()->get('sessionurl') . "do=removegroup&amp;grouptitle={$dogroup}") . construct_link_code($vbphrase['add_setting'], "options.php?" . vB::getCurrentSession()->get('sessionurl') . "do=addsetting&amp;grouptitle={$dogroup}") . '</span>';
    }
    print_table_header($title);
    echo "</thead>\r\n";
    $bgcounter = 1;
    foreach ($settingscache["{$dogroup}"] as $settingid => $setting) {
        if (!empty($setting['adminperm']) and !$userContext->hasAdminPermission($setting['adminperm'])) {
            continue;
        }
        if (($advanced or !$setting['advanced']) and !empty($setting['varname'])) {
            print_setting_row($setting, $settingphrase, true, $userContext);
        }
    }
}
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:36,代码来源:adminfunctions_options.php

示例2: print_setting_group

/**
* Prints a setting group for use in options.php?do=options
*
* @param	string	Settings group ID
* @param	boolean	Show advanced settings?
*/
function print_setting_group($dogroup, $advanced = 0)
{
    global $settingscache, $grouptitlecache, $vbulletin, $vbphrase, $bgcounter, $settingphrase, $stylevar;
    if (!is_array($settingscache["{$dogroup}"])) {
        return;
    }
    print_column_style_code(array('width:45%', 'width:55%'));
    echo "<thead>\r\n";
    print_table_header($settingphrase["settinggroup_{$grouptitlecache[$dogroup]}"] . iif($vbulletin->debug, '<span class="normal">' . construct_link_code($vbphrase['edit'], "options.php?" . $vbulletin->session->vars['sessionurl'] . "do=editgroup&amp;grouptitle={$dogroup}") . construct_link_code($vbphrase['delete'], "options.php?" . $vbulletin->session->vars['sessionurl'] . "do=removegroup&amp;grouptitle={$dogroup}") . construct_link_code($vbphrase['add_setting'], "options.php?" . $vbulletin->session->vars['sessionurl'] . "do=addsetting&amp;grouptitle={$dogroup}") . '</span>'));
    echo "</thead>\r\n";
    $bgcounter = 1;
    foreach ($settingscache["{$dogroup}"] as $settingid => $setting) {
        if (($advanced or !$setting['advanced']) and !empty($setting['varname'])) {
            print_setting_row($setting, $settingphrase);
        }
    }
}
开发者ID:holandacz,项目名称:nb4,代码行数:23,代码来源:adminfunctions_options.php

示例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) . '&amp;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) . '&amp;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(' ');
    }
}
开发者ID:holandacz,项目名称:nb4,代码行数:60,代码来源:adminfunctions_template.php

示例4: foreach

        require_once DIR . '/includes/adminfunctions_template.php';
        foreach ($changed_locations as $location) {
            // same as above, we're not telling user errors here, because they already confirmed the error else where
            $template = wrap_ad_template(build_ad_template($location), $location);
            $template_un = $template;
            $template = compile_template($template);
            $db->query_write("\r\n\t\t\t\tUPDATE " . TABLE_PREFIX . "template SET\r\n\t\t\t\t\ttemplate = '" . $db->escape_string($template) . "',\r\n\t\t\t\t\ttemplate_un = '" . $db->escape_string($template_un) . "',\r\n\t\t\t\t\tdateline = " . TIMENOW . ",\r\n\t\t\t\t\tusername = '" . $db->escape_string($vbulletin->userinfo['username']) . "'\r\n\t\t\t\tWHERE\r\n\t\t\t\t\ttitle = 'ad_" . $db->escape_string($location) . "'\r\n\t\t\t\t\tAND styleid IN (-1,0)\r\n\t\t\t");
        }
    }
    $_REQUEST['do'] = 'modify';
}
// #############################################################################
// list existing ads
if ($_REQUEST['do'] == 'modify') {
    print_form_header('ad', 'quickupdate');
    print_column_style_code(array('width:100%', 'white-space:nowrap'));
    print_table_header($vbphrase['ad_manager']);
    $ad_result = $db->query("SELECT * FROM " . TABLE_PREFIX . "ad ORDER BY displayorder, title");
    $ad_count = $db->num_rows($ad_result);
    if ($ad_count) {
        print_description_row('<label><input type="checkbox" id="allbox" checked="checked" />' . $vbphrase['toggle_active_status_for_all'] . '</label><input type="image" src="../' . $vbulletin->options['cleargifurl'] . '" name="normalsubmit" />', false, 2, 'thead" style="font-weight:normal; padding:0px 4px 0px 4px');
        while ($ad = $db->fetch_array($ad_result)) {
            print_label_row('<a href="ad.php?' . $vbulletin->session->vars['sessionurl'] . 'do=locate&amp;editloc=1&amp;ad_location=' . $ad['adlocation'] . '&amp;adid=' . $ad['adid'] . '" title="' . $vbphrase['edit_ad'] . '">' . $ad['title'] . '</a>', '<div style="white-space:nowrap">' . '<label class="smallfont"><input type="checkbox" name="active[' . $ad['adid'] . ']" value="1"' . ($ad['active'] ? ' checked="checked"' : '') . ' />' . $vbphrase['active'] . '</label> ' . '<input type="image" src="../cpstyles/' . $vbulletin->options['cpstylefolder'] . '/move_down.gif" name="displayorderswap[' . $ad['adid'] . ',higher]" />' . '<input type="text" name="displayorder[' . $ad['adid'] . ']" value="' . $ad['displayorder'] . '" class="bginput" size="4" title="' . $vbphrase['display_order'] . '" style="text-align:' . vB_Template_Runtime::fetchStyleVar('right') . '" />' . '<input type="image" src="../cpstyles/' . $vbulletin->options['cpstylefolder'] . '/move_up.gif" name="displayorderswap[' . $ad['adid'] . ',lower]" />' . construct_link_code($vbphrase['edit'], 'ad.php?' . $vbulletin->session->vars['sessionurl'] . 'do=locate&amp;editloc=1&amp;ad_location=' . $ad['adlocation'] . '&amp;adid=' . $ad['adid']) . construct_link_code($vbphrase['delete'], 'ad.php?' . $vbulletin->session->vars['sessionurl'] . 'do=delete&amp;adid=' . $ad['adid']) . '</div>');
        }
    }
    print_label_row('<input type="button" class="button" value="' . $vbphrase['add_new_ad'] . '" onclick="window.location=\'ad.php?' . $vbulletin->session->vars['sessionurl'] . 'do=locate\';" />', $ad_count ? '<div align="' . vB_Template_Runtime::fetchStyleVar('right') . '"><input type="submit" class="button" accesskey="s" value="' . $vbphrase['save'] . '" /> <input type="reset" class="button" accesskey="r" value="' . $vbphrase['reset'] . '" /></div>' : '&nbsp;', 'tfoot');
    print_table_footer();
    ?>
	<script type="text/javascript">
	<!--
	function toggle_all_active(e)
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:ad.php

示例5: function

		'template', $text, 22, '5000" style="width:99%', true, true, 'ltr', 'code');

	print_template_javascript();

	print_label_row($vbphrase['save_in_template_history'],
		'<label for="savehistory"><input type="checkbox" name="savehistory" id="savehistory" value="1" tabindex="1" ' . (($updatetemplate_edit_conflict AND $vbulletin->GPC['savehistory']) ? 'checked="checked" ' : '') . '/>' .
			$vbphrase['yes'] . '</label><br /><span class="smallfont">' . $vbphrase['comment'] .
			'</span> <input type="text" name="histcomment" value="' . ($updatetemplate_edit_conflict ? $vbulletin->GPC['histcomment'] : '') . '" tabindex="1" class="bginput" size="50" />');

	print_submit_row($vbphrase['save'], '_default_', 2, '',
		"<input type=\"submit\" class=\"button\" tabindex=\"1\" name=\"return\" value=\"$vbphrase[save_and_reload]\" accesskey=\"e\" />");

	if ($updatetemplate_edit_conflict)
	{
		print_form_header('', '', false, true, 'cpform_oldtemplate');
		print_column_style_code(array('width:20%', 'width:80%'));
		print_table_header($vbphrase['your_version_of_template']);
		print_description_row($vbphrase['template_your_version_merge_from_here']);
		print_textarea_row($vbphrase['template'], 'oldtemplate_editconflict', $template_un, 22, '5000" style="width:99%" readonly="readonly', true, false, 'ltr', 'code');
		//print_template_javascript();
		print_table_footer();
	}

	?>
	<script type="text/javascript">
	<!--
	var initial_crc32 = crc32(YAHOO.util.Dom.get(textarea_id).value);
	var confirmUnload = true;
	YAHOO.util.Event.addListener('cpform', 'submit', function(e) { confirmUnload = false; });
	YAHOO.util.Event.addListener(window, 'beforeunload', function(e) {
		if (initial_crc32 != crc32(YAHOO.util.Dom.get(textarea_id).value) && confirmUnload) {
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:template.php

示例6: print_form_header

 }
 if ($i < $endat) {
     if ($i == 0) {
         $i = $startat;
     }
     for ($i; $i < $endat and $i < $totalphrases; $i++) {
         $printers["{$i}"] =& $standard_phrases["{$i}"];
     }
 }
 // ******************
 print_form_header('language', 'update');
 construct_hidden_code('dolanguageid', $vbulletin->GPC['dolanguageid']);
 construct_hidden_code('fieldname', $vbulletin->GPC['fieldname']);
 construct_hidden_code('page', $vbulletin->GPC['pagenumber']);
 print_table_header(construct_phrase($vbphrase['edit_translate_x_y_phrases'], $languages["{$vbulletin->GPC['dolanguageid']}"]['title'], "<span class=\"normal\">" . $phrasetypes["{$vbulletin->GPC['fieldname']}"][title] . "</span>") . ' <span class="normal">' . construct_phrase($vbphrase['page_x_of_y'], $vbulletin->GPC['pagenumber'], $numpages) . '</span>');
 print_column_style_code(array('', '" width="20'));
 $lasttype = '';
 foreach ($printers as $key => $blarg) {
     if ($lasttype != $blarg['type']) {
         print_label_row($vbphrase['varname'], $vbphrase['text'], 'thead');
     }
     print_phrase_row($blarg, $phrasetypes["{$vbulletin->GPC['fieldname']}"]['editrows'], $key, $language['direction']);
     $lasttype = $blarg['type'];
 }
 print_submit_row();
 // ******************
 if ($numpages > 1) {
     print_form_header('language', 'edit', 0, 1, 'qform', '90%', '', 1, 'get');
     construct_hidden_code('dolanguageid', $vbulletin->GPC['dolanguageid']);
     construct_hidden_code('fieldname', $vbulletin->GPC['fieldname']);
     $pagebuttons = '';
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:language.php

示例7: vb_UserChangeLog

 if ($vbulletin->GPC['userid']) {
     // initalize the $user storage
     $users = false;
     // create the vb_UserChangeLog instance and set the execute flag (we want to do the query, not just to build)
     $userchangelog = new vb_UserChangeLog($vbulletin);
     $userchangelog->set_execute(true);
     // get the user change list
     $userchange_list = $userchangelog->sql_select_by_userid($vbulletin->GPC['userid']);
     if (!$userchange_list) {
         print_stop_message('invalid_user_specified');
     }
     if ($db->num_rows($userchange_list)) {
         //start the printing
         $printed = array();
         print_table_start();
         print_column_style_code(array('width: 30%;', 'width: 35%;', 'width: 35%;'));
         // fetch the rows
         while ($userchange = $db->fetch_array($userchange_list)) {
             if (!$printed['header']) {
                 // print the table header
                 print_table_header($vbphrase['view_change_history'] . ' <span class="normal"><a href="user.php?' . $vbulletin->session->vars['sessionurl'] . 'do=edit&amp;userid=' . $userchange['userid'] . '">' . $userchange['username'] . '</a>', 3);
                 //print_cells_row(array('&nbsp;', $vbphrase['oldvalue'], $vbphrase['newvalue']), 1, false, -10);
                 $printed['header'] = true;
             }
             // new change block, print a block header (empty line + header line)
             if ($printed['change_uniq'] != $userchange['change_uniq']) {
                 //print_cells_row(array('&nbsp;', '&nbsp', '&nbsp'), 0, false, -10);
                 $text = array();
                 $text[] = '<span class="normal" title="' . vbdate($vbulletin->options['timeformat'], $userchange['change_time']) . '">' . vbdate($vbulletin->options['dateformat'], $userchange['change_time']) . ';</span> ' . $userchange['admin_username'];
                 $text[] = $vbphrase['old_value'];
                 $text[] = $vbphrase['new_value'];
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:user.php

示例8: displaytags

function displaytags()
{
	global $vbulletin, $vbphrase, $db;

	if ($vbulletin->GPC['pagenumber'] < 1)
	{
		$vbulletin->GPC['pagenumber'] = 1;
	}

	if ($vbulletin->GPC['sort'] == 'dateline')
	{
		$where = 'WHERE canonicaltagid = 0';
		$order = 'dateline DESC';
		$synonyms_in_list = false;
	}
	else if ($vbulletin->GPC['sort'] == 'alphaall')
	{
		$where = '';
		$order = 'tagtext ASC';
		$synonyms_in_list = true;
	}
	else
	{
		$where = 'WHERE canonicaltagid = 0';
		$order = 'tagtext ASC';
		$synonyms_in_list = false;
	}

	$column_count = 3;
	$max_per_column = 15;
	$perpage = $column_count * $max_per_column;

	list($tag_count) = $db->query_first(
		"SELECT COUNT(*) AS total FROM " . TABLE_PREFIX . "tag $where",
		DBARRAY_NUM
	);

	$start = ($vbulletin->GPC['pagenumber'] - 1) * $perpage;
	if ($start >= $tag_count)
	{
		$start = max(0, $tag_count - $perpage);
	}

	$tags = $db->query_read("
		SELECT *
		FROM " . TABLE_PREFIX . "tag
		$where
		ORDER BY $order
		LIMIT $start, $perpage
	");

	print_form_header('tag', '', false, true, 'tagsform');
	print_table_header($vbphrase['tag_list'], 3);
	if ($db->num_rows($tags))
	{
		$columns = array();
		$counter = 0;

		// build page navigation
		$pagenav = tagcp_build_page_nav($vbulletin->GPC['pagenumber'], ceil($tag_count / $perpage),
			$vbulletin->GPC['sort']);
		$sort_links[''] =  '<a href="tag.php?do=tags">' . $vbphrase['display_alphabetically'] . '</a>';
		$sort_links['dateline'] = '<a href="tag.php?do=tags&amp;sort=dateline">' . $vbphrase['display_newest'] . '</a>';
		$sort_links['alphaall'] = '<a href="tag.php?do=tags&amp;sort=alphaall">' . $vbphrase['display_alphabetically_all'] . '</a>';

		//dont show the current sort
		unset($sort_links[$vbulletin->GPC['sort']]);

		print_description_row(
			"<div style=\"float: " . vB_Template_Runtime::fetchStyleVar('left') . "\">" . implode("&nbsp;&nbsp;" , $sort_links) . "</div>$pagenav",
			false, 3, 'thead', 'right'
		);

		// build columns
		while ($tag = $db->fetch_array($tags))
		{
			$columnid = floor($counter++ / $max_per_column);
			$columns["$columnid"][] = tagcp_format_tag_entry($tag, $synonyms_in_list);
		}

		// make column values printable
		$cells = array();
		for ($i = 0; $i < $column_count; $i++)
		{
			if ($columns["$i"])
			{
				$cells[] = implode("<br />\n", $columns["$i"]);
			}
			else
			{
				$cells[] = '&nbsp;';
			}
		}

		print_column_style_code(array(
			'width: 33%',
			'width: 33%',
			'width: 34%'
		));
		print_cells_row($cells, false, false, -3);
//.........这里部分代码省略.........
开发者ID:hungnv0789,项目名称:vhtm,代码行数:101,代码来源:tag.php

示例9: displaytags

function displaytags()
{
    global $vbulletin, $vbphrase, $vboptions;
    $assertor = vB::getDbAssertor();
    if ($vbulletin->GPC['pagenumber'] < 1) {
        $vbulletin->GPC['pagenumber'] = 1;
    }
    $synonyms_in_list = $vbulletin->GPC['sort'] == 'alphaall' ? true : false;
    $column_count = 3;
    $max_per_column = 15;
    $perpage = $column_count * $max_per_column;
    $tag_counts = $assertor->getRow('vBForum:getTagCountSort', array(vB_dB_Query::TYPE_KEY => vB_dB_Query::QUERY_METHOD, 'sort' => $vbulletin->GPC['sort']));
    $tag_count = $tag_counts['total'];
    $start = ($vbulletin->GPC['pagenumber'] - 1) * $perpage;
    if ($start >= $tag_count) {
        $start = max(0, $tag_count - $perpage);
    }
    $tags = $assertor->assertQuery('vBForum:getTagsSort', array(vB_dB_Query::TYPE_KEY => vB_dB_Query::QUERY_METHOD, 'sort' => $vbulletin->GPC['sort'], 'start' => $start, vB_dB_Query::PARAM_LIMIT => $perpage));
    print_form_header('tag', '', false, true, 'tagsform');
    print_table_header($vbphrase['tag_list'], 3);
    if ($tags and $tags->valid()) {
        $columns = array();
        $counter = 0;
        // build page navigation
        $pagenav = tagcp_build_page_nav($vbulletin->GPC['pagenumber'], ceil($tag_count / $perpage), $vbulletin->GPC['sort']);
        $sort_links[''] = '<a href="tag.php?do=tags">' . $vbphrase['display_alphabetically'] . '</a>';
        $sort_links['dateline'] = '<a href="tag.php?do=tags&amp;sort=dateline">' . $vbphrase['display_newest'] . '</a>';
        $sort_links['alphaall'] = '<a href="tag.php?do=tags&amp;sort=alphaall">' . $vbphrase['display_alphabetically_all'] . '</a>';
        //dont show the current sort
        unset($sort_links[$vbulletin->GPC['sort']]);
        print_description_row("<div style=\"float: " . vB_Template_Runtime::fetchStyleVar('left') . "\">" . implode("&nbsp;&nbsp;", $sort_links) . "</div>{$pagenav}", false, 3, 'thead', 'right');
        // build columns
        foreach ($tags as $tag) {
            $columnid = floor($counter++ / $max_per_column);
            $columns["{$columnid}"][] = tagcp_format_tag_entry($tag, $synonyms_in_list);
        }
        // make column values printable
        $cells = array();
        for ($i = 0; $i < $column_count; $i++) {
            if ($columns["{$i}"]) {
                $cells[] = implode("<br />\n", $columns["{$i}"]);
            } else {
                $cells[] = '&nbsp;';
            }
        }
        print_column_style_code(array('width: 33%', 'width: 33%', 'width: 34%'));
        print_cells_row($cells, false, false, -3);
        ?>
		<tr>
			<td colspan="<?php 
        echo $column_count;
        ?>
" align="center" class="tfoot">
				<select id="select_tags" name="do">
					<option value="tagmerge" id="select_tags_merge"><?php 
        echo $vbphrase['merge_selected_synonym'];
        ?>
</option>
					<option value="tagdopromote" id="select_tags_delete"><?php 
        echo $vbphrase['promote_synonyms_selected'];
        ?>
</option>
					<option value="tagkill" id="select_tags_delete"><?php 
        echo $vbphrase['delete_selected'];
        ?>
</option>
					<optgroup label="____________________">
						<option value="tagclear"><?php 
        echo $vbphrase[deselect_all_tags];
        ?>
</option>
					</optgroup>
				</select>
				<input type="hidden" name="page" value="<?php 
        echo $vbulletin->GPC['pagenumber'];
        ?>
" />
				<input type="hidden" name="sort" value="<?php 
        echo $vbulletin->GPC['sort'];
        ?>
" />
				<input type="submit" value="<?php 
        echo $vbphrase[go];
        ?>
" id="tag_inlinego" class="button" />
			</td>
		</tr>
		<?php 
        echo '</table>';
        ?>

		<script type="text/javascript" src="<?php 
        echo $vboptions['bburl'];
        ?>
/clientscript/vbulletin_inlinemod.js?v=<?php 
        echo $vboptions['simpleversion'];
        ?>
"></script>
		<script type="text/javascript">
			<!--
//.........这里部分代码省略.........
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:101,代码来源:tag.php

示例10: print_description_row

        print_description_row("<div style=\"float: {$stylevar['left']}\">{$sort_link}</div>{$pagenav}", false, 3, 'thead', 'right');
        // build columns
        while ($tag = $db->fetch_array($tags)) {
            $columnid = floor($counter++ / $max_per_column);
            $columns["{$columnid}"][] = '<label for="tag' . $tag['tagid'] . '_1"><input type="checkbox" name="tag[' . $tag['tagid'] . ']" id="tag' . $tag['tagid'] . '_1" value="1" tabindex="1" /> ' . $tag['tagtext'] . '</label>';
        }
        // make column values printable
        $cells = array();
        for ($i = 0; $i < $column_count; $i++) {
            if ($columns["{$i}"]) {
                $cells[] = implode("<br />\n", $columns["{$i}"]);
            } else {
                $cells[] = '&nbsp;';
            }
        }
        print_column_style_code(array('width: 33%', 'width: 33%', 'width: 34%'));
        print_cells_row($cells, false, false, -3);
        print_submit_row($vbphrase['delete_selected'], '', 3);
    } else {
        print_description_row($vbphrase['no_tags_defined'], false, 3, '', 'center');
        print_table_footer();
    }
    print_form_header('thread', 'taginsert');
    print_input_row($vbphrase['add_tag'], 'tagtext');
    print_submit_row();
}
// ###################### Start Prune by user #######################
if ($_REQUEST['do'] == 'pruneuser') {
    $vbulletin->input->clean_array_gpc('r', array('username' => TYPE_NOHTML, 'forumid' => TYPE_INT, 'subforums' => TYPE_BOOL, 'userid' => TYPE_UINT));
    // we only ever submit this via post
    $vbulletin->input->clean_array_gpc('p', array('confirm' => TYPE_BOOL));
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:thread.php

示例11: print_cells_row

         print_cells_row($cell);
     }
     print_description_row($disabled_groups_line, false, sizeof($cell), 'thead smallfont', 'center');
     print_table_footer();
 } else {
     // show only the global permissions
     $have_project = false;
     $header = array($vbphrase['usergroup']);
     foreach ($issuetype_options as $issuetype) {
         $header[] = "<span style=\"white-space: nowrap\">{$issuetype}</span>";
     }
     $header[] = '&nbsp;';
     print_form_header('', '');
     print_table_header($vbphrase['global_project_permissions'], sizeof($header));
     print_description_row($vbphrase['permission_apply_all_projects_unless_custom'], false, sizeof($header));
     print_column_style_code(array('width: 100%', ''));
     print_cells_row($header, true);
     foreach ($usergroup_info as $usergroupid => $usergroup) {
         if (!(intval($usergroup['ptpermissions']) & $vbulletin->bf_ugp_ptpermissions['canviewprojecttools'])) {
             // global permission to disable viewing set
             if ($vbulletin->GPC['hidedisabled']) {
                 continue;
             }
             $cell = array("<strike>{$usergroup['title']}</strike>");
         } else {
             $cell = array("<span class=\"am-grant\"><strong>{$usergroup['title']}</strong></span>");
         }
         $usergroup_perms = $global_usergroups["{$usergroupid}"];
         foreach (array_keys($issuetype_options) as $issuetypeid) {
             $can_view_img = $vbulletin->pt_bitfields['general']['canview'] & intval($usergroup_perms["{$issuetypeid}"]['generalpermissions']) ? 'yes' : 'no';
             $cell[] = "<img src=\"../cpstyles/" . $vbulletin->options['cpstylefolder'] . "/cp_tick_{$can_view_img}.gif\" alt=\"\" />";
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:projectpermission.php

示例12: print_form_header

    // display notice and check options
    print_form_header('passwordcheck', 'check');
    print_table_header($vbphrase['check_vulnerable_passwords']);
    print_description_row($vbphrase['password_check_notice']);
    print_select_row($vbphrase['check_accounts_with_last_activity'], 'period', $periods, $period);
    print_description_row('<strong>' . ($period ? construct_phrase($vbphrase['affected_accounts_that_were_last_active_x_y'], strtolower($periods[$period]), $total_affected) : construct_phrase($vbphrase['affected_accounts_x'], $total_affected)) . '</strong>');
    construct_hidden_code('email', $email, false);
    construct_hidden_code('email_subject', $email_subject, false);
    construct_hidden_code('email_from', $email_from, false);
    construct_hidden_code('quantity', $quantity);
    print_submit_row($vbphrase['check_affected_accounts'], false);
    print_table_footer();
    // display reset options
    print_form_header('passwordcheck', 'reset');
    print_table_header($vbphrase['reset_vulnerable_passwords']);
    print_column_style_code(array('width: 40%', 'width: 60%'));
    print_select_row($vbphrase['reset_accounts_with_last_activity'], 'period', $periods, $period);
    print_input_row($vbphrase['email_to_send_at_once'], 'quantity', $quantity);
    print_input_row($vbphrase['email_subject'], 'email_subject', $email_subject, false, 80);
    print_input_row($vbphrase['email_from'], 'email_from', $email_from, false, 80);
    print_textarea_row($vbphrase['password_vulnerability_email_message_label'], 'email', $email, 40, 80);
    print_submit_row($vbphrase['reset_vulnerable_passwords'], false);
    print_table_footer();
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:56, Sat Oct 11th 2008
|| # CVS: $RCSfile$ - $Revision: 25957 $
|| ####################################################################
\*======================================================================*/
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:passwordcheck.php

示例13: print_table_start

// ########################################################################
// we want to display the bookmark list - this is the default action
if ($_REQUEST['do'] == 'modify') {
    if (!$vbulletin->options['socialbookmarks']) {
        print_table_start();
        print_description_row(fetch_error('social_bookmarks_disabled'));
        print_table_footer(2, '', '', false);
    }
    // display the form and table header
    print_form_header('bookmarksite', 'quickupdate');
    print_table_header($vbphrase['social_bookmarking_manager'], 3);
    $bookmarksites_result = $db->query_read("\n\t\tSELECT * FROM " . TABLE_PREFIX . "bookmarksite AS bookmarksite\n\t\tORDER BY displayorder, title\n\t");
    $bookmarksite_count = $db->num_rows($bookmarksites_result);
    if ($bookmarksite_count) {
        print_description_row('<label><input type="checkbox" id="allbox" checked="checked" />' . $vbphrase['toggle_active_status_for_all'] . '</label><input type="image" src="../' . $vbulletin->options['cleargifurl'] . '" name="normalsubmit" />', false, 3, 'thead" style="font-weight:normal; padding:0px 4px 0px 4px');
        print_column_style_code(array('width:20%; white-space:nowrap', 'width:60%', "width:20%; white-space:nowrap; text-align:" . vB_Template_Runtime::fetchStyleVar('right')));
        while ($bookmarksite = $db->fetch_array($bookmarksites_result)) {
            print_cells_row(array('<label class="smallfont"><input type="checkbox" name="active[' . $bookmarksite['bookmarksiteid'] . ']" value="1"' . ($bookmarksite['active'] ? ' checked="checked"' : '') . ' />' . $vbphrase['active'] . '</label> &nbsp; ' . '<input type="image" src="../cpstyles/' . $vbulletin->options['cpstylefolder'] . '/move_down.gif" name="displayorderswap[' . $bookmarksite['bookmarksiteid'] . ',higher]" />' . '<input type="text" name="displayorder[' . $bookmarksite['bookmarksiteid'] . ']" value="' . $bookmarksite['displayorder'] . '" class="bginput" size="4" title="' . $vbphrase['display_order'] . '" style="text-align:' . vB_Template_Runtime::fetchStyleVar('right') . '" />' . '<input type="image" src="../cpstyles/' . $vbulletin->options['cpstylefolder'] . '/move_up.gif" name="displayorderswap[' . $bookmarksite['bookmarksiteid'] . ',lower]" />', '<a href="bookmarksite.php?' . $vbulletin->session->vars['sessionurl'] . 'do=edit&amp;bookmarksiteid=' . $bookmarksite['bookmarksiteid'] . '" title="' . $vbphrase['edit'] . '">' . $bookmarksite['title'] . '</a>', construct_link_code($vbphrase['edit'], 'bookmarksite.php?' . $vbulletin->session->vars['sessionurl'] . 'do=edit&amp;bookmarksiteid=' . $bookmarksite['bookmarksiteid']) . construct_link_code($vbphrase['delete'], 'bookmarksite.php?' . $vbulletin->session->vars['sessionurl'] . 'do=delete&amp;bookmarksiteid=' . $bookmarksite['bookmarksiteid'])), false, '', -1);
        }
        $db->free_result($bookmarksites_result);
    }
    echo '<tr>
		<td class="tfoot">' . ($bookmarksite_count ? '<input type="submit" class="button" accesskey="s" value="' . $vbphrase['save'] . '" /> <input type="reset" class="button" accesskey="r" value="' . $vbphrase['reset'] . '" />' : '&nbsp;') . '</td>
		<td class="tfoot" align="' . vB_Template_Runtime::fetchStyleVar('right') . '" colspan="2"><input type="button" class="button" value="' . $vbphrase['add_new_social_bookmarking_site'] . '" onclick="window.location=\'bookmarksite.php?' . $vbulletin->session->vars['sessionurl'] . 'do=add\';" /></td>
	</tr>';
    print_table_footer();
    ?>
	<script type="text/javascript">
	<!--
	function toggle_all_active(e)
	{
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:bookmarksite.php

示例14: print_label_row

    print_label_row(construct_link_code('Run Query', THIS_SCRIPT . '?do=mysql&amp;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&amp;type=repair'), 'You can select tables that need repaired here');
    print_label_row(construct_link_code('Reset Admin Access', THIS_SCRIPT . '?do=user&amp;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>';
                xml_import_style($xml);
                // define those phrases that are used for the import
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:tools.php

示例15: print_form_header

|| #################################################################### ||
|| # vBulletin 3.7.3 Patch Level 1 - Licence Number VBFDF477A7
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2008 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
if (!isset($GLOBALS['vbulletin']->db)) {
    exit;
}
// display the credits table for use in admin/mod control panels
print_form_header('index', 'home');
print_table_header($vbphrase['vbulletin_developers_and_contributors']);
print_column_style_code(array('white-space: nowrap', ''));
print_label_row('<b>' . $vbphrase['software_developed_by'] . '</b>', '
	<a href="http://www.jelsoft.com/" target="vbulletin">Jelsoft Enterprises Limited</a>
', '', 'top', NULL, false);
print_label_row('<b>' . $vbphrase['product_manager'] . '</b>', '
	<a href="http://www.vbulletin.com/forum/member.ph' . 'p?u=1034" target="vbulletin">Kier Darby</a>
', '', 'top', NULL, false);
print_label_row('<b>' . $vbphrase['business_development'] . '</b>', '
	<a href="http://www.vbulletin.com/forum/member.ph' . 'p?u=2" target="vbulletin">James Limm</a>,
	<a href="http://www.vbulletin.com/forum/member.ph' . 'p?u=22709" target="vbulletin">Ashley Busby</a>
', '', 'top', NULL, false);
print_label_row('<b>' . $vbphrase['software_development'] . '</b>', '
	<a href="http://www.vbulletin.com/forum/member.ph' . 'p?u=1034" target="vbulletin">Kier Darby</a>,
	<a href="http://www.vbulletin.com/forum/member.ph' . 'p?u=224" target="vbulletin">Freddie Bingham</a>,
	<a href="http://www.vbulletin.com/forum/member.ph' . 'p?u=1814" target="vbulletin">Scott MacVicar</a>,
	<a href="http://www.vbulletin.com/forum/member.ph' . 'p?u=37" target="vbulletin">Mike Sullivan</a>,
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:vbulletin_credits.php


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