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