FIX for Date calculation
[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     /**
9      *  Function CheckForm
10      *  This function checks the form before submit
11      */
12      function CheckForm(form){
13         if(form.date.value){
14             return true;
15         }
16         else {
17             alert("You must enter a date !");
18             document.f.date.focus();
19             return false;
20         }
21      }
22      // ]]>
23 </script>
24 <!-- End of additions -->
25 </head>
26 <body>
27 <!-- TMPL_INCLUDE NAME="header.inc" -->
28 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
29
30 <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>
31
32 <div id="doc3" class="yui-t2">
33    
34    <div id="bd">
35         <div id="yui-main">
36         <div class="yui-b">
37
38 <h1>Check expiration</h1>
39
40 <fieldset>
41     <legend>Select record which will expire</legend>
42     
43     <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" onsubmit="return CheckForm(this);">
44          
45         <p><label for="title">Filter on title</label>
46         <input id="title" type="text" name="title" size="15" value="<!--TMPL_VAR NAME="title"-->" /></p>
47
48         <p><label for="issn">Filter on ISSN</label>
49         <input id="issn" type="text" name="issn" size="15" value="<!-- TMPL_VAR NAME="issn"-->" /></p>
50
51         <p><label for="date">with expiration date before</label>
52         <input id="date" type="text" name="date" size="10" value="<!-- TMPL_VAR NAME="date"-->" class="focus" />
53             <script type="text/javascript">
54                 Calendar.setup(
55                  {
56                      inputField : "date",
57                      ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
58                  }
59                 );
60             </script></p>
61         <input type="submit" value="Search" />
62     </form>
63 </fieldset>
64
65 <!-- TMPL_IF NAME="subscriptions_loop"-->
66 <p>
67     <b><!-- TMPL_VAR NAME="numsubscription"--></b> subscription(s)
68         <!-- TMPL_IF NAME="title"-->
69         with title like <b><!-- TMPL_VAR NAME="title"--></b>
70         <!-- TMPL_IF NAME="issn"-->and <!-- /TMPL_IF -->
71     <!-- /TMPL_IF -->
72     <!-- TMPL_IF NAME="issn"-->
73         ISSN like <b><!-- TMPL_VAR NAME="issn" --></b>
74     <!-- /TMPL_IF -->
75         will expire before <b><!-- TMPL_VAR NAME="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         </tr>
84     <!-- TMPL_LOOP NAME="subscriptions_loop"-->
85         <!-- TMPL_IF NAME="toogle"-->
86         <tr class="highlight">
87         <!-- TMPL_ELSE -->
88         <tr>
89         <!-- /TMPL_IF -->
90             <td>
91                 <!-- TMPL_VAR NAME="issn" -->
92             </td>
93             <td>
94             <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
95                 <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
96                 <!-- TMPL_IF NAME="title"-->
97                     <!-- TMPL_VAR NAME="title" -->
98                 <!-- TMPL_ELSE -->
99                     |
100                 <!-- /TMPL_IF -->
101                 </a>
102                 <!-- TMPL_ELSE -->
103                 <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
104                 <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
105                 <!-- TMPL_IF NAME="title"-->
106                     <!-- TMPL_VAR NAME="title" -->
107                 <!-- TMPL_ELSE -->
108                     |
109                 <!-- /TMPL_IF -->
110                 </a>
111                 <!-- TMPL_ELSE -->
112                 <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
113                 <!-- TMPL_IF NAME="title"-->
114                     <!-- TMPL_VAR NAME="title" -->
115                 <!-- TMPL_ELSE -->
116                     |
117                 <!-- /TMPL_IF -->
118                 </a>
119                 <!-- /TMPL_IF -->
120             <!-- /TMPL_IF -->
121             </td>
122             <td>
123                 <!-- TMPL_VAR NAME="notes"-->
124             </td>
125             <td>
126                 <!-- TMPL_VAR NAME="expirationdate" -->
127             </td>
128         </tr>
129     <!-- /TMPL_LOOP -->
130     </table>
131 <!-- /TMPL_IF -->
132
133 </div>
134 </div>
135
136 <div class="yui-b">
137 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
138 </div>
139 </div>
140 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->