%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/test/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/test/a-editer_section.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 $pagesection=true; $sectionid=$_GET['id']; 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("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> <?if(!estadmin()) echo $admtext->getText("infoutil_red",$_SESSION['lang']);?> <?php if($_GET['msg']=="yes") { echo "<p class=\"infobloc\">Opération effectuée</p>"; } /*$query = "SELECT id FROM categorie"; if($db->count($query) < 10) {*/ /*}*/ $query = "SELECT * FROM `campagne` where section = ".$_GET['id']." AND edition = ".$this_edition['id']; $valid_campagne = $db->select_array($query); $query = "SELECT * FROM `response_champ` where section = ".$_GET['id']." AND edition = ".$this_edition['id']; $valid_reponse = $db->select_array($query); ?> <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']?>" <?php if(estadmin() && $valid_campagne['valide'] == '0') echo ' class="nonvalide" '; ?> ><?=$admtext->getText("campagne",$_SESSION['lang'])?></a> <? endif;?> <a href="admin/modifier_reponse_champ.php?id=<?=$_GET['id']?>" <?php if(estadmin() && $valid_reponse['valide'] == '0') echo ' class="nonvalide" '; ?> ><?=$admtext->getText("champreponse",$_SESSION['lang'])?></a> <? 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){ if(estadmin() || $this_edition['id']==$realedition['id']){ echo '<p><a href="admin/ajouter_page.php?id='.$_GET['id'].'&type='.$type_act['id'].'" class="bouton_dotted">'.$admtext->getText("create_activity",$_SESSION['lang']).' : '.str_replace("[edition_titre]",$this_edition['titre'],$type_act['libelle']).'</a></p>'; } echo "<ul class='adminlist'>".$obj_activite->getListActivite($this_section['id'],$type_act['id'],$_SESSION['lang'],$this_edition['id'])."</ul>"; } ?> </div> </div> <? //affichage du footer include("theme/footer.php"); ?>