root/yapcasia2008/actdocs/templates/core/user/purchase

Revision 2699 (checked in by echolet, 12 years ago)

new payment config

Line 
1 <div align="center">
2 <form method="POST" action="[% global.request.r.uri %]">
3
4 <table border="1" cellpadding="10" cellspacing="0"><tr><td>
5 <table border="0" cellpadding="0" cellspacing="10">
6
7 [% FOREACH p IN productlist %]
8     [% NEXT IF p == 'registration' AND global.request.user.has_paid %]
9     <tr>
10         <td align="right"><input type="checkbox" name="product-[% p %]"[% ' checked="checked"' IF products.$p.checked %] /></td>
11         <td>[% products.$p.name %]</td>
12 [% IF products.$p.prices.size == 1 %]
13         <td>[% products.$p.prices.0.amount %] [% currency %]</td>
14     </tr>
15 [% ELSE %]
16         <td></td>
17     </tr>
18     [% ispromo = 0;
19        FOREACH i IN products.$p.prices;
20          UNLESS i.promocode AND ispromo %]
21         <tr>
22             <td></td>
23            [% IF i.promocode; ispromo = 1 %]
24               <td>{{Promotion code}}</td>
25               <td><input type="text" name="promo-[% p %]" size="20" maxlength="20" value="[% promo.$p %]" /></td>
26            [% ELSE %]
27               <td><input type="radio" name="price-[% p %]" value="[% i.price_id %]"[% ' checked="checked"' IF i.checked %] />
28                   [% i.name %]</td>
29               <td>[% i.amount %] [% currency %]</td>
30            [% END %]
31         </tr>
32         [% END %]
33     [% END %]
34 [% END %]
35 [% END %]
36 <tr>
37    <td>&nbsp;</td>
38    <td>
39       <label for="form-donation">{{Donation}}:</label>
40    </td>
41    <td>
42       <input name="donation" id="form-donation" type="text" size="5" maxlength="5" value="[% donation %]" />
43       [% currency %]
44    </td>
45 </tr>
46 <tr>
47    <td colspan="3" align="right">
48       <input type="submit" name="purchase" value="{{Buy now!}}" />
49    </td>
50 </tr>
51 </table>
52 </td></tr></table>
53
54 </form>
55 </div>
56
57 <p>
58  {{Please note that everything regarding your bank account and credit card number}}
59 </p>
60
61 [% file = "core/bank/${global.config.payment_type}" ; PROCESS $file %]
Note: See TracBrowser for help on using the browser.