// // ------------------------------------------------------------------------- // // Original Author: Pascal Le Boustouller // Author Website : http://www.perso-search.com/e-xoopsien/ // Licence Type : GPL // ------------------------------------------------------------------------- // if ($submit) { include("header.php"); global $bcoosConfig, $db, $myts; $result = $db->query("SELECT email, submitter, title, type, description FROM ".$db->prefix("ann_annonces")." WHERE lid = '$id'"); while(list($email, $submitter, $titre, $type, $description) = $db->fetchRow($result)) { $title = $myts->makeTboxData4Show($title); $type = $myts->makeTboxData4Show($type); $description = $myts->makeTboxData4Show($description); $submitter = $myts->makeTboxData4Show($submitter); if ($tele) { $teles = ""._CLA_ORAT." $tele"; } else { $teles = ""; } $message .= ""._CLA_MESSFROM." $namep "._CLA_FROMANNOF." ".$bcoosConfig['title']."\n\n"; $message .= ""._CLA_REMINDANN."\n$type : $titre\nTexte : $description\n\n"; $message .= "--------------- "._CLA_STARTMESS." $namep -------------------\n"; $message .= "$messtext\n\n"; $message .= "--------------- "._CLA_ENDMESS." de $namep -------------------\n\n"; $message .= ""._CLA_CANJOINT." $namep "._CLA_TO." $post $teles"; $subject = ""._CLA_CONTACTAFTERANN.""; $mail =& getMailer(); $mail->useMail(); //$mail->setFromName($bcoosConfig['title']); $mail->setFromEmail($post); $mail->setToEmails($email); $mail->setSubject($subject); $mail->setBody($message); $mail->send(); echo $mail->getErrors(); } redirect_header("index.php",1,_CLA_MESSEND); exit(); } else { include("header.php"); include(XOOPS_ROOT_PATH."/modules/MyAnnonces/include/functions.php"); include(XOOPS_ROOT_PATH."/header.php"); OpenTable(); echo ""; echo ""._CLA_MAIN." » "._CLA_CONTACTAUTOR."

"; echo ""._CLA_TEXTAUTO."
"; echo "
"; echo ""; echo ""; if($xoopsUser) { $idd =$xoopsUser->getVar("name", "E"); $idde =$xoopsUser->getVar("email", "E"); } echo "
"._CLA_YOURNAME."
"._CLA_YOUREMAIL."
"._CLA_YOURPHONE."
"._CLA_YOURMESSAGE."

"; CloseTable(); copyright(); include(XOOPS_ROOT_PATH."/footer.php"); } ?>