Esempio n. 1
0
		$msginfo = 'Champ non valide';
		$a = 4;
		break;
	}
	
	$tcat = new CTableMotcle(array('nom_motcle'=>CFunction::addslashes($nom),'cat_motcle'=>$idcat));
	$tcat->insert();
	$msginfo = 'Menu bien ajoutée';
	$a = 0;
	break;
	
case 5 : // Modifier 1	
	
	if(!empty($_GET['id'])) $id = $_GET['id'];
	$tcat 		= new CTableMotcle(array('id_motcle'=>$id));
	$cat  		= $tcat->select_row();
	$nom  		= $cat['nom_motcle'];
	$idcat		= $cat['cat_motcle'];
	// print_r($nom);
	if(!CLogin::protect_action($idreda)) {
		$a = 0;
		$msginfo = 'Action non autorisée';
	}
		
	break;
		
case 55 : // Modifier 2
	
	
	if(!empty($_POST['id'])) 			$id 		= $_POST['id'];
	if(!empty($_POST['nom'])) 			$nom 		= trim($_POST['nom']);