示例#1
0
function getLinkToUserProfile($id)
{
    global $user, $cfg;
    if ($user['rankname'] != 'admin' && $user['rankname'] != 'support' && $user['rankname'] != 'labler') {
        $out = getFullUserNameById($id);
    } else {
        if (getRankNameByUserId($id) == 'drop') {
            $note = getUserNote($id);
            $out = '<a href="' . $cfg['options']['siteurl'] . '/userInfo/' . $id . '"  data-title="' . $note . '" data-toggle="tooltip" data-placement="top">' . colorText(getFullUserNameById($id), getUserColor($id)) . '</a>';
        } else {
            $note = getUserNote($id);
            $out = '<a href="' . $cfg['options']['siteurl'] . '/userInfo/' . $id . '"  data-title="' . $note . '" data-toggle="tooltip" data-placement="top">' . colorText(getUserNameById($id), getUserColor($id)) . '</a>';
        }
    }
    return $out;
}
示例#2
0
					<div class="row" style="padding:1em;">
						<div class="col-md-3 col-xs-12">
							<?php 
            echo getUserIconById($v->id);
            echo " ";
            echo $v->name;
            ?>
						</div>
					</div>
				</a>
			<?php 
        }
        ?>
					
			<?php 
        if ($user['rankname'] == 'shipper' && getRankNameByUserId($v->id) == "admin") {
            ?>
				<a href="<?php 
            echo $cfg['options']['siteurl'] . '/newchat' . '/' . $v->id . '/new';
            ?>
">
					<div class="row" style="padding:1em;">
						<div class="col-md-3 col-xs-12">
							<?php 
            echo getUserIconById($v->id);
            echo " ";
            echo $v->name;
            ?>
						</div>
					</div>
				</a>