Template:2012France/lp-form: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
tweaks |
more cleanup |
||
Line 36: | Line 36: | ||
error = true; |
error = true; |
||
} |
} |
||
document. |
document.contribform.amount.value = Math.floor(eval(amount)*100) ; |
||
return !error; |
return !error; |
||
} |
} |
||
Line 44: | Line 44: | ||
//if i == 1 |
//if i == 1 |
||
var paymentType = "cc"; |
var paymentType = "cc"; |
||
var action_url = " |
var action_url = "https://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. |
document.contribform.action = action_url; |
||
document. |
document.contribform.utm_source.value = getQuerystring( 'utm_source' ) + '.' + getLandingPage() + '.' + paymentType; |
||
if (validateForm(document. |
if (validateForm(document.contribform)) { |
||
if (typeof(OWA) !== 'undefined') { OWATracker.shareStateByPost( document. |
if (typeof(OWA) !== 'undefined') { OWATracker.shareStateByPost( document.contribform ); } |
||
document. |
document.contribform.submit(); |
||
} |
} |
||
} |
} |
||
</script> |
</script> |
||
<form method="post" name=" |
<form method="post" name="contribform"> |
||
<input type="hidden" name="gateway" value="paypal" /> |
<input type="hidden" name="gateway" value="paypal" /> |
||
<input type="hidden" name="utm_source" value="" /> |
<input type="hidden" name="utm_source" value="" /> |
||
Line 67: | Line 64: | ||
<input type="hidden" name="returnto" value="Thank_You/</html>{{{language|{{SUBPAGENAME}}}}}<html>" /> |
<input type="hidden" name="returnto" value="Thank_You/</html>{{{language|{{SUBPAGENAME}}}}}<html>" /> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | <td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_0" onclick="document. |
||
⚫ | <td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_1" onclick="document. |
||
⚫ | <td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_2" onclick="document. |
||
⚫ | |||
⚫ | |||
⚫ | <td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_3" onclick="document. |
||
⚫ | <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> <input type="text" name="amountGiven" id="amountGiven" size="4" onKeyUp="verificationsaisie()" onfocus="this.form.input_amount_other.checked=true;"> €<br/></td> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<p></p> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</form> |
|||
</div> |
|||
</html> |
|||
⚫ | |||
<html> |
|||
⚫ | |||
</div> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | <td style="white-space: nowrap; text-align:justify;"><input type="radio" name="input_amount" id="input_amount_0" onclick="document.contribform.amountGiven.value = ''" style="text-align:justify;" value="</html>{{{donate-amount-0}}}<html>"><label for="input_amount_0"> </html>{{{donate-amount-0}}}<html> €</label></td> |
||
⚫ | |||
⚫ | |||
</tr> |
|||
⚫ | |||
⚫ | |||
⚫ | <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> <input type="text" name="amountGiven" id="amountGiven" size="4" onKeyUp="verificationsaisie();" onfocus="this.form.input_amount_other.checked=true;"> €<br/></td> |
||
<td></td> |
|||
</tr> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<script type="text/javascript"> |
<script type="text/javascript"> |
||
Line 115: | Line 112: | ||
} |
} |
||
document. |
document.contribform.utm_medium.value = getQuerystring( 'utm_medium' ); |
||
document. |
document.contribform.utm_campaign.value = getQuerystring( 'utm_campaign' ); |
||
document. |
document.contribform.referrer.value = document.referrer; |
||
</script> |
</script> |
Revision as of 15:30, 16 October 2012