示例#1
0
?>

<HTML>
<HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</HEAD>
<BODY>

<!-- DEBUT CODE LIBRE -->

<?php 
if (isset($_GET['sousmenu'])) {
    //    cnhToolbar(3, "menu_", 128, $_GET['sousmenu']);
    cnhTB(1, "menu_", 128, $_GET['sousmenu']);
} elseif (empty($Joueur)) {
    cnhTB(3, "menu_", 128, "Logon");
} else {
    //    cnhToolbar(3, "menu_", 128);
    cnhTB(3, "menu_", 128);
}
?>

<!-- FIN CODE LIBRE -->
</BODY></HTML>

<?php 
require_once TEMPLATE_PATH . 'sample.tpl.php';
$tpl = tpl_sample::getinstance();
$tpl->page_title = "EU2: Commerce";
$tpl->PushOutput(ob_get_clean());
$tpl->doOutput();
        exit;
    } elseif ($_POST['submit'] == 'Sauver sous nouveau') {
        $datas_id = mysql_insert_array('SQL_PREFIX_Modules_Template', $datas);
    }
}
// FIN CODE LIBRE
?>

<HTML>
<HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</HEAD>
<BODY>

<br /><br /><?php 
cnhTB(0);
?>
<hr><br />
<!-- DEBUT CODE LIBRE -->
<center><a href='template_list.php'>Retourner à la liste des templates de module...</a></center><br />
<form name="form1" method="post" action="">
<p align="center">
<?php 
if ($datas_id > 0) {
    ?>
<input class="color_row0" type="submit" name="submit" id="submit" value="Sauver">
<input class="color_row0" type="submit" name="submit" id="submit" value="Sauver et retour">
<?php 
}
?>
<input class="color_row0" type="submit" name="submit" id="submit" value="Sauver sous nouveau">