%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/a-liste_activite.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/session.php"); include_once("inc/init.php"); if(!estadmin()) verif_get($_GET['id']); if(!estadmin()) verif_co_sec($connection,$_GET['id']); //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$admtext->getText("administration_panel",$_SESSION['lang'])." - ".$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><?=$admtext->getText("administration_panel",$_SESSION['lang']);?> </h2> <?php if(isset($_GET['edition']) && $_GET['edition'] != "n") { ?> <h4><?=$this_edition['titre']?></h4> <?php } if(isset($_GET['msg']) && $_GET['msg']=="yes") { echo "<p class=\"infobloc\">Opération effectuée</p>"; } $ed =$_SESSION['edition_admin'];; if(!isset($_GET['valide'])) $valide = "all"; else $valide = $_GET['valide']; if(!isset($_GET['type']) || $_GET['type'] == "n") $ty = null; else $ty = $_GET['type']; ?> <form action="admin/liste_activite.php" method="get" class="form"> <table> <tr> <td class="label">Etat (validation)</td> <td class="field"> <select name="valide" style="width: 300px;"> <option value="all">Tous les états</option> <?php echo '<option value="valide"'; if($valide == "valide") echo ' selected="selected"'; echo ' >Publiée & Validée</option> '; echo '<option value="invalide"'; if($valide == "invalide") echo ' selected="selected"'; echo ' >Pas publiée</option> '; echo '<option value="partiel"'; if($valide == "partiel") echo ' selected="selected"'; echo ' >Publiée mais à corriger</option> '; ?> </select> </td> </tr> <tr> <td class="label">Type d'activité</td> <td class="field"> <select name="type" style="width: 300px;"> <option value="n">Tous les types</option> <?php $res = $profil->getProfils(); foreach($res as $prof) { echo '<optgroup label="'.$prof['libelle'].'">'; $res2 = $obj_activite->getTypeActivite($prof['id'],$_SESSION['lang']); foreach($res2 as $typ) { echo '<option value="'.$typ['id'].'"'; if($ty == $typ['id']) echo ' selected="selected"'; echo ' >'.$typ['libelle'].'</option> '; } echo '</optgroup> '; } ?> </select> </td> </tr> </table> <div class="form_bouton"> <input type="submit" class="bouton" id="maj_bouton" value="Filtrer les activités" /> </div> </form> <div class="liste_act"> <ul class="adminlist"> <? echo "".$obj_activite->getListActivite(null,$ty,$_SESSION['lang'],$ed,"admin",$valide); echo "".$obj_activite->getListActivite2(null,$ty,$_SESSION['lang'],$ed,"admin",$valide); echo "</ul>"; // $types_act=$obj_activite->getTypeActivite(2,$_SESSION['lang']); // echo "<h2>Villes 12 étoiles</h2>"; // foreach($types_act as $type_act){ // echo "<h3>".$type_act['libelle']."</h3>"; // echo "<ul class='adminlist'>".$obj_activite->getListActivite(null,$type_act['id'],$_SESSION['lang'],$this_edition['id'],"admin","valide")."</ul><br/><br/>"; // } // echo "<h2>Collectivité partenaire</h2>"; // $types_act=$obj_activite->getTypeActivite(1,$_SESSION['lang']); // foreach($types_act as $type_act){ // echo "<h3>".$type_act['libelle']."</h3>"; // echo "<ul class='adminlist'>".$obj_activite->getListActivite(null,$type_act['id'],$_SESSION['lang'],$this_edition['id'])."</ul><br/><br/>"; // } // echo "<h2>Association</h2>"; // $types_act=$obj_activite->getTypeActivite(3,$_SESSION['lang']); // foreach($types_act as $type_act){ // echo "<h3>".$type_act['libelle']."</h3>"; // echo "<ul class='adminlist'>".$obj_activite->getListActivite(null,$type_act['id'],$_SESSION['lang'],$this_edition['id'])."</ul><br/><br/>"; // } ?> </ul> </div> <? //affichage du footer include("theme/footer.php"); ?>