HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/refonte2023/wordpress/evenements/index-gala-2012.php
<?php
require_once("_mysql.php");
setlocale (LC_TIME, 'fr_FR.utf8','fra'); 
$id_evenement = 51;

$req = mysqli_query($link_bdd,"select * from evenements where id_evenement = ".$id_evenement." and date_debut_evenement <= '".date("Y-m-d")."' and date_fin_evenement >= '".date("Y-m-d")."'");
if (mysqli_num_rows($req) != 0)
{
  $line = mysqli_fetch_array($req);
}
else
{
  die ("Aucun evenement ne correspond");
}

$line['libelle_evenement'] = "GALA 2012";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html;charset=UTF-8" http-equiv="content-type"/>
<title>Evenement GALA 2012</title>
<script type="text/javascript">
function verification()
{
  if(document.frmSubmit.email_contact.value == "")
  {
    alert("Merci d'indiquer votre adresse e-mail");
    document.frmSubmit.email_contact.focus();
    return false;
  }
  if(document.frmSubmit.email_contact.value.indexOf('@') == -1)
  {
    alert("Adresse e-mail invalide");
    document.frmSubmit.email_contact.focus();
    return false;
  }
  if(document.frmSubmit.civilite_contact.value == "")
  {
    alert("Merci d'indiquer votre Civilité");
    document.frmSubmit.civilite_contact.focus();
    return false;
  }
  if(document.frmSubmit.prenom_contact.value == "")
  {
    alert("Merci d'indiquer votre Prénom");
    document.frmSubmit.prenom_contact.focus();
    return false;
  }
  if(document.frmSubmit.nom_contact.value == "")
  {
    alert("Merci d'indiquer votre Nom");
    document.frmSubmit.nom_contact.focus();
    return false;
  }
  if(document.frmSubmit.telephone_contact.value == "")
  {
    alert("Merci d'indiquer votre Téléphone");
    document.frmSubmit.telephone_contact.focus();
    return false;
  }
  if(document.frmSubmit.fonction_contact.value == "" && !document.frmSubmit.autre_contact.checked)
  {
    alert("Merci d'indiquer votre fonction dans l'entreprise");
    document.frmSubmit.fonction_contact.focus();
    return false;
  }
  if(document.frmSubmit.adresse_entreprise_contact.value == "")
  {
    alert("Merci d'indiquer l'adresse de votre entreprise");
    document.frmSubmit.adresse_entreprise_contact.focus();
    return false;
  }
  if(document.frmSubmit.code_postal_entreprise_contact.value == "")
  {
    alert("Merci d'indiquer le code postal de votre entreprise");
    document.frmSubmit.code_postal_entreprise_contact.focus();
    return false;
  }
  if(document.frmSubmit.ville_entreprise_contact.value == "")
  {
    alert("Merci d'indiquer la ville de votre entreprise");
    document.frmSubmit.ville_entreprise_contact.focus();
    return false;
  }
  if(document.frmSubmit.inscription_contact && document.frmSubmit.inscription_contact.selectedIndex == 0 && document.frmSubmit.membre_contact[1].checked)
  {
    alert("Veuillez choisir une formule d'adhésion si vous n'êtes pas membre.");
    document.frmSubmit.inscription_contact.focus();
    return false;
  }
  if(document.frmSubmit.don.value != "" && isNaN(document.frmSubmit.don.value))
  {
    alert("Votre don n'a pas un format numérique");
    document.frmSubmit.don.focus();
    return false;
  }
  var icpteur=-1;
  for (var i=0; i<document.frmSubmit.choixradio.length;i++)
  {
     if (document.frmSubmit.choixradio[i].checked)
     {
        icpteur = i;
     }
  }
  
  if (icpteur == -1)
  {
    alert("Vous n'avez pas fait de choix");
    return false;
  }
  
  if (icpteur != 6)
  {
    if (document.getElementById("selectradio"+icpteur).selectedIndex == 0)
    {
      alert("Vous n'avez pas choisi la quantité");
      return false;
    }
  }
  
  selectCpt(icpteur);
  
  if (parseInt(document.frmSubmit.totalhidden.value) <= 0)
  {
    alert("Montant incorrect");
      return false;
  }
  
  return true
}
function selectCpt(icpt)
{
  var tabPrix = new Array(15000,10000,7500,1500,1000,750,0);
  var valeursite = 0;
  if (icpt!=6 && icpt!=-1)
  {
    indexsite = document.getElementById('selectradio'+icpt);
    valeursite = indexsite.options[indexsite.selectedIndex].value;
  }
  var total = document.frmSubmit.total.value = (valeursite * tabPrix[icpt]);
  
  if(document.frmSubmit.don.value != "" && !isNaN(document.frmSubmit.don.value))
  {
    total = parseInt(total) + parseInt(document.frmSubmit.don.value);
  }
  document.frmSubmit.total.value = total;
  document.frmSubmit.totalhidden.value = total;
  if (total > 8000)
  {
    document.frmSubmit.type_paiement[1].checked = true;
    document.getElementById('messageCheque').style.display='block';
  }
}

function addDon()
{
  var icpteur=-1;
  for (var i=0; i<document.frmSubmit.choixradio.length;i++)
  {
     if (document.frmSubmit.choixradio[i].checked)
     {
        icpteur = i;
     }
  }
  selectCpt(icpteur)
}
</script>

<style type="text/css">

/* General styles */
body { margin: 0; padding: 0; font: 0.8em Arial,Helvetica,sans-serif; color: #111; background-color: #FFF; }
a:hover{
    color:#0172b6;
} 
a{
    color:#0172b6;
} 
a:visited{
    color:#0172b6;
} 
h2 { margin: 0px; padding: 10px; font-family: Georgia, "Times New Roman", Times, serif; font-size: 200%; font-weight: normal; color: #FFF; background-color: #CCC; border-bottom: #BBB 2px solid; }

/* Form styles */
div.form-container {margin: auto; padding: 5px;}

p.legend { margin-bottom: 1em; }
p.legend em { color: #C00; font-style: normal; }

div.form-container form p { margin: 0; }
div.form-container form p.note { margin-left: 170px; font-size: 90%; color: #333; }
div.form-container form fieldset { margin: 10px 0; padding: 10px; border: #DDD 1px solid; }
div.form-container form legend { font-weight: bold; color: #000000; }
div.form-container form fieldset div { padding: 0.25em 0; }
div.form-container label, 
div.form-container span.label { margin-right: 10px; padding-right: 10px; width: 150px; display: block; float: left; text-align: right; position: relative; }
div.form-container label em, 
div.form-container span.label em { position: absolute; right: 0; font-size: 120%; font-style: normal; color: #C00; }
div.form-container input:focus,
div.form-container textarea:focus {	background-color: #FFC; border-color: #FC6; }
div.form-container div.controlset label, 
div.form-container div.controlset input { display: inline; float: none; }
div.form-container div.controlset div { margin-left: 170px; }
div.form-container div.buttonrow { margin: 4px;; text-align:center;}
#divAdhesion { margin: auto; text-align:center; border-width:2px; border-style:solid; border-color:#000000;}
#divfiscal {margin: auto; padding:10px; text-align:left; border-width:1px; border-style:solid; border-color:#000000;}
#messageNonMembre { text-align:center; font-size: 12px; font-weight: bold;color:#FF0000;}
#libelleMembre { font-size: 12px; font-weight: bold;}
#checkboxMembre { font-size: 14px; font-weight: bold;}
#prix { font-size: 16px; font-weight: bold; color:#111111;text-decoration:none;}
#prix a { font-size: 16px; font-weight: bold; color:#111111;text-decoration:none;}
</style>

</head>
<body>
<div id="header" style="border: 1px solid #8a959b; width: 900px; margin: auto;">
<table width="100%" cellspacing="0" cellpaddin="0">
<tr>
<td width="50%">
  <img src="/evenements/images/logo_faf.jpg" alt="logo FAF" style="float: left; margin: 30px;" width="300">
</td>
<td width="50%">
  <p><span style="font-size: 24px;font-weight:bold; color:#0172b6; display:block; text-align:right; margin-top: 30px;margin-right: 30px;">GALA 2012</span><br /><span style="font-size: 16px;display:block;font-weight:bold; color:#0172b6; text-align:right; margin-right: 30px;">MARDI 27 NOVEMBRE 2012</span></p>
</td>
</tr>

<tr>
<td colspan="2" style="background-color:#0172b6; width: 100%;">
      <div style="text-align: center; color:#ffffff; font-size: 20px;"><b>INSCRIPTION</b></div>
</td>
</tr>
<tr>
<td colspan="2" style="width: 100%;">
<div class="form-container">
  <form action="/evenements/paiement-gala-2012.php" method="post" name="frmSubmit" onSubmit="return verification()">
  <input id="id_evenement" name="id_evenement" type="hidden" value="<?=$id_evenement?>">
  <fieldset>
  <legend>Contact</legend>
  <table width="100%">
  <tr>
  <td width="50%">
  <div><label for="email_contact">Email <em>*</em></label> <input id="email_contact" tabindex="1" name="email_contact" size="25" type="text"><input id="email" name="email" type="hidden" value="" /></div>
  </td>
  <td width="50%">
  <div><label for="entreprise_contact">Entreprise</label> <input tabindex="6" id="entreprise_contact" name="entreprise_contact" size="25" type="text">&nbsp;&nbsp;Autre<input type="checkbox" tabindex="6" id="autre_contact" name="autre_contact" onclick="if (this.checked == false) { document.getElementById('obligatoire').innerHTML='*'; } else { document.getElementById('obligatoire').innerHTML=''; }" /></div>
  </td>
  </tr>
  <tr>
  <td>
  <div><label for="civilite_contact">Civilité <em>*</em></label> <select tabindex="1" name="civilite_contact" id="civilite_contact"><option value="Madame">Madame</option><option value="Monsieur">Monsieur</option></select></div>
  </td>
  <td>
  <div><label for="fonction_contact">Fonction <em><span id="obligatoire">*</span></em></label> <input tabindex="7" id="fonction_contact" name="fonction_contact" size="25" type="text"></div>
  </td>
  </tr>
  <tr>
  <td>
  <div><label for="prenom_contact">Prénom <em>*</em></label> <input tabindex="2" id="prenom_contact" name="prenom_contact" size="25" type="text"></div>
  </td>
  <td>
  <div><label for="adresse_entreprise_contact">Adresse <em>*</em></label> <input id="adresse_entreprise_contact" tabindex="8" name="adresse_entreprise_contact" size="25" type="text"></div>
  </td>
  </tr>
  <tr>
  <td>
  <div><label for="nom_contact">Nom <em>*</em></label> <input tabindex="3" id="nom_contact" name="nom_contact" size="25" type="text"></div>
  </td>
  <td>
  <div><label for="code_postal_entreprise_contact">Code Postal <em>*</em></label> <input tabindex="9" id="code_postal_entreprise_contact" name="code_postal_entreprise_contact" size="25" type="text"></div>
  </td>
  </tr>
  <tr>
  <td>
  <div><label for="telephone_contact">Téléphone fixe <em>*</em></label> <input tabindex="4" id="telephone_contact" size="25" name="telephone_contact" type="text"></div>
  </td>
  <td>
  <div><label for="ville_entreprise_contact">Ville <em>*</em></label> <input tabindex="10" id="ville_entreprise_contact" name="ville_entreprise_contact" size="25" type="text"></div>
  </td>
  </tr>
  <tr>
  <td>
  <div><label for="portable_contact">Téléphone portable</label> <input tabindex="5" id="portable_contact" size="25" name="portable_contact" type="text"></div>
  </td>
  </tr>
  </table>
  </fieldset>
  <fieldset>
  <legend>Cat&eacute;gorie</legend>
  <table width="100%">
  <tr>
  <td rowspan="3" style="width:100px;">
    &nbsp;
  </td>
  <td style="align:center; vertical-align:middle;" rowspan="3">
    <strong>Table(s)<br />
    10 personnes</strong>
  </td>
  <td style="line-height:20px;">
  <input type="radio" name="choixradio" tabindex="15" onClick="selectCpt('0')" value="0" style="float:left;"><span style="display:block;width:150px;float:left;margin-left:20px;"> « Mécène » </span><span style="display:block;width:50px;float:left;">=</span><select tabindex="16" onChange="document.frmSubmit.choixradio[0].checked=true;selectCpt('0');" name="selectradio0" id="selectradio0" style="float:left;"><option value="0">&nbsp;</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select><span style="display:block;width:200px;float:left;text-align:right;">X 15 000 Euros (unité)</span>
  </td>
  </tr>
  <tr>
  <td style="line-height:20px;">
  <input type="radio" name="choixradio" tabindex="17" onClick="selectCpt('1')" value="1" style="float:left;"><span style="display:block;width:150px;float:left;margin-left:20px;"> « Bienfaiteur » </span><span style="display:block;width:50px;float:left;">=</span><select tabindex="18" onChange="document.frmSubmit.choixradio[1].checked=true;selectCpt('1');" name="selectradio1" id="selectradio1" style="float:left;"><option value="0">&nbsp;</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select><span style="display:block;width:200px;float:left;text-align:right;">X 10 000 Euros (unité)</span>
  </td>
  </tr>
  <tr>
  <td style="line-height:20px;">
  <input type="radio" name="choixradio" tabindex="19" onClick="selectCpt('2')" value="2" style="float:left;"><span style="display:block;width:150px;float:left;margin-left:20px;"> « Donateur » </span><span style="display:block;width:50px;float:left;">=</span><select tabindex="20" onChange="document.frmSubmit.choixradio[2].checked=true;selectCpt('2');" name="selectradio2" id="selectradio2" style="float:left;"><option value="0">&nbsp;</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select><span style="display:block;width:200px;float:left;text-align:right;">X  7 500 Euros (unité)</span>
  </td>
  </tr>
  
  <tr>
  <td colspan="3">&nbsp;</td>
  </tr>

  <tr>
  <td rowspan="3" style="width:100px;">
    &nbsp;
  </td>
  <td style="align:center; vertical-align:middle;" rowspan="3">
    <strong>Place(s)<br />
    Individuelle(s)</strong>
  </td>
  <td style="line-height:20px;">
  <input type="radio" name="choixradio" tabindex="21" onClick="selectCpt('3')" value="3" style="float:left;"><span style="display:block;width:150px;float:left;margin-left:20px;"> « Mécène » </span><span style="display:block;width:50px;float:left;">=</span><select tabindex="22" onChange="document.frmSubmit.choixradio[3].checked=true;selectCpt('3');" name="selectradio3" id="selectradio3" style="float:left;"><option value="0">&nbsp;</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select><span style="display:block;width:200px;float:left;text-align:right;">X 1 500 Euros (unité)</span>
  </td>
  </tr>
  <tr>
  <td style="line-height:20px;">
  <input type="radio" name="choixradio" tabindex="23" onClick="selectCpt('4')" value="4" style="float:left;"><span style="display:block;width:150px;float:left;margin-left:20px;"> « Bienfaiteur » </span><span style="display:block;width:50px;float:left;">=</span><select tabindex="24" onChange="document.frmSubmit.choixradio[4].checked=true;selectCpt('4');" name="selectradio4" id="selectradio4" style="float:left;"><option value="0">&nbsp;</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select><span style="display:block;width:200px;float:left;text-align:right;">X 1 000 Euros (unité)</span>
  </td>
  </tr>
  <tr>
  <td style="line-height:20px;">
  <input type="radio" name="choixradio" tabindex="25" onClick="selectCpt('5')" value="5" style="float:left;"><span style="display:block;width:150px;float:left;margin-left:20px;"> « Donateur » </span><span style="display:block;width:50px;float:left;">=</span><select tabindex="26" onChange="document.frmSubmit.choixradio[5].checked=true;selectCpt('5');" name="selectradio5" id="selectradio5" style="float:left;"><option value="0">&nbsp;</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option></select><span style="display:block;width:200px;float:left;text-align:right;">X  750 Euros (unité)</span>
  </td>
  </tr>

  <tr>
  <td colspan="3">&nbsp;</td>
  </tr>
<!--
  <tr>
  <td style="width:100px;">
    &nbsp;
  </td>
  <td colspan="2"><input type="radio" tabindex="27" onClick="selectCpt('6')" name="choixradio" value="6" style="float:left;"> &nbsp;Je ne participerai pas au Gala de la French-American Foundation - France </td>
  </tr>
  
  <tr>
  <td colspan="3">&nbsp;</td>
  </tr>
  -->
  <tr>
  <td style="width:100px;">
    &nbsp;
  </td>
  <td colspan="2"><span style="text-align:right;margin-right:150px;display:block;"><input type="radio" tabindex="27" onClick="selectCpt('6')" name="choixradio" value="6" style="float:none;">&nbsp;Je regrette de ne pouvoir participer mais je fais un don déductible de <input tabindex="28" type="text" onblur="addDon()" onchange="addDon()" name="don" size="8" value="0" /> &euro;</span>
</td>
  </tr>
  
  <tr>
  <td style="width:100px;">
    &nbsp;
  </td>
  <td colspan="2"><span style="text-align:right;margin-right:150px;display:block;color:#0172b6;font-weight:bold;">TOTAL = <input type="text" name="total" size="8" disabled="disabled" value="0" /><input type="hidden" name="totalhidden" size="8"  value="0" style="color:#000000;" /> &euro;</span>
</td>
  </tr>

  </table>
  </fieldset>
  
  <table width="100%">
  <tr>
  <td align="left" width="20%" colspan="2">
  <div id="prix" style="display:block;">
  <?php
    echo '<table width="100%">';
    echo '<tr>';
    echo '<td width="200px;">';
    echo 'Mode de règlement';
    echo '</td>';
    echo '<td width="50px;">';
    echo '&nbsp;';
    echo '</td>';
    echo '<td>';
    echo '&nbsp;';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td>';
    echo '<span style="display:block;margin-left:20px;">Paiement en ligne</span>';
    echo '</td>';
    echo '<td>';
    echo '<INPUT type=radio tabindex="29" name="type_paiement" checked onclick="if (parseInt(document.frmSubmit.totalhidden.value) <= 8000) { document.getElementById(\'messageCheque\').style.display=\'none\'; } else { return false; }" value="PAYPAL" /><br />';
    echo '</td>';
    echo '<td>';
    echo '<span style="display:block;text-align:right;margin-right:60px;"><a tabindex="32" href="#recu">« Un re&ccedil;u fiscal vous sera d&eacute;livr&eacute; (*)»</a></span>';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td>';
    echo '<span style="display:block;margin-left:20px;">Chèque</span>';
    echo '</td>';
    echo '<td>';
    echo '<INPUT type=radio tabindex="30" name="type_paiement" onclick="document.getElementById(\'messageCheque\').style.display=\'block\';" value="CHEQUE" />';
    echo '</td>';
    echo '<td>';
    echo '&nbsp;';
    echo '</td>';
    echo '</tr>';
    echo '</table>';
  ?>
  </div>
  </td>
  </tr>
  <tr>
  <td align="left" width="20%" colspan="3">
  <div id="messageCheque" style="display:none;text-align:center;">
    « Merci de libeller votre chèque à la French-American Foundation – France, 18 bis boulevard Arago, 75013 Paris. »
  </div>
  </td>
  </tr>
  </table>
	<div class="buttonrow">
		<input value="Valider Votre Inscription" tabindex="31"  style="height: 30px; width: 170px;" name="envoiForm" type="submit">
	</div>
  </form>
</div>
</td>
</tr>
</table>

</div>
<div style="text-align:left;border: 0px; width: 900px; margin: auto;font-size:14px;"><a name="recu">&nbsp;</a>(*) Pour les particuliers, votre don à la French-American Foundation – France bénéficie d’une réduction de l’impôt sur le revenu égale à 66% de son montant dans les limites de 20% de votre revenu imposable.
Si ce plafond est dépassé, l’excédent peut être reporté sur les cinq années suivantes.<br />
Pour les entreprises, 60% de votre don est déductible de l’impôt sur les sociétés dans la limite de 5 ‰ de votre chiffre d’affaire H.T.<br />
La French-American Foundation – France vous remercie de votre générosité et de votre soutien à ses projets.</div>
</body>
</html>