Bug 766: Use a TT include instead of a method in the AV plugin
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember-print.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
7 <script type="text/javascript">
8     function printThenClose() {
9         window.print();
10         window.close();
11     }
12 </script>
13 <body id="pat_moremember-print" class="pat" onload="printThenClose();">
14
15 </head>
16 <body>
17
18 <div id="main">
19
20 <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">Account summary: [% firstname %] [% surname %] ([% cardnumber %])</a></h3>
21
22 <ul><li>[% address %]<br />[% address2 %]</li><li>[% city %], [% zipcode %]</li>
23 <li>[% IF ( phone ) %][% phone %][% ELSE %](no phone number on file)[% END %]</li>
24 <li>[% IF ( email ) %][% email %][% ELSE %](no primary email on file)[% END %]</li>
25 [% IF ( emailpro ) %]<li>[% emailpro %]</li>[% END %]
26 <li>Registration date: [% dateenrolled %]</li>
27 <li>Expiration date: [% dateexpiry %]</li>
28 <li>Library: [% branchname %]</li>
29 <li>Category: [% description %]</li>
30 </ul>
31
32 [% IF ( issueloop ) %]
33 <table>
34     <caption>Items checked out</caption>
35         <tr>
36                 <th>Title</th>
37                 <th>Author</th>
38                 <th>Call no</th>
39         <th>Item type</th>
40         <th>Date due</th>
41         <th>Barcode</th>
42                 <th>Charge</th>
43                 <th>Price</th>
44                 <th>Status</th>
45         </tr>
46
47         [% FOREACH issueloo IN issueloop %]
48         [% IF ( issueloo.red ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
49                 <td>
50                 [% issueloo.title |html %]
51                 <a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber %]&amp;biblionumber=[% issueloo.biblionumber %]&amp;bi=[% issueloo.biblioitemnumber %]">
52                 </a>
53                 </td>
54                 <td>[% issueloo.author %]</td>
55                 <td>[% issueloo.itemcallnumber %]</td>
56                 <td>[% issueloo.itemtype_description %]</td>
57                 <td>[% issueloo.date_due %]</td>
58                 <td>[% issueloo.barcode %]</td>
59                 <td>[% issueloo.charge %]</td>
60                 <td>[% issueloo.replacementprice %]</td>
61                 <td>[% IF ( issueloo.red ) %]Overdue![% ELSE %]&nbsp;[% END %]</td>
62         </tr>
63         [% END %]
64         <tr>
65             <td colspan="6" style="text-align: right; font-weight:bold;">Totals:</td>
66             <td>[% totaldue %]</td>
67             <td>[% totalprice %]</td>
68             <td colspan="3">&nbsp;</td>
69         </tr>
70         </table>
71         [% END %]
72         
73 [% IF ( reserveloop ) %]
74 <table>
75         <caption>Items on Reserve</caption>
76         <tr>
77                 <th>Title</th>
78                 <th>Author</th>
79                 <th>Format</th>
80                 <th>Requested</th>
81         </tr>
82
83 [% FOREACH reserveloo IN reserveloop %]
84         <tr>
85                 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reserveloo.biblionumber %]">[% reserveloo.btitle %]</a></td>
86                 <td>[% reserveloo.author %]</td>
87                 <td>[% reserveloo.description %]</td>
88                 <td>[% reserveloo.reservedate2 %]</td>
89         </tr>
90         [% END %]
91 </table>
92 [% END %]
93
94 [% IF ( accounts && ( totaldue != '0.00' ) ) %]
95 <table>
96     <caption>Account fines and payments</caption>
97     <tr>
98         <th>Description of charges</th>
99         <th>Date</th>
100         <th>Amount</th>
101         <th>Outstanding</th>
102     </tr>
103     [% FOREACH account IN accounts %]
104     [% NEXT IF account.amountoutstanding == '0.00' %]
105     <tr>
106         <td>
107             [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]
108             [% account.description %]&nbsp;[% IF ( account.printtitle ) %] [% account.title |html %][% END %]
109             [% IF ( account.itemnumber ) %]</a>[% END %]
110         </td>
111         <td>[% account.date | $KohaDates %]</td>
112         <td>[% account.amount %]</td>
113         <td>[% account.amountoutstanding %]</td>
114     </tr>
115     [% END %]
116     <tfoot>
117         <tr>
118             <td colspan="3">Total due</td>
119             <td colspan="2">[% totaldue %]</td>
120         </tr>
121     </tfoot>
122 </table>
123 [% END %]
124
125 [% INCLUDE 'intranet-bottom.inc' %]