Merge remote-tracking branch 'origin/new/bug_6720'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / checkexpiration.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Serials &rsaquo; Check expiration</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript" language="JavaScript">
6 // <![CDATA[
7     /**
8      *  Function CheckForm
9      *  This function checks the form before submit
10      */
11      function CheckForm(form){
12         if(form.date.value){
13             return true;
14         }
15         else {
16             alert(_("You must enter a date !"));
17             document.f.date.focus();
18             return false;
19         }
20      }
21
22         function popup(subscriptionid) {
23            newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
24         }
25
26      // ]]>
27 </script>
28 <!-- End of additions -->
29 </head>
30 <body id="ser_checkexpiration" class="ser">
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'serials-search.inc' %]
33
34 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Check expiration </div>
35
36 <div id="doc3" class="yui-t2">
37    
38    <div id="bd">
39         <div id="yui-main">
40         <div class="yui-b">
41
42 <h1>Check expiration</h1>
43
44     <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" onsubmit="return CheckForm(this);">
45 <fieldset class="rows">
46     <legend>Filter results :</legend>
47     
48          <ol>
49         <li><label for="title">Title:</label>
50         <input id="title" type="text" name="title" size="15" value="[% title %]" /></li>
51
52         <li><label for="issn">ISSN:</label>
53         <input id="issn" type="text" name="issn" size="15" value="[% issn %]" /></li>
54
55         <li><label for="date" class="required" title="Required field">Expiring before:</label>
56         <input id="date" type="text" name="date" size="10" value="[% date %]" class="focus datepicker" />
57         <span class="required">Required</span>
58                         <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
59                         </ol>
60         
61 </fieldset>
62 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
63 </form>
64
65 [% IF ( subscriptions_loop ) %]
66 <p>
67     <b>[% numsubscription %]</b> subscription(s)
68         [% IF ( title ) %]
69         with title matching <span class="title">[% title %]</class>
70         [% IF ( issn ) %]and [% END %]
71     [% END %]
72     [% IF ( issn ) %]
73         with ISSN matching <b>[% issn %]</b>
74     [% END %]
75         will expire before <b>[% date %]</b>
76 </p>
77 <table>
78         <tr>
79             <th>ISSN</th>
80             <th>Title</th>
81             <th>Note</th>
82             <th>Expiration date</th>
83                         <th colspan="2">&nbsp;</th>
84         </tr>
85     [% FOREACH subscriptions_loo IN subscriptions_loop %]
86         [% IF ( subscriptions_loo.toogle ) %]
87         <tr class="highlight">
88         [% ELSE %]
89         <tr>
90         [% END %]
91             <td>
92                 [% subscriptions_loo.issn %]
93             </td>
94             <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
95                     [% subscriptions_loo.title |html %]
96                 [% ELSE %]
97                     |
98                 [% END %]
99                 </a>
100             </td>
101             <td>
102                 [% subscriptions_loo.notes %]
103             </td>
104             <td>
105                 [% subscriptions_loo.expirationdate %]
106             </td>
107                         <td><a href="/cgi-bin/koha/serials/subscription-add.pl?op=mod&amp;subscriptionid=[% subscriptions_loo.subscriptionid %]">Edit</a></td>
108                         <td><a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" onclick="popup([% subscriptions_loo.subscriptionid %]); return false;">Renew</a></td>
109         </tr>
110     [% END %]
111     </table>
112 [% ELSE %]
113     <p>No results for your query</p>
114 [% END %]
115
116 </div>
117 </div>
118
119 <div class="yui-b">
120 [% INCLUDE 'serials-menu.inc' %]
121 </div>
122 </div>
123 [% INCLUDE 'intranet-bottom.inc' %]