%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/a-editer_section_new.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($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 $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($this_section['section_lang']!="" && $this_section['section_lang']!=0):?> <? $query="SELECT * FROM lang WHERE id=".$this_section['section_lang']; $thelang=$db->select_array($query);?> <a href="admin/modifier_collectivite_lang.php?id=<?php echo $_GET['id']; ?>&language=<?=$this_section['section_lang']?>"><?=$admtext->getText("edit_collectivity",$_SESSION['lang'])?> <?=$admtext->getText("edit_page_lang",$_SESSION['lang'])?> <?=($_SESSION['lang']==1?$thelang['nom']:$thelang['nom_en'])?></a> <? else: ?> <a href="admin/choisir_lang.php?id=<?=$_GET['id']; ?>"><?=$admtext->getText("define_my_local_language",$_SESSION['lang'])?></a> <? endif; ?> <? 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; ?> <? $query="SELECT * FROM section_edition WHERE section=".$_GET['id']." AND edition=".$this_edition['id']; if(!$db->isres($query)): if(estadmin()):?> <a href="admin/valider_section.php?id=<?=$_GET['id']?>&edition=<?=$this_edition['id']?>">Valider le partenaire pour l'édition</a> <? else: ?> <a href="admin/valider_section.php?id=<?=$_GET['id']?>&edition=<?=$this_edition['id']?>&inscription=1"><?=$admtext->getText("inscription_edition",$_SESSION['lang'])?></a> <? endif; endif;?> </div> <div class="<? if(estadmin()): ?>liste_act<? endif;?>"> <p><a href="admin/ajouter_page.php?id=<?=$_GET['id']?>" class="bouton_dotted"><?=$admtext->getText("create_activity",$_SESSION['lang'])?></a></p> </div> </div> <? //affichage du footer include("theme/footer.php"); ?>