Bug 16218: printfeercpt.tt (and others) does not include jQuery
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember-print.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% USE KohaDates %]
4 [% INCLUDE 'doc-head-open.inc' %]
5     <title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
6     [% INCLUDE 'doc-head-close.inc' %]
7     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8     <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
9     <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/print.css" />
10     [% INCLUDE 'slip-print.inc' #printThenClose %]
11 </head>
12 <body id="pat_moremember-print" class="pat" onload="printThenClose();">
13     <div id="main">
14         <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">Account summary: [% firstname %] [% surname %] ([% cardnumber %])</a></h3>
15
16         <ul>
17             <li>[% address %]<br />[% address2 %]</li>
18             <li>[% city %], [% zipcode %]</li>
19             <li>[% IF ( phone ) %][% phone %][% ELSE %](no phone number on file)[% END %]</li>
20             <li>[% IF ( email ) %][% email %][% ELSE %](no primary email on file)[% END %]</li>
21             [% IF ( emailpro ) %]
22                 <li>[% emailpro %]</li>
23             [% END %]
24             <li>Registration date: [% dateenrolled | $KohaDates %]</li>
25             <li>Expiration date: [% dateexpiry | $KohaDates %]</li>
26             <li>Library: [% Branches.GetName( branchcode ) %]</li>
27             <li>Category: [% description %]</li>
28         </ul>
29
30         [% IF ( issues ) %]
31             <table>
32                 <caption>Items checked out</caption>
33                 <tr>
34                     <th>Title</th>
35                     <th>Author</th>
36                     <th>Call no</th>
37                     <th>Item type</th>
38                     <th>Date due</th>
39                     <th>Barcode</th>
40                     <th>Charge</th>
41                     <th>Price</th>
42                     <th>Status</th>
43                 </tr>
44
45                 [% FOREACH issue IN issues %]
46                     [% IF ( issue.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
47                         <td>
48                             [% issue.title |html %]
49                             <a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issue.itemnumber %]&amp;biblionumber=[% issue.biblionumber %]&amp;bi=[% issue.biblioitemnumber %]"></a>
50                         </td>
51                         <td>[% issue.author %]</td>
52                         <td>[% issue.itemcallnumber %]</td>
53                         <td>[% issue.itemtype_description %]</td>
54                         <td>[% issue.date_due | $KohaDates as_due_date => 1 %]</td>
55                         <td>[% issue.barcode %]</td>
56                         <td>[% issue.charge %]</td>
57                         <td>[% issue.replacementprice %]</td>
58                         <td>[% IF ( issue.overdue ) %]Overdue![% ELSE %]&nbsp;[% END %]</td>
59                     </tr>
60                 [% END %]
61
62             <tr>
63                 <td colspan="6" style="text-align: right; font-weight:bold;">Totals:</td>
64                 <td>[% totaldue %]</td>
65                 <td>[% totalprice %]</td>
66                 <td colspan="3">&nbsp;</td>
67             </tr>
68         </table>
69     [% END %]
70
71     [% IF ( reserves ) %]
72         <table>
73             <caption>Pending holds</caption>
74             <tr>
75                 <th>Title</th>
76                 <th>Author</th>
77                 <th>Placed on</th>
78                 <th>Expires on</th>
79                 <th>Pick up location</th>
80             </tr>
81
82             [% FOREACH reserve IN reserves %]
83                 <tr>
84                     <td>[% reserve.title %]</td>
85                     <td>[% reserve.author %]</td>
86                     <td>[% reserve.reservedate | $KohaDates %]</td>
87                     <td>[% reserve.expirationdate | $KohaDates %]</td>
88                     <td>[% reserve.waiting_at %]</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
104             [% FOREACH account IN accounts %]
105                 [% NEXT IF account.amountoutstanding == '0.00' %]
106                 <tr>
107                     <td>
108                         [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% END %]
109                         [% account.description %]&nbsp;[% IF ( account.printtitle ) %] [% account.title |html %][% END %]
110                         [% IF ( account.itemnumber ) %]</a>[% END %]
111                     </td>
112                     <td>[% account.date | $KohaDates %]</td>
113                     <td>[% account.amount %]</td>
114                     <td>[% account.amountoutstanding %]</td>
115                 </tr>
116             [% END %]
117
118             <tfoot>
119                 <tr>
120                     <td colspan="3">Total due</td>
121                     <td colspan="2">[% totaldue %]</td>
122                 </tr>
123             </tfoot>
124         </table>
125     [% END %]
126
127 [% INCLUDE 'intranet-bottom.inc' %]