%PDF- %PDF-
Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/ |
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/p-inscription_ngo.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); error_reporting(0); ini_set('display_errors', 0); //edition en cours $db = new BaseOps; if(isset($_POST['post']) && $_POST['post'] == 1) { $db = new BaseOps; $erreur = "ok"; require_once('inc/recaptchalib.php'); $privatekey = "6Lcu3usSAAAAAPDMa65Bw5BVAiaojm5llY637Q4e"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { $erreur = $trad->t("captcha",'inscription',$lang->getlang()); } else { $erreur = "ok"; } if($erreur == "ok") $erreur = $db->verif($_POST['community_name'], $trad->t("Name of the NGO",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['country'],$trad->t("Country",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['population'], $trad->t("Population",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['description'], $trad->t("Description",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['lastname'], $trad->t("lastname",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['firstname'], $trad->t("firstname",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = verifie_email($_POST['email_contact'], false, false, $lang->getlang()); if($erreur == "ok") $erreur = verifie_email($_POST['email'], false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['email_contact'], $trad->t("insc_emailcontact",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['postcode'], $trad->t("Postcode",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['ville'], $trad->t("City",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") $erreur = $db->verif($_POST['email'], $trad->t("Contact email",'inscription',$lang->getlang()), false, false, $lang->getlang()); if($erreur == "ok") { $mail=""; $mail.=$trad->t("E-mail address",'inscription',$lang->getlang())." : ".$_POST['email'].'<br/>'; $mail.=$trad->t("Name of the authority",'inscription',$lang->getlang())." : ".$_POST['community_name'].'<br/>'; $mail.=$trad->t("Address",'inscription',$lang->getlang())." : ".$_POST['address'].'<br/>'; $mail.=$trad->t("Postcode",'inscription',$lang->getlang())." : ".$_POST['postcode'].'<br/>'; $mail.=$trad->t("City",'inscription',$lang->getlang())." : ".$_POST['ville'].'<br/>'; $mail.=$trad->t("Country",'inscription',$lang->getlang())." : ".$_POST['country'].'<br/>'; $mail.=$trad->t("Population",'inscription',$lang->getlang())." : ".$_POST['population'].'<br/>'; $mail.=$trad->t("Website",'inscription',$lang->getlang())." : ".$_POST['website'].'<br/><br/>'; $mail.=$trad->t("Description",'inscription',$lang->getlang())." : ".$_POST['description'].'<br/><br/>'; $mail.=$trad->t("Questions :",'inscription',$lang->getlang())."<br/><br/>"; $mail.=$_POST['question_1']." : <br/>"; foreach($_POST['reponse_1'] as $reponse1){ $mail.='- '.$reponse1."<br/>"; } if($_POST['reponse21']!=""){ $mail.='- '.$trad->t("other, please specify :",'inscription',$lang->getlang()).' : '.$_POST['reponse21']."<br/>"; } $mail.=$_POST['question_2']." : <br/>"; foreach($_POST['reponse_2'] as $key=>$reponse1){ $mail.='- '.$reponse1."<br/>"; } if($_POST['reponse2_txt_1']!=""){ $mail.='- '.$trad->t("ministries (which ones)? ",'inscription',$lang->getlang())." : ".$_POST['reponse2_txt_1']."<br/>"; } if($_POST['reponse2_txt_2']!=""){ $mail.='- '.$trad->t("other, please specify :",'inscription',$lang->getlang())." : ".$_POST['reponse2_txt_2']."<br/>"; } $mail.=$_POST['question_3']." <br/>"; $mail.='- '.$_POST['reponse_3']." : <br/>"; $mail.=$_POST['question_4']." <br/>"; $mail.='- '.$_POST['reponse_4']." : <br/>"; $mail.=$_POST['question_5']." <br/>"; $mail.='- '.$_POST['reponse_5']." : <br/>"; $mail.='<br/><br/>Contact<br/><br/>'; $mail.=$_POST['title']." ".$_POST['firstname']." ".$_POST['lastname']."<br/>"; $mail.=$trad->t("Official position",'inscription',$lang->getlang())." : ".$_POST['position'].'<br/>'; $mail.=$trad->t("Organisational unit",'inscription',$lang->getlang())." : ".$_POST['organisation'].'<br/>'; $mail.=$trad->t("Working language",'inscription',$lang->getlang())." : ".$_POST['lang'].'<br/>'; $mail.=$trad->t("E-mail address",'inscription',$lang->getlang())." : ".$_POST['email_contact'].'<br/>'; $mail.=$trad->t("Telephone number",'inscription',$lang->getlang())." : ".$_POST['phone'].'<br/>'; $mail.=$trad->t("Postal address",'inscription',$lang->getlang())." : ".$_POST['contact_address'].'<br/>'; $headers= "From: ".$email_noreply."\n"; $headers.='Content-type: text/html; charset=utf-8'; mail("alliance@coe.int", "Inscription - NGO", " <html> <head> <title>Inscription - NGO</title> </head> <body> <br> ".$mail." </body> </html>" , $headers); $yes = true; //header("Location:inscription-".$_POST['email'].".html"); //exit(0); } else { $err = true; } } $main2 = true; //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>Inscription - ".$info_titresite."</title>\n"; //affichage du header include("theme/header.php"); //colonne de droite if(!isset($_POST['lang'])) $_POST['lang'] = $lang->getlang(); ?> <!--<div id="filariane"> <a href="/" style="background-color: #<?php echo $cat['couleur']; ?>" class="link"><?php echo $cat['titre']; ?></a> <?php if($cat['type'] != 0) { ?><a href="<?php echo $pagesec; ?>" style="background-color: #<?php echo $cat['couleur']; ?>" class="link"><?php echo $sec['titre']; ?></a><?php } ?> <div class="link"><?php echo $actu['titre']; ?></div> </div>--> <div class="text"> <h2 class="acttitre"><?=$trad->t("Request cooperation with the Alliance as NGO",'inscription',$lang->getlang()) ?></h2> <?php if($err) { echo "<p class=\"erreurbloc\">".$erreur."</p>"; } if($yes) { echo '<p class="infobloc">'.$trad->t("Thank you for your information and for registering to become an Alliance participant!",'inscription',$lang->getlang())."</p>"; } ?> <div class="bloctexte"><?=$trad->t("libreins_ngo",'inscription',$lang->getlang());?></div> <div style="clear:both"></div> <div class="inscription"> <div id="form_profil_2" class="form_profil"> <form id="insc_form" method="post" action="<?=$lang->getlang();?>/inscription_ngo.html?type=1"><input type="hidden" name="type" value="1" /> <input type="hidden" name="type" value="1" /> <div class="title"><h3><?=$trad->t("Please enter an e-mail address to be used as your login.",'inscription',$lang->getlang());?></h3></div> <div class="ligne"> <div class="label"><label for="email"><?=$trad->t("ins_email",'inscription',$lang->getlang());?></label> <span class="etoile">*</span></div> <div class="field"><input type="text" name="email" value="<?=$_POST['email']?>" /></div> </div> <div class="title"><h3><?=$trad->t("Your NGO",'inscription',$lang->getlang());?></h3></div> <div class="ligne"> <div class="label"><label for="community_name"><?=$trad->t("Name of the NGO",'inscription',$lang->getlang());?> <span class="etoile">*</span></label></div> <div class="field"><input type="text" name="community_name" value="<?=$_POST['community_name']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="address"><?=$trad->t("Address",'inscription',$lang->getlang()) ?></label></div> <div class="field"><input type="text" name="address" value="<?=$_POST['address']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="postcode"><?=$trad->t("Postcode",'inscription',$lang->getlang()) ?> <span class="etoile">*</span></label></div> <div class="field"><input type="text" name="postcode" value="<?=$_POST['postcode']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="ville"><?=$trad->t("City",'inscription',$lang->getlang()) ?> <span class="etoile">*</span></label></div> <div class="field"><input type="text" name="ville" value="<?=$_POST['ville']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="country"><?=$trad->t("Country",'inscription',$lang->getlang()) ?> <span class="etoile">*</span></label></div> <div class="field2"> <select name="country"> <?=$pays->getCountry($lang->getlangid(),$_POST['country'])?> </select> </div> </div> <div class="ligne"> <div class="label"><label for="population"><?=$trad->t("Population",'inscription',$lang->getlang()) ?> <span class="etoile">*</span></label></div> <div class="field"><input type="text" name="population" value="<?=$_POST['population']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="website"><?=$trad->t("Website",'inscription',$lang->getlang()) ?></label></div> <div class="field"><input type="text" name="website" value="<?=$_POST['website']?>" /></div> </div> <div class="ligne2"> <div class="label_full"><label for="description"><?=$trad->t("Description of your NGO/Association (1500 char. max) ",'inscription',$lang->getlang());?> <span class="etoile">*</span></label></div> </div> <div class="field"><textarea name="description" class="bloctexte mb10" size="5"><?=$_POST['description']?></textarea></div> <div class='ligne2'> <div class='label_full'> <?=$trad->t("How did you learn about the Alliance?",'inscription',$lang->getlang());?> <input type="hidden" name="question_1" value="<?=$trad->t("How did you find learn the Alliance?",'inscription',$lang->getlang());?>" /> </div> </div> <div class="bloctexte mb10"> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_1[]" value="<?=$trad->t("through the Congress of Local and Regional Authorities of the Council of Europe",'inscription',$lang->getlang());?>" /> <?=$trad->t("through the Congress of Local and Regional Authorities of the Council of Europe",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_1[]" value="<?=$trad->t("through a national/European association and/or network",'inscription',$lang->getlang());?>" /> <?=$trad->t("through a national/European association and/or network",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_1[]" value="<?=$trad->t("through the internet",'inscription',$lang->getlang());?>" /> <?=$trad->t("through the internet",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_1[]" value="<?=$trad->t("through a local/regional authority",'inscription',$lang->getlang());?>" /> <?=$trad->t("through a local/regional authority",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_1[]" value="<?=$trad->t("other, please specify:",'inscription',$lang->getlang());?>" /> <?=$trad->t("other, please specify:",'inscription',$lang->getlang());?> <input type="text" class="questionlibre" name="response_21" /> </div> </div> </div> <div class='ligne2'> <div class='label_full'> <?=$trad->t("Which Roma-related activities does your NGO implement?",'inscription',$lang->getlang());?> <input type="hidden" name="question_3" value="<?=$trad->t("Which Roma-related activities does your NGO implement?",'inscription',$lang->getlang());?>" /> </div> </div> <div class="bloctexte mb10"> <div class="field_full"> <input name="reponse_3" value="<?=$_POST['reponse_3']?>"> </div> </div> <div class='ligne2'> <div class='label_full'> <?=$trad->t("Does your organisation cooperate with other organisations/bodies involved in activities for Roma inclusion?",'inscription',$lang->getlang());?> <input type="hidden" name="question_2" value="<?=$trad->t("Does your organisation cooperate with other organisations/bodies involved in activities for Roma inclusion?",'inscription',$lang->getlang());?>" /> </div> </div> <div class="bloctexte mb10"> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_2[]" value="<?=$trad->t("NGOs/associations",'inscription',$lang->getlang());?>" /> <?=$trad->t("NGOs/associations",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_2[]" value="<?=$trad->t("ministries (which ones)? ",'inscription',$lang->getlang());?>" /> <?=$trad->t("ministries (which ones)? ",'inscription',$lang->getlang());?> <input type="text" class="questionlibre" name="reponse2_txt_1" /> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_2[]" value="<?=$trad->t("local/regional authorities",'inscription',$lang->getlang());?>" /> <?=$trad->t("local/regional authorities",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_2[]" value="<?=$trad->t("media",'inscription',$lang->getlang());?>" /> <?=$trad->t("media",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_2[]" value="<?=$trad->t("schools",'inscription',$lang->getlang());?>" /> <?=$trad->t("schools",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_2[]" value="<?=$trad->t("private sector",'inscription',$lang->getlang());?>" /> <?=$trad->t("private sector",'inscription',$lang->getlang());?> </div> </div> <div class="ligne"> <div class="check_full"> <input type="checkbox" name="reponse_2[]" value="<?=$trad->t("other, please list :",'inscription',$lang->getlang());?>" /> <?=$trad->t("other, please list :",'inscription',$lang->getlang());?><input type="text" class="questionlibre" name="reponse2_txt_5" /> </div> </div> </div> <div class='ligne2'> <div class='label_full'> <?=$trad->t("How does your NGOs finance its activities for Roma inclusion? Please specify the source(s) of funding.",'inscription',$lang->getlang());?> <input type="hidden" name="question_4" value="<?=$trad->t("How does your NGOs finance its activities for Roma inclusion? Please specify the source(s) of funding.",'inscription',$lang->getlang());?>" /> </div> </div> <div class="bloctexte mb10"> <div class="field_full"> <input name="reponse_4" value="<?=$_POST['reponse_4']?>"> </div> </div> <div class='ligne2'> <div class='label_full'> <?=$trad->t("Please summarise the support needed by your NGOs from the Alliance and/proposal for cooperation.",'inscription',$lang->getlang());?> <input type="hidden" name="question_5" value="<?=$trad->t("Please summarise the support needed by your NGOs from the Alliance and/proposal for cooperation.",'inscription',$lang->getlang());?>" /> </div> </div> <div class="bloctexte mb10"> <div class="field_full"><input name="reponse_5" value="<?=$_POST['reponse_5']?>"></div> </div> <div class="title"><h3><?=$trad->t("Please indicate below a contact person of your NGO for the Alliance:",'inscription',$lang->getlang());?></h3></div> <div class="ligne"> <div class="label"><?=$trad->t("Title",'inscription',$lang->getlang());?> <span class="etoile">*</span></div> <div class="check"><input type="radio" name="civility" <?php if ($_POST['civility'] == lang("Mrs.")) echo 'checked="checked"'; ?> value="<?=$trad->t("Mrs.") ?>"/> <?=$trad->t("Mrs.") ?> <input type="radio" name="civility" <?php if ($_POST['civility'] == lang("Mr.")) echo 'checked="checked"'; ?> value="<?=$trad->t("Mr.") ?>"/> <?=$trad->t("Mr.") ?></div> </div> <div class="ligne"> <div class="label"><label for="lastname"><?=$trad->t("Last name",'inscription',$lang->getlang());?></label> <span class="etoile">*</span></div> <div class="field"><input type="text" name="lastname" value="<?=$_POST['lastname']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="firstname"><?=$trad->t("First name",'inscription',$lang->getlang());?></label> <span class="etoile">*</span></div> <div class="field"><input type="text" name="firstname" value="<?=$_POST['firstname']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="position"><?=$trad->t("Official position",'inscription',$lang->getlang());?></label> <span class="etoile">*</span></div> <div class="field"><input type="text" name="position" value="<?=$_POST['position']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="unit"><?=$trad->t("Organisational unit",'inscription',$lang->getlang());?></label> <span class="etoile">*</span></div> <div class="field"><input type="text" name="unit" value="<?=$_POST['unit']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="lang"><?=$trad->t("Working language",'inscription',$lang->getlang());?></label> <span class="etoile">*</span></div> <div class="check"> <input type="radio" class="radio" id="lang1" <?php if($_POST['lang'] == 1) echo 'checked="checked"'; ?> name="lang" value="1"> <label for="lang1"><?=$trad->t("fr",'inscription',$lang->getlang()) ?></label> <input type="radio" class="radio" id="lang0" <?php if($_POST['lang'] == 2) echo 'checked="checked"'; ?> name="lang" value="2"> <label for="lang0"><?=$trad->t("en",'inscription',$lang->getlang()) ?></label> </div> </div> <div class="ligne"> <div class="label"><label for="email_contact"><?=$trad->t("E-mail address",'inscription',$lang->getlang());?></label> <span class="etoile">*</span></div> <div class="field"><input type="text" name="email_contact" value="<?=$_POST['email_contact']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="phone"><?=$trad->t("Telephone number",'inscription',$lang->getlang());?></label></div> <div class="field"><input type="text" name="phone" value="<?=$_POST['phone']?>" /></div> </div> <div class="ligne"> <div class="label"><label for="contact_address"><?=$trad->t("Postal address",'inscription',$lang->getlang());?></label></div> <div class="field"><input type="text" name="contact_address" value="<?=$_POST['contact_address']?>" /></div> </div> <div class="form_bouton"> <div class="namefield" style="height: 1px; overflow: hidden; visibility: hidden;"><input type="text" value="" name="name" /></div> <div class="captchabox" style="width: 318px; margin: auto; margin-bottom: 20px;"> <div class="captcha"> <?php require_once('inc/recaptchalib.php'); $publickey = "6Lcu3usSAAAAAEuz0bVvICxY985mmwjofcLf7g0m"; // you got this from the signup page echo recaptcha_get_html($publickey); ?> </div> </div> <input type="hidden" value="1" name="post"> <input id="maj_bouton" class="bouton_form" type="submit" value="<?=$trad->t("Register your NGO") ?>"> </div> </form> </div> </div> <?php //affichage du footer include("theme/footer.php"); ?>