1<form method="post" action="clientarea.php?action=masspay" class="form-horizontal">
2 <input type="hidden" name="geninvoice" value="true" />
3
4 <table class="table">
5 <thead>
6 <tr>
7 <th>{$LANG.invoicesdescription}</th>
8 <th>{$LANG.invoicesamount}</th>
9 </tr>
10 </thead>
11 <tbody>
12 {foreach from=$invoiceitems key=invid item=invoiceitem}
13 <tr>
14 <td colspan="2" class="bg-info">
15 <strong>{$LANG.invoicenumber} {if $invoiceitem.0.invoicenum}{$invoiceitem.0.invoicenum}{else}{$invid}{/if}</strong>
16 <input type="hidden" name="invoiceids[]" value="{$invid}" />
17 </td>
18 </tr>
19 {foreach from=$invoiceitem item=item}
20 <tr class="masspay-invoice-detail">
21 <td>{$item.description}</td>
22 <td>{$item.amount}</td>
23 </tr>
24 {/foreach}
25 {foreachelse}
26 <tr>
27 <td colspan="6" align="center">{$LANG.norecordsfound}</td>
28 </tr>
29 {/foreach}
30 <tr class="masspay-total">
31 <td class="text-right">{$LANG.invoicessubtotal}:</td>
32 <td>{$subtotal}</td>
33 </tr>
34 {if $tax}
35 <tr class="masspay-total">
36 <td class="text-right">{$taxrate1}% {$taxname1}:</td>
37 <td>{$tax}</td>
38 </tr>
39 {/if}
40 {if $tax2}
41 <tr class="masspay-total">
42 <td class="text-right">{$taxrate2}% {$taxname2}:</td>
43 <td>{$tax2}</td>
44 </tr>
45 {/if}
46 {if $credit}
47 <tr class="masspay-total">
48 <td class="text-right">{$LANG.invoicescredit}:</td>
49 <td>{$credit}</td>
50 </tr>
51 {/if}
52 {if $partialpayments}
53 <tr class="masspay-total">
54 <td class="text-right">{$LANG.invoicespartialpayments}:</td>
55 <td>{$partialpayments}</td>
56 </tr>
57 {/if}
58 <tr class="masspay-total">
59 <td class="text-right">{$LANG.invoicestotaldue}:</td>
60 <td>{$total}</td>
61 </tr>
62 </tbody>
63 </table>
64
65 <div class="row">
66 <div class="col-sm-6 col-sm-offset-3">
67 <div class="panel panel-default">
68 <div class="panel-heading">
69 <h3 class="panel-title">{$LANG.masspaymentselectgateway}</h3>
70 </div>
71 <div class="panel-body">
72 <fieldset>
73 <div class="col-md-12">
74 <div class="form-group">
75 <label for="paymentmethod" class="control-label">{$LANG.orderpaymentmethod}:</label><br/>
76 <select name="paymentmethod" id="paymentmethod" class="form-control">
77 {foreach from=$gateways item=gateway}
78 <option value="{$gateway.sysname}">{$gateway.name}</option>
79 {/foreach}
80 </select>
81 </div>
82 <div class="form-group">
83 <input type="submit" value="{$LANG.masspaymakepayment}" class="btn btn-primary btn-block" id="btnMassPayMakePayment" />
84 </div>
85 </div>
86 </fieldset>
87 </div>
88 </div>
89 </div>
90 </div>
91
92</form>
93