template_dir = 'template/templates'; $smarty->compile_dir = 'template/templates_c'; $smarty->cache_dir = 'template/cache'; $smarty->config_dir = 'template/configurari'; $tip=$segment[0]; $idp=$segment[1]; $dir=$config_site_url; $dirlang=$dir; if ($_POST['step']!='aplica' and $tip!='success') $formular.='

Inscriere Candidati

'; else { $err=0; if (strlen($_POST['nume'])<5) { $stylenume=' style="border:1px solid red"'; $err=1;} if (strlen($_POST['varsta'])<2) { $stylevarsta=' style="border:1px solid red"'; $err=1;} if (strlen($_POST['email'])<5) { $styleemail=' style="border:1px solid red"'; $err=1;} if (strlen($_POST['telefon'])<10) { $styletelefon=' style="border:1px solid red"'; $err=1;} if ($err==1) $formular.='

Inscriere Candidati

'; if ($err==0) { $formular.='






Aplicatia dumneavoastra a fost inregistrata cu succes!'; // subject $subject = 'Inscriere Landing Page'; // message $message = ' Inscriere noua '.date("Y-m-d H:i:s").'

Inscriere noua '.date("Y-m-d H:i:s").'

Nume'.$_POST['nume'].'
Varsta'.$_POST['varsta'].'
Email'.$_POST['email'].'
Telefon'.$_POST['telefon'].'
'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: '.$_POST['nume'].' ' . "\r\n"; // Mail it for ($i=0;$i '; $smarty->assign('formular', $formular); $smarty->assign('dir', $dir); $smarty->assign('title', $title); $smarty->assign('continut', $continut); $smarty->display('index.html'); ?>