Bug 5917 / Bug 6085 : Fixing not being able to change language
[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>
67                         <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div></li>
68                         </ol>
69         
70 </fieldset>
71 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
72 </form>
73
74 <!-- TMPL_IF NAME="subscriptions_loop"-->
75 <p>
76     <b><!-- TMPL_VAR NAME="numsubscription"--></b> subscription(s)
77         <!-- TMPL_IF NAME="title"-->
78         with title matching <span class="title"><!-- TMPL_VAR NAME="title"--></class>
79         <!-- TMPL_IF NAME="issn"-->and <!-- /TMPL_IF -->
80     <!-- /TMPL_IF -->
81     <!-- TMPL_IF NAME="issn"-->
82         with ISSN matching <b><!-- TMPL_VAR NAME="issn" --></b>
83     <!-- /TMPL_IF -->
84         will expire before <b><!-- TMPL_VAR NAME="date" --></b>
85 </p>
86 <table>
87         <tr>
88             <th>ISSN</th>
89             <th>Title</th>
90             <th>Note</th>
91             <th>Expiration date</th>
92                         <th colspan="2">&nbsp;</th>
93         </tr>
94     <!-- TMPL_LOOP NAME="subscriptions_loop"-->
95         <!-- TMPL_IF NAME="toogle"-->
96         <tr class="highlight">
97         <!-- TMPL_ELSE -->
98         <tr>
99         <!-- /TMPL_IF -->
100             <td>
101                 <!-- TMPL_VAR NAME="issn" -->
102             </td>
103             <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" ESCAPE="URL" -->"><!-- TMPL_IF NAME="title"-->
104                     <!-- TMPL_VAR NAME="title" escape="html" -->
105                 <!-- TMPL_ELSE -->
106                     |
107                 <!-- /TMPL_IF -->
108                 </a>
109             </td>
110             <td>
111                 <!-- TMPL_VAR NAME="notes"-->
112             </td>
113             <td>
114                 <!-- TMPL_VAR NAME="expirationdate" -->
115             </td>
116                         <td><a href="/cgi-bin/koha/serials/subscription-add.pl?op=mod&amp;subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Edit</a></td>
117                         <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>
118         </tr>
119     <!-- /TMPL_LOOP -->
120     </table>
121 <!-- TMPL_ELSE -->
122     <p>No results for your query</p>
123 <!-- /TMPL_IF -->
124
125 </div>
126 </div>
127
128 <div class="yui-b">
129 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
130 </div>
131 </div>
132 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->