Line 257... |
Line 257... |
257 |
|
257 |
|
258 |
$template = new bazarTemplate($GLOBALS['_BAZAR_']['db']);
|
258 |
$template = new bazarTemplate($GLOBALS['_BAZAR_']['db']);
|
259 |
//print ('toto'.$id_sujet);
|
259 |
//print ('toto'.$id_sujet);
|
260 |
$sujet = html_entity_decode($template->getTemplate($id_sujet, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']));
|
260 |
$sujet = html_entity_decode($template->getTemplate($id_sujet, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']));
|
- |
|
261 |
$corps = html_entity_decode($template->getTemplate($id_corps, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']));
|
261 |
$corps = html_entity_decode($template->getTemplate($id_corps, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']));
|
262 |
$corps.= $GLOBALS['_BAZAR_']['id_fiche'].'&typeannonce='.$GLOBALS['_BAZAR_']['id_typeannonce'] ;
|
262 |
|
263 |
|
263 |
$mails = bazar::getMailSuperAdmin($GLOBALS['_BAZAR_']['id_typeannonce']);
|
264 |
$mails = bazar::getMailSuperAdmin($GLOBALS['_BAZAR_']['id_typeannonce']);
|
264 |
if (is_array ($mails)) {
|
265 |
if (is_array ($mails)) {
|
265 |
foreach ($mails as $mail) {
|
266 |
foreach ($mails as $mail) {
|
266 |
mail ($mail, $sujet, $corps);
|
267 |
mail ($mail, $sujet, $corps);
|