alpha_full/pages/informations/contact.form.php
2026-04-06 22:58:51 +02:00

107 lines
5.3 KiB
PHP
Executable File

<script type="text/javascript">
function validerForm() {
// alert("validerForm");
document.getElementById("codeOpe").value="validerForm";
document.contactF.submit();
}
</script>
<?php
$b=0;
switch ($lg) {
case "FRA":
$placeHolderSujet='Objet';
$placeHolderMess='Entrez votre mesage';
$placeHolderSMS='Cliquez ici pour envoyer un SMS (uniquement sur mobile)';
break;
case "ITA":
$placeHolderSujet = 'Oggetto';
$placeHolderMess = 'Inserisci il tuo messaggio';
$placeHolderSMS = 'Clicca qui per inviare un SMS (solo su mobile)';
break;
case "ESP":
$placeHolderSujet = 'Asunto';
$placeHolderMess = 'Introduce tu mensaje';
$placeHolderSMS = 'Haz clic aquí para enviar un SMS (solo en móvil)';
break;
case "DEU":
$placeHolderSujet = 'Betreff';
$placeHolderMess = 'Geben Sie Ihre Nachricht ein';
$placeHolderSMS = 'Klicken Sie hier, um eine SMS zu senden (nur auf dem Handy)';
break;
default:
$placeHolderSujet = 'Subject';
$placeHolderMess = 'Enter your message';
$placeHolderSMS = 'Click here to send an SMS (mobile only)';
break;
}
echo '<form name="contactF" method="POST" action="contact" >';
echo '<input type="hidden" name="codeOpe" id="codeOpe" value="' .$codeOpe. '" >';
// ---------------------------------------------------
// e-Mail
// ---------------------------------------------------
if ( $affMContext === true ) echo '<span class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 61, event );" >';
else echo '<span class="libInfosCell" >';
dynamiqItemMessage(0,0,'libInfos','-styleDiv-', 'span','-', '-action-', 'client', 8,'-msg1-');
if ( $affMContext === true ) echo '&#160;<span class="champsInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'champsInfosCell\', 5, \'contact\', 8, 61, event );" >';
else echo '&#160;<span class="champsInfosCell" >';
//flag edt
echo '&#160;<input name="cliMail" class="champsInfos" placeHolder="e-mail@domain.xx" value="' .$cliMail. '" >';
echo '</span>';
echo '</span>';
// ---------------------------------------------------
// Phone
// ---------------------------------------------------
if ( $affMContext === true ) echo '<span class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 61, event );" >';
else echo '<span class="libInfosCell" >';
dynamiqItemMessage(0,0,'libInfos','-styleDiv-', 'span','-', '-action-', 'client', 11,'-msg1-');
if ( $affMContext === true ) echo '<span class="champsInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'champsInfos\', 6, \'contact\', 8, 61, event );" >';
else echo '<span class="champsInfosCell" >';
//flag edt
echo '&#160;<input name="cliPhone" class="champsInfos" placeHolder="+AAxxxxxxxx " value="' .$cliPhone. '" >';
echo '</span>';
echo '</span>';
// ---------------------------------------------------
// Sujet
// ---------------------------------------------------
if ( $affMContext === true ) echo '<span class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 61, event );" >';
else echo '<span class="libInfosCell" >';
dynamiqItemMessage(0,0,'libInfos','-styleDiv-', 'span','-', '-action-','contact', 61,'-');
if ( $affMContext === true ) echo '<span class="champsInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'champsInfos\', 6, \'contact\', 8, 61, event );" >';
else echo '&#160;<span class="champsInfosCell" >';
//flag edt
echo '&#160;<input name="sujet" class="champsInfos" placeHolder="'.$placeHolderSujet.'" value="' .$sujet. '" >';
echo '</span>';
echo '</span>';
// ---------------------------------------------------
// Message
// ---------------------------------------------------
if ( $affMContext === true ) echo '<span class="libInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'libInfosCell\', 3, \'contact\', 8, 61, event );" >';
else echo '<span class="libInfosCell" >';
if ( $affMContext === true ) echo '&#160;<span class="champsInfosCell" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle( this, \'Informations\', \'champsInfosCell\', 5, \'contact\', 8, 61, event );" >';
else echo '&#160;<span class="champsInfosCell" >';
// flag traduction votre message
echo '<textarea rows="10" style="resize:both; overflow:visible; " class="champsInfos" name="message" value="' .$message. '" placeHolder="'.$placeHolderMess.'">' .$message. '</textarea>';
echo '</span>';
echo '</span>';
// ---------------------------------------------------
// Bouton valider avec action
// ---------------------------------------------------
echo '<div style="margin:15px;" >';
dynamiqItemImage (0,1,'boutons','div','onClick="validerForm();"','bouton',6, 'icones', '-textClass-','text-align:center; margin:10px;');
echo '</div>';
echo '</form>';
?>