Modifications to enable YUI-Grids layout structure. Unfinished.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / basket.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Shopping Basket (<!-- TMPL_VAR NAME="basketno" -->) for <!-- TMPL_VAR NAME="name" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="header.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
6
7
8 <div id="doc3" class="yui-t2">
9    
10    <div id="bd">
11         <div id="yui-main">
12         <div class="yui-b"><div class="yui-g">
13
14     <h1><!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Shopping Basket <!-- TMPL_VAR NAME="basketno" --> for <a href="supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a></h1>
15     <div id="acqui_basket_summary">
16         <h2>Basket Details</h2>
17         <p><label>Basket number </label> <!-- TMPL_VAR NAME="basketno" -->&nbsp;</p>
18         <p><label>Managed by </label> <!-- TMPL_VAR NAME="authorisedbyname" -->&nbsp;</p>
19         <p><label>Open on </label> <!-- TMPL_VAR NAME="creationdate" -->&nbsp;</p>
20         <p><label>For </label> Supplier Id <!-- TMPL_VAR NAME="booksellerid" -->&nbsp;</p>
21         <p><label>Invoice number </label><!-- TMPL_VAR NAME="booksellerinvoicenumber" -->&nbsp;</p>
22         <!-- TMPL_IF name="closedate" --><p><label>Closed On: </label> <!-- TMPL_VAR name="closedate" --></p><!-- /TMPL_IF -->
23         <!-- TMPL_UNLESS name="closedate" -->
24         <p><a href="javascript:confirm_close()" class="button">Close this basket</a></p>
25         <script type="text/javascript">
26             function confirm_close() {
27                 var is_confirmed = confirm('Are you sure you want to close this basket?');
28                 if (is_confirmed) {
29                     window.location = "/cgi-bin/koha/acqui/booksellers.pl?op=close&basketno=<!-- TMPL_VAR NAME="basketno" -->&supplier=<!-- TMPL_VAR name="booksellerid" -->";
30                 }
31             }
32         </script>
33         <!-- /TMPL_UNLESS -->
34     </div>
35     
36     <div id="acqui_basket_content">
37     <h2>Order Details</h2>
38     <!-- TMPL_IF name="books_loop" -->
39         <table>
40             <tr>
41                 <th>Order</th>
42                 <th><a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->&amp;order=biblioitems.publishercode">Publisher</a></th>
43                 <th>Title</th>
44                 <th>RRP</th>
45                 <th>Est.</th>
46                 <th>Qty.</th>
47                 <th>Total</th>
48                 <th class="DoNotPrint">
49                     <a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->&amp;order=aqorderbreakdown.bookfundid,biblioitems.publishercode">
50                         Fund
51                     </a>
52                 </th>
53                 <!-- TMPL_IF name="active" -->
54                     <!-- TMPL_UNLESS name="closedate" -->
55                         <th>Modify</th>
56                         <th>Delete</th>
57                     <!-- /TMPL_UNLESS -->
58                 <!-- /TMPL_IF -->
59             </tr>
60             <!-- TMPL_LOOP NAME="books_loop" -->
61                 <!-- TMPL_IF NAME="highlight" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
62                     <td><!-- TMPL_VAR NAME="ordernumber" --></td>
63                     <td><!-- TMPL_VAR NAME="publishercode" --></td>
64                     <!-- TMPL_IF name="closedate" -->
65                         <td><p>
66                             <!-- TMPL_VAR NAME="title" --><br />
67                                 <!-- TMPL_VAR NAME="author" -->
68                                 <!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
69                                 <!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
70                             </p>
71                         </td>
72                     <!-- TMPL_ELSE -->
73                         <td>
74                             <p>
75                             <!-- TMPL_VAR NAME="title" --></p>
76                                 <p><!-- TMPL_VAR NAME="author" -->
77                                 <!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
78                                 <!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
79                             </p>
80                         </td>
81                     <!-- /TMPL_IF -->
82                     <td class="number"><!-- TMPL_VAR NAME="rrp" --></td>
83                     <td class="number"><!-- TMPL_VAR NAME="ecost" --></td>
84                     <td class="number"><!-- TMPL_VAR NAME="quantity" --></td>
85                     <td class="number"><!-- TMPL_VAR NAME="line_total" --></td>
86                     <td class="DoNotPrint"><!-- TMPL_VAR NAME="bookfundname" --></td>
87                     <!-- TMPL_IF name="active" -->
88                         <!-- TMPL_UNLESS name="closedate" -->
89                         <td>
90                             <a href="neworderempty.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">Modify</a>
91                         </td>
92                         <td>
93                         <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>
94                         </td>
95                         <!-- /TMPL_UNLESS -->
96                     <!-- /TMPL_IF -->
97                 </tr>
98             <!-- /TMPL_LOOP -->
99             <tr>
100                 <td colspan="2" rowspan="3">
101                     <input type="hidden" name="number" value="<!-- TMPL_VAR NAME="count" -->" />
102                     <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
103                 </td>
104                 <th>SubTotal</th>
105                 <th><!-- TMPL_VAR NAME="sub_total_est" --></th>
106                 <th><!-- TMPL_VAR NAME="sub_total" --></th>
107                 <th><!-- TMPL_VAR name="qty_total" --></th>
108                     <!-- TMPL_IF name="active" -->
109                         <!-- TMPL_IF name="closedate" -->
110                           <td colspan="2" rowspan="3">&nbsp;</td>
111                         <!-- TMPL_ELSE -->
112                           <td colspan="3" rowspan="3">&nbsp;</td>
113                         <!-- /TMPL_IF -->
114                     <!-- /TMPL_IF -->
115                 
116             </tr>
117             <tr>
118                 <th>GST</th>
119                 <th><!-- TMPL_VAR NAME="gist_est" --></th>
120                 <th><!-- TMPL_VAR NAME="gist" --></th>
121                 <th>&nbsp;</th>
122             </tr>
123             <tr>
124                 <th>TOTAL  (<!-- TMPL_VAR NAME="currency" -->)</th>
125                 <th><!-- TMPL_VAR NAME="grand_total_est" --></th>
126                 <th><!-- TMPL_VAR NAME="grand_total" --></th>
127                 <th>&nbsp;</th>
128             </tr>
129         </table>
130     <!-- TMPL_ELSE -->
131         <table>
132             <tr><td>Basket empty</td></tr>
133         </table>
134     <!-- /TMPL_IF -->
135     </div>
136     
137     <!-- TMPL_UNLESS name="closedate" -->
138     <div id="acqui_basket_add">
139         <h2>Add To Order</h2>
140         <form action="/cgi-bin/koha/acqui/neworderbiblio.pl" method="post">
141             <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
142             <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" />
143             <ul><li><label for="q">From an existing record: </label><input id="q" type="text"  size="25"   name="q" />
144             <input type="submit" value="Search" /></li>
145             <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>
146             <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->">New Record</a></li>
147             </ul>
148         </form>
149     </div>
150     <!-- /TMPL_UNLESS -->
151
152 </div>
153 </div>
154 </div>
155
156 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
157 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->