%PDF- %PDF-
Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/ |
Current File : /home/alliance/domains/congress-pact1in5.eu/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']); verif_co_sec($_GET['id']); $db = new BaseOps(); //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"); if(isset($_GET['edition']) && $_GET['edition'] != "n") { $this_edition=$edition->getEdition($_GET['edition']); $id_edition=$this_edition['id']; } ?> <div class="text_admin"> <h2><?=$admtext->getText("administration_panel",$_SESSION['lang']);?> </h2> <?php if($_GET['msg']=="yes") { echo "<p class=\"infobloc\">Opération effectuée</p>"; } if(!isset($_GET['edition']) || $_GET['edition'] == "n") $ed = null; else $ed = $_GET['edition']; 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">Catégorie</td> <td class="field"> <select name="type" style="width: 300px;"> <option value="n">Toutes les catégories</option> <?php $res2 = $edition->liste_categories($_SESSION['lang']); foreach($res2 as $typ) { echo '<option value="'.$typ['id'].'"'; if($ty == $typ['id']) echo ' selected="selected"'; echo ' >'.$typ['titre'].'</option> '; } ?> </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)."</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"); ?>