";
//on recupere les id de l'exemplaire
$idNotice = pmb_sql_value("SELECT num_notice FROM transferts WHERE id_transfert=".$transid);
$idBulletin = pmb_sql_value("SELECT num_bulletin FROM transferts WHERE id_transfert=".$transid);
//on genere la liste des sites ou un exemplaire est disponible
$rqt = "SELECT DISTINCT expl_location,location_libelle " .
"FROM exemplaires " .
"INNER JOIN docs_location ON expl_location=idlocation " .
"WHERE " .
"expl_notice=".$idNotice." ".
"AND expl_bulletin=".$idBulletin." ".
"ORDER BY ".
"transfert_ordre";
$res = mysql_query($rqt);
$tmpOpt = "";
while ($value = mysql_fetch_array($res)) {
$tmpOpt .= "";
}
$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,$source,$motif,$date_retour);
$action = "";
break;
}
if ($action == "") {
//pas d'action donc affichage de la liste des transferts refusés
echo "