1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
| <?php
// Couleur du texte des champs si erreur saisie utilisateur
$color_font_warn="#FF0000";
// Couleur de fond des champs si erreur saisie utilisateur
$color_form_warn="#FFCC66";
// Ne rien modifier ci-dessous si vous nêtes pas certain de ce que vous faites !
$list['f_1']=array("Sélectionnez","Services"," Conseil"," Agri"," BTP");
$list['f_2']=array("Sélectionnez","01 - ain"," 02 - aisne"," 03 - Allier"," 04 - Alpes de Haute Provence"," 05 - Hautes-Alpe"," 06 - Alpes-Maritimes"," 07 - Ardèche"," 08 - Ardennes"," 09 - Ariège"," 10 - Aube"," 11 - Aude"," 12 - Aveyron"," 13 - Bouches du Rhône"," 14 - Calvados"," 15 - Cantal"," 16 - Charente"," 17 - Charente Maritime"," 18 - Cher"," 19 - Corrèze"," 2A - Corse du Sud"," 2B - Haute-Corse"," 21 - Côte-d'Or"," 22 - Côtes d'Armor"," 23 - Creuse"," 24 - Dordogne"," 25 - Doubs"," 26 - Drôme"," 27 - Eure"," 28 - Eure-et-Loir"," 29 - Finistère"," 30 - Gard"," 31 - Haute-Garonne"," 32 - Gers"," 33 - Gironde"," 34 - Hérault"," 35 - Ille-et-Vilaine"," 36 - Indre"," 37 - Indre-et-Loire"," 38 - Isère"," 39 - Jura"," 40 - Landes"," 41 - Loir-et-Cher"," 42 - Loire"," 43 - Haute-Loire"," 44 - Loire Atlantique"," 45 - Loiret"," 46 - Lot"," 47 - Lot-et-Garonne"," 48 - Lozère"," 49 - Maine-et-Loire"," 50 - Manche"," 51 - Marne"," 52 - Haute-Marne"," 53 - Mayenne"," 54 - Meurthe-et-Moselle"," 55 - Meuse"," 56 - Morbihan"," 57 - Moselle"," 58 - Nièvre"," 59 - Nord"," 60 - Oise"," 61 - Orne"," 62 - Pas-de-Calais"," 63 - Puy-de-Dôme"," 64 - Pyrénées-Atlantique"," 65 - Hautes-Pyrénées"," 66 - Pyrénées-Orientales"," 67 - Bas-Rhin"," 68 - Haut-Rhin"," 69 - Rhône"," 70 - Haute-Saône"," 71 - Saône-et-Loire"," 72 - Sarthe"," 73 - Savoie"," 74 - Haute-Savoie"," 75 - Paris"," 76 - Seine- Maritime"," 77 - Seine-et-Marne"," 78 - Yvelines"," 79 - Deux-Sèvres"," 80 - Somme"," 81 - Tarn"," 82 - Tarn-et-Garonne"," 83 - Var"," 84 - Vaucluse"," 85 - Vendée"," 86 - Vienne"," 87 - Haute-Vienne"," 88 - Vosges"," 89 - Yonne"," 90 - Terr.de Belfort"," 91 - Essonne"," 92 - Haut-de-Seine"," 93 - Seine-St-Denis"," 94 - Val-de-Marne"," 95 - Val-d'Oise");
if(isset($_POST['submit'])){
$erreur="";
// Nettoyage des entrées
while(list($var,$val)=each($_POST)){
if(!is_array($val)){
$$var=strip_tags($val);
}else{
while(list($arvar,$arval)=each($val)){
$$var[$arvar]=strip_tags($arval);
}
}
}
// Formatage des entrées
// Verification des champs
if($f_1==0){
$erreur.="<li><span class='txterror'>Le champ « Activité » n'a pas été défini.</span>";
$errf_1=1;
}
if($f_2==0){
$erreur.="<li><span class='txterror'>Le champ « Département » n'a pas été défini.</span>";
$errf_2=1;
}
if(strlen($f_3)<2){
$erreur.="<li><span class='txterror'>Le champ « Votre motivation » est vide ou incomplet.</span>";
$errf_3=1;
}
if(strlen($f_4)<2){
$erreur.="<li><span class='txterror'>Le champ « Votre fichier » est vide ou incomplet.</span>";
$errf_4=1;
}
if($erreur==""){
// Création du message
$titre="Message d envoi de CV";
$tete="From:xxxxxx@xxxxxxxxxx.fr\n";
$corps.="Activité : ".$list['f_1'][$f_1]."\n";
$corps.="Département : ".$list['f_2'][$f_2]."\n";
$corps.="Votre motivation : ".$f_3."\n";
$corps.="Votre CV : ".$f_4."\n";
if(mail("xxxxxxxxxx@xxxx.fr", utf8_decode($titre), utf8_decode(stripslashes($corps)), utf8_decode($tete))){
$ok_mail="true";
}else{
$erreur.="<li><span class='txterror'>Une erreur est survenue lors de l'envoi du message, veuillez refaire une tentative.</span>";
}
}
}
?>
<style type="text/css">
<!--
.Style3 {color: #333333}
.Style1 { color: #CCCCCC
}
-->
</style>
<head>
<style type="text/css" media="screen">
<!--
INPUT { color: #000; font-size: 11px; font-family: verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular; background-color: #EEEEEE }
SELECT { color: #000; font-size: 11px; font-family: verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular; background-color: #EEEEEE }
TEXTAREA { color: #000; font-size: 11px; font-family: verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular; background-color: #EEEEEE }
.txterror { color: black; font-size: 11px; font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular }
.txtform { color: black; font-size: 12px; font-family: Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bienvenue sur le site du groupe STAFF - Le portage salarial sous un autre angle</title>
<style type="text/css">
<!--
body {
background-color: #b31722;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.staffcss {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
}
-->
</style>
<script language="JavaScript">
//PLF-http://www.jejavascript.net/
function OuvrirPop(url,nom,haut,Gauche,largeur,hauteur,options) {
ouvpop=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}
</script>
<link href="cssstaff.css" rel="stylesheet" type="text/css" />
<SCRIPT LANGUAGE="JavaScript" src="fonc.js"></script>
</head>
<body>
<table width="1035" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="314"><img src="img/001.jpg" width="252" height="160" /></td>
<td width="579"><img src="img/002.jpg" width="564" height="160" /></td>
<td width="134"><img src="img/003.jpg" width="250" height="160" /></td>
</tr>
<tr>
<td><img src="img/004.jpg" width="252" height="36" /></td>
<td><img src="img/005.jpg" width="564" height="36" border="0" usemap="#Map5" /></td>
<td><img src="img/006.jpg" width="250" height="36" /></td>
</tr>
<tr>
<td><img src="img/007.jpg" width="252" height="573" border="0" usemap="#Map05" /></td>
<td align="center" valign="top" background="img/008.jpg"><table width="526" height="557" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="416" align="left" valign="top"><span class="Titre-accueil2">Carrières:
<br />
<br />
</span><span class="Texte-accueilpetit">Déposez votre CV et rejoignez ainsi un réseau de professionnels.</span><span class="Titre-accueil2"><br />
</span><br />
<? if($ok_mail=="true"){ ?>
<table width='100%' border='0' cellspacing='1' cellpadding='1'>
<tr><td><span class='txtform'>Le message ci-dessous nous a bien été transmis, et nous vous en remercions.</span></td></tr>
<tr><td> </td></tr>
<tr><td><tt><?echo nl2br(stripslashes($corps));?></tt></td></tr>
<tr><td> </td></tr>
<tr><td><span class='txtform'>Nous allons y donner suite dans les meilleurs délais.<br>A bientôt.</span></td></tr>
</table>
<? }else{ ?>
<form action='<? echo $PHP_SELF ?>' method='post' name='Form' enctype='multipart/form-data'>
<table width='100%' border='0' cellspacing='1' cellpadding='1'>
<? if($erreur){ ?><tr><td colspan='2' bgcolor='red'><span class='txterror'><font color='white'><b> ERREUR, votre message n'a pas été transmis</b></font></span></td></tr><tr><td><ul><?echo$erreur?></ul></td>
<td><span class="txterror">Les champs marqué d'un * sont obligatoires</span></td>
</tr><?}?>
<tr><td colspan='2'>
</td>
</tr>
<tr><td align='right' width='30%'><span class='txtform'>Activité* :</span></td><td><select style='width:200 <?if($errf_1==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);}?>;' name='f_1' size='1'>
<? for($id=0;$id<count($list['f_1']);$id++){
if($id==$f_1){$ct="selected";}
print("<option ".$ct." value=".$id.">".$list['f_1'][$id]."</option>");
unset($ct);
}?>
</select></td></tr>
<tr><td align='right' width='30%'><span class='txtform'>Département* :</span></td><td><select style='width:200 <?if($errf_2==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);}?>;' name='f_2' size='1'>
<? for($id=0;$id<count($list['f_2']);$id++){
if($id==$f_2){$ct="selected";}
print("<option ".$ct." value=".$id.">".$list['f_2'][$id]."</option>");
unset($ct);
}?>
</select></td></tr>
<tr><td align='right' width='30%'><span class='txtform'>Votre motivation* :</span></td><td><textarea style='width:360 <?if($errf_3==1){print("; background-color: ".$color_form_warn."; color: ".$color_font_warn);}?>;' name='f_3' rows='3' cols='40'><?echo$f_3?></textarea></td></tr><tr>
<td align='right' width='30%'><span class='txtform'>Votre CV* .doc ou .pdf:</span></td>
<td><input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
<input name="f_4" type="file" size="16" id="f_4" /></td></tr>
<tr><td align='right' width='30%'></td><td><input type='submit' name='submit' value='Envoyer' border='0'></td></tr>
</table>
</form>
<? } ?> |
Partager