BUGFIX : colspan wrong
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / basket.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Acquisitions &rsaquo; <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Basket <!-- TMPL_IF NAME="basketno" -->(<!-- TMPL_VAR NAME="basketno" -->)<!-- /TMPL_IF --> for <!-- TMPL_VAR NAME="name" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_UNLESS name="closedate" -->
5 <script type="text/javascript">
6 //<![CDATA[
7             function confirm_close() {
8                 var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
9                 if (is_confirmed) {
10                     window.location = "/cgi-bin/koha/acqui/booksellers.pl?op=close&basketno=<!-- TMPL_VAR NAME="basketno" -->&supplierid=<!-- TMPL_VAR name="booksellerid" -->";
11                 }
12             }
13 //]]>
14         </script>
15 <!-- TMPL_ELSE -->
16 <!-- TMPL_UNLESS name="grouped" -->
17 <script type="text/javascript">
18 //<![CDATA[
19             function confirm_reopen() {
20                 var is_confirmed = confirm(_('Are you sure you want to reopen this basket?'));
21                 if (is_confirmed) {
22                     window.location = "/cgi-bin/koha/acqui/booksellers.pl?op=reopen&basketno=<!-- TMPL_VAR NAME="basketno" -->&supplierid=<!-- TMPL_VAR name="booksellerid" -->";
23                 }
24             }
25 //]]>
26 </script>
27 <!-- /TMPL_UNLESS -->
28 <!-- /TMPL_UNLESS -->
29 <style type="text/css">
30 .sortmsg {font-size: 80%;}
31 </style>
32 </head>
33 <body>
34 <!-- TMPL_INCLUDE NAME="header.inc" -->
35 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
36
37
38 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a> &rsaquo; <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Basket <!-- TMPL_IF NAME="basketno" -->(<!-- TMPL_VAR NAME="basketno" -->)<!-- /TMPL_IF --> for <!-- TMPL_VAR NAME="name" --></div>
39
40 <div id="doc3" class="yui-t2">
41    
42    <div id="bd">
43         <div id="yui-main">
44         <div class="yui-b">
45         
46          <!-- TMPL_UNLESS name="closedate" -->
47              <div id="toolbar">
48                  <script type="text/javascript">
49                      //<![CDATA[
50                      // prepare DOM for YUI Toolbar
51                       $(document).ready(function() {
52                          yuiToolbar();
53                       });
54                      // YUI Toolbar Functions
55                      function yuiToolbar() {
56                          <!-- TMPL_IF name="unclosable" -->
57                              new YAHOO.widget.Button("uncertpricesbutton");
58                              new YAHOO.widget.Button("closebutton", {disabled:true});
59                          <!-- TMPL_ELSE -->
60                              new YAHOO.widget.Button("closebutton");
61                          <!-- /TMPL_IF -->
62                          new YAHOO.widget.Button("basketheadbutton");
63                          new YAHOO.widget.Button("delbasketbutton");
64                      }
65                      //]]>
66                  </script>
67                  <ul id=toolbar-list" class="toolbar">
68                  <li><a href="basketheader.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->&op=add_form" class="button" id="basketheadbutton">Edit basket header information</a></li>
69                  <li><a href="<!-- TMPL_VAR NAME="script_name" -->?op=del_basket&basketno=<!-- TMPL_VAR NAME="basketno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" class="button" id="delbasketbutton">Delete this basket</a></li>
70                  <!-- TMPL_IF name="unclosable" -->
71                      <li><button onclick="confirm_close()" class="yui-button-disabled" id="closebutton" type="push" disabled="true" title="You can not close this basket" >Can not close basket</a></li>
72                      <!-- TMPL_IF name="basketno" -->
73                         <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&basketno=<!-- TMPL_VAR name="basketno" -->&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
74                     <!-- TMPL_ELSE -->
75                         <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" class="button" id="uncertpricesbutton">Uncertain prices</a></li>
76                     <!--/TMPL_IF -->
77                  <!-- TMPL_ELSE -->
78                      <li><a href="javascript:confirm_close()" class="button" id="closebutton">Close this basket</a></li>
79                  <!-- /TMPL_IF -->
80                  </ul>
81              </div>
82         <!-- TMPL_ELSE -->
83             <!-- TMPL_UNLESS name="grouped" -->
84             <div id="toolbar">
85                  <script type="text/javascript">
86                      //<![CDATA[
87                      // prepare DOM for YUI Toolbar
88                       $(document).ready(function() {
89                          yuiToolbar();
90                       });
91                       // YUI Toolbar Functions
92                      function yuiToolbar() {
93                          new YAHOO.widget.Button("reopenbutton");
94                      }
95                      //]]>
96                  </script>
97                      <ul id="toolbar-list" class="toolbar">
98                          <li><a href="javascript:confirm_reopen()" class="button" id="reopenbutton">Reopen this basket</a></li>
99                      </ul>
100              </div>
101              <!-- /TMPL_UNLESS -->
102         <!-- /TMPL_UNLESS -->
103         
104 <!-- TMPL_IF NAME="NO_BOOKSELLER" -->
105 <h2>Supplier Not Found</h2>
106 <!-- TMPL_ELSE -->
107     <!-- TMPL_IF NAME="delete_confirmed" -->
108         <h3>Basket deleted</h3>
109         <META HTTP-EQUIV=Refresh CONTENT="0; URL=booksellers.pl">
110     <!-- TMPL_ELSE -->
111     <h1><!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS --><!-- TMPL_IF NAME="delete_confirm" -->Delete<!-- /TMPL_IF -->Basket <!-- TMPL_VAR NAME="basketno" --> for <a href="supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a></h1>
112     <!-- TMPL_IF NAME="delete_confirm" -->
113         <h2>
114         <span class="yui-button yui-link-button">
115           <em class="first-child">
116             <a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&basketno=<!-- TMPL_VAR NAME="basketno" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" class="yui-link-button">Yes, delete this basket!</a>
117           </em>
118         </span>
119         <span class="yui-button yui-link-button">
120           <em class="first-child">
121             <a href="<!-- TMPL_VAR name="script_name" -->?basketno=<!-- TMPL_VAR name="basketno" -->" class="yui-link-button">Cancel</a>
122           </em>
123         </span>
124         </h2>
125     <!-- /TMPL_IF -->
126     <!-- TMPL_IF NAME="basketno" --><div id="acqui_basket_summary">
127         <h2>Basket Details</h2>
128         <p>Basket number:  <!-- TMPL_VAR NAME="basketno" --></p>
129         <p>Basket name: <!--TMPL_VAR NAME="basketname" --></p>
130         <p>Internal note: <!-- TMPL_VAR NAME="basketnote" --></p>
131         <p>Bookseller note: <!-- TMPL_VAR NAME="basketbooksellernote" --></p>
132         <!-- TMPL_IF NAME="basketcontractno" -->
133         <p>Contract number: <!-- TMPL_VAR NAME="basketcontractno" --></p>
134         <p>Contract name: <a href="../admin/aqcontract.pl?op=add_form&contractnumber=<!-- TMPL_VAR NAME="basketcontractno" -->"><!-- TMPL_VAR NAME="basketcontractname" --></a></p>
135         <!-- /TMPL_IF -->
136         <p>Managed by:  <!-- TMPL_VAR NAME="authorisedbyname" --></p>
137         <p>Open on:  <!-- TMPL_VAR NAME="creationdate" --></p>
138         <p>For vendor ID: <!-- TMPL_VAR NAME="booksellerid" --></p>
139         <p>Invoice number: <!-- TMPL_VAR NAME="booksellerinvoicenumber" --></p>
140         <!-- TMPL_IF name="closedate" -->
141           <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
142           <p>Closed On:  <!-- TMPL_VAR name="closedate" --></p>
143           <!-- TMPL_IF name="basketgroups" -->
144               <p> basketgroup: <select id="basketgroupid" name="basketgroupid">
145                   <!-- TMPL_LOOP name="basketgroups" -->
146                     <!-- TMPL_IF name="default" -->
147                       <option value="<!-- TMPL_VAR name="id" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
148                     <!-- TMPL_ELSE -->
149                       <option value="<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR name="name" --></option>
150                     <!-- /TMPL_IF -->
151                   <!-- /TMPL_LOOP -->
152                 </select>
153                 <input type="hidden" id="basketno" value="<!-- TMPL_VAR name="basketno" -->" name="basketno" />
154                 <input type="hidden" value="mod_basket" name="op" />
155                 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
156                 <input type="submit" value="Change basketgroup" />
157               </p>
158           </form>
159           <!-- /TMPL_IF -->
160         <!-- /TMPL_IF -->
161         <p>Number of orders: <!-- TMPL_VAR name="count" --></p>
162     </div><!-- /TMPL_IF -->
163     
164     <!-- TMPL_UNLESS name="delete_confirm" -->
165     <div id="acqui_basket_content">
166     <h2>Order Details</h2>
167         <!-- TMPL_IF NAME="sort_loop" -->
168                 <!-- TMPL_LOOP NAME="sort_loop" -->
169                         <!-- TMPL_IF name="error" -->
170                         <div class="dialog alert">ERROR: Illegal sort requested by &quot;<!-- TMPL_VAR NAME="string" -->&quot;.
171                                 <br />Please use valid sort criteria. <a href="/cgi-bin/koha/acqui/basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">Return to default results.</a></div>
172                         <!-- TMPL_ELSE -->
173                         <div class="dialog message">Sorted by &quot;<!-- TMPL_VAR NAME="string" -->&quot;.</div>
174                         <!-- /TMPL_IF -->
175                 <!-- /TMPL_LOOP -->
176         <!-- /TMPL_IF -->
177     <!-- TMPL_IF name="books_loop" -->
178         <table>
179             <tr>
180                 <th>Order</th>
181                 <th>Title</th>
182                 <th>ISBN</th>
183                 <th><a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->&amp;order=biblioitems.publishercode">Publisher</a></th>
184                 <th>RRP</th>
185                 <th>Est.</th>
186                 <th>Qty.</th>
187                 <th>Total</th>
188                 <th>Budget</th>
189                 <!-- TMPL_IF name="active" -->
190                     <!-- TMPL_UNLESS name="closedate" -->
191                         <th>Modify</th>
192                         <th>Delete</th>
193                     <!-- /TMPL_UNLESS -->
194                 <!-- /TMPL_IF -->
195             </tr>
196             <!-- TMPL_LOOP NAME="books_loop" -->
197                  <!-- TMPL_IF NAME="order_received" --><tr class="disabled"><!-- TMPL_ELSE --><!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF --><!-- /TMPL_IF -->
198                     <td><!-- TMPL_VAR NAME="ordernumber" -->
199                                                         <!-- TMPL_IF NAME="order_received" --> (rcvd)<!-- /TMPL_IF --></td>
200                         <td>
201                                 <p>
202                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a></p>
203                                 <p><!-- TMPL_VAR NAME="author" -->
204                                 <!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
205                             </p>
206                         </td>
207                     <td><!-- TMPL_IF name="isbn"--><!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF --></td>
208                     <td><!-- TMPL_VAR NAME="publishercode" --></td>
209                     <td class="number"><!-- TMPL_VAR NAME="rrp" --></td>
210                     <td class="number"><!-- TMPL_VAR NAME="ecost" --></td>
211                     <td class="number"><!-- TMPL_VAR NAME="quantity" --></td>
212                     <td class="number"><!-- TMPL_VAR NAME="line_total" --></td>
213                     <td><!-- TMPL_VAR NAME="budget_name" --></td>
214                     <!-- TMPL_IF name="active" -->
215                         <!-- TMPL_UNLESS name="closedate" -->
216                         <td>
217                             <a href="neworderempty.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">Modify</a>
218                         </td>
219                         <td>
220                         <a href="addorder.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->&amp;quantity=0&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Delete</a>
221                         </td>
222                         <!-- /TMPL_UNLESS -->
223                     <!-- /TMPL_IF -->
224                 </tr>
225             <!-- /TMPL_LOOP -->
226             <tr>
227                 <td colspan="4" rowspan="3">
228                     <input type="hidden" name="number" value="<!-- TMPL_VAR NAME="count" -->" />
229                     <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
230                 </td>
231                 <th>SubTotal</th>
232                 <th><!-- TMPL_VAR NAME="sub_total_rrp" --></th>
233                 <th><!-- currently duplicative <!-- TMPL_VAR NAME="sub_total_est" --> --></th>
234                 <th><!-- TMPL_VAR name="qty_total" --></th>
235                 <th><!-- TMPL_VAR NAME="sub_total" --></th>
236                     <!-- TMPL_IF name="active" -->
237                         <!-- TMPL_IF name="closedate" -->
238                           <td colspan="1" rowspan="3">&nbsp;</td>
239                         <!-- TMPL_ELSE -->
240                           <td colspan="3" rowspan="3">&nbsp;</td>
241                         <!-- /TMPL_IF -->
242                     <!-- /TMPL_IF -->
243             </tr>
244                         <tr>
245                 <th>GST (<!-- TMPL_VAR NAME="gist_rate" -->)</th>
246                 <th><!-- TMPL_VAR NAME="gist_rrp" --></th>
247 <!-- TMPL_UNLESS NAME="listincgst" -->
248                 <th><!-- currently duplicative <!-- TMPL_VAR NAME="gist_est" --> --></th>
249                 <th>&nbsp;</th>
250                 <th><!-- TMPL_VAR NAME="gist" --></th>
251 <!-- TMPL_ELSE -->
252                                 <th colspan="3">**</th>
253 <!-- /TMPL_UNLESS -->
254             </tr>
255             <tr>
256                 <th>TOTAL (<!-- TMPL_VAR NAME="currency" -->)</th>
257                 <th><!-- TMPL_VAR NAME="grand_total_rrp" --></th>
258                 <th>&nbsp;</th>
259                 <th><!-- TMPL_VAR name="qty_total" --></th>
260                 <th><!-- TMPL_VAR NAME="grand_total" --></th>
261             </tr>
262         </table>
263     <!-- TMPL_ELSE -->
264         <table>
265             <tr><td>Basket empty</td></tr>
266         </table>
267     <!-- /TMPL_IF -->
268         <!-- TMPL_IF NAME="listincgst" --><small class="highlight">** Vendor's listings already include GST.</small>
269     <!-- /TMPL_IF -->
270     </div>
271     <br />
272     <!-- TMPL_UNLESS name="closedate" -->
273         <div id="acqui_basket_add">
274             <h2>Add To Order</h2>
275             <form action="/cgi-bin/koha/acqui/neworderbiblio.pl" method="post">
276                 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
277                 <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
278                 <ul><li><label for="q">From an existing record: </label><input id="q" type="text"  size="25" name="q" />
279                 <input type="submit" value="Search" /></li>
280                 <li><a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">From a Suggestion</a></li>
281                 <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">From a new (empty) record</a></li>
282                 <li><a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">From a z3950 query</a></li>
283                 <li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->"> From an imported iso2709 file</a></li>
284                 </ul>
285             </form>
286         </div>
287     <!-- /TMPL_UNLESS -->
288     <!-- /TMPL_UNLESS -->
289 <!-- /TMPL_IF -->
290 <!-- /TMPL_IF -->
291 </div>
292 </div>
293 <div class="yui-b">
294 <!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
295 </div>
296 </div>
297 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->