%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/a-modifier_lang_toolkit.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/session.php");
include_once("inc/init.php");

verif_co_admin();
verif_get($_GET['id']);

if(isset($_POST['post']) && $_POST['post'] == 1)
{
	
	$erreur = "ok";
	$erreur = $db->verifChamp("libelle",$_POST,$trad->t('Text required (english)','error',$lang->getlang()) );
	if($erreur == "ok")
	{
		unset($_POST["post"]);
		$langtoolkit->edit($_POST);
		
		header("Location:liste_lang_toolkit.php?msg=yes");
	}
	else {
		$err = true;
	}
}
else{
	$_POST=$langtoolkit->get($_GET['id']);
}

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>Modifier une langue - ".$info_titresite."</title>\n";
//affichage du header
include("theme/header_admin.php");

?>

<div class="text_admin">
<h2>Modifier une langue</h2>
<?php
if(isset($_GET['msg']) && $_GET['msg']=="yes") {
	echo "<p class=\"infobloc\">Opération effectuée</p>";
}
if(isset($err) && $err) {
	echo "<p class=\"erreurbloc\">".$erreur."</p>";
}	
?>
<?=$form->geneFlag($lang->id());?>
<form action="" method="post" class="form">
	<table>
		<tr>
			<td class="label"><?=$trad->t('Libelle')?></td>
			<td class="field top">
				<? 
				$html='<input type="text" name="libelle_[LANG]" value="[VALUE]" />';
				echo $form->geneField($html,$lang->id(),$_POST['libelle']);
				
				?>
			</td>
		</tr>
		
		
	</table>
	<div class="form_bouton">
		<input type="hidden" name="actif" value="1" />
		<input type="hidden" name="post" value="1" />
		<input type="hidden" name="id_lang_toolkit" value="<?=$_GET['id']?>" />
		<input type="submit" class="bouton" id="maj_bouton" value="<?=$trad->t('Modifier la langue')?>" />
	</div>
</form>
<?=$form->geneFlag($lang->id());?>

</div>

<?

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

?>

Zerion Mini Shell 1.0