$images_field_titles = array("Visuel");
$images_field_count = count($images_field_titles);
$docs_field_titles = array();
$docs_field_count = count($docs_field_titles);
$form_name = $level."_Form";
$table_field_list = array("parent", "titre_fr", "resume_fr", "description_fr", "nom", "ordre", "status");
$table_field_definition = array("lookUpCombo:rubriques|titre_fr", "text", "textarea:5|5", "richtext:70", "text:64", "text:64", "combo:Activé=1|Désactivé=0");
$table_field_titles = array("Rubrique", "Titre", "Résumé", "Contenu", "Nom interne", "Ordre", "Etat");
$table_field_verification = array("%variable%<0", "!%variable%", "", "", "!%variable%", "%variable%<0");
//Table pour spécifier les champs à utiliser dans la clause ORDER BY
//Par défaut : titre ou champs indiqué comme titre
$table_field_order = array("parent", "ordre", "titre_fr");
//Table des champs à afficher dans le listing en tant que Titres
//Par défaut : titre
$listing_titre = array("titre_fr");
//Table des champs à afficher dans le listing en tant que Descriptions
//Par défaut : Description
$listing_description = array("resume_fr");
//Table des champs à afficher dans la barre d'état de chaque enregistrement
//Elle permet de spécifier les champs à modifier directement à partir du listing
//Par déffaut : parent
$table_field_print = array("parent");
//$standard_action = array('list', 'edit', 'delete', 'activate', 'deactivate', 'modify');
?>
//Envoi du mail
if($_POST["Submit"] && $_POST["form_name"] = $Site["code"]."_contact_form" && !$_SESSION["contact_form"])
{
require($Site['homeDir'].'/core/phpclasses/class.email.php');
$from_name=$_POST['Nom_et_Prenom'];
$from_address=$_POST['e_mail'];
$reply_name=$from_name;
$reply_address=$from_address;
$reply_address=$from_address;
$error_delivery_name=$from_name;
$error_delivery_address=$from_address;
$to_address=$GLOBALS["contact_mail"];
$to_name=$Site["name"]["fr"];
$subject=$GLOBALS["contact_subject"];
$email_message=new email_message_class;
$email_message->SetBulkMail(1);
$email_message->SetEncodedEmailHeader("From",$from_address,$from_name);
$email_message->SetEncodedEmailHeader("Reply-To",$reply_address,$reply_name);
$email_message->SetEncodedEmailHeader("To",$to_address,$to_name);
$email_message->SetEncodedHeader("Subject",$subject);
$email_message->cache_body=0;
//HTML
$html_smarty=new Smarty;
$text_smarty=new Smarty;
$html_smarty->template_dir = CMS_ROOT_PATH . 'themes/default/templates/';
$html_smarty->compile_dir = CMS_ROOT_PATH . 'themes/default/templates_c/';
$html_smarty->assign('theme_dir', CMS_ROOT_PATH . 'themes/default');
$html_smarty->assign('fields', $_POST);
//text
$text_smarty->template_dir = CMS_ROOT_PATH . 'themes/default/templates/';
$text_smarty->compile_dir = CMS_ROOT_PATH . 'themes/default/templates_c/';
$text_smarty->assign('theme_dir', CMS_ROOT_PATH . 'themes/default');
$text_smarty->assign('fields', $_POST);
$html_message=$html_smarty->fetch("contact.html.tpl");
$email_message->CreateQuotedPrintableHTMLPart($html_message,"",$html_part);
$text_message=$text_smarty->fetch("contact.txt.tpl");
$email_message->CreateQuotedPrintableTextPart($email_message->WrapText($text_message),"",$text_part);
$alternative_parts=array(
$text_part,
$html_part
);
$email_message->AddAlternativeMultipart($alternative_parts);
$error=$email_message->Send();
$email_message->SetBulkMail(0);
if(strcmp($error,"")) $mail_result = $error;
else
{
$mail_result = "Votre demande a bien été envoyée, elle sera traitée dès que possible.
";
$_SESSION["contact_form"] = true;
}
}
unset($Page['Visuel'][0]);
$plan = searchFile("/modules/contenu/assets/pages/img_".$Page['pageKey']);
if($picture)
{
$planInfos = howToInsertImage($plan, "300x", "adapt");
$planVignette = $planInfos[0];
$Page['Visuel']['plan']['thumb'] = $planVignette;
$Page['Visuel']['plan']['zoom'] = $plan;
$Page['Visuel']['plan']['titre'] = "Plan de situation";
$Site['plugins'][] = "multibox";
}
if($_SESSION["contact_form"]) $mail_result = "Votre demande a bien été envoyée, elle sera traitée dès que possible.
";
$Page['contentBox'] = 'contact.tpl';
$Page['File'] = 'contact_form.tpl';
$Page['mail_result'] = $mail_result;
?>
Adresse:
Coopérative Immo Milit Lots N°29, Draria, Alger, Algérie
Tél/ Fax. : +213 21 352180
Tél: +213 21 352180
E.mail : contact@shamstours.com