[x] Mise en page de la page PROFIL
This commit is contained in:
parent
b588868ed7
commit
326738d068
|
@ -48,26 +48,29 @@ if( connected() ){ // si l'utilisateur est connecté
|
||||||
$droits = explode(',', $infos['droits']);
|
$droits = explode(',', $infos['droits']);
|
||||||
|
|
||||||
echo "<section name='myprofile' data-title='Profil'>";
|
echo "<section name='myprofile' data-title='Profil'>";
|
||||||
echo '<p>';
|
|
||||||
echo 'Nom : '.ucfirst($infos['nom']).'<br><br>';
|
echo '<table class=basic>';
|
||||||
echo 'Prénom : '.ucfirst($infos['prenom']).'<br><br>';
|
echo '<tr><td>Identifiant</td><td>'.$infos['identifiant'] .'</td></tr>';
|
||||||
echo 'Statut : ';
|
echo '<tr><td>Prénom</td><td>' .ucfirst($infos['prenom']).'</td></tr>';
|
||||||
|
echo '<tr><td>Nom</td><td>' .strtoupper($infos['nom']).'</td></tr>';
|
||||||
|
echo '<tr><td>Statut</td><td>';
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach ($droits as $droit) {
|
foreach ($droits as $droit) {
|
||||||
if( $count > 0 ) echo ', ';
|
if( $count > 0 ) echo ', ';
|
||||||
|
|
||||||
switch($droit){
|
switch($droit){
|
||||||
case 'admin' : echo '<span>administrateur</span>'; break;
|
case 'admin' : echo 'administrateur'; break;
|
||||||
case 'master' : echo '<span>référent</span>'; break;
|
case 'master' : echo 'référent'; break;
|
||||||
case 'teacher': echo '<span>enseignant</span>'; break;
|
case 'teacher': echo 'enseignant'; break;
|
||||||
case 'student': echo '<span>étudiant</span>'; break;
|
case 'student': echo 'étudiant'; break;
|
||||||
default: echo '<span>inconnu</span>'; break;
|
default: echo 'inconnu'; break;
|
||||||
}
|
}
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
echo '<br><br>';
|
echo '</td></tr>';
|
||||||
echo 'Mail : '.$infos['mail'];
|
echo '<tr><td>Mail</td><td>'.$infos['mail'].'</td></tr>';
|
||||||
echo '</p>';
|
echo '</td></tr></table>';
|
||||||
|
|
||||||
echo '</section>';
|
echo '</section>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue