linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file mail_actions.php

Documentation is available at mail_actions.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage yellowpages
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages //////////// 
  12. if (!function_exists('AuthenthificationProcess'))
  13. include_once("../lib/lib_common.php");
  14. ReloadIndex('admin');
  15. }
  16. //////////// 
  17.         /** PrĂ©paration du mail
  18.         * $email_html_body
  19.         * $email_text_body
  20.         * $email_subject
  21.         * $email_dest
  22.         **/
  23.  
  24.         
  25.         $req_detSQL_getdetyp($yp_id);
  26.         $result=$sql_object->DBSelect($req_det);
  27.  
  28.         $email_html_body$GLOBALS['lang']['yp']['mail_entete']."<br />";
  29.         $email_html_body.="<dl>\n";
  30.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['theme'].": </dt>\n";
  31.         $email_html_body.="<dd>".formatText($result[0]['theme_name'])."</dd>\n";
  32.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['name2'].": </dt>\n";
  33.         $email_html_body.="<dd>".formatText($result[0]['yellowp_name'])."</dd>\n";
  34.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['activity'].": </dt>\n";
  35.         $email_html_body.="<dd>".formatText($result[0]['yellowp_activity'])."</dd>\n";
  36.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['street'].": </dt>\n";
  37.         $email_html_body.="<dd>".formatText($result[0]['yellowp_street'])."</dd>\n";
  38.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['postal_code'].": </dt>\n";
  39.         $email_html_body.="<dd>".formatText($result[0]['yellowp_postal_code'])."</dd>\n";
  40.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['city'].": </dt>\n";
  41.         $email_html_body.="<dd>".formatText($result[0]['yellowp_city'])."</dd>\n";
  42.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['country'].": </dt>\n";
  43.         $email_html_body.="<dd>".formatText($result[0]['yellowp_country'])."</dd>\n";
  44.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['phone'].": </dt>\n";
  45.         $email_html_body.="<dd>".formatText($result[0]['yellowp_phone'])."</dd>\n";
  46.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['fax'].": </dt>\n";
  47.         $email_html_body.="<dd>".formatText($result[0]['yellowp_fax'])."</dd>\n";
  48.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['email'].": </dt>\n";
  49.         $email_html_body.="<dd>".formatText($result[0]['yellowp_email'])."</dd>\n";
  50.         $email_html_body.="<dt>".$GLOBALS['lang']['yp']['website'].": </dt>\n";
  51.         $email_html_body.="<dd>".formatText($result[0]['yellowp_website'])."</dd>\n";
  52.         $email_html_body.="<dt>".$GLOBALS['lang']['divers']['date_crea'].": </dt>\n";
  53.         $email_html_body.="<dd>".$result[0]['yellowp_date_crea']."</dd>\n";
  54.         $email_html_body.="<dt>".$GLOBALS['lang']['divers']['statut'].": </dt>\n";
  55.         $email_html_body.="<dd>".display_statut($result[0]['yellowp_statut'])."</dd></dl>\n";
  56.         $email_html_body.="<br />".$GLOBALS['lang']['yp']['mail_body1'].": <a href=\"".SITE_CITY_URL."\">".SITE_CITY_NAME."</a><br />";
  57.         $email_html_body.=$GLOBALS['lang']['yp']['mail_bottom'].": <a href=\"mailto:".SITE_CITY_MAIL."\">".SITE_CITY_MAIL."</a><br />\n";
  58.         
  59.         
  60.         $email_text_body=$GLOBALS['lang']['yp']['mail_entete']."\n";
  61.         $email_text_body.=$GLOBALS['lang']['yp']['theme'].": ".formatText($result[0]['theme_name'])."\n";
  62.         $email_text_body.=$GLOBALS['lang']['yp']['name2'].": ".formatText($result[0]['yellowp_name'])."\n";
  63.         $email_text_body.=$GLOBALS['lang']['yp']['activity'].": ".formatText($result[0]['yellowp_activity'])."\n";
  64.         $email_text_body.=$GLOBALS['lang']['yp']['street'].": ".formatText($result[0]['yellowp_street'])."\n";
  65.         $email_text_body.=$GLOBALS['lang']['yp']['postal_code'].": ".formatText($result[0]['yellowp_postal_code'])."\n";
  66.         $email_text_body.=$GLOBALS['lang']['yp']['city'].": ".formatText($result[0]['yellowp_city'])."\n";
  67.         $email_text_body.=$GLOBALS['lang']['yp']['country'].": ".formatText($result[0]['yellowp_country'])."\n";
  68.         $email_text_body.=$GLOBALS['lang']['yp']['phone'].": ".formatText($result[0]['yellowp_phone'])."\n";
  69.         $email_text_body.=$GLOBALS['lang']['yp']['fax'].": ".formatText($result[0]['yellowp_fax'])."\n";
  70.         $email_text_body.=$GLOBALS['lang']['yp']['email'].": ".formatText($result[0]['yellowp_email'])."\n";
  71.         $email_text_body.=$GLOBALS['lang']['yp']['website'].": ".formatText($result[0]['yellowp_website'])."\n";
  72.         $email_text_body.=$GLOBALS['lang']['divers']['date_crea'].": ".$result[0]['yellowp_date_crea']."\n";
  73.         $email_text_body.=$GLOBALS['lang']['divers']['statut'].": ".display_statut($result[0]['yellowp_statut'])."\n";
  74.         $email_text_body.=$GLOBALS['lang']['yp']['mail_body1'].SITE_CITY_URL."\n";
  75.         $email_text_body.=$GLOBALS['lang']['yp']['mail_bottom'].SITE_CITY_MAIL."\n";    
  76.         
  77.  
  78.         $email_subject $GLOBALS['lang']['yp']['confirm_subscription'' ' SITE_CITY_NAME;
  79.         $email_dest $result[0]['yellowp_email'];
  80. ?>

Documentation generated on Sat, 08 Nov 2008 14:53:07 +0100 by phpDocumentor 1.4.1