Exemplo n.º 1
0
		
case 55 : // Modifier 2
	if(!empty($_POST['id'])) 	$id 	= $_POST['id'];
	if(!empty($_POST['nom'])) 	$nom 	= trim($_POST['nom']);
	$template_objet = new CTemplate(CFunction::addslashes($nom));
	$template_objet->set_elements($_POST);
	$template_objet->save();
	$msginfo = "Dossier bien modifié";
	$a = 0;
	break;
}

/*------------------------------------------------------
		A FAIRE DANS TOUS LES CAS
--------------------------------------------------------*/
$arr_urlrep = CTemplate::get_folder(0, $url_base);
?>
<!-- InstanceEndEditable -->
<div id="mainwrap">
  <div id="header"><?php include("../nav/header.php"); ?></div>
  <div id="top"><?php include("../nav/menu_h.php"); ?></div>
  <div id="filet">
    <div id="zonetitre">
      <div id="signe"></div>
      <div id="titre"><!-- InstanceBeginEditable name="titre" -->Template<!-- InstanceEndEditable --></div>
    </div>
  </div>
  <div id="contentarea">
    <div id="left"><?php include("../nav/menu_g.php"); ?></div>
    <div id="center">
      <div id="page"><!-- InstanceBeginEditable name="page" --><?php echo CHtml::get_toolbar(array('cancel'=>1, 'add'=>0)) ?><!-- InstanceEndEditable --></div>