%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/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($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(isset($_GET['msg']) && $_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 flexcontent">

<div><a href="admin/modifier_collectivite.php?id=<?=$_GET['id']?>" class="bouton"><?=$admtext->getText("edit_collectivity",$_SESSION['lang'])?></a></div>
<!--<?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; ?>-->

<!--<a href="admin/ajouter_page.php?id=<?=$_GET['id']?>" class=""><?=$admtext->getText("create_activity",$_SESSION['lang'])?></a>-->

	<div><a href="admin/ajouter_page2.php?id=<?=$_GET['id']?>" class="bouton"><?=$admtext->getText("create_activity",$_SESSION['lang'])?></a></div>

<? if(!estadmin() && $_SESSION['type']!=3): ?>
	<div><a href="admin/mes_infos.php?user=<?php echo $_SESSION['id']; ?>" class="bouton"><?=$admtext->getText("edit_myinfo",$_SESSION['lang'])?></a></div>
<? endif; ?>
<? if($this_section['profil']==2):?>
	<div><a href="admin/modifier_campagne.php?id=<?=$_GET['id']?>" class="mt10 bouton<?php
	if(estadmin() && $valid_campagne['valide'] == '0') echo ' nonvalide';
	?>"><?=$admtext->getText("formulaire_evaluation",$_SESSION['lang'])?></a></div>
<? endif;?>
<div><a href="admin/modifier_reponse_champ.php?id=<?=$_GET['id']?>" class="mt10 bouton<?php
if(estadmin() && $valid_reponse['valide'] == '0') echo ' nonvalide';
?>"><?=$admtext->getText("champreponse",$_SESSION['lang'])?></a></div>
<?
$query="SELECT * FROM section_edition WHERE section=".$_GET['id']." AND edition=".$this_edition['id'];
if(!$db->isres($query)):
	if(estadmin() || $_SESSION['type']==3):?>
		<div><a href="admin/valider_section.php?id=<?=$_GET['id']?>&edition=<?=$this_edition['id']?>" class="bouton">Valider le partenaire pour l'édition</a></div>
	<? else: ?>
		<div><a href="admin/valider_section.php?id=<?=$_GET['id']?>&edition=<?=$this_edition['id']?>&inscription=1" class="bouton"><?=$admtext->getText("inscription_edition",$_SESSION['lang'])?></a></div>
<?	endif;
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(isset($type_act) && $type_act != null):
		echo "<ul class='adminlist'>";
		echo $obj_activite->getListActivite($this_section['id'],$type_act['id'],$_SESSION['lang'],$this_edition['id']);
		echo $obj_activite->getListActivite2($this_section['id'],$type_act['id'],$_SESSION['lang'],$this_edition['id']);
		echo "</ul>";
	endif;
}
?>
</div>

</div>

<?

//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0