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


PHP print_chooser_row函数代码示例

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


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

示例1: foreach

    foreach ($vbulletin->usergroupcache as $usergroupid => $usergroup) {
        if (!($usergroup['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isnotbannedgroup'])) {
            $usergroups["{$usergroupid}"] = $usergroup['title'];
            if ($selectedid == 0) {
                $selectedid = $usergroupid;
            }
        }
    }
    $temporary_phrase = $vbphrase['temporary_ban_options'];
    $permanent_phrase = $vbphrase['permanent_ban_options'];
    // make a list of banning period options
    $periodoptions = array($temporary_phrase => array('D_1' => construct_phrase($vbphrase['x_days'], 1), 'D_2' => construct_phrase($vbphrase['x_days'], 2), 'D_3' => construct_phrase($vbphrase['x_days'], 3), 'D_4' => construct_phrase($vbphrase['x_days'], 4), 'D_5' => construct_phrase($vbphrase['x_days'], 5), 'D_6' => construct_phrase($vbphrase['x_days'], 6), 'D_7' => construct_phrase($vbphrase['x_days'], 7), 'D_10' => construct_phrase($vbphrase['x_days'], 10), 'D_14' => construct_phrase($vbphrase['x_weeks'], 2), 'D_21' => construct_phrase($vbphrase['x_weeks'], 3), 'M_1' => construct_phrase($vbphrase['x_months'], 1), 'M_2' => construct_phrase($vbphrase['x_months'], 2), 'M_3' => construct_phrase($vbphrase['x_months'], 3), 'M_4' => construct_phrase($vbphrase['x_months'], 4), 'M_5' => construct_phrase($vbphrase['x_months'], 5), 'M_6' => construct_phrase($vbphrase['x_months'], 6), 'Y_1' => construct_phrase($vbphrase['x_years'], 1), 'Y_2' => construct_phrase($vbphrase['x_years'], 2)), $permanent_phrase => array('PERMA' => "{$vbphrase['permanent']} - {$vbphrase['never_lift_ban']}"));
    $methods = array('points' => $vbphrase['points'], 'infractions' => $vbphrase['infractions']);
    print_input_row($vbphrase['amount'], 'amount', $infraction['amount'], true, 5);
    print_select_row($vbphrase['method'], 'method', $methods, $infraction['method']);
    print_chooser_row($vbphrase['primary_usergroup'], 'usergroupid', 'usergroup', $infraction['usergroupid'], '-- ' . $vbphrase['all_usergroups'] . ' --');
    print_select_row($vbphrase['move_user_to_usergroup'], 'banusergroupid', $usergroups, $selectedid);
    print_select_row($vbphrase['lift_ban_after'], 'period', $periodoptions, $infraction['period']);
    print_submit_row($vbphrase['save']);
}
// ###################### Start do update #######################
if ($_POST['do'] == 'updatebangroup') {
    $vbulletin->input->clean_array_gpc('p', array('method' => TYPE_NOHTML, 'amount' => TYPE_UINT, 'usergroupid' => TYPE_INT, 'banusergroupid' => TYPE_UINT, 'period' => TYPE_NOHTML));
    if (empty($vbulletin->GPC['amount'])) {
        print_stop_message('please_complete_required_fields');
    }
    if (empty($vbulletin->GPC['infractionbanid'])) {
        $db->query_write("INSERT INTO " . TABLE_PREFIX . "infractionban (amount) VALUES (0)");
        $vbulletin->GPC['infractionbanid'] = $db->insert_id();
    }
    $db->query_write("\n\t\tUPDATE " . TABLE_PREFIX . "infractionban\n\t\tSET amount = " . $vbulletin->GPC['amount'] . ",\n\t\t\tmethod = '" . $db->escape_string($vbulletin->GPC['method']) . "',\n\t\t\tusergroupid = " . $vbulletin->GPC['usergroupid'] . ",\n\t\t\tbanusergroupid = " . $vbulletin->GPC['banusergroupid'] . ",\n\t\t\tperiod = '" . $db->escape_string($vbulletin->GPC['period']) . "'\n\t\tWHERE infractionbanid = " . $vbulletin->GPC['infractionbanid'] . "\n\t");
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:admininfraction.php

示例2:

{
	$bitfieldnames["$val"] = $perm_phrase["$key"];
}

if (empty($_REQUEST['do']))
{
	$_REQUEST['do'] = 'index';
}

// ###################### Start index ########################
if ($_REQUEST['do'] == 'index')
{
	print_form_header('resources', 'view');
	print_table_header($vbphrase['view_forum_permissions']);
	print_forum_chooser($vbphrase['forum'], 'forumid', -1, "($vbphrase[forum])");
	print_chooser_row($vbphrase['usergroup'], 'usergroupid', 'usergroup', '', "($vbphrase[usergroup])");
	print_label_row(
		$vbphrase['forum_permissions'],
		'<label for="cb_checkall"><input type="checkbox" id="cb_checkall" name="allbox" onclick="js_check_all(this.form)" />' . $vbphrase['check_all'] . '</label>',
		'thead'
	);
	foreach ($vbulletin->bf_ugp_forumpermissions AS $field => $value)
	{
		print_checkbox_row($perm_phrase["$field"], "checkperm[$value]", false, $value);
	}
	print_submit_row($vbphrase['find']);

}

// ###################### Start viewing resources for forums or usergroups ########################
if ($_REQUEST['do'] == 'view')
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:resources.php

示例3: define

            echo '<p>' . $vbphrase['this_action_is_not_reversible'] . '</p>';
        } else {
            define('CP_REDIRECT', "user.php?do=prune" . "&usergroupid=" . $vbulletin->GPC['usergroupid'] . "&daysprune=" . $vbulletin->GPC['daysprune'] . "&joindateunix={$joindateunix}" . "&minposts=" . $vbulletin->GPC['minposts']);
            print_stop_message('no_users_matched_your_query');
        }
    } else {
        print_stop_message('please_complete_required_fields');
    }
}
// ############################# start prune users #########################
if ($_REQUEST['do'] == 'prune') {
    $vbulletin->input->clean_array_gpc('r', array('usergroupid' => TYPE_UINT, 'daysprune' => TYPE_INT, 'joindateunix' => TYPE_INT, 'minposts' => TYPE_INT));
    print_form_header('user', 'pruneusers');
    print_table_header($vbphrase['user_moving_pruning_system']);
    print_description_row('<blockquote>' . $vbphrase['this_system_allows_you_to_mass_move_delete_users'] . '</blockquote>');
    print_chooser_row($vbphrase['usergroup'], 'usergroupid', 'usergroup', iif($vbulletin->GPC['usergroupid'], $vbulletin->GPC['usergroupid'], -1), $vbphrase['all_usergroups']);
    print_input_row($vbphrase['has_not_logged_on_for_xx_days'], 'daysprune', iif($vbulletin->GPC['daysprune'], $vbulletin->GPC['daysprune'], 365));
    print_time_row($vbphrase['join_date_is_before'], 'joindate', $vbulletin->GPC['joindateunix'], false, false, 'middle');
    print_input_row($vbphrase['posts_is_less_than'], 'minposts', iif($vbulletin->GPC['minposts'], $vbulletin->GPC['minposts'], '0'));
    print_label_row($vbphrase['order_by'], '<select name="order" tabindex="1" class="bginput">
		<option value="username">' . $vbphrase['username'] . '</option>
		<option value="email">' . $vbphrase['email'] . '</option>
		<option value="usergroup">' . $vbphrase['usergroup'] . '</option>
		<option value="posts">' . $vbphrase['post_count'] . '</option>
		<option value="lastactivity">' . $vbphrase['last_activity'] . '</option>
		<option value="joindate">' . $vbphrase['join_date'] . '</option>
	</select>', '', 'top', 'order');
    print_submit_row($vbphrase['find']);
}
// ############################# user change history #########################
if ($_REQUEST['do'] == 'changehistory') {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:user.php

示例4: print_user_search_rows

function print_user_search_rows($email = false)
{
    global $vbulletin, $vbphrase, $stylevar;
    print_label_row($vbphrase['username'], "\n\t\t<input type=\"text\" class=\"bginput\" name=\"user[username]\" tabindex=\"1\" size=\"35\"\n\t\t/><input type=\"image\" src=\"../" . $vbulletin->options['cleargifurl'] . "\" width=\"1\" height=\"1\"\n\t\t/><input type=\"submit\" class=\"button\" value=\"{$vbphrase['exact_match']}\" tabindex=\"1\" name=\"user[exact]\" />\n\t", '', 'top', 'user[username]');
    if ($email) {
        global $iusergroupcache;
        $userarray = array('usergroupid' => 0, 'membergroupids' => '');
        $iusergroupcache = array();
        $usergroups = $vbulletin->db->query_read("SELECT usergroupid, title, (forumpermissions & " . $vbulletin->bf_ugp_forumpermissions['canview'] . ") AS CANVIEW FROM " . TABLE_PREFIX . "usergroup ORDER BY title");
        while ($usergroup = $vbulletin->db->fetch_array($usergroups)) {
            if ($usergroup['CANVIEW']) {
                $userarray['membergroupids'] .= "{$usergroup['usergroupid']},";
            }
            $iusergroupcache["{$usergroup['usergroupid']}"] = $usergroup['title'];
        }
        unset($usergroup);
        $vbulletin->db->free_result($usergroups);
        print_checkbox_row($vbphrase['all_usergroups'], 'usergroup_all', 0, -1, $vbphrase['all_usergroups'], 'check_all_usergroups(this.form, this.checked);');
        print_membergroup_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 2, $userarray);
        print_membergroup_row($vbphrase['additional_usergroups'], 'user[membergroup]', 2);
        print_yes_no_row($vbphrase['include_users_that_have_declined_email'], 'user[adminemail]', 0);
    } else {
        print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 'usergroup', -1, '-- ' . $vbphrase['all_usergroups'] . ' --');
        print_membergroup_row($vbphrase['additional_usergroups'], 'user[membergroup]', 2);
    }
    print_description_row('<div align="' . $stylevar['right'] . '"><input type="submit" class="button" value=" ' . iif($email, $vbphrase['submit'], $vbphrase['find']) . ' " tabindex="1" /></div>');
    print_input_row($vbphrase['email'], 'user[email]');
    print_input_row($vbphrase['parent_email_address'], 'user[parentemail]');
    print_yes_no_other_row($vbphrase['coppa_user'], 'user[coppauser]', $vbphrase['either'], -1);
    print_input_row($vbphrase['home_page'], 'user[homepage]');
    print_input_row($vbphrase['icq_uin'], 'user[icq]');
    print_input_row($vbphrase['aim_screen_name'], 'user[aim]');
    print_input_row($vbphrase['yahoo_id'], 'user[yahoo]');
    print_input_row($vbphrase['msn_id'], 'user[msn]');
    print_input_row($vbphrase['skype_name'], 'user[skype]');
    print_input_row($vbphrase['signature'], 'user[signature]');
    print_input_row($vbphrase['user_title'], 'user[usertitle]');
    print_input_row($vbphrase['join_date_is_after'] . '<dfn>(yyyy-mm-dd)</dfn>', 'user[joindateafter]');
    print_input_row($vbphrase['join_date_is_before'] . '<dfn>(yyyy-mm-dd)</dfn>', 'user[joindatebefore]');
    print_input_row($vbphrase['last_activity_is_after'] . '<dfn>(yyyy-mm-dd hh:mm:ss)</dfn>', 'user[lastactivityafter]');
    print_input_row($vbphrase['last_activity_is_before'] . '<dfn>(yyyy-mm-dd hh:mm:ss)</dfn>', 'user[lastactivitybefore]');
    print_input_row($vbphrase['last_post_is_after'] . '<dfn>(yyyy-mm-dd hh:mm:ss)</dfn>', 'user[lastpostafter]');
    print_input_row($vbphrase['last_post_is_before'] . '<dfn>(yyyy-mm-dd hh:mm:ss)</dfn>', 'user[lastpostbefore]');
    print_input_row($vbphrase['birthday_is_after'] . '<dfn>(yyyy-mm-dd)</dfn>', 'user[birthdayafter]');
    print_input_row($vbphrase['birthday_is_before'] . '<dfn>(yyyy-mm-dd)</dfn>', 'user[birthdaybefore]');
    print_input_row($vbphrase['posts_are_greater_than'], 'user[postslower]', '', 1, 7);
    print_input_row($vbphrase['posts_are_less_than'], 'user[postsupper]', '', 1, 7);
    print_input_row($vbphrase['reputation_is_greater_than'], 'user[reputationlower]', '', 1, 7);
    print_input_row($vbphrase['reputation_is_less_than'], 'user[reputationupper]', '', 1, 7);
    print_input_row($vbphrase['warnings_are_greater_than'], 'user[warningslower]', '', 1, 7);
    print_input_row($vbphrase['warnings_are_less_than'], 'user[warningsupper]', '', 1, 7);
    print_input_row($vbphrase['infractions_are_greater_than'], 'user[infractionslower]', '', 1, 7);
    print_input_row($vbphrase['infractions_are_less_than'], 'user[infractionsupper]', '', 1, 7);
    print_input_row($vbphrase['infraction_points_are_greater_than'], 'user[pointslower]', '', 1, 7);
    print_input_row($vbphrase['infraction_points_are_less_than'], 'user[pointsupper]', '', 1, 7);
    print_input_row($vbphrase['userid_is_greater_than'], 'user[useridlower]', '', 1, 7);
    print_input_row($vbphrase['userid_is_less_than'], 'user[useridupper]', '', 1, 7);
    print_input_row($vbphrase['registration_ip_address'], 'user[ipaddress]');
    print_description_row('<div align="' . $stylevar['right'] . '"><input type="submit" class="button" value=" ' . iif($email, $vbphrase['submit'], $vbphrase['find']) . ' " tabindex="1" /></div>');
    $forms = array(0 => $vbphrase['edit_your_details'], 1 => "{$vbphrase['options']}: {$vbphrase['log_in']} / {$vbphrase['privacy']}", 2 => "{$vbphrase['options']}: {$vbphrase['messaging']} / {$vbphrase['notification']}", 3 => "{$vbphrase['options']}: {$vbphrase['thread_viewing']}", 4 => "{$vbphrase['options']}: {$vbphrase['date']} / {$vbphrase['time']}", 5 => "{$vbphrase['options']}: {$vbphrase['other']}");
    $currentform = -1;
    print_table_header($vbphrase['user_profile_fields']);
    $profilefields = $vbulletin->db->query_read("\n\t\tSELECT *\n\t\tFROM " . TABLE_PREFIX . "profilefield AS profilefield\n\t\tLEFT JOIN " . TABLE_PREFIX . "profilefieldcategory AS profilefieldcategory ON\n\t\t\t(profilefield.profilefieldcategoryid = profilefieldcategory.profilefieldcategoryid)\n\t\tORDER BY profilefield.form, profilefieldcategory.displayorder, profilefield.displayorder\n\t");
    while ($profilefield = $vbulletin->db->fetch_array($profilefields)) {
        if ($profilefield['form'] != $currentform) {
            print_description_row(construct_phrase($vbphrase['fields_from_form_x'], $forms["{$profilefield['form']}"]), false, 2, 'optiontitle');
            $currentform = $profilefield['form'];
        }
        $profilefield['def'] = 0;
        print_profilefield_row('profile', $profilefield);
    }
    print_description_row('<div align="' . $stylevar['right'] . '"><input type="submit" class="button" value=" ' . iif($email, $vbphrase['submit'], $vbphrase['find']) . ' " tabindex="1" /></div>');
}
开发者ID:holandacz,项目名称:nb4,代码行数:73,代码来源:adminfunctions_user.php

示例5: construct_hidden_code

        }
        if ($vbulletin->GPC['returnug']) {
            construct_hidden_code('returnug', 1);
        }
        construct_hidden_code('userpromotionid', $vbulletin->GPC['userpromotionid']);
        construct_hidden_code('usergroupid', $promotion['usergroupid']);
        print_table_header(construct_phrase($vbphrase['x_y_id_z'], $vbphrase['promotion'], $promotion['title'], $promotion['userpromotionid']));
    }
    $promotionarray = array(17 => $vbphrase['posts'], 18 => $vbphrase['join_date'], 16 => $vbphrase['reputation'], 0 => $vbphrase['promotion_strategy1'], 1 => $vbphrase['promotion_strategy2'], 2 => $vbphrase['promotion_strategy3'], 3 => $vbphrase['promotion_strategy4'], 4 => $vbphrase['promotion_strategy5'], 5 => $vbphrase['promotion_strategy6'], 6 => $vbphrase['promotion_strategy7'], 7 => $vbphrase['promotion_strategy8']);
    print_input_row($vbphrase['reputation_level'], 'promotion[reputation]', $promotion['reputation']);
    print_input_row($vbphrase['days_registered'], 'promotion[date]', $promotion['date']);
    print_input_row($vbphrase['posts'], 'promotion[posts]', $promotion['posts']);
    print_select_row($vbphrase['promotion_strategy'] . " <dfn> {$vbphrase['promotion_strategy_description']}</dfn>", 'promotion[strategy]', $promotionarray, $promotion['strategy']);
    print_select_row($vbphrase['promotion_type'] . ' <dfn>' . $vbphrase['promotion_type_description_primary_additional'] . '</dfn>', 'promotion[type]', array(1 => $vbphrase['primary_usergroup'], 2 => $vbphrase['additional_usergroups']), $promotion['type']);
    print_select_row($vbphrase['reputation_comparison_type'] . '<dfn>' . $vbphrase['reputation_comparison_type_desc'] . '</dfn>', 'promotion[reputationtype]', array($vbphrase['greater_or_equal_to'], $vbphrase['less_than']), $promotion['reputationtype']);
    print_chooser_row($vbphrase['move_user_to_usergroup'] . " <dfn>{$vbphrase['move_user_to_usergroup_description']}</dfn>", 'promotion[joinusergroupid]', 'usergroup', $promotion['joinusergroupid'], '&nbsp;');
    print_submit_row(iif(empty($vbulletin->GPC['userpromotionid']), $vbphrase['save'], '_default_'));
}
// ###################### Start do edit/insert promotions #######################
if ($_POST['do'] == 'doupdatepromotion') {
    $vbulletin->input->clean_array_gpc('p', array('promotion' => TYPE_ARRAY, 'userpromotionid' => TYPE_INT, 'returnug' => TYPE_BOOL));
    if ($vbulletin->GPC['promotion']['joinusergroupid'] == -1) {
        print_stop_message('invalid_usergroup_specified');
    }
    if ($vbulletin->GPC['promotion']['reputationtype'] and $vbulletin->GPC['promotion']['strategy'] <= 16) {
        $vbulletin->GPC['promotion']['strategy'] += 8;
    }
    unset($vbulletin->GPC['promotion']['reputationtype']);
    if (!empty($vbulletin->GPC['userpromotionid'])) {
        // update
        if ($vbulletin->GPC['usergroupid'] == $vbulletin->GPC['promotion']['joinusergroupid']) {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:usergroup.php

示例6: print_form_header

        $ranks = $db->query_first("\n\t\t\tSELECT *\n\t\t\tFROM " . TABLE_PREFIX . "ranks\n\t\t\tWHERE rankid = " . $vbulletin->GPC['rankid'] . "\n\t\t");
        print_form_header('ranks', 'doupdate');
    } else {
        $ranks = array('ranklevel' => 1, 'usergroupid' => -1, 'minposts' => 10, 'rankimg' => 'images/');
        print_form_header('ranks', 'insert');
    }
    if ($ranks['type']) {
        $ranktext = $ranks['rankimg'];
    } else {
        $rankimg = $ranks['rankimg'];
    }
    $displaytype = array($vbphrase['always'], $vbphrase['if_displaygroup_equals_this_group']);
    construct_hidden_code('rankid', $vbulletin->GPC['rankid']);
    print_table_header(construct_phrase($vbphrase['x_y_id_z'], $vbphrase['user_rank'], '', $vbulletin->GPC['rankid']));
    print_input_row($vbphrase['times_to_repeat_rank'], 'ranklevel', $ranks['ranklevel']);
    print_chooser_row($vbphrase['usergroup'], 'usergroupid', 'usergroup', $ranks['usergroupid'], $vbphrase['all_usergroups']);
    print_input_row($vbphrase['minimum_posts'], 'minposts', $ranks['minposts']);
    print_yes_no_row($vbphrase['stack_rank'], 'stack', $ranks['stack']);
    print_select_row($vbphrase['display_type'], 'display', $displaytype, $ranks['display']);
    print_table_header($vbphrase['rank_type']);
    print_input_row($vbphrase['user_rank_file_path'], 'rankimg', $rankimg);
    print_input_row($vbphrase['or_you_may_enter_text'], 'rankhtml', $ranktext);
    print_submit_row();
}
// ###################### Start do update #######################
if ($_POST['do'] == 'doupdate') {
    $vbulletin->input->clean_array_gpc('p', array('ranklevel' => TYPE_UINT, 'minposts' => TYPE_UINT, 'rankimg' => TYPE_STR, 'usergroupid' => TYPE_INT, 'rankhtml' => TYPE_NOTRIM, 'stack' => TYPE_UINT, 'display' => TYPE_UINT));
    if (!$vbulletin->GPC['ranklevel'] or !$vbulletin->GPC['rankimg'] and !$vbulletin->GPC['rankhtml']) {
        print_stop_message('please_complete_required_fields');
    }
    if ($vbulletin->GPC['rankhtml']) {
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:ranks.php

示例7: print_table_header

    print_table_header($vbphrase['paypal_only']);
    print_yes_no_row($vbphrase['tax'], 'options[tax]', $sub['tax']);
    print_select_row($vbphrase['shipping_address'], 'shipping', array(0 => $vbphrase['none'], 2 => $vbphrase['optional'], 4 => $vbphrase['required']), ($sub['options'] & $subobj->_SUBSCRIPTIONOPTIONS['shipping1']) + ($sub['options'] & $subobj->_SUBSCRIPTIONOPTIONS['shipping2']));
    print_table_break('', '100%');
    print_table_header($vbphrase['admin_override_options']);
    foreach ($vbulletin->bf_misc_adminoptions as $field => $value) {
        print_yes_no_row($vbphrase['keep_' . $field], 'adminoptions[' . $field . ']', $sub["{$field}"]);
    }
    ?>
	</table>
	</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
	<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%" class="tborder">
	<?php 
    // USERGROUP SECTION
    print_table_header($vbphrase['usergroup_options']);
    print_chooser_row($vbphrase['primary_usergroup'], 'sub[nusergroupid]', 'usergroup', $sub['nusergroupid'], $vbphrase['no_change']);
    print_membergroup_row($vbphrase['additional_usergroups'], 'membergroup', 0, $sub);
    ?>
	</table>
	</tr>
	<?php 
    print_table_break('', $OUTERTABLEWIDTH);
    print_table_header($vbphrase['forums']);
    print_description_row($vbphrase['here_you_can_select_which_forums_the_user']);
    //require_once(DIR . '/includes/functions_databuild.php');
    //cache_forums();
    if ($old_sub_masks = @unserialize($sub['forums']) and is_array($old_sub_masks)) {
        $forums = array_keys($old_sub_masks);
    } else {
        $forums = explode(',', $sub['forums']);
    }
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:subscriptions.php

示例8: print_profilefield_row

        }
        print_profilefield_row('profile', $profilefield, $userfield);
    }
    ($hook = vBulletinHook::fetch_hook('useradmin_edit_column1')) ? eval($hook) : false;
    if ($vbulletin->options['cp_usereditcolumns'] == 2) {
        ?>
		</table>
		</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
		<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%" class="tborder">
		<?php 
    } else {
        print_table_break('', $INNERTABLEWIDTH);
    }
    // USERGROUP SECTION
    print_table_header($vbphrase['usergroup_options']);
    print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 'usergroup', $user['usergroupid']);
    print_membergroup_row($vbphrase['additional_usergroups'], 'membergroup', 0, $user);
    print_table_break('', $INNERTABLEWIDTH);
    // reputation SECTION
    print_table_header($vbphrase['reputation']);
    print_yes_no_row($vbphrase['display_reputation'], 'options[showreputation]', $user['showreputation']);
    print_input_row($vbphrase['reputation_level'], 'user[reputation]', $user['reputation']);
    print_table_break('', $INNERTABLEWIDTH);
    // BROWSING OPTIONS SECTION
    print_table_header($vbphrase['browsing_options']);
    print_yes_no_row($vbphrase['receive_admin_emails'], 'options[adminemail]', $user['adminemail']);
    print_yes_no_row($vbphrase['display_email'], 'options[showemail]', $user[showemail]);
    print_yes_no_row($vbphrase['invisible_mode'], 'options[invisible]', $user['invisible']);
    print_yes_no_row($vbphrase['receive_private_messages'], 'options[receivepm]', $user['receivepm']);
    print_yes_no_row($vbphrase['send_notification_email_when_a_private_message_is_received'], 'options[emailonpm]', $user['emailonpm']);
    print_yes_no_row($vbphrase['pop_up_notification_box_when_a_private_message_is_received'], 'user[pmpopup]', $user['pmpopup']);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:user.php

示例9: eval

    ($hook = vBulletinHook::fetch_hook('useradmin_edit_column1')) ? eval($hook) : false;
    if ($vbulletin->options['cp_usereditcolumns'] == 2) {
        ?>
		</table>
		</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
		<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%" class="tborder">
		<?php 
    } else {
        print_table_break('', $INNERTABLEWIDTH);
    }
    // USERGROUP SECTION
    print_table_header($vbphrase['usergroup_options']);
    print_chooser_row($vbphrase['primary_usergroup'], 'user[usergroupid]', 'usergroup', $user['usergroupid']);
    if (!empty($user['membergroupids'])) {
        $usergroupids = $user['usergroupid'] . (!empty($user['membergroupids']) ? ',' . $user['membergroupids'] : '');
        print_chooser_row($vbphrase['display_usergroup'], 'user[displaygroupid]', 'usergroup', iif($user['displaygroupid'] == 0, -1, $user['displaygroupid']), $vbphrase['default'], 0, "WHERE usergroupid IN ({$usergroupids})");
    }
    $tempgroup = $user['usergroupid'];
    $user['usergroupid'] = 0;
    print_membergroup_row($vbphrase['additional_usergroups'], 'membergroup', 0, $user);
    print_table_break('', $INNERTABLEWIDTH);
    // reputation SECTION
    require_once DIR . '/includes/functions_reputation.php';
    if ($user['userid']) {
        $perms = fetch_permissions(0, $user['userid'], $user);
    } else {
        $perms = array();
    }
    $score = fetch_reppower($user, $perms);
    print_table_header($vbphrase['reputation']);
    print_yes_no_row($vbphrase['display_reputation'], 'options[showreputation]', $user['showreputation']);
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:user.php


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