kohabug 2507 Fixing labels search to indicate keyword rather than title search
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / checkexpiration.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Serials &rsaquo; Check Expiration</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="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>
31 <!-- TMPL_INCLUDE NAME="header.inc" -->
32 <!-- TMPL_INCLUDE NAME="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="<!--TMPL_VAR NAME="title"-->" /></li>
51
52         <li><label for="issn">ISSN:</label>
53         <input id="issn" type="text" name="issn" size="15" value="<!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="date"-->" class="focus" />
57                                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendar" style="cursor: pointer;" />
58             <script type="text/javascript">
59                 Calendar.setup(
60                  {
61                                         button : "openCalendar",
62                      inputField : "date",
63                      ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
64                  }
65                 );
66             </script> <span class="required">Required</span></li>
67                         </ol>
68         
69 </fieldset>
70 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
71 </form>
72
73 <!-- TMPL_IF NAME="subscriptions_loop"-->
74 <p>
75     <b><!-- TMPL_VAR NAME="numsubscription"--></b> subscription(s)
76         <!-- TMPL_IF NAME="title"-->
77         with title matching <span class="title"><!-- TMPL_VAR NAME="title"--></class>
78         <!-- TMPL_IF NAME="issn"-->and <!-- /TMPL_IF -->
79     <!-- /TMPL_IF -->
80     <!-- TMPL_IF NAME="issn"-->
81         with ISSN matching <b><!-- TMPL_VAR NAME="issn" --></b>
82     <!-- /TMPL_IF -->
83         will expire before <b><!-- TMPL_VAR NAME="date" --></b>
84 </p>
85 <table>
86         <tr>
87             <th>ISSN</th>
88             <th>Title</th>
89             <th>Note</th>
90             <th>Expiration date</th>
91                         <th colspan="2">&nbsp;</th>
92         </tr>
93     <!-- TMPL_LOOP NAME="subscriptions_loop"-->
94         <!-- TMPL_IF NAME="toogle"-->
95         <tr class="highlight">
96         <!-- TMPL_ELSE -->
97         <tr>
98         <!-- /TMPL_IF -->
99             <td>
100                 <!-- TMPL_VAR NAME="issn" -->
101             </td>
102             <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" ESCAPE="URL" -->"><!-- TMPL_IF NAME="title"-->
103                     <!-- TMPL_VAR NAME="title" -->
104                 <!-- TMPL_ELSE -->
105                     |
106                 <!-- /TMPL_IF -->
107                 </a>
108             </td>
109             <td>
110                 <!-- TMPL_VAR NAME="notes"-->
111             </td>
112             <td>
113                 <!-- TMPL_VAR NAME="expirationdate" -->
114             </td>
115                         <td><a href="/cgi-bin/koha/serials/subscription-add.pl?op=mod&amp;subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Edit</a></td>
116                         <td><a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" onclick="popup(<!-- TMPL_VAR NAME="subscriptionid" -->); return false;">Renew</a></td>
117         </tr>
118     <!-- /TMPL_LOOP -->
119     </table>
120 <!-- TMPL_ELSE -->
121     <p>No results for your query</p>
122 <!-- /TMPL_IF -->
123
124 </div>
125 </div>
126
127 <div class="yui-b">
128 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
129 </div>
130 </div>
131 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->