New XML API
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / serials / claims.tmpl
1 <!-- TMPL_UNLESS NAME="preview" -->
2 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Subscription edit<!--
3 TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
5 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
6
7 <div id="main">
8 <!-- TMPL_ELSE -->
9 <!-- TMPL_INCLUDE NAME="popup-top.inc" -->
10 <div class="popup-block">
11 <!-- /TMPL_UNLESS -->
12
13 <!-- TMPL_UNLESS NAME="preview" -->
14         <h1>Claims</h1>
15
16         <p>
17         <form action="claims.pl" method="post">
18         <input type="hidden" name="claimletter" value="<!-- TMPL_VAR NAME="claimletter"-->">
19         <!-- TMPL_VAR name="CGIsupplier" -->
20         <input type="submit" value="Filter by Supplier" class="button">
21         </form>
22         </p>
23 <!--
24         <p>
25         <form action="claims.pl" method="post">
26         <input type="hidden" name="supplierid" value="<!-- TMPL_VAR NAME="supplierid"-->">
27         <!-- TMPL_VAR name="CGIletter" -->
28         <input type="submit" value="Choose Claim Form" class="button">
29         </form>
30         </p> -->
31
32 <form method="post" action="lateissues-excel.pl">
33 <input type="hidden" name="op" value="claims" />
34
35                 <!-- TMPL_IF NAME="missingissues" -->
36                 <h3>Missing Issues</h3>
37                 <table cellpadding="0" cellspacing="0" border="0" class="collapse">
38                         <tr>
39                                 <th class="cell-header">&nbsp;</th>
40                                 <th class="cell-header">Supplier</th>
41                                 <th class="cell-header">Title</th>
42                                 <th class="cell-header">Issue number</th>
43                                 <th class="cell-header">Missing since</th>
44                                 <th class="cell-header">Began Claim</th>
45                                 <th class="cell-header">&nbsp;</th>
46                         </tr>
47                         <!-- TMPL_LOOP name="missingissues" -->
48                                 <tr>
49                                         <td class="cell">
50                                         <input type="checkbox" name="serialid" value="<!-- TMPL_VAR NAME="serialid"-->">
51                                         </td>
52                                         <td class="cell">
53                                         <!-- TMPL_VAR name="name" -->
54                                         </td>
55                                         <td class="cell">
56                                         <!-- TMPL_VAR name="Title" -->
57                                         </td>
58                                         <td class="cell">
59                                         <!-- TMPL_VAR name="serialseq" -->
60                                         </td>
61                                         <td class="cell">
62                                         <!-- TMPL_VAR name="planneddate" -->
63                                         </td>
64                                         <td class="cell">
65                                         <!-- TMPL_VAR name="claimdate" -->
66                                         </td>
67                                         <td class="cell">
68                                         <a href="lateissues-excel.pl?supplierid=<!--TMPL_VAR NAME="supplierid"-->&amp;serialid=<!-- TMPL_VAR name="serialid" -->&amp;op=claims" class="button">Export Item Data</a>
69                                         <!--
70                                         <a href="claims.pl?serialid=<!-- TMPL_VAR name="serialid" -->&amp;supplierid=<!-- TMPL_VAR name="supplierid" -->&amp;op=preview" onclick="popup(<!-- TMPL_VAR name="supplierid" -->,<!-- TMPL_VAR name="serialid" -->); return false">Claim Letter</a> -->
71                                         </td>
72                                 </tr>
73                         <!-- /TMPL_LOOP -->
74                 </table>
75                 <!-- TMPL_ELSE -->
76                 <p>There are no missing issues to claim</p>
77                 <!-- /TMPL_IF -->
78
79         <!-- TMPL_IF Name="singlesupplier"-->
80 <input type="hidden" name="supplierid" value="<!--TMPL_VAR NAME="supplierid"-->" />
81
82                 <!--
83                 <a href="claims.pl?supplierid=<!-- TMPL_VAR
84 name="supplierid" -->&amp;op=preview" onclick="popup(<!-- TMPL_VAR
85 name="supplierid" -->,''); return false" class="button">Supplier Group Claim Letter</a></p> -->
86         <!-- /TMPL_IF -->
87 <p><br/>
88                 <input type="submit" name="submit" class="button" value="Export Selected Data" />
89
90 </form>
91 <!-- TMPL_ELSE -->
92         <!-- TMPL_IF Name="supplierloop"-->
93                 <!-- TMPL_LOOP Name="supplierloop"-->
94                 <!-- TMPL_IF NAME="name" -->
95                 <p><b><!-- TMPL_VAR NAME="name" --></b><br />
96                 <!-- /TMPL_IF -->
97                 <!-- TMPL_IF NAME="postal" -->
98                 <!-- TMPL_VAR NAME="postal" --><br />
99                 <!-- /TMPL_IF -->
100                 <!-- TMPL_IF NAME="contphone" -->
101                 Ph: <!-- TMPL_VAR NAME="contphone" --><br />
102                 <!-- /TMPL_IF -->
103                 <!-- TMPL_IF NAME="contfax" -->
104                 Fax: <!-- TMPL_VAR NAME="contfax" --><br />
105                 <!-- /TMPL_IF -->
106                 <!-- TMPL_IF NAME="contemail" -->
107                 Email: <!-- TMPL_VAR NAME="contemail" --><br />
108                 <!-- /TMPL_IF -->
109                 <!-- TMPL_IF NAME="accountnumber" -->
110                 A/C: <!-- TMPL_VAR NAME="accountnumber"></p>
111                 <!-- /TMPL_IF -->
112                 <!-- TMPL_IF NAME="contact" -->
113                 <p>Dear <!-- TMPL_VAR NAME="contact" --></p>
114                 <!-- TMPL_ELSE -->
115                 <p>To whom it may concern</p>
116                 <!-- /TMPL_IF -->
117                 <p>The following items have not been received from you and are now considered missing:</p>
118                 <!-- /TMPL_LOOP -->
119         <!-- /TMPL_IF -->
120                 <!-- TMPL_IF NAME="missingissues" -->
121                 <h3>Missing Issues</h3>
122                 <table cellpadding="0" cellspacing="4" border="0" width="550" class="collapse">
123                         <tr>
124                                 <td class="cell"><b>Supplier<b></td>
125                                 <td class="cell"><b>Title</b></td>
126                                 <td class="cell"><b>Issue number</b></td>
127                                 <td class="cell"><b>Missing since</b></td>
128                         </tr>
129                         <!-- TMPL_LOOP name="missingissues" -->
130                                 <tr>
131                                         <td class="cell">
132                                         <!-- TMPL_VAR name="name" -->
133                                         </td>
134                                         <td class="cell">
135                                         <!-- TMPL_VAR name="Title" -->
136                                         </td>
137                                         <td class="cell">
138                                         <!-- TMPL_VAR name="serialseq" -->
139                                         </td>
140                                         <td class="cell">
141                                         <!-- TMPL_VAR name="planneddate" -->
142                                         </td>
143                                 </tr>
144                         <!-- /TMPL_LOOP -->
145                 </table>
146                 <!-- /TMPL_IF -->
147 <br />
148 <p class="noprint"><a href="javascript:window.print()" class="button">Print</a> &nbsp; <a href="javascript:window.close()" class="button">Close</a></p>
149 <!-- /TMPL_UNLESS -->
150
151 </div>
152 <script type="text/javascript">
153 <!--
154
155 function popup(supplierid,serialid){
156         window.open('claims.pl?supplierid='+ supplierid +'&amp;serialid='+ serialid +'&amp;op=preview' ,'popup', 'width=600,height=400,toolbar=no,scrollbars=yes');
157 }
158 //-->
159 </script>
160 <!-- TMPL_UNLESS NAME="preview" -->
161 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
162 <!-- TMPL_ELSE -->
163 <!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->
164 <!-- /TMPL_UNLESS -->
165
166