mirror of
https://github.com/pierre42100/comunic
synced 2025-07-01 14:23:32 +00:00
First commit
This commit is contained in:
38
inc/pages/openUsers/openUsers.inc.php
Executable file
38
inc/pages/openUsers/openUsers.inc.php
Executable file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* List all opened users
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
isset($_SESSION) OR exit("Invalid call - ".$_SERVER['PHP_SELF']);
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<?php include(pagesRelativePath('common/head.php')); ?>
|
||||
<title><?php echo $lang[11]; ?> - Comunic</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php include(pagesRelativePath('common/pageTop.php')); ?>
|
||||
<h1 class='titre'><?php echo $lang[11]; ?></h1>
|
||||
<?php
|
||||
//On r<>cup<75>re la liste des pages publiques
|
||||
$liste = get_page_publique($bdd);
|
||||
|
||||
//On affiche le r<>sultat
|
||||
?><p>Voici l'ensemble de la liste des pages ouvertes :</p>
|
||||
<table><?php
|
||||
foreach($liste as $afficher)
|
||||
{
|
||||
//On recherche les informations de la personne
|
||||
$infopersonne = cherchenomprenom($afficher['ID'], $bdd);
|
||||
|
||||
//On affiche le r<>sultat
|
||||
echo "<tr><td>".avatar($afficher['ID'], './')."</td><td><a href='./?id=".$afficher['ID']."'>".$afficher['prenom']." ".$afficher['nom']."</a></td></tr>";
|
||||
}
|
||||
?></table><?php
|
||||
?><hr />
|
||||
<?php include(pagesRelativePath('common/pageBottom.php')); ?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user