1- <?php $ _code = $ this ->getMethodCode () ?>
2- <div>
3- <ul class="form-list" id="payment_form_<?php echo $ _code ?> " style="display:none;">
4- <li>
5- <label for="<?php echo $ _code ?> _number" class="required"><em>*</em><?php echo $ this ->__ ("Card Number " ) ?> </label>
6- <div class="input-box">
7- <table>
8- <tr>
9- <td><input value="" type="text" id="ccNo" class="required-entry input-text"/></td>
10- <td><div id="<?php echo $ _code ?> _card_icon"></div></td>
11- </tr>
12- </table>
13- </div>
14- </li>
15- <li>
16- <label for="<?php echo $ _code ?> _cvc" class="required"><em>*</em><?php echo $ this ->__ ("CVC " ) ?> </label>
17- <div class="input-box">
18- <input value="" type="text" id="cvv" class="required-entry"/>
19- </div>
20- </li>
21- <li>
22- <label for="<?php echo $ _code ?> _expiry_month" class="required"><em>*</em><?php echo $ this ->__ ("Expiration Date " ) ?> </label>
23- <div class="input-box">
24- <div class="v-fix">
25- <select id="expMonth" class="month">
26- <?php foreach ($ this ->getTwocheckoutCcMonths () as $ k => $ v ): ?>
27- <option value="<?php echo $ k ? $ k : '' ?> "<?php if ($ k == $ this ->getInfoData ($ _code . '_expiry_month ' )): ?> selected="selected"<?php endif ?> ><?php echo $ v ?> </option>
28- <?php endforeach ?>
29- </select>
30- </div>
31- <div class="v-fix">
32- <select id="expYear" class="year">
33- <?php foreach ($ this ->getTwocheckoutCcYears () as $ k => $ v ): ?>
34- <option value="<?php echo $ k ? $ k : '' ?> "<?php if ($ k == $ this ->getInfoData ($ _code . '_expiry_year ' )): ?> selected="selected"<?php endif ?> ><?php echo $ v ?> </option>
35- <?php endforeach ?>
36- </select>
37- </div>
38- </div>
39- </li>
40- <li>
41- <input id="twocheckout_token" name="token" type="hidden" value="" />
42- <input id="publishableKey" type="hidden" value="<?php echo $ this ->getPublicKey (); ?> " />
43- <input id="sellerId" type="hidden" maxlength="16" width="20" value="<?php echo $ this ->getSellerId (); ?> " />
44- </li>
45- </ul>
46- </div>
47- <div id="infoArea"></div>
1+ <?php $ _code = $ this ->getMethodCode () ?>
2+ <div>
3+ <ul class="form-list" id="payment_form_<?php echo $ _code ?> " style="display:none;">
4+ <li>
5+ <label for="<?php echo $ _code ?> _number" class="required"><em>*</em><?php echo $ this ->__ ("Card Number " ) ?> </label>
6+ <div class="input-box">
7+ <table>
8+ <tr>
9+ <td><input value="" type="text" pattern="\d*" id="ccNo" class="required-entry input-text validate-cc-number" autocomplete="off"/></td>
10+ </tr>
11+ </table>
12+ </div>
13+ </li>
14+ <li>
15+ <label for="<?php echo $ _code ?> _cvc" class="required"><em>*</em><?php echo $ this ->__ ("CVC " ) ?> </label>
16+ <div class="cvv tco-input-cvv">
17+ <input value="" type="text" pattern="\d*" id="cvv" class="required-entry input-text" autocomplete="off" />
18+ </div>
19+ </li>
20+ <li>
21+ <label for="<?php echo $ _code ?> _expiry_month" class="required"><em>*</em><?php echo $ this ->__ ("Expiration Date " ) ?> </label>
22+ <div class="input-box">
23+ <div class="v-fix">
24+ <select id="expMonth" class="month required-entry">
25+ <?php foreach ($ this ->getTwocheckoutCcMonths () as $ k => $ v ): ?>
26+ <option value="<?php echo $ k ? $ k : '' ?> "<?php if ($ k == $ this ->getInfoData ($ _code . '_expiry_month ' )): ?> selected="selected"<?php endif ?> ><?php echo $ v ?> </option>
27+ <?php endforeach ?>
28+ </select>
29+ </div>
30+ <div class="v-fix">
31+ <select id="expYear" class="year required-entry">
32+ <?php foreach ($ this ->getTwocheckoutCcYears () as $ k => $ v ): ?>
33+ <option value="<?php echo $ k ? $ k : '' ?> "<?php if ($ k == $ this ->getInfoData ($ _code . '_expiry_year ' )): ?> selected="selected"<?php endif ?> ><?php echo $ v ?> </option>
34+ <?php endforeach ?>
35+ </select>
36+ </div>
37+ </div>
38+ </li>
39+ <li><div id="<?php echo $ _code ?> _card_icon"></div></li>
40+ <li>
41+ <input id="twocheckout_token" name="token" type="hidden" value="" />
42+ <input id="publishableKey" type="hidden" value="<?php echo $ this ->getPublicKey (); ?> " />
43+ <input id="sellerId" type="hidden" maxlength="16" width="20" value="<?php echo $ this ->getSellerId (); ?> " />
44+ </li>
45+ </ul>
46+ </div>
47+ <div id="infoArea"></div>
48+ <style>
49+ .tco-input-cvv {width:100px;}
50+ </style>
0 commit comments