Template:2012France/lp-form: Difference between revisions

From Donate
Jump to navigation Jump to search
Content deleted Content added
tweaks
more cleanup
Line 36:
error = true;
}
document.paypalcontributioncontribform.amount.value = Math.floor(eval(amount)*100) ;
return !error;
}
Line 44:
//if i == 1
var paymentType = "cc";
var action_url = "<https:/html>{{{donate-url}}}<html>/crm.wikimedia.fr/civicrm/contribute/transact?reset=1&id=2" ;
//if (i==2) {
// action_url = "http://wikimediafoundation.org/wiki/Special:ContributionTracking/</html>{{{language|{{BASEPAGENAME}}}}}<html>";
// paymentType = "pp";
//}
document.paypalcontributioncontribform.action = action_url;
document.paypalcontributioncontribform.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType;
 
if (validateForm(document.paypalcontributioncontribform)) {
if (typeof(OWA) !== 'undefined') { OWATracker.shareStateByPost( document.paypalcontributioncontribform ); }
document.paypalcontributioncontribform.submit();
}
}
</script>
<form method="post" name="paypalcontributioncontribform">
<input type="hidden" name="gateway" value="paypal" />
<input type="hidden" name="utm_source" value="" />
Line 67 ⟶ 64:
<input type="hidden" name="returnto" value="Thank_You/</html>{{{language|{{SUBPAGENAME}}}}}<html>" />
 
<input type="hidden" name="amount" />
<div style="padding: 0.1em 0em; font-weight: normal; text-align:center;">
<input type="hidden" name="COMPLUS" value="WikimediaFoundation" type="hidden"/>
</html>{{{gift-amount-text}}}<html><br /><br />
<div id="amount-box" style="font-size: 100%; padding: 0; font-weight: bold; margin-left: -5px; ">
<table id="amount-table">
<tr>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_0" onclick="document.paypalcontribution. amountGiven.value = ''" style="text-align:justify;" value="</html>{{{donate-amount-0}}}<html>"><label for="input_amount_0">&nbsp;</html>{{{donate-amount-0}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_1" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-1}}}<html>"><label for="input_amount_1">&nbsp;</html>{{{donate-amount-1}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_2" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-2}}}<html>"><label for="input_amount_2">&nbsp;</html>{{{donate-amount-2}}}<html>&nbsp;€</label></td>
</tr>
<tr>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_3" onclick="document.paypalcontribution. amountGiven.value = ''" value="</html>{{{donate-amount-3}}}<html>"><label for="input_amount_3">&nbsp;</html>{{{donate-amount-3}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_other" value="Other"><label for="input_amount_other"></html>{{{donate-amount-other|<html>Other:</html>}}}<html></label>&nbsp;<input type="text" name="amountGiven" id="amountGiven" size="4" onKeyUp="verificationsaisie()" onfocus="this.form.input_amount_other.checked=true;">&nbsp;€<br/></td>
</tr>
</table>
</div></html>{{{gift-amount-text-suite}}}<html></div>
</span>
<p></p>
<input type="hidden" name="amount" />
<div id="cc-donate-button" align="center">
<input type="button" value="</html>{{{donate-label}}}<html>" style="background-color: </html>{{{button-color}}}<html>; font-weight: bold; font-size: 125%; padding: 0.5em 0.5em;" onclick="redirectPayment('1');" title="Faire un don !" alt="Faire un don !"/>
<input name="COMPLUS" value="WikimediaFoundation" type="hidden">
</form>
</div>
</html>
<small>{{{chapter-text|}}}</small>
<html>
 
<div style="padding: 0.1em 0em; font-weight: normal; text-align: center;">
</div>
</html>{{{gift-amount-text}}}<html><br /><br />
<div id="amount-box" style="font-size: 100%; padding: 0; font-weight: bold; margin-left: -5px; ">
<table id="amount-table">
<tr>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_0" onclick="document.paypalcontributioncontribform. amountGiven.value = ''" style="text-align:justify;" value="</html>{{{donate-amount-0}}}<html>"><label for="input_amount_0">&nbsp;</html>{{{donate-amount-0}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_1" onclick="document.paypalcontributioncontribform. amountGiven.value = ''" value="</html>{{{donate-amount-1}}}<html>"><label for="input_amount_1">&nbsp;</html>{{{donate-amount-1}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_2" onclick="document.paypalcontributioncontribform. amountGiven.value = ''" value="</html>{{{donate-amount-2}}}<html>"><label for="input_amount_2">&nbsp;</html>{{{donate-amount-2}}}<html>&nbsp;€</label></td>
</tr>
<tr>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_3" onclick="document.paypalcontributioncontribform. amountGiven.value = ''" value="</html>{{{donate-amount-3}}}<html>"><label for="input_amount_3">&nbsp;</html>{{{donate-amount-3}}}<html>&nbsp;€</label></td>
<td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_other" value="Other"><label for="input_amount_other"></html>{{{donate-amount-other|<html>Other:</html>}}}<html></label>&nbsp;<input type="text" name="amountGiven" id="amountGiven" size="4" onKeyUp="verificationsaisie();" onfocus="this.form.input_amount_other.checked=true;">&nbsp;€<br/></td>
<td></td>
</tr>
</table>
<//}div>
</div> </html>{{{gift-amount-text-suite}}}<html></div>
</trdiv>
 
<div id="cc-donate-button" align="center">
<input type="button" value="</html>{{{donate-label}}}<html>" style="background-color: </html>{{{button-color}}}<html>; font-weight: bold; font-size: 125%; padding: 0.5em 0.5em;" onclick="redirectPayment('1');" title="Faire un don !" alt="Faire un don !"/>
</trdiv>
 
</spanform>
</html><small>{{{chapter-text|}}}</small><html>
 
<script type="text/javascript">
Line 115 ⟶ 112:
}
 
 
document.paypalcontributioncontribform.utm_medium.value = getQuerystring( 'utm_medium' );
document.paypalcontributioncontribform.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontributioncontribform.referrer.value = document.referrer;
 
</script>

Revision as of 15:30, 16 October 2012

{{{gift-amount-text}}}

  €
{{{gift-amount-text-suite}}}