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


PHP show_profile函数代码示例

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


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

示例1: calendar

        $cal->get_authorised_calendars($GO_SECURITY->user_id);
        $cal2 = new calendar();
        while ($cal->next_record()) {
            if ($view_id > 0 && $task != 'save') {
                $check = $cal2->calendar_is_in_view($cal->f('id'), $view_id);
            } else {
                $check = isset($_POST['calendars']) ? in_array($cal->f('id'), $_POST['calendars']) : false;
            }
            if ($has_write_permission) {
                echo '<tr><td>';
                $checkbox = new checkbox('calendars[]', $cal->f('id'), $cal->f('name'), $check);
                echo '</td><td>' . show_profile($cal->f('user_id')) . '</td></tr>';
            } else {
                if ($check) {
                    echo '<tr><td>' . htmlspecialchars($cal->f('name'));
                    echo '</td><td>' . show_profile($cal->f('user_id')) . '</td></tr>';
                }
            }
        }
        ?>
	</table>
	</td>
</tr>
<tr>
	<td colspan="2">
		<?php 
        if ($has_write_permission) {
            $button = new button($cmdOk, "javascript:document.forms[0].close.value='true';document.forms[0].task.value='save';document.forms[0].submit()");
            echo '&nbsp;&nbsp;';
            $button = new button($cmdApply, "javascript:document.forms[0].task.value='save';document.forms[0].submit()");
            echo '&nbsp;&nbsp;';
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:view.php

示例2: and

        $query = "select * from profile, user where profile.userid=user.id " . " and has_picture>0 " . " and verification=0 " . " limit 20";
    } else {
        $query = "select * from profile, user where profile.userid=user.id " . " and has_picture>0 " . " and verification=0 " . " and uotd_time is null " . " and expavg_credit>1 " . " and (response1 <> '' or response2 <> '') " . " order by recommend desc limit 20";
    }
}
$result = _mysql_query($query);
$n = 0;
echo "<form action=profile_screen_action.php>\n";
start_table();
$found = false;
while ($profile = _mysql_fetch_object($result)) {
    $found = true;
    echo "<tr><td valign=top>";
    buttons($n);
    echo "\n        <br>Name: {$profile->name}\n        <br>recommends: {$profile->recommend}\n        <br>rejects: {$profile->reject}\n        <br>RAC: {$profile->expavg_credit}\n        <br>\n    ";
    echo "</td><td><table border=2> ";
    show_profile($profile, $g_logged_in_user, true);
    echo "</table></td></tr>\n";
    echo "<input type=\"hidden\" name=\"userid{$n}\" value=\"{$profile->userid}\">\n";
    $n++;
}
end_table();
if ($found) {
    echo "\n        <input type=\"hidden\" name=\"n\" value=\"{$n}\">\n        <input type=\"submit\" value=\"OK\">\n    ";
} else {
    echo "No more profiles to screen.";
}
echo "\n    </form>\n";
admin_page_tail();
$cvs_version_tracker[] = "\$Id\$";
//Generated automatically - do not edit
开发者ID:maexlich,项目名称:boinc-igemathome,代码行数:31,代码来源:profile_screen_form.php

示例3: htmlspecialchars

                case SHOW_OWN:
                    $go_next = $uid == $GO_SECURITY->user_id;
                    break;
                case SHOW_SUB:
                    $go_next = $checked == 'checked';
                    break;
            }
            if (!$go_next) {
                continue;
            }
        }
        $subscr_count++;
        echo '<tr>';
        //    echo '<td align="center"><input type="radio" name="default_calendar_id" value="'.$cal->f('id').'"></td>';
        echo '<td nowrap><a href="index.php?calendar_id=' . $cal->f("id") . '" class="normal">' . htmlspecialchars($cal->f("name")) . '</a>&nbsp;</td>';
        echo '<td nowrap>' . show_profile($cal->f("user_id")) . '&nbsp;</td>';
        echo '<td align="center"><input type="checkbox" id="subscribed" name="subscribed[]" value="' . $cal->f('id') . '" ' . $checked . '></td>';
        echo '<td><a href="calendar.php?calendar_id=' . $cal->f("id") . '&return_to=' . rawurlencode($link_back) . '" title="' . $strEdit . ' \'' . htmlspecialchars(addslashes($cal->f("name"))) . '\'"><img src="' . $GO_THEME->images['edit'] . '" border="0" /></a></td>';
        if ($cal->f('user_id') != $GO_SECURITY->user_id) {
            echo "<td>&nbsp;</td></tr>\n";
        } else {
            echo "<td><a href='javascript:delete_calendar(\"" . $cal->f("id") . "\",\"" . div_confirm_id($strDeletePrefix . "'" . addslashes($cal->f("name")) . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . htmlspecialchars($cal->f("name")) . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td></tr>\n";
        }
    }
}
echo '</table>';
echo '<br /><br />';
$button = new button($cmdOk, "javascript:_save('subscribe', 'true', " . $subscr_count . ", '" . $sc_choice_calendar_msg . "')");
echo '&nbsp;&nbsp;';
$button = new button($cmdApply, "javascript:_save('subscribe', 'false', " . $subscr_count . ", '" . $sc_choice_calendar_msg . "')");
echo '&nbsp;&nbsp;';
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:calendars.php

示例4: switch

        $tabtable->add_tab('participants', $sc_participants);
    }
}
$tabtable->print_head();
echo '<br />';
switch ($tabtable->get_active_tab_id()) {
    case 'participants':
        echo '<input type="hidden" name="status" />';
        echo '<table border="0">';
        echo '<tr><td><h3>' . $strName . '</td>';
        echo '<td><h3>' . $strEmail . '</td>';
        echo '<td><h3>' . $sc_status . '</td></tr>';
        while ($cal->next_record()) {
            echo '<tr><td nowrap>';
            if ($cal->f('user_id') > 0) {
                echo show_profile($cal->f('user_id'), '', 'normal', $link_back);
            } else {
                echo show_profile_by_email($cal->f('email'), '', $link_back) . '&nbsp;</td>';
            }
            echo '<td nowrap>' . mail_to($cal->f('email')) . '&nbsp;</td><td>';
            switch ($cal->f('status')) {
                case '0':
                    echo $sc_not_responded;
                    break;
                case '1':
                    echo $sc_accepted;
                    break;
                case '2':
                    echo $sc_declined;
                    break;
            }
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:event.php

示例5: error_page

        $user->has_profile = 1;
    } else {
        error_page(tra("This user has no profile"));
    }
}
$logged_in_user = get_logged_in_user(false);
check_whether_to_show_profile($user, $logged_in_user);
$cache_args = "userid={$userid}";
$cacheddata = get_cached_data(USER_PROFILE_TTL, $cache_args);
if ($cacheddata) {
    // Already got a cached version of the information
    $community_links_object = unserialize($cacheddata);
} else {
    // Need to generate a new bunch of data
    $community_links_object = get_community_links_object($user);
    set_cached_data(USER_PROFILE_TTL, serialize($community_links_object), $cache_args);
}
page_head(tra("Profile: %1", $user->name));
start_table();
echo "<tr><td valign=\"top\">";
start_table();
show_profile($user, $logged_in_user);
end_table();
echo "</td><td valign=\"top\">";
start_table();
row2(tra("Account data"), "<a href=\"show_user.php?userid=" . $userid . "\">" . tra("View") . "</a>");
community_links($community_links_object, $logged_in_user);
end_table();
echo "</td></tr>";
end_table();
page_tail();
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:31,代码来源:view_profile.php

示例6: while

require "../Group-Office.php";
$GO_SECURITY->authenticate();
require $GO_LANGUAGE->get_fallback_base_language_file('groups');
$count = $GO_GROUPS->get_users_in_group($group_id);
$page_title = $count . ' ' . $groups_users_in1 . ' ' . $name;
require $GO_THEME->theme_path . "header.inc";
echo '<table border="0" cellpadding="10"><tr><td>';
echo '<table border="0" cellpadding="0" cellspacing="1">';
echo '<tr><td><h1>' . $page_title . '</h1></td></tr>';
if ($count > 0) {
    while ($GO_GROUPS->next_record()) {
        echo "<tr height=\"18\">\n";
        if ($GO_GROUPS->f('name')) {
            echo "<td>" . show_profile($GO_GROUPS->f("id"), $GO_GROUPS->f("name")) . "&nbsp;</a></td>\n";
        } else {
            require_once $GO_CONFIG->class_path . 'profiles.class.inc';
            $profiles = new profiles();
            if ($profile = $profiles->get_profile($GO_GROUPS->f('user_id'))) {
                echo "<td>" . show_profile($GO_GROUPS->f('user_id'), $profile["name"]) . "&nbsp;</a></td>\n";
            }
        }
        echo "</tr>\n";
    }
} else {
    echo "<tr><td colspan=\"99\">" . $groups_no_users . "</td></tr>";
}
echo '<tr><td><br />';
$button = new button($cmdClose, 'javascript:window.close()');
echo '</td></tr>';
echo "</table></td></tr></table>";
require $GO_THEME->theme_path . "footer.inc";
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:group.php

示例7: header

}
if (isset($_POST['process'])) {
    if (!check_form_auth_ip()) {
        header("Location: http://" . get_server_name() . $globals['base_url'] . "profile.php");
        die;
    }
    $globals['secure_page'] = True;
    $save_messages = save_profile();
} else {
    $globals['secure_page'] = False;
}
do_header(_('edición del perfil del usuario') . ': ' . $user->username);
echo '<div id="singlewrap">' . "\n";
echo $save_messages;
// We do it later because teh profile could change header's info
show_profile();
echo "</div>\n";
do_footer();
function show_profile()
{
    global $user, $user_levels, $globals, $site_key, $current_user;
    echo '<div>';
    echo '<form  enctype="multipart/form-data" action="' . get_auth_link() . 'profile.php" method="post" id="thisform" AUTOCOMPLETE="off">';
    echo '<fieldset><legend>';
    echo '<span class="sign">' . _('opciones de usuario') . " <a href='" . get_user_uri($user->username) . "'>{$user->username}</a>: {$user->level}</span></legend>";
    echo '<img class="thumbnail" src="' . $globals['base_url'] . 'backend/get_avatar.php?id=' . $user->id . '&amp;size=80&amp;t=' . time() . '" width="80" height="80" alt="' . $user->username . '" />';
    echo '<input type="hidden" name="process" value="1" />';
    echo '<input type="hidden" name="user_id" value="' . $user->id . '" />';
    echo '<input type="hidden" name="form_hash" value="' . md5($site_key . $user->id . mnminclude) . '" />';
    get_form_auth_ip();
    echo '<p><label>' . _('usuario') . ':</label><br/>';
开发者ID:brainsqueezer,项目名称:fffff,代码行数:31,代码来源:profile.php

示例8: array

				u.user_rank, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, 
				u.user_msnm, u.user_jabber, u.user_avatar, u.user_avatar_type, u.user_last_visit ' . $sql_fields . '
					FROM ' . USERS_TABLE . " u{$sql_from}\n\t\t\t\t\tWHERE u.user_type = " . USER_NORMAL . ' AND u.user_status = ' . STATUS_ACTIVE . "\n\t\t\t\t\t\t{$sql_where}\n\t\t\t\t\t\tORDER BY {$order_by}";
        $result = $_CLASS['core_db']->query_limit($sql, $config['topics_per_page'], $start);
        $id_cache = array();
        while ($row = $_CLASS['core_db']->fetch_row_assoc($result)) {
            if ($mode == 'group' && $row['member_status'] == STATUS_PENDING) {
                continue;
            }
            $row['session_time'] = !empty($session_times[$row['user_id']]) ? $session_times[$row['user_id']] : '';
            $id_cache[$row['user_id']] = $row;
        }
        $_CLASS['core_db']->free_result($result);
        foreach ($id_cache as $user_id => $row) {
            $option_row = $mode == 'group' && $row['member_status'] == STATUS_LEADER ? 'leader_row' : 'member_row';
            ${$option_row} = array_merge(show_profile($row), array('U_VIEWPROFILE' => generate_link('Members_List&amp;mode=viewprofile&amp;u=' . $row['user_id'])));
            $_CLASS['core_template']->assign_vars_array($option_row, ${$option_row});
            unset($id_cache[$user_id]);
        }
        // Generate page
        $_CLASS['core_template']->assign_array(array('PAGINATION' => generate_pagination($pagination_url2, $total_users, $config['topics_per_page'], $start), 'PAGE_NUMBER' => on_page($total_users, $config['topics_per_page'], $start), 'TOTAL_USERS' => $total_users == 1 ? $_CLASS['core_user']->lang['LIST_USER'] : sprintf($_CLASS['core_user']->lang['LIST_USERS'], $total_users), 'PROFILE_IMG' => $_CLASS['core_user']->img('btn_profile', $_CLASS['core_user']->lang['PROFILE']), 'PM_IMG' => $_CLASS['core_user']->img('btn_pm', $_CLASS['core_user']->lang['MESSAGE']), 'EMAIL_IMG' => $_CLASS['core_user']->img('btn_email', $_CLASS['core_user']->lang['EMAIL']), 'WWW_IMG' => $_CLASS['core_user']->img('btn_www', $_CLASS['core_user']->lang['WWW']), 'ICQ_IMG' => $_CLASS['core_user']->img('btn_icq', $_CLASS['core_user']->lang['ICQ']), 'AIM_IMG' => $_CLASS['core_user']->img('btn_aim', $_CLASS['core_user']->lang['AIM']), 'MSN_IMG' => $_CLASS['core_user']->img('btn_msnm', $_CLASS['core_user']->lang['MSNM']), 'YIM_IMG' => $_CLASS['core_user']->img('btn_yim', $_CLASS['core_user']->lang['YIM']), 'JABBER_IMG' => $_CLASS['core_user']->img('btn_jabber', $_CLASS['core_user']->lang['JABBER']), 'SEARCH_IMG' => $_CLASS['core_user']->img('btn_search', $_CLASS['core_user']->lang['SEARCH']), 'U_FIND_MEMBER' => !empty($config['load_search']) || $_CLASS['auth']->acl_get('a_') ? generate_link('Members_List&amp;mode=searchuser') : '', 'U_HIDE_FIND_MEMBER' => $mode == 'searchuser' ? generate_link($u_hide_find_member) : '', 'U_SORT_USERNAME' => generate_link($pagination_url . '&amp;sk=a&amp;sd=' . ($sort_key == 'a' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_FROM' => generate_link($pagination_url . '&amp;sk=b&amp;sd=' . ($sort_key == 'b' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_JOINED' => generate_link($pagination_url . '&amp;sk=c&amp;sd=' . ($sort_key == 'c' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_POSTS' => generate_link($pagination_url . '&amp;sk=d&amp;sd=' . ($sort_key == 'd' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_EMAIL' => generate_link($pagination_url . '&amp;sk=e&amp;sd=' . ($sort_key == 'e' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_WEBSITE' => generate_link($pagination_url . '&amp;sk=f&amp;sd=' . ($sort_key == 'f' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_ICQ' => generate_link($pagination_url . '&amp;sk=g&amp;sd=' . ($sort_key == 'g' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_AIM' => generate_link($pagination_url . '&amp;sk=h&amp;sd=' . ($sort_key == 'h' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_MSN' => generate_link($pagination_url . '&amp;sk=i&amp;sd=' . ($sort_key == 'i' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_YIM' => generate_link($pagination_url . '&amp;sk=j&amp;sd=' . ($sort_key == 'j' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_ACTIVE' => generate_link($pagination_url . '&amp;sk=k&amp;sd=' . ($sort_key == 'k' && $sort_dir == 'a' ? 'd' : 'a')), 'U_SORT_RANK' => generate_link($pagination_url . '&amp;sk=l&amp;sd=' . ($sort_key == 'l' && $sort_dir == 'a' ? 'd' : 'a')), 'U_LIST_CHAR' => generate_link($pagination_url . '&amp;sk=a&amp;sd=' . ($sort_key == 'l' && $sort_dir == 'a' ? 'd' : 'a')), 'S_SEND_MESSAGE' => $_CLASS['auth']->acl_get('u_sendpm') ? true : false, 'S_SHOW_GROUP' => $mode == 'group' ? true : false, 'S_MODE_SELECT' => $s_sort_key, 'S_ORDER_SELECT' => $s_sort_dir, 'S_CHAR_OPTIONS' => $s_char_options, 'S_MODE_ACTION' => generate_link($pagination_url . ($form ? "&amp;form={$form}" : ''))));
}
// Output the page
$_CLASS['core_template']->assign('DISPLAY_STYLESHEET_LINK', $window);
page_header();
$_CLASS['core_display']->display($page_title, 'modules/Members_List/' . $template_html);
script_close();
// ---------
// FUNCTIONS
//
function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img)
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:index.php

示例9: get_user_info_func


//.........这里部分代码省略.........
    }
    // Do the relevant calculations
    $memberdays = max(1, round((time() - $member['user_regdate']) / 86400));
    $posts_per_day = $member['user_posts'] / $memberdays;
    $percentage = $config['num_posts'] ? min(100, $member['user_posts'] / $config['num_posts'] * 100) : 0;
    if ($member['user_sig']) {
        $member['user_sig'] = censor_text($member['user_sig']);
        if ($member['user_sig_bbcode_bitfield']) {
            include_once $phpbb_root_path . 'includes/bbcode.' . $phpEx;
            $bbcode = new bbcode();
            $bbcode->bbcode_second_pass($member['user_sig'], $member['user_sig_bbcode_uid'], $member['user_sig_bbcode_bitfield']);
        }
        $member['user_sig'] = bbcode_nl2br($member['user_sig']);
        $member['user_sig'] = smiley_text($member['user_sig']);
    }
    $poster_avatar = get_user_avatar($member['user_avatar'], $member['user_avatar_type'], $member['user_avatar_width'], $member['user_avatar_height']);
    // We need to check if the modules 'zebra' ('friends' & 'foes' mode),  'notes' ('user_notes' mode) and  'warn' ('warn_user' mode) are accessible to decide if we can display appropriate links
    $zebra_enabled = $friends_enabled = $foes_enabled = $user_notes_enabled = $warn_user_enabled = false;
    // Only check if the user is logged in
    if ($user->data['is_registered']) {
        if (!class_exists('p_master')) {
            include $phpbb_root_path . 'includes/functions_module.' . $phpEx;
        }
        $module = new p_master();
        $module->list_modules('ucp');
        $module->list_modules('mcp');
        $user_notes_enabled = $module->loaded('notes', 'user_notes') ? true : false;
        $warn_user_enabled = $module->loaded('warn', 'warn_user') ? true : false;
        $zebra_enabled = $module->loaded('zebra') ? true : false;
        $friends_enabled = $module->loaded('zebra', 'friends') ? true : false;
        $foes_enabled = $module->loaded('zebra', 'foes') ? true : false;
        unset($module);
    }
    $template->assign_vars(show_profile($member, $user_notes_enabled, $warn_user_enabled));
    // Custom Profile Fields
    $profile_fields = array();
    if ($config['load_cpf_viewprofile']) {
        include_once $phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx;
        $cp = new custom_profile();
        $profile_fields = $cp->generate_profile_fields_template('grab', $user_id);
        $profile_fields = isset($profile_fields[$user_id]) ? $cp->generate_profile_fields_template('show', false, $profile_fields[$user_id]) : array();
    }
    // If the user has m_approve permission or a_user permission, then list then display unapproved posts
    if ($auth->acl_getf_global('m_approve') || $auth->acl_get('a_user')) {
        $sql = 'SELECT COUNT(post_id) as posts_in_queue
            FROM ' . POSTS_TABLE . '
            WHERE poster_id = ' . $user_id . '
                AND post_approved = 0';
        $result = $db->sql_query($sql);
        $member['posts_in_queue'] = (int) $db->sql_fetchfield('posts_in_queue');
        $db->sql_freeresult($result);
    } else {
        $member['posts_in_queue'] = 0;
    }
    $template->assign_vars(array('OCCUPATION' => !empty($member['user_occ']) ? censor_text($member['user_occ']) : '', 'INTERESTS' => !empty($member['user_interests']) ? censor_text($member['user_interests']) : '', 'SIGNATURE' => $member['user_sig'], 'POSTS_IN_QUEUE' => $member['posts_in_queue'], 'AVATAR_IMG' => $poster_avatar, 'PM_IMG' => $user->img('icon_contact_pm', $user->lang['SEND_PRIVATE_MESSAGE']), 'EMAIL_IMG' => $user->img('icon_contact_email', $user->lang['EMAIL']), 'WWW_IMG' => $user->img('icon_contact_www', $user->lang['WWW']), 'ICQ_IMG' => $user->img('icon_contact_icq', $user->lang['ICQ']), 'AIM_IMG' => $user->img('icon_contact_aim', $user->lang['AIM']), 'MSN_IMG' => $user->img('icon_contact_msnm', $user->lang['MSNM']), 'YIM_IMG' => $user->img('icon_contact_yahoo', $user->lang['YIM']), 'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']), 'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']), 'S_PROFILE_ACTION' => append_sid("{$phpbb_root_path}memberlist.{$phpEx}", 'mode=group'), 'S_GROUP_OPTIONS' => $group_options, 'S_CUSTOM_FIELDS' => isset($profile_fields['row']) && sizeof($profile_fields['row']) ? true : false, 'U_USER_ADMIN' => $auth->acl_get('a_user') ? append_sid("{$phpbb_root_path}adm/index.{$phpEx}", 'i=users&amp;mode=overview&amp;u=' . $user_id, true, $user->session_id) : '', 'U_USER_BAN' => $auth->acl_get('m_ban') && $user_id != $user->data['user_id'] ? append_sid("{$phpbb_root_path}mcp.{$phpEx}", 'i=ban&amp;mode=user&amp;u=' . $user_id, true, $user->session_id) : '', 'U_MCP_QUEUE' => $auth->acl_getf_global('m_approve') ? append_sid("{$phpbb_root_path}mcp.{$phpEx}", 'i=queue', true, $user->session_id) : '', 'S_USER_NOTES' => $user_notes_enabled ? true : false, 'S_WARN_USER' => $warn_user_enabled ? true : false, 'S_ZEBRA' => $user->data['user_id'] != $user_id && $user->data['is_registered'] && $zebra_enabled ? true : false, 'U_ADD_FRIEND' => !$friend && !$foe && $friends_enabled ? append_sid("{$phpbb_root_path}ucp.{$phpEx}", 'i=zebra&amp;add=' . urlencode(htmlspecialchars_decode($member['username']))) : '', 'U_ADD_FOE' => !$friend && !$foe && $foes_enabled ? append_sid("{$phpbb_root_path}ucp.{$phpEx}", 'i=zebra&amp;mode=foes&amp;add=' . urlencode(htmlspecialchars_decode($member['username']))) : '', 'U_REMOVE_FRIEND' => $friend && $friends_enabled ? append_sid("{$phpbb_root_path}ucp.{$phpEx}", 'i=zebra&amp;remove=1&amp;usernames[]=' . $user_id) : '', 'U_REMOVE_FOE' => $foe && $foes_enabled ? append_sid("{$phpbb_root_path}ucp.{$phpEx}", 'i=zebra&amp;remove=1&amp;mode=foes&amp;usernames[]=' . $user_id) : ''));
    if (!empty($profile_fields['row'])) {
        $template->assign_vars($profile_fields['row']);
    }
    if (!empty($profile_fields['blockrow'])) {
        foreach ($profile_fields['blockrow'] as $field_data) {
            $template->assign_block_vars('custom_fields', $field_data);
        }
    }
    // Inactive reason/account?
    if ($member['user_type'] == USER_INACTIVE) {
        $user->add_lang('acp/common');
开发者ID:danielgospodinow,项目名称:GamingZone,代码行数:67,代码来源:get_user_info.php

示例10: select

        echo '<tr><td>' . $no_due_date . ':</td><td>';
        $datepicker->print_date_picker('due_date', $_SESSION['GO_SESSION']['date_format'], $due_date);
        echo '</td></tr>';
        $select = new select('user', 'notes_form', 'responsible_user_id', $responsible_user_id);
        echo '<tr><td>';
        $select->print_link($no_responsible);
        echo ':</td><td>';
        $select->print_field();
        echo '</td></tr>';
        ?>
	  </table>
	  </td>
	  <td valign="top">
	  <table border="0" cellspacing="0" cellpadding="4">
	  <?php 
        echo '<tr><td>' . $strOwner . ':</td><td>' . show_profile($user_id, '', 'normal', $link_back) . '</td></tr>';
        echo '<tr><td>' . $strCreatedAt . ':</td><td>' . $ctime . '</td><tr>';
        echo '<tr><td>' . $strModifiedAt . ':</td><td>' . $mtime . '</td><tr>';
        if ($project_id > 0) {
            $projects = new projects();
            if ($project = $projects->get_project($project_id)) {
                $project_name = $project['description'] == '' ? $project['name'] : $project['name'] . ' (' . $project['description'] . ')';
                if ($projects_module && ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $projects_module['acl_read']) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $projects_module['acl_write']))) {
                    echo '<tr><td>' . $no_project . ':</td><td><a href="' . $projects_module['url'] . 'project.php?project_id=' . $project_id . '&return_to=' . urlencode($_SERVER['REQUEST_URI']) . '" class="normal">' . htmlspecialchars($project_name) . '</a></td><tr>';
                } else {
                    echo '<tr><td>' . $no_project . ':</td><td>' . htmlspecialchars($project_name) . '</td><tr>';
                }
            }
        } elseif ($contact_id > 0) {
            echo '<tr><td>' . $no_contact . ':</td><td>' . show_contact($contact_id, '', $link_back) . '</td><tr>';
        } elseif ($file_path != '' && ($fs_module = $GO_MODULES->get_module('filesystem'))) {
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:note.php

示例11: tabtable

        $feedback = "<P class=\"Error\">" . $strAccessDenied . "</p>";
    }
}
$page_title = $groups_title;
require $GO_THEME->theme_path . "header.inc";
$tabtable = new tabtable('groups', $groups_title, '600', '300');
$tabtable->print_head();
echo '<table cellpadding="4" cellspacing="0" border="0">';
if (isset($feedback)) {
    echo $feedback;
}
echo '<tr height="30"><td colspan="3"><a href="' . $GO_CONFIG->host . 'configuration/groups/group.php" class="normal">' . $cmdAdd . '</a></td></tr>';
echo '<tr><td><h3>' . $strName . '</h3></td>';
echo '<td><h3>' . $strOwner . '</h3></td><td>&nbsp;</td></tr>';
//show the groups the user is in and owns.
$GO_GROUPS->get_authorised_groups($GO_SECURITY->user_id);
while ($GO_GROUPS->next_record()) {
    echo '<tr>';
    echo "<td><a class=\"normal\" href=\"group.php?group_id=" . $GO_GROUPS->f("id") . "&group_name=" . $GO_GROUPS->f("name") . "\">" . $GO_GROUPS->f("name") . "</a></td>\n";
    echo "<td>" . show_profile($GO_GROUPS->f("user_id")) . "</td>\n";
    echo "<td><a href='javascript:div_confirm_action(\"" . $_SERVER['PHP_SELF'] . "?delete_group=" . $GO_GROUPS->f("id") . "\",\"" . div_confirm_id($strDeletePrefix . "'" . $GO_GROUPS->f("name") . "'" . $strDeleteSuffix) . "\")' title=\"" . $strDeleteItem . " '" . $GO_GROUPS->f("name") . "'\"><img src=\"" . $GO_THEME->images['delete'] . "\" border=\"0\"></a></td>\n";
    echo "</tr>";
    if ($GO_GROUPS->f("id") == 2) {
        echo '<tr><td colspan=3><hr></td></tr>';
    }
}
echo '</table>';
echo '<br />';
$button = new button($cmdClose, "javascript:document.location='" . $GO_CONFIG->host . "configuration/'");
$tabtable->print_foot();
require $GO_THEME->theme_path . "footer.inc";
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:index.php

示例12: check_get_args

// Copyright (C) 2008 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// BOINC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
require_once "../inc/util.inc";
require_once "../inc/uotd.inc";
require_once "../inc/profile.inc";
check_get_args(array());
db_init();
$profile = get_current_uotd();
if (!$profile) {
    echo tra("No user of the day has been chosen.");
} else {
    $d = gmdate("d F Y", time());
    $user = lookup_user_id($profile->userid);
    page_head(tra("User of the Day for %1: %2", $d, $user->name));
    start_table();
    show_profile($user, get_logged_in_user(false));
    end_table();
}
page_tail();
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:31,代码来源:uotd.php

示例13: unlink

                unlink($file);
            }
            if (move_uploaded_file($_FILES['profile_pic_upload']['tmp_name'], $FileDir)) {
                $connectedUser->_setPhoto(true);
            }
        }
    }
    setcookie("color", $_POST['editColor'], time() + 100000);
    setcookie("police", $_POST['editPolice'], time() + 100000);
    updateTouitos($bd, $connectedUser);
}
include 'nav.php';
?>

	<div id="pageDisplay">

	<?php 
if (isset($_GET['user'])) {
    $th = new TouitosHandler($bd);
    $usr = $th->getByAttr("pseudo", $_GET['user'], PDO::PARAM_STR);
    if ($usr != null) {
        show_profile($usr, $bd);
    }
} else {
    searchByName("", $bd);
}
?>

	</div>
</body>
</html>
开发者ID:Yamihoshi,项目名称:Projet-Web,代码行数:31,代码来源:profile.php

示例14: dropbox

            echo '<tr><td>' . $pm_budget . ':</td><td>' . $budget . ' ' . $_SESSION['GO_SESSION']['currency'] . '</td></tr>';
        }
        $fee_count = $projects->get_fees();
        if ($fee_count > 0) {
            echo '<tr><td>' . $pm_fee . '</td><td>';
            $dropbox = new dropbox();
            while ($projects->next_record()) {
                $dropbox->add_value($projects->f('id'), $projects->f('name') . ' (' . htmlentities($_SESSION['GO_SESSION']['currency']) . '&nbsp;' . number_format($projects->f('value'), 2, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator']) . '&nbsp;/&nbsp;' . $projects->f('time') . '&nbsp;' . $pm_mins . ')');
            }
            $disabled = $project_id < 1 || $project['user_id'] == $GO_SECURITY->user_id ? '' : 'disabled';
            $dropbox->print_dropbox('fee_id', $fee_id, $disabled);
        } else {
            echo '<input type="hidden" name="fee_id" value="0" />';
        }
        if ($project_id > 0) {
            echo '<tr><td>' . $strOwner . ':</td><td>' . show_profile($project['user_id']) . '</td></tr>';
            echo '<tr><td>' . $strCreatedAt . ':</td><td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $project['ctime'] + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td><tr>';
            echo '<tr><td>' . $strModifiedAt . ':</td><td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $project['mtime'] + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td><tr>';
        }
        ?>
                  <tr>
                  <td valign="top"><?php 
        echo $strComments;
        ?>
:</td>
                <td>
                <?php 
        if ($project_id < 1 || $project['user_id'] == $GO_SECURITY->user_id) {
            $disabled = isset($pstate) && $pstate == STATUS_DROP ? 'disabled' : '';
            echo '<textarea name="comments" cols="50" rows="4" class="textbox" ' . $disabled . '>' . $comments . '</textarea>';
        } else {
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:project.php

示例15: usort

            }
            // If we sort by last active date we need to adjust the id cache due to user_lastvisit not being the last active date...
            if ($sort_key == 'l') {
                //				uasort($id_cache, create_function('$first, $second', "return (\$first['last_visit'] == \$second['last_visit']) ? 0 : ((\$first['last_visit'] < \$second['last_visit']) ? $lesser_than : ($lesser_than * -1));"));
                usort($user_list, '_sort_last_active');
            }
            for ($i = 0, $end = sizeof($user_list); $i < $end; ++$i) {
                $user_id = $user_list[$i];
                $row =& $id_cache[$user_id];
                $is_leader = isset($row['group_leader']) && $row['group_leader'] ? true : false;
                $leaders_set = $leaders_set || $is_leader;
                $cp_row = array();
                if ($config['load_cpf_memberlist']) {
                    $cp_row = isset($profile_fields_cache[$user_id]) ? $cp->generate_profile_fields_template('show', false, $profile_fields_cache[$user_id]) : array();
                }
                $memberrow = array_merge(show_profile($row), array('ROW_NUMBER' => $i + ($start + 1), 'S_CUSTOM_PROFILE' => isset($cp_row['row']) && sizeof($cp_row['row']) ? true : false, 'S_GROUP_LEADER' => $is_leader, 'U_VIEW_PROFILE' => append_sid("{$phpbb_root_path}memberlist.{$phpEx}", 'mode=viewprofile&amp;u=' . $user_id)));
                if (isset($cp_row['row']) && sizeof($cp_row['row'])) {
                    $memberrow = array_merge($memberrow, $cp_row['row']);
                }
                $template->assign_block_vars('memberrow', $memberrow);
                if (isset($cp_row['blockrow']) && sizeof($cp_row['blockrow'])) {
                    foreach ($cp_row['blockrow'] as $field_data) {
                        $template->assign_block_vars('memberrow.custom_fields', $field_data);
                    }
                }
                unset($id_cache[$user_id]);
            }
        }
        // Generate page
        $template->assign_vars(array('PAGINATION' => generate_pagination($pagination_url, $total_users, $config['topics_per_page'], $start), 'PAGE_NUMBER' => on_page($total_users, $config['topics_per_page'], $start), 'TOTAL_USERS' => $total_users == 1 ? $user->lang['LIST_USER'] : sprintf($user->lang['LIST_USERS'], $total_users), 'PROFILE_IMG' => $user->img('icon_user_profile', $user->lang['PROFILE']), 'PM_IMG' => $user->img('icon_contact_pm', $user->lang['SEND_PRIVATE_MESSAGE']), 'EMAIL_IMG' => $user->img('icon_contact_email', $user->lang['EMAIL']), 'WWW_IMG' => $user->img('icon_contact_www', $user->lang['WWW']), 'ICQ_IMG' => $user->img('icon_contact_icq', $user->lang['ICQ']), 'AIM_IMG' => $user->img('icon_contact_aim', $user->lang['AIM']), 'MSN_IMG' => $user->img('icon_contact_msnm', $user->lang['MSNM']), 'YIM_IMG' => $user->img('icon_contact_yahoo', $user->lang['YIM']), 'JABBER_IMG' => $user->img('icon_contact_jabber', $user->lang['JABBER']), 'SEARCH_IMG' => $user->img('icon_user_search', $user->lang['SEARCH']), 'U_FIND_MEMBER' => $config['load_search'] || $auth->acl_get('a_') ? append_sid("{$phpbb_root_path}memberlist.{$phpEx}", 'mode=searchuser' . ($start ? "&amp;start={$start}" : '') . (!empty($params) ? '&amp;' . implode('&amp;', $params) : '')) : '', 'U_HIDE_FIND_MEMBER' => $mode == 'searchuser' ? $u_hide_find_member : '', 'U_SORT_USERNAME' => $sort_url . '&amp;sk=a&amp;sd=' . ($sort_key == 'a' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_FROM' => $sort_url . '&amp;sk=b&amp;sd=' . ($sort_key == 'b' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_JOINED' => $sort_url . '&amp;sk=c&amp;sd=' . ($sort_key == 'c' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_POSTS' => $sort_url . '&amp;sk=d&amp;sd=' . ($sort_key == 'd' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_EMAIL' => $sort_url . '&amp;sk=e&amp;sd=' . ($sort_key == 'e' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_WEBSITE' => $sort_url . '&amp;sk=f&amp;sd=' . ($sort_key == 'f' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_LOCATION' => $sort_url . '&amp;sk=b&amp;sd=' . ($sort_key == 'b' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_ICQ' => $sort_url . '&amp;sk=g&amp;sd=' . ($sort_key == 'g' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_AIM' => $sort_url . '&amp;sk=h&amp;sd=' . ($sort_key == 'h' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_MSN' => $sort_url . '&amp;sk=i&amp;sd=' . ($sort_key == 'i' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_YIM' => $sort_url . '&amp;sk=j&amp;sd=' . ($sort_key == 'j' && $sort_dir == 'a' ? 'd' : 'a'), 'U_SORT_ACTIVE' => $auth->acl_get('u_viewonline') ? $sort_url . '&amp;sk=l&amp;sd=' . ($sort_key == 'l' && $sort_dir == 'a' ? 'd' : 'a') : '', 'U_SORT_RANK' => $sort_url . '&amp;sk=m&amp;sd=' . ($sort_key == 'm' && $sort_dir == 'a' ? 'd' : 'a'), 'U_LIST_CHAR' => $sort_url . '&amp;sk=a&amp;sd=' . ($sort_key == 'l' && $sort_dir == 'a' ? 'd' : 'a'), 'S_SHOW_GROUP' => $mode == 'group' ? true : false, 'S_VIEWONLINE' => $auth->acl_get('u_viewonline'), 'S_LEADERS_SET' => $leaders_set, 'S_MODE_SELECT' => $s_sort_key, 'S_ORDER_SELECT' => $s_sort_dir, 'S_CHAR_OPTIONS' => $s_char_options, 'S_MODE_ACTION' => $pagination_url));
}
开发者ID:html,项目名称:PI,代码行数:31,代码来源:memberlist.php


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