first go at moving templates to a modules/ dir
[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 Expiration</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- Additions to enable Calendar system -->
6 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
11
12 <!-- TMPL_INCLUDE NAME="menus.inc" -->
13 <!-- TMPL_INCLUDE NAME="menu-serials.inc" -->
14
15 <h1>Check expiration</h1>
16
17 <fieldset>
18     <legend>Select record which will expire</legend>
19     
20     <form name="f"
21           action="/cgi-bin/koha/serials/checkexpiration.pl"
22           method="post"
23           onsubmit="return CheckForm(this);">
24          
25         <label for="title">Filter on title&nbsp;</label>
26         <input id="title" type="texte" name="title" size="15" value="<!--TMPL_VAR NAME="title"-->"/>
27         <br />
28         <label for="issn">Filter on ISSN</label>
29         <input id="issn" type="texte" name="issn" size="15" value="<!-- TMPL_VAR NAME="issn"-->"/>
30         <br />
31         <label for="date">with expiration date before</label>
32         <input id="date" type="texte" name="date" size="10" value="<!-- TMPL_VAR NAME="date"-->"/>
33             <script type="text/javascript">
34                 Calendar.setup(
35                  {
36                      inputField : "date",
37                      ifFormat : "%Y-%m-%d",
38                  }
39                 );
40             </script>
41         <input type="submit" value="Search" />
42     </form>
43 </fieldset>
44
45 <!-- TMPL_IF NAME="subscriptions_loop"-->
46 <p>
47     <b><!-- TMPL_VAR NAME="numsubscription"--></b> subscription(s)
48         <!-- TMPL_IF NAME="title"-->
49         with title like <b><!-- TMPL_VAR NAME="title"--></b>
50         <!-- TMPL_IF NAME="issn"-->and <!-- /TMPL_IF -->
51     <!-- /TMPL_IF -->
52     <!-- TMPL_IF NAME="issn"-->
53         issn like <b><!-- TMPL_VAR NAME="issn" --></b>
54     <!-- /TMPL_IF -->
55         will expirate bebore <b><!-- TMPL_VAR NAME="date" --></b>
56 </p>
57 <div class="searchresults">
58     <table>
59         <tr>
60             <th>
61                 issn
62             </th>
63             <th>
64                 title
65             </th>
66             <th>
67                 Note
68             </th>
69             <th>
70                 Expiration date
71             </th>
72         </tr>
73     <!-- TMPL_LOOP NAME="subscriptions_loop"-->
74         <!-- TMPL_IF NAME="toogle"-->
75         <tr class="highlight">
76         <!-- TMPL_ELSE -->
77         <tr>
78         <!-- /TMPL_IF -->
79             <td>
80                 <!-- TMPL_VAR NAME="issn" -->
81             </td>
82             <td>
83             <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
84                 <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
85                 <!-- TMPL_IF NAME="title"-->
86                     <!-- TMPL_VAR NAME="title" -->
87                 <!-- TMPL_ELSE -->
88                     |
89                 <!-- /TMPL_IF -->
90                 </a>
91                 <!-- TMPL_ELSE -->
92                 <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
93                 <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
94                 <!-- TMPL_IF NAME="title"-->
95                     <!-- TMPL_VAR NAME="title" -->
96                 <!-- TMPL_ELSE -->
97                     |
98                 <!-- /TMPL_IF -->
99                 </a>
100                 <!-- TMPL_ELSE -->
101                 <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
102                 <!-- TMPL_IF NAME="title"-->
103                     <!-- TMPL_VAR NAME="title" -->
104                 <!-- TMPL_ELSE -->
105                     |
106                 <!-- /TMPL_IF -->
107                 </a>
108                 <!-- /TMPL_IF -->
109             <!-- /TMPL_IF -->
110             </td>
111             <td>
112                 <!-- TMPL_VAR NAME="notes"-->
113             </td>
114             <td>
115                 <!-- TMPL_VAR NAME="expirationdate" -->
116             </td>
117         </tr>
118     <!-- /TMPL_LOOP -->
119     </table>
120 </div>
121 <!-- /TMPL_IF -->
122
123 <script type="text/javascript" language="JavaScript">
124 // <![CDATA[
125     document.f.datenumber.focus();
126     
127     /**
128      *  Function CheckForm
129      *  This function checks the form before submit
130      */
131      function CheckForm(form){
132         if(form.datenumber.value){
133             return true;
134         }
135         else {
136             alert("you must write a date !");
137             document.f.datenumber.focus();
138             return false;
139         }
140      }
141      // ]]>
142 </script>
143
144
145 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->