<protect><?php
$research="";
if (!empty($_REQUEST['research_name'])) {
    $research=$_REQUEST['research_name'];
}
$promo="";
if (!empty($_REQUEST['research_promo'])) {
    $promo=$_REQUEST['research_promo'];
}
$departement="";
if (!empty($_REQUEST['research_departement'])) {
    $departement=$_REQUEST['research_departement'];
}

// cela doit tenir sur une seule ligne !
function print_research() {
  global $research, $departement, $promo, $choix_dept;
  if ($research) {
    echo $research;
    if ($departement || $promo)
      echo " ";
  }
  if ($departement || $promo) {
    echo "[";
    if ($departement) {
      $choix_dept->value->value = $departement;
      echo $choix_dept->value->_get_value_to_display();
      if ($promo)
        echo " ";
    }
    if ($promo)
      echo $promo;
    echo "]";
  }
  echo "\n";
}
?></protect>