Bug 6303: Display Organisation and Parent Organisation names when viewing a borrower...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / notices.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" language="javascript">
6 //<![CDATA[
7     $(document).ready(function() {
8         $("#noticestable").tablesorter({
9             [% IF ( dateformat == 'metric' ) %]
10                 dateFormat: 'uk'
11             [% END %]
12         });
13
14     $(".message").hide();
15     $(".message-title").click(function(e){
16         $(this).next(".message").toggle();
17         e.preventDefault();
18     });
19     
20     });
21 //]]>
22 </script>
23 <style type="text/css">
24     p.message { display: none; }
25     a.message-title { font-weight: bold; display: block; }
26 </style>
27 </head>
28 <body>
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'patron-search.inc' %]
31
32 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Sent notices for [% INCLUDE 'patron-title.inc' %]</div>
33
34 <div id="doc3" class="yui-t2">
35     <div id="bd">
36     <div id="yui-main">
37     <div class="yui-b">
38 [% INCLUDE 'circ-toolbar.inc' %]
39 <h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
40
41
42     <table id="noticestable">
43         <thead>
44             <tr>
45                 <th>Notice</th>
46                 <th>Type</th>
47                 <th>Status</th>
48                 <th>Time</th>
49             </tr>
50         </thead>
51 [% IF ( QUEUED_MESSAGES ) %]
52         <tbody>
53             [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
54             <tr>
55                 <td>
56             <a class="message-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
57             <p class="message">
58                 [% QUEUED_MESSAGE.content FILTER html_line_break %]
59             </p>
60         </td>
61                 <td>
62             [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email
63             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %]print
64             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %]feed
65             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %]sms
66             [% ELSE %][% QUEUED_MESSAGE.message_transport_type %][% END %]
67         </td>
68                 <td>
69             [% IF ( QUEUED_MESSAGE.status == 'sent' ) %]sent
70             [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %]pending
71             [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %]failed
72             [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
73             [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
74         </td>
75                 <td>[% QUEUED_MESSAGE.time_queued %]</td>
76             </tr>
77             [% END %]
78         </tbody>
79     [% ELSE %]
80     <tr><td colspan="4">There is no record of any messages that have been sent to this patron.</td></tr>
81     [% END %]
82     </table>
83
84 </div>
85 </div>
86
87 <div class="yui-b">
88 [% INCLUDE 'circ-menu.inc' %]
89 </div>
90 </div>
91 [% INCLUDE 'intranet-bottom.inc' %]