-
Notifications
You must be signed in to change notification settings - Fork 0
/
legalPerson.php
executable file
·1491 lines (1188 loc) · 61.6 KB
/
legalPerson.php
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
echo'
<!DOCTYPE html>
<html>
<head>
<script src="resources/jquery/jquery.min.js"></script>';
include 'p_head.php';
$type_form=1;
if (isset($_GET['adh']) && $_GET['adh']==1){
$type_form=0;
}
makeHead($type_form);
$payload = file_get_contents('https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/eurofxref-graph-chf.en.html');
preg_match_all("/rateLatest='([0-9.]*)'/", $payload, $out, PREG_PATTERN_ORDER);
$rate=$out[1][0];
preg_match_all("/rateLatestInverse='([0-9.]*)'/", $payload, $out, PREG_PATTERN_ORDER);
$rateInverse=$out[1][0];
echo'
<script>
var type_form ='. $type_form.';
window.onload = function() {
const myInput = document.getElementById("mailconf");
myInput.onpaste = function(e) {
e.preventDefault();
}
}
function setTypeForm(type_f){
if (type_f==0){
document.getElementById("title").innerHTML="Adhésion à Monnaie Léman";
document.getElementById("tot_step").innerHTML=2;
document.getElementById("adh_next").style.display="None";
document.getElementById("adh_sub").style.display="inline-block";
document.getElementById("fld_cr_acc").style.display="inline-block";
document.getElementById("fld_ce").style.display="block";
document.getElementById("fld_att").style.display="inline-block";
document.getElementById("att").checked = false;
document.getElementById("lb_ad_ass").innerHTML="Confirmation de votre demande d’adhésion?*";
document.getElementById("curr_sel").style.display="None";
} else {
document.getElementById("title").innerHTML="VOS DONNÉES";
document.getElementById("tot_step").innerHTML=4;
document.getElementById("adh_next").style.display="inline-block";
document.getElementById("adh_sub").style.display="None";
document.getElementById("fld_ce").style.display="None";
document.getElementById("fld_att").style.display="None";
document.getElementById("lb_ad_ass").innerHTML="Voulez-vous adhérer à l\'association Monnaie Léman?*";
document.getElementById("curr_sel").style.display="inline-block";
}
}
function changeType(){
setTypeForm(document.getElementById("cr_acc").value);
}
function showSection(section_id){
var sections = ["sect_ip","sect_add","sect_fin","sect_sign"]
for (var i=0; i<sections.length; i++){
document.getElementById(sections[i]).style.display="None";
}
document.getElementById(section_id).style.display="inline-block";
for (var i=0; i<sections.length; i++){
if (sections[i]==section_id){
document.getElementById("step").innerHTML=""+(i+1);
}
}
}
function togelPostal(){
if (document.forms["form"]["postalAsLegal"].checked==1){
document.getElementById("blk_add_postal").style.display="None";
} else {
document.getElementById("blk_add_postal").style.display="block";
}
}
function adjustCurrency(){
var country = document.forms["form"]["country"].value;
if (country=="France"){
document.getElementById("chx_curr_eur").checked = true;
} else if (country=="Suisse"){
document.getElementById("chx_curr_chf").checked = true;
} else {
document.getElementById("chx_curr_chf").checked = true;
document.getElementById("chx_curr_chf").checked = false;
}
}
function computeCotisation(){
var country = document.forms["form"]["country"].value;
var etp = parseInt(document.forms["form"]["ETP"].value);
var currency = document.forms["form"]["chx_curr"].value;
var amount_ch=0;
var amount_fr=0;
var amount_ch_changed=0;
var amount_fr_changed=0;';
foreach ($cotisation_e_ch as $etp => $value){
echo'
if (etp>='.$etp.'){
amount_ch = '.number_format($value, 2, '.', '').';
amount_fr_changed = '.number_format(eur_from_chf($value, $rateInverse), 2, '.', '').';
}
';
}
foreach ($cotisation_e_fr as $etp => $value){
echo'
if (etp>='.$etp.'){
amount_fr = '.number_format($value, 2, '.', '').';
amount_ch_changed = '.number_format(chf_from_eur($value, $rate), 2, '.', '').';
}
';
}
echo'
if (country=="France"){
document.getElementById("cot_amount").innerHTML="EUR "+amount_fr;
document.getElementById("cot_amount_3").innerHTML=amount_ch_changed;
document.getElementById("cot_amount_5").innerHTML=amount_fr;
document.getElementById("coo_ch").style.display="None";
document.getElementById("coo_fr").style.display="inline-block";
if (currency == "CHF") {
document.getElementById("ad_fr_ep").style.display="None";
document.getElementById("ad_ch_ep").style.display="inline-block";
} else {
document.getElementById("ad_ch_ep").style.display="None";
document.getElementById("ad_fr_ep").style.display="inline-block";
}
} else { // Suisse
document.getElementById("cot_amount").innerHTML="CHF "+amount_ch;
document.getElementById("cot_amount_3").innerHTML=amount_ch;
document.getElementById("cot_amount_5").innerHTML=amount_fr_changed;
document.getElementById("coo_fr").style.display="None";
document.getElementById("coo_ch").style.display="inline-block";
if (currency == "EUR") {
document.getElementById("ad_ch_ep").style.display="None";
document.getElementById("ad_fr_ep").style.display="inline-block";
} else {
document.getElementById("ad_fr_ep").style.display="None";
document.getElementById("ad_ch_ep").style.display="inline-block";
}
}
if (currency == "CHF") {
document.getElementById("curr_ret").innerHTML="LEM-CHF pourront être remboursées en francs suisses";
} else if (currency == "EUR") {
document.getElementById("curr_ret").innerHTML="LEM-EUR pourront être remboursées en euros";
} else {
document.getElementById("curr_ret").innerHTML="LEM-CHF pourront être remboursées en francs suisses et les LEM-EUR en euros";
}
let need_finma = country=="Suisse" || currency == "CHF" || currency == "BOTH";
document.getElementById("tt_finma").style.display = need_finma ? "inline" : "none";
document.getElementById("conf_finma").style.display = need_finma ? "inline" : "none";
document.getElementById("cond_acc").style.display = need_finma ? "inline" : "none";
document.getElementById("souscris").style.display = need_finma ? "inline" : "none";
document.getElementById("pas_souscris").style.display = need_finma ? "none" : "inline";
document.getElementById("lu_app").style.display = need_finma ? "inline-block" : "none";
document.getElementById("cond").checked = !need_finma;
document.getElementById("eng_item").style.display = need_finma ? "inline-block" : "none";
document.getElementById("eng").checked = !need_finma;
// CGU
let need_CH_CGU = country== "Suisse" || currency == "BOTH" || currency == "CHF";
let need_FR_CGU = country== "France" || currency == "BOTH" || currency == "EUR";
let need_both_CGU = need_CH_CGU && need_FR_CGU;
document.getElementById("cgu_ch").style.display = need_CH_CGU ? "inline" : "none";
document.getElementById("cgu_fr").style.display = need_FR_CGU ? "inline" : "none";
document.getElementById("cgu_both").style.display = need_both_CGU ? "inline" : "none";
document.getElementById("cgu_ch_name").style.display = need_both_CGU ? "inline" : "none";
document.getElementById("cgu_fr_name").style.display = need_both_CGU ? "inline" : "none";
}
function validateSectionInfo(){
var valid = true;
var fields = ["name","contact","ContactSurname","cont_gender","kind","created_on","fieldActivity","activityDesc","ETP","mail","phone","street","zip","city","country"];
for (var i=0; i<fields.length; i++){
var label = document.getElementById("lb_"+fields[i]);
var x = document.forms["form"][fields[i]].value;
if (x == "") {
label.classList.add("missing");
valid=false;
} else {
label.classList.remove("missing");
}
}
fields = ["p_street","p_zip","p_city","p_country"];
var to_validate = document.forms["form"]["postalAsLegal"].checked!=1;
for (var i=0; i<fields.length; i++){
var label = document.getElementById("lb_"+fields[i]);
var x = document.forms["form"][fields[i]].value;
if (to_validate && x == "") {
label.classList.add("missing");
valid=false;
} else {
label.classList.remove("missing");
}
}
if (document.forms["form"]["mail"].value != document.forms["form"]["mailconf"].value){
document.getElementById("lb_mailconf").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_mailconf").classList.remove("missing");
}
if (type_form==1) {
if (document.forms["form"]["chx_curr"].value != ""){
document.getElementById("lb_chx_curr").classList.remove("missing");
} else {
document.getElementById("lb_chx_curr").classList.add("missing");
valid=false;
}
}
return valid;
}
function validateSectionAdd(){
var valid = true;
var label_adh = document.getElementById("lb_ad_ass");
var adh_ass = document.forms["form"]["ad_ass"].value;
if (adh_ass == "") {
label_adh.classList.add("missing");
valid=false;
} else {
label_adh.classList.remove("missing");
}
label = document.getElementById("lb_cr_acc");
var create_account = document.forms["form"]["cr_acc"].value;
if (create_account == "") {
label.classList.add("missing");
valid=false;
} else {
label.classList.remove("missing");
}
if (create_account!=1){
if (adh_ass != "Oui") {
label_adh.classList.add("missing");
valid=false;
} else {
label_adh.classList.remove("missing");
}
if (document.forms["form"]["att_0"].checked!=1){
document.getElementById("lb_att_0").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_att_0").classList.remove("missing");
}
if (document.forms["form"]["ce_0"].checked!=1){
document.getElementById("lb_ce_0").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_ce_0").classList.remove("missing");
}
}
if (document.forms["form"]["data"].checked!=1){
document.getElementById("lb_data").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_data").classList.remove("missing");
}
return valid;
}
var aed_number=1;
function showAed(id){
for (var i=1; i<5;i++){
document.getElementById("aed_"+i+"_other").style.display="none";
document.getElementById("btn_aed"+i).classList.remove("selected");
}
document.getElementById("aed_"+id+"_other").style.display="block";
document.getElementById("btn_aed"+id).classList.add("selected");
}
function addAed(){
if (aed_number<4){
aed_number+=1;
document.getElementById("btn_aed"+aed_number).style.display="inline-block";
showAed(aed_number);
}
if (aed_number>=4){
document.getElementById("btn_aedadd").style.display="none";
}
}
var st_number=1;
function showSt(id){
for (var i=1; i<5;i++){
document.getElementById("st_"+i+"_other").style.display="none";
document.getElementById("btn_st"+i).classList.remove("selected");
}
document.getElementById("st_"+id+"_other").style.display="block";
document.getElementById("btn_st"+id).classList.add("selected");
}
function addSt(){
if (st_number<4){
st_number+=1;
document.getElementById("btn_st"+st_number).style.display="inline-block";
showSt(st_number);
}
if (st_number>=4){
document.getElementById("btn_stadd").style.display="none";
}
}
function togleAed(){
var x = document.forms["form"]["aed_dec"].value;
document.getElementById("aed_other").style.display=x=="Autre"?"block":"none";
}
function toglePA(){
var x = document.forms["form"]["pa_dec"].value;
document.getElementById("pa_other").style.display=x==1?"block":"none";
}
function validateSectionFin(){
var valid = true;
var fields = ["pep","peprel","aed_dec"];
for (var i=0; i<fields.length; i++){
var label = document.getElementById("lb_"+fields[i]);
var x = document.forms["form"][fields[i]].value;
if (x == "") {
label.classList.add("missing");
valid=false;
} else {
label.classList.remove("missing");
}
}
if (document.forms["form"]["cond"].checked!=1){
document.getElementById("lb_cond").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_cond").classList.remove("missing");
}
for (var st_id =1;st_id<5;st_id++){
valid_st=true;
var to_validate = document.forms["form"]["st_"+st_id+"_name"].value!="";
fields = ["st_"+st_id+"_surname","st_"+st_id+"_add","st_"+st_id+"_born","st_"+st_id+"_zip","st_"+st_id+"_city","st_"+st_id+"_country","st_"+st_id+"_cit"];
for (var i=0; i<fields.length; i++){
var label = document.getElementById("lb_"+fields[i]);
var x = document.forms["form"][fields[i]].value;
if (to_validate && x == "") {
label.classList.add("missing");
valid=false;
valid_st=false;
} else {
label.classList.remove("missing");
if (!to_validate){
document.forms["form"][fields[i]].value="";
}
}
}
if (valid_st){
document.getElementById("btn_st"+st_id).classList.remove("missing")
} else {
document.getElementById("btn_st"+st_id).classList.add("missing")
}
}
if (document.forms["form"]["aed_dec"].value=="Autre"){
var valid_aed=true;
fields = ["aed_1_name","aed_1_surname","aed_1_add", "aed_1_zip", "aed_1_city", "aed_1_country", "aed_1_born","aed_1_cit"];
for (var i=0; i<fields.length; i++){
var label = document.getElementById("lb_"+fields[i]);
var x = document.forms["form"][fields[i]].value;
if (x == "") {
label.classList.add("missing");
valid=false;
valid_aed=false;
} else {
label.classList.remove("missing");
}
}
if (valid_aed){
document.getElementById("btn_aed1").classList.remove("missing")
} else {
document.getElementById("btn_aed1").classList.add("missing")
}
for (var aed_id =2;aed_id<5;aed_id++){
valid_aed=true;
var to_validate = document.forms["form"]["aed_"+aed_id+"_name"].value!="";
fields = ["aed_"+aed_id+"_surname","aed_"+aed_id+"_add","aed_"+aed_id+"_zip","aed_"+aed_id+"_city","aed_"+aed_id+"_country","aed_"+aed_id+"_born","aed_"+aed_id+"_cit"];
for (var i=0; i<fields.length; i++){
var label = document.getElementById("lb_"+fields[i]);
var x = document.forms["form"][fields[i]].value;
if (to_validate && x == "") {
label.classList.add("missing");
valid=false;
valid_aed=false;
} else {
label.classList.remove("missing");
if (!to_validate){
document.forms["form"][fields[i]].value="";
}
}
}
if (valid_aed){
document.getElementById("btn_aed"+aed_id).classList.remove("missing")
} else {
document.getElementById("btn_aed"+aed_id).classList.add("missing")
}
}
}
return valid;
}
function validateSectionDoc(){
var valid = true;
var fields = ["cgu","ce","eng","att"];
for (var i=0; i<fields.length; i++){
var name = "lb_"+fields[i]
var label = document.getElementById(name);
if (document.forms["form"][fields[i]].checked!=1){
label.classList.add("missing");
valid=false;
} else {
label.classList.remove("missing");
}
}
if (document.forms["form"]["img_c1"].value==""){
document.getElementById("lb_img_c").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_img_c").classList.remove("missing");
}
/*
if (document.forms["form"]["img_ef1"].value==""){
document.getElementById("lb_img_ef").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_img_ef").classList.remove("missing");
}
if (document.forms["form"]["img_r1"].value==""){
document.getElementById("lb_img_r").classList.add("missing");
valid=false;
} else {
document.getElementById("lb_img_r").classList.remove("missing");
}
*/
return valid;
}
</script>
</head>
<body>';
echo '
<span class="fond"></span>
<span class="cont">
<a class="logo" href="http://monnaie-leman.org/"><img src="css/image/logo.png" width="160px"/></a>
<h2><span id="title">Léman électronique: VOS DONNÉES</span> - Entreprise (étape <span id="step">1</span>/<span id="tot_step">5</span>)</h2>';
echo '
<span class="cont_d" >
<form id="form" enctype="multipart/form-data" action="./submitLegal.php" method="post">
<div id="sect_ip">
<h3> Informations générales </h3>
<span class="fitem">
<span class="label" id="lb_name">Nom légal de la société*</span>
<input class="inputText" type="text" id ="name" name="name" value="" placeholder="Nom de la société*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_RefName">Nom de l’entreprise à géoréférencer (si différente)</span>
<textarea class="inputText" maxlength="255" name="RefName" placeholder="Nom de l’entreprise à géoréférencer (si différente)"/></textarea><br/>
</span>
<span class="fitem">
<span class="label" >Personne de contact:</span><br/>
<span class="label" id="lb_cont_gender"> Civilité*</span>
<select class="inputText" name="cont_gender" id ="cont_gender" >
<option value =""></option>
<option value ="Feminin">Mme</option>
<option value ="Masculin">M.</option>
<option value ="Autre">Autre</option>
</select><br/>
</span>
<span class="fitem">
<span class="label" id="lb_contact" > Nom*</span>
<input class="inputText" type="text" id ="contact" name="contact" value="" placeholder="Personne de contact: Nom*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_ContactSurname" >Prénom*</span>
<input class="inputText" type="text" id ="ContactSurname" name="ContactSurname" value="" placeholder="Personne de contact: Prénom*" required="required"/><br/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_kind" >Statut juridique*</span>
<select class="inputText" name="kind" id ="kind" >
'.$status_juridique.'
</select>
<br/>
</span>
<span class="fitem">
<span class="label" id="lb_created_on">Date de création*</span>
<input class="datechk inputText" type="date" id="created_on" name="created_on" value="" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_fieldActivity" >Secteur d’activité*</span>
<select class="inputText" name="fieldActivity" id ="fieldActivity" >
'.$activity_sector.'
</select><br/>
</span>
<span class="fitem">
<span class="label" id="lb_ActivityFieldSeg" >Secteur d’activité suppl.</span>
<select class="inputText" name="ActivityFieldSeg" id ="ActivityFieldSeg" >
'.$activity_sector.'
</select><br/>
</span>
<span class="fitem">
<span class="label" id="lb_activityDesc" >Description de l’activité*</span>
<textarea class="inputText" maxlength="255" name="activityDesc" placeholder="Description de l’activité*"/></textarea><br/>
</span>
<span class="fitem">
<span class="label" id="lb_ETP" >Nombre d’employés (ETP)*</span>
<input class="inputText" onchange="computeCotisation()" min="0" step="0.05" type="number" id ="ETP" name="ETP" value="" placeholder="Nombre d’employés (ETP)*" required="required" on/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_mail">Email*</span>
<input class="inputText" type="email" id="mail" name="mail" value="" placeholder="Email*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_mailconf">Email (confirmation)*</span>
<input class="inputText" type="email" id="mailconf" name="mailconf" value="" placeholder="Email (confirmation)*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_phone">Téléphone*</span>
<input class="inputText" type="tel" id="phone" name="phone" value="" placeholder="+41 22 123 45 67 / +33 6 77 77 88 99" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_www">Site internet</span>
<input class="inputText" type="tel" id="www" name="www" value="" placeholder="https://www.monsite.com" /><br/>
</span>
<h3> Adresse légale </h3>
<span class="fitem">
<span class="label" id="lb_street">Rue et numéro*</span>
<input class="inputText" type="text" id="street" name="street" value="" placeholder="Rue et numéro*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" >Complément d\'adresse</span>
<input class="inputText" type="text" id="compl" name="compl" value="" placeholder="Complément d\'adresse" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_zip">Code postal*</span>
<input class="inputText" type="text" id="zip" name="zip" value="" placeholder="Code postal*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_city">Ville*</span>
<input class="inputText" type="text" id="city" name="city" value="" placeholder="Ville*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_country">Pays*</span>
<select class="inputText" name="country" id ="country" onChange="adjustCurrency();computeCotisation();" >
'.$restricted_country.'
</select><br/>
</span>
<h3> Adresse postale </h3>
<span class="fitem">
<input class="inputCb" type="checkbox" id="postalAsLegal" name="postalAsLegal" value="1" checked="checked" onClick="togelPostal()"/>
<span class="labelCb">Adresse postale identique à l\'adresse légale</span><br/>
</span>
<span id="blk_add_postal" style="display:none" >
<span class="fitem">
<span class="label" id="lb_p_street">Rue et numéro*</span>
<input class="inputText" type="text" id="p_street" name="p_street" value="" placeholder="Rue et numéro*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" >Complément d\'adresse</span>
<input class="inputText" type="text" id="p_compl" name="p_compl" value="" placeholder="Complément d\'adresse" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_p_zip">Code postal*</span>
<input class="inputText" type="text" id="p_zip" name="p_zip" value="" placeholder="Code postal*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_p_city">Ville*</span>
<input class="inputText" type="text" id="p_city" name="p_city" value="" placeholder="Ville*" required="required"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_p_country">Pays*</span>
<select class="inputText" name="p_country" id ="p_country" >
'.$restricted_country.'
</select><br/>
</span>
</span>
<span id="curr_sel">
<h3> J\'ouvre </h3>
<span class="label" id="lb_chx_curr">un compte*</span>
<span class="rb3">
<input type="radio" id="chx_curr_chf" name="chx_curr" value="CHF" onchange="computeCotisation();"> LEM-CHF
</span>
<span class="rb3">
<input type="radio" id="chx_curr_eur" name="chx_curr" value="EUR" onchange="computeCotisation();"> LEM-EUR
</span><br/>
<span class="label"> deux comptes</span>
<span class="rb3">
<input type="radio" id="chx_curr_both" name="chx_curr" value="BOTH" onchange="computeCotisation();"> LEM-CHF et LEM-EUR
</span>
</span> <br/>
<a class="button" onclick="if (validateSectionInfo()){showSection(\'sect_add\');}">Suivant</a>
</div>
<div id="sect_add" style="display:none" >
<h3> Adhésion à l\'association Monnaie Léman </h3>
<span class="txtWide">L\'association Monnaie Léman gère et promeut l\'utilisation de la monnaie complémentaire le Léman.<br/>
En tant qu\'entreprise vous devez adhérer à l\'association pour pouvoir faire partie du réseau et utiliser le Léman (papier et électronique). <br/> <br/>
Avec ce compte, vous bénéficiez:<ul>
<li>d‘une ligne de dépenses en fonction de la taille de votre entreprise; </li>
<li>sans taux d’intérêt, sans échéance ni terme de remboursement;</li>
<li>dont les frais de service s’élèvent à: 1% à la charge du vendeur dans le commerce de détail, 0.5% entre deux entreprises pour chacune des 2 parties, 0% d’une entreprise à un particulier (salaire) ou entre deux particuliers.</li>
</ul><br/>
La cotisation annuelle – qui dépend du nombre des personnes employées – se monte dans votre cas, à <span class="strong" id="cot_amount">CHF 50</span>. Elle doit être réglée dans les 30 jours.<br/> <br/>
Les coordonnées bancaires de Monnaie Léman:
</span>
<span class="full" id="coo_ch">
Monnaie Léman - Ch. du 23-Août 1 - 1205 Genève<br/>
Banque Alternative Suisse - IBAN: CH22 0839 0034 3841 1010 0 - BIC: ABSOCH22 <br/>
</span>
<span class="full" id="coo_fr">
Monnaie Léman France - 11A avenue Napoléon III - 74160 Saint-Julien-en-Genevois<br/>
CREDIT COOPERATIF - IBAN: FR76 4255 9100 0008 0258 5486 909 - BIC: CCOPFRPPXXX<br/>
</span><br/>
<span id="ad_fr_ep" class="labelWide" >
Vous pouvez régler votre cotisation en lémans électroniques sur le compte de l’association (clé publique 0x278b77b93134d1e6c5f3d41ca5e04b19ee7d57e8): <span class="strong">eLEM-EUR <span id="cot_amount_5" >50</span></span>.
<br/><br/>
Vous recevrez une facture dans les prochains jours.
<br/>
<br/>
</span>
<span id="ad_ch_ep" class="labelWide" >
Vous pouvez régler votre cotisation en lémans électroniques sur le compte de l’association (clé publique 0x15a18329381cdf1919d51d05834920585066646f): <span class="strong">eLEM-CHF <span id="cot_amount_3" >50</span></span>.
<br/><br/>
Vous recevrez une facture dans les prochains jours.
<br/>
<br/>
</span> ';
if ($type_form==0) {
echo '
<span class="labelWide" id="lb_ad_ass" style="display:none;"></span>
<input type="hidden" id="ad_ass" name="ad_ass" value="Oui" />
<span class="fitem">
<input class="inputCb" style="margin-left: 20px !important;" type="checkbox" id="data" name="data" value="1" required="required"/>
<span class="labelCb" style="width: calc(100% - 80px);" id="lb_data">En remplissant ce formulaire, vous acceptez que l\'on utilise vos données pour vous contacter, ou pour toutes autres utilisations permettant de développer le Léman de façon anonyme sans les communiquer à des tiers.*</span><br/>
</span>
<span class="fitem">
<input class="inputCb" style="margin-left: 20px !important;" type="checkbox" id="news" name="news" value="1" />
<span class="labelCb" style="width: calc(100% - 80px);" >En cochant cette case, je consens à recevoir la newsletter de l’association. </span><br/>
</span>
<span class="fitem" id="fld_ce" style="display:None;">
<input class="inputCb" style="margin-left: 20px !important;" type="checkbox" name="ce_0" value="1" />
<span class="labelCb" style="width: calc(100% - 80px);" id="lb_ce_0">J\'adhère à la "<a target="_blank" href="'.$url_charte.'" class="it ait">Charte éthique du Léman</a>.* </span><br/>
</span>
<span class="fitem" id="fld_att" style="display:None;">
<input class="inputCb" style="margin-left: 20px !important;" type="checkbox" name="att_0" value="1" />
<span class="labelCb" style="width: calc(100% - 80px);" id="lb_att_0">
J’atteste que toutes les informations fournies ci-dessus sont, à ma connaissance, authentiques et exactes, et je m’engage à vous informer sans délai de tout changement.* </span><br/>
</span>
<span class="fitem" id="fld_cr_acc" style="display:None;">
<span class="labelWide" id="lb_cr_acc">Voulez vous aussi ouvrir un compte en Léman électronique?*</span>
<select class="inputText" name="cr_acc" id ="cr_acc" onchange="changeType();" >
<option value =""></option>
<option value ="1">Oui</option>
<option value ="0">Non</option>
</select><br/>
</span>';
} else {
echo '
<span class="labelWide" id="lb_ad_ass">Voulez vous adhérer à l\'association Monnaie-Léman?*</span>
<span class="fitem">
<select class="inputText" name="ad_ass" id ="ad_ass" >
<option value =""></option>
<option value ="Oui">Oui</option>
<option value ="Déjà membre">L\'entreprise est déjà membre</option>
</select><br/>
</span>
<span class="fitem">
<input class="inputCb" style="margin-left: 20px !important;" type="checkbox" id="data" name="data" value="1" required="required"/>
<span class="labelCb" style="width: calc(100% - 80px);" id="lb_data">En remplissant ce formulaire, vous acceptez que l\'on utilise vos données pour vous contacter, ou pour toutes autres utilisations permettant de développer le Léman de façon anonyme sans les communiquer à des tiers.*</span><br/>
</span>
<span class="fitem">
<input class="inputCb" style="margin-left: 20px !important;" type="checkbox" id="news" name="news" value="1" />
<span class="labelCb" style="width: calc(100% - 80px);" >En cochant cette case, je consens à recevoir la newsletter de l’association. </span><br/>
</span>
<span class="fitem" id="fld_ce" style="display:None;">
<input class="inputCb" type="checkbox" name="ce_0" value="1" />
<span class="labelCb" id="lb_ce_0">J\'adhère à la "<a target="_blank" href="'.$url_charte.'" class="it ait">Charte éthique du Léman</a>.* </span><br/>
</span>
<span class="fitem" id="fld_att" style="display:None;">
<input class="inputCb" type="checkbox" name="att_0" value="1" />
<span class="labelCb" id="lb_att_0">
J’atteste que toutes les informations fournies ci-dessus sont, à ma connaissance, authentiques et exactes, et je m’engage à vous informer sans délai de tout changement.* </span><br/>
</span>
<span class="fitem" id="fld_cr_acc" style="display:None;">
<span class="labelWide" id="lb_cr_acc">Voulez vous aussi ouvrir un compte en Léman électronique?*</span>
<select class="inputText" name="cr_acc" id ="cr_acc" onchange="changeType();" >
<option value =""></option>
<option value ="1">Oui</option>
<option value ="0">Non</option>
</select><br/>
</span>';
}
echo '
<a class="button" onclick="showSection(\'sect_ip\');">Précédent</a>
<a class="button" id="adh_next" onclick="if (validateSectionAdd()){showSection(\'sect_fin\');}">Suivant</a>
<a class="button" id="adh_sub" onclick="if (validateSectionAdd()){document.forms[\'form\'].submit();return false;}">Valider ma demande</a>
</div>
<div id="sect_fin" style="display:none">
<h3> Gestion du compte électronique par des personnes autorisées </h3>
<span class="labelWide">
Souhaitez-vous autoriser d’autres personnes à gérer et utiliser le compte électronique de l’entreprise (personnes collaboratrices, mandataires, etc.) ?
<input class="" type="radio" name="pa_dec" value="1" onClick="toglePA()"/> Oui /
<input class="" type="radio" name="pa_dec" value="0" onClick="toglePA()" checked="checked"/> Non
</span>
<span id="pa_other" style="display:none;" >
Veuillez indiquer ci-après les coordonnées de celle(s)-ci.<br/>
Personne/s autorisée/s:
<a onClick="showSt(1)" id="btn_st1" class="selected ait">(1)</a>
<a onClick="showSt(2)" id="btn_st2" class="ait" style="display:none">(2)</a>
<a onClick="showSt(3)" id="btn_st3" class="ait" style="display:none">(3)</a>
<a onClick="showSt(4)" id="btn_st4" class="ait" style="display:none">(4)</a>
<a id="btn_stadd" onClick="addSt()" class="ait" >Ajouter</a><br/>
<span class="aed" id="st_1_other" style="display:block">
Personne autorisée 1
<span class="fitem">
<span class="label" id="lb_st_1_name">Nom*</span>
<input class="inputText" type="text" name="st_1_name" value="" placeholder="Nom*"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_1_surname">Prénom*</span>
<input class="inputText" type="text" name="st_1_surname" value="" placeholder="Prénom*"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_1_add">Rue et numéro*</span>
<input class="inputText" type="text" id="st_1_add" name="st_1_add" value="" placeholder="Rue et numéro*" /><br/>
</span>
<span class="fitem">
<span class="label" >Complément d\'adresse</span>
<input class="inputText" type="text" id="st_1_compl" name="st_1_compl" value="" placeholder="Complément d\'adresse" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_1_zip">Code postal*</span>
<input class="inputText" type="text" id="st_1_zip" name="st_1_zip" value="" placeholder="Code postal*" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_1_city">Ville*</span>
<input class="inputText" type="text" id="st_1_city" name="st_1_city" value="" placeholder="Ville*" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_1_country">Pays*</span>
<select class="inputText" name="st_1_country" id ="st_1_country" >
'.$country.'
</select><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_1_born">Date de naissance*</span>
<input class="datechk inputText" type="date" name="st_1_born" value="" >
</span>
<span class="fitem">
<span class="label" id="lb_st_1_cit">Nationalité*</span>
<select class="inputText" name="st_1_cit">'.$country.'</select><br/>
</span>
</span>
<span class="aed" id="st_2_other" style="display:none">
Personne autorisée 2
<span class="fitem">
<span class="label" id="lb_st_2_name">Nom*</span>
<input class="inputText" type="text" name="st_2_name" value="" placeholder="Nom*"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_2_surname">Prénom*</span>
<input class="inputText" type="text" name="st_2_surname" value="" placeholder="Prénom*"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_2_add">Rue et numéro*</span>
<input class="inputText" type="text" id="st_2_add" name="st_2_add" value="" placeholder="Rue et numéro*" /><br/>
</span>
<span class="fitem">
<span class="label" >Complément d\'adresse</span>
<input class="inputText" type="text" id="st_2_compl" name="st_2_compl" value="" placeholder="Complément d\'adresse" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_2_zip">Code postal*</span>
<input class="inputText" type="text" id="st_2_zip" name="st_2_zip" value="" placeholder="Code postal*" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_2_city">Ville*</span>
<input class="inputText" type="text" id="st_2_city" name="st_2_city" value="" placeholder="Ville*" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_2_country">Pays*</span>
<select class="inputText" name="st_2_country" id ="st_2_country" >
'.$country.'
</select><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_2_born">Date de naissance*</span>
<input class="datechk inputText" type="date" name="st_2_born" value="" >
</span>
<span class="fitem">
<span class="label" id="lb_st_2_cit">Nationalité*</span>
<select class="inputText" name="st_2_cit">'.$country.'</select><br/>
</span>
</span>
<span class="aed" id="st_3_other" style="display:none">
Personne autorisée 3
<span class="fitem">
<span class="label" id="lb_st_3_name">Nom*</span>
<input class="inputText" type="text" name="st_3_name" value="" placeholder="Nom*"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_3_surname">Prénom*</span>
<input class="inputText" type="text" name="st_3_surname" value="" placeholder="Prénom*"/><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_3_add">Rue et numéro*</span>
<input class="inputText" type="text" id="st_3_add" name="st_3_add" value="" placeholder="Rue et numéro*" /><br/>
</span>
<span class="fitem">
<span class="label" >Complément d\'adresse</span>
<input class="inputText" type="text" id="st_3_compl" name="st_3_compl" value="" placeholder="Complément d\'adresse" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_3_zip">Code postal*</span>
<input class="inputText" type="text" id="st_3_zip" name="st_3_zip" value="" placeholder="Code postal*" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_3_city">Ville*</span>
<input class="inputText" type="text" id="st_3_city" name="st_3_city" value="" placeholder="Ville*" /><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_3_country">Pays*</span>
<select class="inputText" name="st_3_country" id ="st_3_country" >
'.$country.'
</select><br/>
</span>
<span class="fitem">
<span class="label" id="lb_st_3_born">Date de naissance*</span>
<input class="datechk inputText" type="date" name="st_3_born" value="" >
</span>
<span class="fitem">
<span class="label" id="lb_st_3_cit">Nationalité*</span>
<select class="inputText" name="st_3_cit">'.$country.'</select><br/>