*** $query
\n");
$row = mysql_fetch_array ($result);
$demandeemail= "
".$msg[mdp_txt_intro_demande]."
"; print ""; $email = str_replace("%", "", $email); if ($demande!="ok" || $email=='') { // Mettre ici le formulaire de saisie de l'email print $demandeemail ; } elseif ($email) { $query = "SELECT empr_login, empr_password, empr_location,empr_mail,concat(empr_prenom,' ',empr_nom) as nom_prenom FROM empr WHERE empr_mail like '%".$email."%'"; $result = mysql_query($query) or die ("*** Erreur dans la requête"; //insertions des liens du bas dans le $footer si $opac_show_liensbas if ($opac_show_liensbas==1) $footer = str_replace("!!div_liens_bas!!",$liens_bas,$footer); else $footer = str_replace("!!div_liens_bas!!","",$footer); //affichage du bandeau de gauche si $opac_show_bandeaugauche = 1 if ($opac_show_bandeaugauche==0) { $footer= str_replace("!!contenu_bandeau!!","",$footer); } else { $footer = str_replace("!!contenu_bandeau!!","
*** $query
\n"); if (mysql_num_rows($result)!=0) { $res_envoi = false; while ($row = mysql_fetch_object ($result)) { $emails_empr = explode(";",$row->empr_mail); for ($i=0; $i*** $query_loc
\n"); $info_loc = mysql_fetch_object ($result_loc) ; $biblio_name_temp=$info_loc->name ; $biblio_email_temp=$info_loc->email ; } else { $biblio_name_temp=$opac_biblio_name; $biblio_email_temp=$opac_biblio_email; } $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; // Pour faire suite à votre demande, nous vous prions de trouver ci-dessous vos informations de connexion pour !!biblioname!! :
-Identifiant: !!login!!
-Mot de passe: !!password!!
Si vous rencontrez des difficultés, adressez un mail à !!biblioemail!!. $messagemail = $msg[mdp_mail_body] ; $messagemail = str_replace("!!login!!",$row->empr_login,$messagemail); $messagemail = str_replace("!!password!!",$row->empr_password,$messagemail); $messagemail = str_replace("!!biblioname!!","".$biblio_name_temp."",$messagemail); $messagemail = str_replace("!!biblioemail!!","$biblio_email_temp",$messagemail); $objetemail = str_replace("!!biblioname!!",$biblio_name_temp,$msg[mdp_mail_obj]); print "
"; if($opac_parse_html){ $objetemail = parseHTML($objetemail); $messagemail = parseHTML($messagemail); $biblio_name_temp = parseHTML($biblio_name_temp); $biblio_email_temp = parseHTML($biblio_email_temp); } $res_envoi=@mailpmb(trim($row->nom_prenom), $email,$objetemail,$messagemail,$biblio_name_temp, $biblio_email_temp, $headers); if (!$res_envoi) { print "Could not send information to $email.
" ; } else { print "".$msg[mdp_sent_ok]." $email.
" ; } } } } if (!$res_envoi) { print "".str_replace("!!biblioemail!!","$opac_biblio_email",$msg[mdp_no_email])."
" ; print $demandeemail ; } } else { print "".str_replace("!!biblioemail!!","$opac_biblio_email",$msg[mdp_no_email])."
" ; print $demandeemail ; } } print "