if ($nom=="") { $error_type = 1; $error_signe['nom'] = "*"; } if (empty($idart)) { $error_type = 2; $error_signe['idart'] = "*"; } if ($error_type > 0) { //erreur de type champ non valide $msginfo = "Champ non valide"; $a = 5; break; } $tpag = new CTablePage(array('id'=>$id, 'nom'=>CFunction::addslashes($nom), 'etat'=>$etat, 'idart'=>$idart, 'text'=>CFunction::addslashes($text), 'head'=>CFunction::addslashes($head), 'description'=>CFunction::addslashes($description), 'keywords'=>CFunction::addslashes($keywords), 'send'=>$send)); $tpag->update(); $msginfo = "page bien modifiée"; $a = 0; break; case 6 : // Filtrer 1 if(!empty($_GET['idcat'])) $idcat = $_GET['idcat']; $_SESSION['idcat'] = $idcat; $_SESSION['idart'] = 0; break; case 66 : // Filtrer 2 if(!empty($_GET['idart'])) $idart = $_GET['idart']; $_SESSION['idart'] = $idart; break; }