r95831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95830‎ | r95831 | r95832 >
Date:04:19, 31 August 2011
Author:awjrichards
Status:ok
Tags:fundraising 
Comment:
Adding proof-of-concept html file for rapidhtml system in DonationInterface
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/globalcollect.test.html (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/globalcollect.test.html
@@ -0,0 +1,286 @@
 2+<style>
 3+ .step2hidden{ display:none; }
 4+</style>
 5+<table width="100%" cellspacing="0" cellpadding="0" border="0">
 6+ <tr>
 7+ <td id="appeal" valign="top">
 8+ <div style="margin:9em 0;">
 9+ <table class="quote"
 10+ style="margin: auto; border-collapse: collapse; border-style: none; background-color: transparent; width: auto; margin: 10px auto;">
 11+ <tr>
 12+ <td width="20" valign="top"
 13+ style="color: rgb(178, 183, 242); font-size: 40px; font-family: &#39;Times New Roman&#39;,serif; font-weight: bold; text-align: left; padding: 10px;">
 14+ “
 15+ </td>
 16+ <td valign="top" style="padding: 4px 5px; font-size: 26px; line-height: 30px;">Imagine a
 17+ world in which every single person on the planet has free access to the sum of all
 18+ human knowledge.
 19+ </td>
 20+ <td width="20" valign="bottom"
 21+ style="color: rgb(178, 183, 242); font-size: 40px; font-family: &#39;Times New Roman&#39;,serif; font-weight: bold; text-align: right; padding: 10px;">
 22+ ”
 23+ </td>
 24+ </tr>
 25+ <tr>
 26+ <td style="padding-right: 4%;" colspan="3">
 27+ <p style="font-size: 18px; text-align: right;"><cite
 28+ style="font-style: normal;">&mdash;Jimmy Wales, Founder of Wikipedia</cite>
 29+ </p>
 30+ </td>
 31+ </tr>
 32+ </table>
 33+ </div>
 34+ </td>
 35+ <td id="donate" valign="top">
 36+ <noscript>
 37+ <div id="noscript"><p id="noscript-msg">It appears that you do not have JavaScript enabled, or
 38+ your browser does not support it.
 39+ In order to provide a safe, secure and pleasant experience, our donation form requires
 40+ JavaScript.</p>
 41+
 42+ <p id="noscript-redirect-msg">If you cannot or do not wish to enable JavaScript, you may
 43+ still contribute by visiting:</p>
 44+
 45+ <p id="noscript-redirect-link"><a href="http://wikimediafoundation.org/wiki/DonateNonJS/en">http://wikimediafoundation.org/wiki/DonateNonJS/en</a>
 46+ </p></div>
 47+ </noscript>
 48+ <h2 id="donate-head">Please complete your donation below ...</h2>
 49+
 50+ <p class='creditcard-error-msg'></p>
 51+
 52+ <form name="payment" method="post"
 53+ action="/index.php/Special:PayflowProGateway?uselang=en&amp;masthead=none&amp;form_name=TwoStepTwoColumnLetter3&amp;text_template=2010%2FJimmyQuote"
 54+ onsubmit="return formCheck(this)" autocomplete="off">
 55+ <div id="payflowpro_gateway-personal-info">
 56+ <table id="payflow-table-donor">
 57+ <tr>
 58+ <td colspan="2"><span class="creditcard-error-msg"></span></td>
 59+ </tr>
 60+ <tr>
 61+ <td colspan="2">
 62+ <table cellspacing="0" cellpadding="4" border="1" id="donation_amount">
 63+ <tr>
 64+ <td class="amount_header">Description</td>
 65+ <td class="amount_header" style="text-align:right;width:75px;">Amount
 66+ </td>
 67+ <td class="amount_header" style="text-align:right;width:75px;">Currency
 68+ </td>
 69+ </tr>
 70+ <tr>
 71+ <td class="amount_data">Donation</td>
 72+ <td class="amount_data" style="text-align:right;width:75px;">@amount<input
 73+ type="hidden" value="@amount" name="amount"/></td>
 74+ <td class="amount_data" style="text-align:right;width:75px;">@currency_code<input
 75+ type="hidden" values="@currency_code" name="currency_code"/></td>
 76+ </tr>
 77+ </table>
 78+ </td>
 79+ </tr>
 80+ <tr class="step2hidden">
 81+ <td colspan="2"><h3 class="cc_header">Billing information<img
 82+ src="/extensions/DonationInterface/payflowpro_gateway/includes/padlock.gif"
 83+ style="vertical-align:baseline;margin-left:8px;"/></h3></td>
 84+ </tr>
 85+ <tr>
 86+ <td class="label"></td>
 87+ <td><img
 88+ src="/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos3.gif"/>
 89+ </td>
 90+ </tr>
 91+ <tr>
 92+ <td class="label"><label for="card_num">Card number</label></td>
 93+ <td><input name="card_num" size="30" value="@card_num" type="text" maxlength="100"
 94+ id="card_num" class="fullwidth" autocomplete="off"/></td>
 95+ </tr>
 96+ <tr>
 97+ <td class="label"><label for="expiration">Expiration date</label></td>
 98+ <td><select name="mos" id="expiration">
 99+ <option value="01">1 (January)</option>
 100+ <option value="02">2 (February)</option>
 101+ <option value="03">3 (March)</option>
 102+ <option value="04">4 (April)</option>
 103+ <option value="05">5 (May)</option>
 104+ <option value="06">6 (June)</option>
 105+ <option value="07">7 (July)</option>
 106+ <option value="08">8 (August)</option>
 107+ <option value="09">9 (September)</option>
 108+ <option value="10">10 (October)</option>
 109+ <option value="11">11 (November)</option>
 110+ <option value="12">12 (December)</option>
 111+ </select> / <select name="year" id="year">
 112+ <option value="2011">2011</option>
 113+ <option value="2012">2012</option>
 114+ <option value="2013">2013</option>
 115+ <option value="2014">2014</option>
 116+ <option value="2015">2015</option>
 117+ <option value="2016">2016</option>
 118+ <option value="2017">2017</option>
 119+ <option value="2018">2018</option>
 120+ <option value="2019">2019</option>
 121+ <option value="2020">2020</option>
 122+ <option value="2021">2021</option>
 123+ </select></td>
 124+ </tr>
 125+ <tr>
 126+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 127+ <tr>
 128+ <td class="label"><label for="cvv">Security code</label></td>
 129+ <td><input name="cvv" size="5" value="@cvv" type="text" maxlength="10" id="cvv"
 130+ autocomplete="off"/> <a href="javascript:PopupCVV();">Where is this?</a>
 131+ </td>
 132+ </tr>
 133+ <tr>
 134+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 135+ </tr>
 136+ <tr>
 137+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 138+ </tr>
 139+ <tr class="step2hidden">
 140+ <td class="label"><label for="fname">Name on card</label></td>
 141+ <td><input name="fname" size="30" value="@fname" type="text"
 142+ onfocus="clearField( this, &#039;First name&#039; )" maxlength="25"
 143+ class="required" id="fname"/>
 144+ <input name="lname" size="30" value="@lname"
 145+ type="text"
 146+ onfocus="clearField( this, &#039;Last name&#039; )"
 147+ maxlength="25" id="lname"/></td>
 148+ </tr>
 149+ <tr class="step2hidden">
 150+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 151+ </tr>
 152+ <tr class="step2hidden">
 153+ <td class="label"><label for="street">Billing address</label></td>
 154+ <td><input name="street" size="30" value="@street" type="text"
 155+ onfocus="clearField( this, &#039;Street&#039; )" maxlength="100"
 156+ id="street" class="fullwidth"/></td>
 157+ </tr>
 158+ <tr class="step2hidden">
 159+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 160+ </tr>
 161+ <tr class="step2hidden">
 162+ <td class="label"></td>
 163+ <td><input name="city" size="18" value="@city" type="text"
 164+ onfocus="clearField( this, &#039;City&#039; )" maxlength="40" id="city"/>
 165+ <select name="state" id="state">
 166+ <option value=""/>
 167+ <option value="AK">AK</option>
 168+ <option value="AL">AL</option>
 169+ <option value="AR">AR</option>
 170+ <option value="AZ">AZ</option>
 171+ <option value="CA">CA</option>
 172+ <option value="CO">CO</option>
 173+ <option value="CT">CT</option>
 174+ <option value="DC">DC</option>
 175+ <option value="DE">DE</option>
 176+ <option value="FL">FL</option>
 177+ <option value="GA">GA</option>
 178+ <option value="HI">HI</option>
 179+ <option value="IA">IA</option>
 180+ <option value="ID">ID</option>
 181+ <option value="IL">IL</option>
 182+ <option value="IN">IN</option>
 183+ <option value="KS">KS</option>
 184+ <option value="KY">KY</option>
 185+ <option value="LA">LA</option>
 186+ <option value="MA">MA</option>
 187+ <option value="MD">MD</option>
 188+ <option value="ME">ME</option>
 189+ <option value="MI">MI</option>
 190+ <option value="MN">MN</option>
 191+ <option value="MO">MO</option>
 192+ <option value="MS">MS</option>
 193+ <option value="MT">MT</option>
 194+ <option value="NC">NC</option>
 195+ <option value="ND">ND</option>
 196+ <option value="NE">NE</option>
 197+ <option value="NH">NH</option>
 198+ <option value="NJ">NJ</option>
 199+ <option value="NM">NM</option>
 200+ <option value="NV">NV</option>
 201+ <option value="NY">NY</option>
 202+ <option value="OH">OH</option>
 203+ <option value="OK">OK</option>
 204+ <option value="OR">OR</option>
 205+ <option value="PA">PA</option>
 206+ <option value="PR">PR</option>
 207+ <option value="RI">RI</option>
 208+ <option value="SC">SC</option>
 209+ <option value="SD">SD</option>
 210+ <option value="TN">TN</option>
 211+ <option value="TX">TX</option>
 212+ <option value="UT">UT</option>
 213+ <option value="VA">VA</option>
 214+ <option value="VT">VT</option>
 215+ <option value="WA">WA</option>
 216+ <option value="WI">WI</option>
 217+ <option value="WV">WV</option>
 218+ <option value="WY">WY</option>
 219+ <option value="AA">AA</option>
 220+ <option value="AE">AE</option>
 221+ <option value="AP">AP</option>
 222+ </select> <input name="zip" size="5" value="" type="text"
 223+ onfocus="clearField( this, &#039;Zip code&#039; )"
 224+ maxlength="10" id="zip"/><input type="hidden" value="@country"
 225+ name="country"/></td>
 226+ </tr>
 227+ <tr class="step2hidden">
 228+ <td colspan=2><span class="creditcard-error-msg"></span></td>
 229+ </tr>
 230+ <tr class="step2hidden">
 231+ <td class="label"><label for="emailAdd">E-mail receipt to</label></td>
 232+ <td><input name="emailAdd" size="30" value="@emailAdd" type="text"
 233+ onfocus="clearField( this, &#039;Email address&#039; )" maxlength="64"
 234+ id="emailAdd" class="fullwidth"/></td>
 235+ </tr>
 236+ <tr>
 237+ <td class="label"></td>
 238+ <td>
 239+ <div id="mw-donate-submit-button">&#160;<br/><input
 240+ src="/extensions/DonationInterface/payflowpro_gateway/includes/submit-donation-button.png"
 241+ alt="Submit donation" type="image"/></div>
 242+ <div class="mw-donate-submessage" id="payflowpro_gateway-donate-submessage"><img
 243+ src="/extensions/DonationInterface/payflowpro_gateway/includes/padlock.gif"
 244+ style="vertical-align:baseline;margin-right:4px;"/>Your credit / debit
 245+ card will be securely processed.
 246+ </div>
 247+ </td>
 248+ </tr>
 249+ </table>
 250+ </div>
 251+ <input type="hidden" value="@utm_source" name="utm_source"/>
 252+ <input type="hidden" value="@utm_medium" name="utm_medium"/>
 253+ <input type="hidden" value="@utm_campaign" name="utm_campaign"/>
 254+ <input type="hidden" value="@language" name="language"/>
 255+ <input type="hidden" value="@referrer" name="referrer"/>
 256+ <input type="hidden" value="@comment" name="comment"/>
 257+ <input type="hidden" value="@comment-option" name="comment-option"/>
 258+ <input type="hidden" value="@email-opt" name="email-opt"/>
 259+ <input type="hidden" value="@payment_method" name="payment_method"/>
 260+ <input type="hidden" value="@token" name="token"/>
 261+ <input type="hidden" value="@order_id" name="order_id"/><
 262+ <input type="hidden" value="@num_attempt" name="numAttempt"/>
 263+ <input type="hidden" value="@contribution_tracking_id" name="contribution_tracking_id"/>
 264+ <input type="hidden" value="@data_hash" name="data_hash"/>
 265+ <input type="hidden" value="@action" name="action"/>
 266+ <input type="hidden" value="@owa_session" name="owa_session"/>
 267+ <input type="hidden" value="@owa_ref" name="owa_ref"/>
 268+ </form>
 269+ <div class="payflow-cc-form-section" id="payflowpro_gateway-donate-addl-info">
 270+ <div id="payflowpro_gateway-donate-addl-info-text">
 271+ <div style="text-align:center;">* * *</div>
 272+ <div class="">We do not store your credit card information, and your personal data is
 273+ subject to our <a target="_new"
 274+ href="http://wikimediafoundation.org/wiki/Donor_Privacy_Policy">privacy
 275+ policy</a>.
 276+ </div>
 277+ <div class="">There are <a target="_new"
 278+ href="http://wikimediafoundation.org/wiki/Ways_to_Give/en">other
 279+ ways to give</a>, including by check.
 280+ </div>
 281+ <div class="">Questions or comments? Contact: <a href="mailto:donate@wikimedia.org">donate@wikimedia.org</a>
 282+ </div>
 283+ </div>
 284+ </div>
 285+ </td>
 286+ </tr>
 287+</table>
\ No newline at end of file
Property changes on: trunk/extensions/DonationInterface/payflowpro_gateway/forms/html/globalcollect.test.html
___________________________________________________________________
Added: svn:eol-style
1288 + native

Status & tagging log