%PDF- %PDF-
Direktori : /home/alliance/domains/congress-eldw.eu/public_html/ |
Current File : /home/alliance/domains/congress-eldw.eu/public_html/a-traduction_edit.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']); $db = new BaseOps(); //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$trad->t("Edit translation","admin",$lang->id())." - ".$info_titresite."</title>\n"; //affichage du header include("theme/header_admin.php"); if(isset($_POST['post']) && $_POST['post'] == 1){ unset($_POST['post']); if($trad->edit($_POST)){ $_GET['msg']="yes"; } } $traduction=$trad->getTrad($_GET['id']); ?> <div class="text_admin"> <h2><?=$trad->t("Edit translation","admin",$lang->id())?></h2> <?php if(isset($_GET['msg']) && $_GET['msg']=="yes") { echo "<p class=\"infobloc\">".$trad->t("Operation completed","msg",$lang->id())."</p>"; } ?> <?=$form->geneFlag($lang->id());?> <br/> <form action="admin/traduction_edit.php<?php if (isset($_GET['id'])) echo "?id=".$_GET['id']; ?>" enctype="multipart/form-data" method="post" class="form"> <table> <tr <?=(estsuperadmin()? "" : 'style="display:none"')?>> <td class="label">Editor</td> <td class="field evenement"> <p><input type="radio" class="radio" name="editeur" <?=((!$traduction['editeur']) ? 'checked="checked"':"")?> value="0" /> Non</p> <p><input type="radio" class="radio" name="editeur" <?=(($traduction['editeur']) ? 'checked="checked"':"")?>value="1" /> Oui</p> </td> </tr> <tr> <td class="label"><?=$traduction['key']?></td> <td class="field top"> <? if($traduction['editeur']){ $html='<textarea name="value_[LANG]">[VALUE]</textarea>'; } else{ $html='<input type="text" name="value_[LANG]" value="[VALUE]" />'; } echo $form->geneField($html,$lang->id(),$traduction['values']); ?> </td> </tr> </table> <div class="form_bouton"> <input type="hidden" name="id_traduction" value="<?=$_GET['id']?>" /> <input type="hidden" name="post" value="1" /> <input type="submit" class="bouton" id="maj_bouton" value="<?=$trad->t("Save","admin",$lang->id())?>" /> </div> </form> <?=$form->geneFlag($lang->id());?> </div> <? //affichage du footer include("theme/footer.php"); ?>