";
$tmpOpt= str_replace("!!liste!!",$liste,$global);
// print $tmpOpt;
$tmpString = str_replace("!!liste_sites!!",$tmpOpt,$transferts_refus_redemande_global);
// $tmpString = str_replace("!!liste_sites!!",$tmpOpt,$transferts_refus_redemande_global);
//le titre
$tmpString = str_replace("!!detail_notice!!",aff_titre($idNotice,$idBulletin),$tmpString);
//l'action du formulaire
$tmpString = str_replace("!!action_formulaire!!","circ.php?categ=trans&sub=". $sub,$tmpString);
//on y met la date de pret par defaut
$date_pret = mktime(0, 0, 0, date("m"), date("d")+$transferts_nb_jours_pret_defaut, date("Y"));
$date_pret_aff = date("Y-m-d", $date_pret);
$tmpString = str_replace("!!date_retour_mysql!!", $date_pret_aff, $tmpString);
$date_pret_aff = date("d/m/Y", $date_pret);
$tmpString = str_replace("!!date_retour!!", $date_pret_aff, $tmpString);
//l'id de la transaction
$tmpString = str_replace("!!trans_id!!",$transid,$tmpString);
echo pmb_bidi($tmpString);
break;
case "redem":
//enregistre la nouvelle demande
//transfert::creer_transfert(2, "", $id_expl, 1, $dest_id, $date_retour, $motif);
$obj_transfert->ajoute_demande($transid,$id_expl,$motif,$date_retour);
$action = "";
break;
}
if ($action == "") {
$rqt="select id_transfert, num_expl from transferts,transferts_demande, pret where pret_idexpl=num_expl and id_transfert=num_transfert and etat_transfert=0 AND etat_demande=4";
$res = pmb_mysql_query($rqt);
if (pmb_mysql_num_rows($res)) {
while($r=pmb_mysql_fetch_object($res)){
$liste_transfert[]= $r->id_transfert;
}
$obj_transfert->cloture_transferts(implode($liste_transfert,','));
}
//pas d'action donc affichage de la liste des transferts refusés
echo "