if(!empty($_POST['pieId'])) 	$pieId 	= $_POST['pieId'];
	if(!empty($_POST['texId'])) 	$texId 	= $_POST['texId'];

	if ($nom=="") {
		$error_type = 1;
		$error_signe['nom'] = "*";
	}
	if ($error_type > 0) {
		//erreur de type champ non valide
		$msginfo = "Champ non valide";
		$a = 5;
		break;
	}
	
	$tart= new CTableOpportuniteUtilisateur(array('id'=>$id, 'nom'=>CFunction::addslashes($nom), 'pieId'=>$pieId, 'texId'=>$texId, 'etat'=>$etat));
	$tart->update();
	$msginfo = "opportunité bien modifiée";
	$a = 0;
	break;

case 6 : // Filtrer
	if(!empty($_GET['idcat'])) $idcat = $_GET['idcat'];
	$_SESSION['idcat'] = $idcat;
	break;
}

/*------------------------------------------------------
		A FAIRE DANS TOUS LES CAS
--------------------------------------------------------*/
$select = "*";
$filtre = "1";