%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-pact1in5.eu/public_html/a-liste_users.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/session.php");
include_once("inc/init.php");

verif_co_admin();

$db = new BaseOps;

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>Liste des utilisateurs - ".$info_titresite."</title>\n";
//affichage du header
if(estadmin()) include("theme/header_admin.php");
else include("theme/header_redacteur.php");
?>

<div class="text_admin">
<h2>Liste des utilisateurs</h2>
<?php
if($_GET['msg']=="yes") {
	echo "<p class=\"infobloc\">Opération effectuée</p>";
}

if(!isset($_GET['sec']) && estadmin()) {
?>
<p><a href="admin/ajouter_user.php" class="bouton">Ajouter un utilisateur</a></p>
<?php
} else {
?>
<p><a href="admin/ajouter_actu.php?sec=<?php echo $_GET['sec']; ?>" class="bouton">Ajouter une actualité</a></p>
<?php
}
?>
<ul class="adminlist">
<?php

$query = "SELECT u.*, s.profil, cl.name 'pays_name', sl.titre 'section_titre' FROM `user` u LEFT JOIN `section` s ON u.section = s.id LEFT JOIN `country_lang` cl ON cl.country = s.pays LEFT JOIN `section_lang` sl ON sl.section = s.id WHERE ( cl.lang = 1 OR u.section = 0 ) AND ( sl.lang = 1 OR u.section = 0 ) ORDER BY s.profil ASC, s.pays ASC, u.section ASC";
if($db->isres($query))
{
	$result = $db->select_arrays($query);

	foreach($result as $data) {
		if($data['section'] != 0)
		{
			$couleur = ' style="background: #'.$profil->getCouleur($data['profil']).';"';
		}
?>
	<li><div<?php echo $couleur; ?>><a href="admin/modifier_user.php?id=<?php echo $data['id']; ?>"><?php echo $data['pays_name']; ?> <strong><?php echo $data['section_titre']; ?></strong> - <?php echo $data['prenom']; ?> <?php echo $data['nom']; ?></a> (<?php echo $data['email']; ?>)</div></li>
<?php
	}
}
?>
</ul>

<?php include('templates/admin/legende.php'); ?>

</div>

<?

//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0