Moving </head><body> into body of templates so that js and css can be embedded per...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / claims.tmpl
1 <!-- TMPL_UNLESS NAME="preview" -->
2     <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
3     <title>Koha &rsaquo; Subscription edit</title>
4     <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 </head>
6 <body>
7     <!-- TMPL_INCLUDE NAME="header.inc" -->
8     <!--TMPL_INCLUDE NAME="menu-serials.inc" -->
9     
10     <script type="text/javascript">
11     function Setorder(myorder){
12         if (document.claims.elements['order'].value == myorder){
13         document.claims.elements['order'].value=myorder+' desc';
14         } else {
15         document.claims.elements['order'].value=myorder;
16         }
17         document.claims.elements['op'].value="";
18         document.claims.submit();
19     }
20     </script>
21 <!-- TMPL_ELSE -->
22     <!-- TMPL_INCLUDE NAME="popup-top.inc" -->
23     <div class="popup-block">
24 <!-- /TMPL_UNLESS -->
25
26 <!-- TMPL_UNLESS NAME="preview" -->
27     <h1>Claims</h1>
28     <p>
29     <form name="claims" action="claims.pl" method="post">
30         <!-- TMPL_VAR name="CGIsupplier" -->
31         <input type="submit" value="OK" />
32         <!-- TMPL_IF name="phone" -->Phone: <!-- TMPL_VAR name="phone" --><!-- /TMPL_IF -->
33         <!-- TMPL_IF name="booksellerfax" -->Fax: <!-- TMPL_VAR name="booksellerfax" --><!-- /TMPL_IF -->
34         <!-- TMPL_IF name="bookselleremail" --></p><p><a href="mailto:<!-- TMPL_VAR name="bookselleremail" -->"><!-- TMPL_VAR name="bookselleremail" --></a><!-- /TMPL_IF -->
35     </p>
36     <p>
37         <!-- TMPL_IF NAME="letter" -->
38             Select Letter :
39             <select name="letter_code">
40                 <!-- TMPL_LOOP name="letters" -->
41                     <option value="<!--TMPL_VAR Name="code"-->"><!--TMPL_VAR Name="name"--></option>
42                 <!--/TMPL_LOOP-->
43             </select>
44         <!--TMPL_ELSE-->
45             No Letter defined. Please Define One. The list of expected issues is displayed.
46         <!--/TMPL_IF-->
47     </p> 
48         <input type="hidden" name="order" value="<!--TMPL_VAR Name="order"-->" />
49         <input type="hidden" name="op" value="" />
50         <!-- TMPL_IF NAME="missingissues" -->
51             <h3>Missing Issues</h3>
52             <table>
53                 <tr>
54                     <!--TMPL_IF NAME="letter"-->
55                     <th class="cell-header">Claim</th>
56                     <!--/TMPL_IF-->
57                     <th class="cell-header">Supplier</th>
58                     <th class="cell-header">Title</th>
59                     <th class="cell-header">Issue number</th>
60                     <th class="cell-header">Status <a href="javascript:Setorder('status');">sort</a></th>
61                     <th class="cell-header">Since <a href="javascript:Setorder('planneddate');">sort</a></th>
62                 <th class="cell-header">Began Claim</th>
63                 </tr>
64                 <!-- TMPL_LOOP name="missingissues" -->
65                     <tr>
66                         <!--TMPL_IF NAME="letter" -->
67                             <td class="cell">
68                     <input type="checkbox" name="serialid" value="<!-- TMPL_VAR NAME="serialid"-->" onclick="document.claims.op='send_alert';" />
69                             </td>
70                         <!--/TMPL_IF-->
71                         <td class="cell">
72                         <!-- TMPL_VAR name="name" -->
73                         </td>
74                         <td class="cell">
75                         <!-- TMPL_VAR name="title" -->
76                         </td>
77                         <td class="cell">
78                         <!-- TMPL_VAR name="serialseq" -->
79                         </td>
80                         <td class="cell">
81                             <!-- TMPL_IF Name="status1" -->Waited<!-- /TMPL_IF -->
82                             <!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF -->
83                             <!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
84                             <!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
85                             <!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
86                         </td>
87                         <td class="cell">
88                         <!-- TMPL_VAR name="planneddate" -->
89                         </td>
90                         <td class="cell">
91                         <!-- TMPL_VAR name="claimdate" -->
92                         </td>
93                     </tr>
94                 <!-- /TMPL_LOOP -->
95             </table>
96         <!-- TMPL_ELSE -->
97             <p>Select a supplier</p>
98         <!-- /TMPL_IF -->
99
100         <!-- TMPL_IF Name="singlesupplier"-->
101             <input type="hidden" name="supplierid" value="<!--TMPL_VAR NAME="supplierid"-->" />
102             <!--
103                 <a href="claims.pl?supplierid=<!-- TMPL_VAR
104 name="supplierid" -->&amp;op=preview" onclick="popup(<!-- TMPL_VAR
105 name="supplierid" -->,''); return false" class="button">Supplier Group Claim Letter</a></p> -->
106         <!-- /TMPL_IF -->
107
108 <!--TMPL_IF Name="letter" -->
109                 <input type="submit" name="submit" class="button" value="Send letter" />
110             <!--/TMPL_IF-->
111         </form>
112 <!-- TMPL_ELSE -->
113 <!-- TMPL_IF Name="supplierloop"-->
114         <!-- TMPL_LOOP Name="supplierloop"-->
115         <!-- TMPL_IF NAME="name" -->
116         <p><b><!-- TMPL_VAR NAME="name" --></b><br />
117         <!-- /TMPL_IF -->
118         <!-- TMPL_IF NAME="postal" -->
119         <!-- TMPL_VAR NAME="postal" --><br />
120         <!-- /TMPL_IF -->
121         <!-- TMPL_IF NAME="contphone" -->
122         Ph: <!-- TMPL_VAR NAME="contphone" --><br />
123         <!-- /TMPL_IF -->
124         <!-- TMPL_IF NAME="contfax" -->
125         Fax: <!-- TMPL_VAR NAME="contfax" --><br />
126         <!-- /TMPL_IF -->
127         <!-- TMPL_IF NAME="contemail" -->
128         Email: <!-- TMPL_VAR NAME="contemail" --><br />
129         <!-- /TMPL_IF -->
130         <!-- TMPL_IF NAME="accountnumber" -->
131         A/C: <!-- TMPL_VAR NAME="accountnumber" --></p>
132         <!-- /TMPL_IF -->
133         <!-- TMPL_IF NAME="contact" -->
134         <p>Dear <!-- TMPL_VAR NAME="contact" --></p>
135         <!-- TMPL_ELSE -->
136         <p>To whom it may concern</p>
137         <!-- /TMPL_IF -->
138         <p>The following items have not been received from you and are now considered missing:</p>
139         <!-- /TMPL_LOOP -->
140 <!-- /TMPL_IF -->
141         <!-- TMPL_IF NAME="missingissues" -->
142         <h3>Missing Issues</h3>
143         <table>
144             <tr>
145                 <td class="cell"><b>Supplier<b></td>
146                 <td class="cell"><b>Title</b></td>
147                 <td class="cell"><b>Issue number</b></td>
148                 <td class="cell"><b>Missing since</b></td>
149             </tr>
150             <!-- TMPL_LOOP name="missingissues" -->
151                 <tr>
152                     <td class="cell">
153                     <!-- TMPL_VAR name="name" -->
154                     </td>
155                     <td class="cell">
156                     <!-- TMPL_VAR name="Title" -->
157                     </td>
158                     <td class="cell">
159                     <!-- TMPL_VAR name="serialseq" -->
160                     </td>
161                     <td class="cell">
162                     <!-- TMPL_VAR name="planneddate" -->
163                     </td>
164                 </tr>
165             <!-- /TMPL_LOOP -->
166         </table>
167         <!-- /TMPL_IF -->
168
169 <p class="noprint"><a href="javascript:window.print()" class="button">Print</a> &nbsp; <a href="javascript:window.close()" class="button">Close</a></p>
170 <!-- /TMPL_UNLESS -->
171
172 <script type="text/javascript">
173 <!--
174
175 function popup(supplierid,serialid){
176         window.open('claims.pl?supplierid='+ supplierid +'&amp;serialid='+ serialid +'&amp;op=preview' ,'popup', 'width=600,height=400,toolbar=no,scrollbars=yes');
177 }
178 //-->
179 </script>
180 <!-- TMPL_UNLESS NAME="preview" -->
181 </div>
182 </div>
183 </div>
184
185 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
186 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
187
188 <!-- TMPL_ELSE -->
189 <!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->
190 <!-- /TMPL_UNLESS -->
191
192