Esempio n. 1
0
            <!-- The user image in the navbar-->
            <img src="<?php 
echo GetUserBanner($_SESSION['user_id']);
?>
" class="user-image" alt="User Image">
            <!-- hidden-xs hides the username on small devices so only the image appears. -->
            <span class="hidden-xs"><?php 
echo $_SESSION['username'];
?>
</span>
        </a>
        <ul class="dropdown-menu">
            <!-- The user image in the menu -->
            <li class="user-header">
                <img src="<?php 
echo GetUserBanner($_SESSION['user_id']);
?>
" class="img-circle" alt="User Image">
                <p>
                    <?php 
echo $_SESSION['username'];
?>
                </p>
            </li>
            <!-- Menu Body -->
            <li class="user-body">
                <div class="col-xs-4 text-center">
                    <a id='change_password' href="#">Password</a>
                </div>
                <div class="col-xs-4 text-center">
                    <a href="index?module=inbox">Inbox</a>
Esempio n. 2
0
function GetCurrentRosterForTeam($team_id)
{
    echo "<table class='table table-hover table-light'>";
    echo '<thead>';
    echo '<tr class="uppercase">';
    echo '<th colspan="2">';
    echo "Member";
    echo '<th>Role</th>';
    echo '<th>Rank</th>';
    echo '</tr>';
    echo '</thead>';
    $conn = sql_domain();
    $stmt = $conn->prepare('select * from teams_roles where team_id = :tid');
    $stmt->bindParam(':tid', $team_id);
    $stmt->execute();
    $members = $stmt->fetchAll();
    foreach ($members as $member) {
        echo "<tr data-toggle='context' data-target='#context-menu'>";
        echo "<td class='fit'>";
        echo "<img class='user-pic' src='" . GetUserBanner($member['user_id']) . "'>";
        echo "</td>";
        echo "<td>";
        echo "<a target='_blank' href='index?module=user_profile&id=" . $member['user_id'] . "' class='primary-link'>" . UserGetInfoByColumn('username', 'id', $member['user_id']) . "</a>";
        echo "</td>";
        echo "<td>";
        echo GlobalGetRole(GetCurrentRoleOfUser($member['user_id']));
        echo "</td>";
        echo "<td>";
        $rank = UserGetStatistics($member['user_id']);
        echo GlobalGetRank('value', 'id', $rank[0]['rank_solo']);
        echo "</td>";
        echo "</tr>";
        echo '<div id="context-menu">
				<ul class="dropdown-menu" role="menu">
					<li>
						<a href="javascript:;">
							<i class="fa fa-refresh"></i> Update rank 
						</a>
					</li>					
				</ul>
			</div>';
    }
    echo '</table>';
    echo '<script src="../../assets/global/plugins/bootstrap-contextmenu/bootstrap-contextmenu.js"></script>';
}