$type = "";
if ( isset( $_SESSION['search'] ) ) {
if ( in_array( 1, ( $_SESSION["search"]["boatType"] ) ) ) {
$type .= "voilier";
}
if ( in_array( 2, ( $_SESSION["search"]["boatType"] ) ) ) {
$type .= "moteur";
}
if ( in_array( 3, ( $_SESSION["search"]["boatType"] ) ) ) {
$type .= "accastillage";
}
} else {
$type = "voilier";
}
app::executeBlock( 'boat_searchBlock', array(
'type' => $type,
'constModel' => "",
'pro' => "",
'part' => "",
'visibleSalon' => "",
'occasionPlaisance' => ""
) );
?>