2 [% USE AuthorisedValues %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
8 [% INCLUDE 'datatables.inc' %]
9 <script type="text/javascript">
11 $(document).ready(function() {
12 $("#noticestable").dataTable($.extend(true, {}, dataTablesDefaults, {
13 "aaSorting": [[ 3, "desc" ]],
14 "aoColumns": [ null,null,null,{ "sType": "title-string" } ],
15 "sPaginationType": "four_button"
19 $(".notice-title").click(function(e){
20 $(this).closest("tr").children().children(".notice").toggle();
27 <style type="text/css">
28 p.notice { display: none; }
29 a.notice-title { font-weight: bold; display: block; }
32 <body id="pat_notices" class="pat">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'patron-search.inc' %]
36 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Sent notices for [% INCLUDE 'patron-title.inc' %]</div>
38 <div id="doc3" class="yui-t2">
42 [% INCLUDE 'members-toolbar.inc' %]
43 <h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
45 [% IF ( QUEUED_MESSAGES ) %]
46 <table id="noticestable">
56 [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
59 <a class="notice-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
61 [% QUEUED_MESSAGE.content FILTER html_line_break %]
65 [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email
66 [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %]print
67 [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %]feed
68 [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %]sms
69 [% ELSE %][% QUEUED_MESSAGE.message_transport_type %][% END %]
72 [% IF ( QUEUED_MESSAGE.status == 'sent' ) %]sent
73 [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %]pending
74 [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %]failed
75 [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
76 [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
77 [% IF ( QUEUED_MESSAGE.status != 'pending' ) %]
79 <form action="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]" method="POST">
80 <input type="hidden" name="op" value="resend_notice" />
81 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
82 <input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id %]" />
83 <a href="#" onclick="$(this).closest('form').submit();return false;" title="Attempt to resend the notice">Resend</a>
88 <td><span title="[% QUEUED_MESSAGE.time_queued %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</span></td>
94 <div class="dialog message">There is no record of any messages that have been sent to this patron.</div>
101 [% INCLUDE 'circ-menu.inc' %]
104 [% INCLUDE 'intranet-bottom.inc' %]