예제 #1
0
} else {
    foreach ($listInscrit as $user) {
        if ($user->iduser) {
            ?>
				<div class="line">
					<span class="user-avatar-l left"><img src="<?php 
            echo IMG . '/' . $user->avatar;
            ?>
" alt="avatar"></span>
					<span class="user-name">
					<?php 
            echo $user->prenom . " " . $user->nom;
            ?>
</span>
					<?php 
            afficheStar($user->nbtrajet);
            if ($trajet->idauteur == $_SESSION['id']) {
                ?>
					<a class="btn2 green3 right" href="<?php 
                echo 'reservation.php?idt=' . $_GET['idt'] . '&color=' . $_GET['color'] . '&idu=' . $user->iduser;
                ?>
">Supprimer</a>
				<?php 
            }
            ?>
				</div>
				<div class="line2">
					<hr />
				</div>
			<?php 
        }
예제 #2
0
파일: profil.php 프로젝트: sebspas/Share2Go
					<h2 class="hb-title"><?php 
echo $user->getPrenom() . " " . $user->getNom();
?>
</h2>
					<div class="g2"></div>
					<div class="cols3">
						<span class="profil-avatar"><img src="<?php 
echo IMG . '/' . $user->getAvatar();
?>
" alt="avatar"></span>
					</div>
					<div class="clear"></div>
					<div class="g2"></div>
					<div class="cols4">
						<?php 
afficheStar($user->getNbTrajet());
?>
					</div>
				</div>
				<div class="frame-content">
					<div class="line">
						<p>Âge : <strong>
						<?php 
list($y1) = explode("-", $user->getAge());
$y2 = date('Y');
echo $y2 - $y1;
?>
						</strong> ans</p>
					</div>
					<div class="line">
						<p>Date inscription : <strong><?php