forked from albancrommer/lqdn_campagne2012
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path32_donation_form2_html.php
164 lines (146 loc) · 10.1 KB
/
32_donation_form2_html.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
<div class="row donations" id="donations">
<div class="span6">
<div class="row">
<div class="span6">
<h2>
<?php __("Support us (step 2/3)"); ?>
</h2>
</div>
</div>
<?php
if (isset($errno) && $errno) {
?>
<div class="row">
<div class="error">
<?php if (is_array($errno)) {
foreach($errno as $e) echo "- "._($errors[$e])."<br />";
} else echo _($errors[$errno]); ?>
</div>
</div>
<?php
}
?>
<form method="post" action="/#progressbar" name="f1" id="f1">
<div class="row">
<div class="span6">
<input type="hidden" name="etape2" value="1"/>
<input type="hidden" name="sum" value="<?php eher("sum"); ?>" />
<input type="hidden" name="monthly" value="<?php eher("monthly"); ?>" />
<p> <?php printf(_('Make a donation of: <b>%s €</b>'),$_REQUEST["sum"]); ?></p>
</div>
</div>
<div class="row">
<div class="span6">
<?php if ($_REQUEST["monthly"]) { ?>
<div class="information"> <?php __("You wish to support us with a monthly donation, thank you for your kind support. For your convenience, you will have the possibility to pause or stop this donation each month."); ?></div>
<?php } ?>
<p>
<label for="email"><?php __("Email:"); ?></label><br /> <input type="text" id="email" name="email" size="60" class="largeinput<?php badfield(array(3,4)); ?>" value="<?php eher("email"); ?>"/>
</p>
<p>
<label for="pseudo"><?php __("First Name, Full Name or Nickname:"); ?></label><br /> <input type="text" id="pseudo" name="pseudo" size="60" class="largeinput<?php badfield(5); ?>" value="<?php eher("pseudo"); ?>"/>
</p>
<p>
<input type="checkbox" id="public" name="public"<?php ifcheck($_REQUEST["public"]); ?>/> <label for="public"><?php __("Please show me in the public donor list"); ?></label>
</p>
<p>
<input type="checkbox" id="aboactu" name="aboactu"<?php ifcheck($_REQUEST["aboactu"]); ?>/> <label for="aboactu"><?php __("Please send me La Quadradure du Net's monthly newsletter"); ?></label>
</p>
</div>
</div>
<?php if ($_REQUEST["monthly"]) { ?>
<div class="row">
<div class="span6">
<h3><?php __("Bank information for your monthly donation"); ?></h3>
<p>
<label for="name"><?php __("Donor's Last Name:"); ?></label><br /> <input type="text" id="name" name="name" size="60" class="largeinput<?php badfield(102); ?>" value="<?php eher("name"); ?>"/>
</p>
<p>
<label for="fname"><?php __("Donor's First Name:"); ?></label><br /> <input type="text" id="fname" name="fname" size="60" class="largeinput<?php badfield(102); ?>" value="<?php eher("fname"); ?>"/>
</p>
<p>
<label for="titulaire"><?php __("Bank account holder's name<br />(if different):"); ?></label><br /> <input type="text" id="titulaire" name="titulaire" size="60" class="largeinput" value="<?php eher("titulaire"); ?>"/>
</p>
<p>
<label for="rib-bq"><?php __("Bank account details:"); ?></label> <br />
<input type="text" id="rib-bq" name="bq" maxlength="5" size="5" style="width: 50px" class="<?php badfield(array(108,109)); ?>" value="<?php eher("bq"); ?>" title="Code Banque" />
<input type="text" id="rib-gu" name="gu" maxlength="5" size="5" style="width: 50px" class="<?php badfield(array(108,109)); ?>" value="<?php eher("gu"); ?>" title="Code Guichet"/>
<input type="text" id="rib-cpt" name="cpt" maxlength="11" size="11" style="width: 110px" class="<?php badfield(array(108,109)); ?>" value="<?php eher("cpt"); ?>" title="Numéro de compte"/>
<input type="text" id="rib-rib" name="rib" maxlength="2" size="2" style="width: 20px" class="<?php badfield(array(108,109)); ?>" value="<?php eher("rib"); ?>" title="Clé RIB"/>
</p>
<p>
<label for="bq_nom"><?php __("Financial Institution's Name:"); ?></label><br /> <input type="text" id="bq_nom" name="bq_nom" size="60" class="largeinput<?php badfield(104); ?>" value="<?php eher("bq_nom"); ?>"/>
</p>
<p>
<label for="bq_addr"><?php __("Institution's postal address:"); ?></label> <br /><textarea type="text" id="bq_addr" name="bq_addr" class="<?php badfield(105); ?>"><?php eher("bq_addr"); ?></textarea>
</p>
<p>
<label for="bq_cp"><?php __("Postal Code:"); ?></label><br /> <input type="text" id="bq_cp" name="bq_cp" size="5" class="<?php badfield(106); ?>" value="<?php eher("bq_cp"); ?>"/>
</p>
<p>
<label for="bq_ville"><?php __("City:"); ?></label><br /> <input type="text" id="bq_ville" name="bq_ville" size="60" class="largeinput<?php badfield(107); ?>" value="<?php eher("bq_ville"); ?>"/>
</p>
<p>
<label for="passwd"><?php __("Password:"); ?></label><br /> <input type="password" id="passwd" name="passwd" size="60" class="largeinput<?php badfield(array(110,111)); ?>" value="<?php eher("passwd"); ?>"/>
</p>
<p>
<label for="passwd2"><?php __("Again (password check):"); ?></label><br /> <input type="password" id="passwd2" name="passwd2" size="60" class="largeinput<?php badfield(array(110,111)); ?>" value="<?php eher("passwd2"); ?>"/>
</p>
</div>
</div>
<?php } ?>
<?php if ($_REQUEST["sum"] >= 50 || ($_REQUEST["monthly"])) { ?>
<div class="row">
<div class="span6">
<p>
<input type="checkbox" id="nocado" name="nocado"<?php ifcheck($_REQUEST["nocado"]); ?>/> <label for="nocado"><?php __("Please do <b>not</b> send me any goodies, so my entire donation can be used directly to help La Quadrature du Net."); ?></label>
</p>
</div>
</div>
<?php if ($_REQUEST["sum"] >= 50 || ($_REQUEST["monthly"])) { ?>
<div class="row" id="needcado">
<div class="span6">
<?php if ($_REQUEST["sum"] >= 100 || ($_REQUEST["monthly"])) { ?>
<p>
<label for="taille"><?php __("Style/Size of your pi-shirt:"); ?></label><br /> <select id="taille" name="taille" ><?php eoption($atailles,$_REQUEST["taille"]); ?></select>
</p>
<?php } ?>
<p>
<label for="nomadresse"><?php __("Donor's name (for the parcel):"); ?></label><br /> <input type="text" id="nomadresse" name="nomadresse" size="60" class="largeinput<?php badfield(6); ?>" value="<?php eher("nomadresse"); ?>"/>
</p>
<p>
<label for="adresse"><?php __("Donor's Postal Address:"); ?></label> <br /><textarea type="text" id="adresse" name="adresse" class="largeinput<?php badfield(6); ?>" ><?php eher("adresse"); ?></textarea>
</p>
<p>
<label for="codepostal"><?php __("Donor's Zipcode:"); ?></label><br /> <input type="text" id="codepostal" name="codepostal" size="5" value="<?php eher("codepostal"); ?>" class="<?php badfield(6); ?>"/>
</p>
<p>
<label for="ville"><?php __("Donor's City:"); ?></label><br /> <input type="text" id="ville" name="ville" size="60" class="largeinput<?php badfield(6); ?>" value="<?php eher("ville"); ?>"/>
</p>
<p>
<label for="pays"><?php __("Donor's Country:"); ?></label><br /> <input type="text" id="pays" name="pays" size="60" class="largeinput<?php badfield(6); ?>" value="<?php eher("pays"); ?>"/>
</p>
</div>
</div>
<?php } /* gift needs postal address ? */ ?>
<?php } /* gift requested ? */ ?>
<div class="row">
<div class="span6">
<p>
<input type="submit" class="btn btn-large btn-inverse" value="<?php __("Yes, make this donation to La Quadrature du Net"); ?> >>"/>
</p>
<p>
<div class="information">
<?php
if ($_REQUEST["monthly"]) {
__("Vous allez être redirigé vers le site de FDNN (Fonds de Défense de la Neutralité du Net)");
} else {
__("You will now be redirected to our bank's server (Crédit Mutuel) in the name of FDNN (Fonds de Défense de la Net Neutralité), the NGO which manages La Quadrature du Net's accounts.");
}
?>
</div>
</p>
</div>
</div>
</form><!-- donation form -->
</div>