%PDF- %PDF-
Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/sauv/ |
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/sauv/a-editer_section.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); include_once("inc/session.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"); $this_section=$section->getSection($_GET['id'],$_SESSION['lang']); $this_edition=$edition->getCurrentEdition($aff="ins",$_SESSION['lang']); $id_edition=$this_edition['id']; ?> <div class="text_admin"> <h2><?=$admtext->getText("administration_panel",$_SESSION['lang']);?> </h2> <h3><?=$this_section['titre']?></h3> <h4><?=$this_edition['titre']?></h4> <?php if($_GET['msg']=="yes") { echo "<p class=\"infobloc\">Opération effectuée</p>"; } /*$query = "SELECT id FROM categorie"; if($db->count($query) < 10) {*/ /*}*/ ?> <div class="bouton_admin"> <a href="admin/modifier_collectivite.php?id=<?=$_GET['id']?>" ><?=$admtext->getText("edit_collectivity",$_SESSION['lang'])?></a> <? if(!estadmin()): ?> <a href="admin/mes_infos.php?user=<?php echo $_SESSION['id']; ?>"><?=$admtext->getText("edit_myinfo",$_SESSION['lang'])?></a> <? endif; ?> <? if($this_section['profil']==2):?> <a href="admin/modifier_campagne.php?id=<?=$_GET['id']?>" ><?=$admtext->getText("campagne",$_SESSION['lang'])?></a> <? endif;?> <? if(estadmin()): ?> <a href="admin/ajouter_colonne.php?section=<?=$_GET['id']?>&edition=<?=$id_edition?>" >Ajouter à la colonne</a> <? endif; ?> </div> <div class="<? if(estadmin()): ?>liste_act<? endif;?>"> <? $types_act=$obj_activite->getTypeActivite($this_section['profil'],$_SESSION['lang']); foreach($types_act as $type_act){ echo "<ul class='adminlist'>".$obj_activite->getListActivite($this_section['id'],$type_act['id'],$_SESSION['lang'],$this_edition['id'])."</ul>"; echo '<p><a href="admin/ajouter_page.php?id='.$_GET['id'].'&type='.$type_act['id'].'" class="bouton_dotted">'.$admtext->getText("create_activity",$_SESSION['lang']).' : '.$type_act['libelle'].'</a></p>'; } ?> </div> </div> <? //affichage du footer include("theme/footer.php"); ?>