1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Basket Grouping for [% booksellername %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% yuipath %]/fonts/fonts-min.css" />
6 <script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
7 <script type="text/javascript" src="[% yuipath %]/animation/animation-min.js"></script>
8 <script type="text/javascript" src="[% yuipath %]/dragdrop/dragdrop-min.js"></script>
9 <script type="text/javascript" src="[% yuipath %]/element/element-min.js"></script>
10 <script type="text/javascript" src="[% yuipath %]/tabview/tabview-min.js"></script>
11 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
12 <link rel="stylesheet" type="text/css" href="[% yuipath %]/tabview/assets/skins/sam/tabview.css" />
14 <style type="text/css">
15 /*margin and padding on body element
16 can introduce errors in determining
17 element position and are not recommended;
18 we turn them off as a foundation for YUI
36 div.workarea_alt { padding: 5px; float:left; width: 95%;}
37 div.closed { background-color="pink"; padding:10px; float:left; width: 45%;}
43 border: 1px solid gray;
53 border: 1px solid gray;
67 border: 1px solid gray;
81 background-color: #D1E6EC;
82 border:1px solid #7EA6B2;
87 background-color: #D8D4E2;
88 border:1px solid #6B4C86;
101 background-color: #D8D4E2;
112 <script type="text/javascript">
114 YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
115 var tabView = new YAHOO.widget.TabView('bgtabs');
119 function submitForm(form) {
120 if (form.close.checked == true) {
121 var input = document.createElement("input");
122 input.setAttribute("type", "hidden");
123 input.setAttribute("name", "closed");
124 input.setAttribute("value", "1");
125 form.appendChild(input);
132 [% INCLUDE 'header.inc' %]
133 [% INCLUDE 'acquisitions-search.inc' %]
135 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername %]</a> › Basket Grouping</div>
137 <div id="doc" class="yui-t7">
141 <script type="text/javascript">
144 // prepare DOM for YUI Toolbar
146 $(document).ready(function() {
147 // $("#toolbar").empty();
151 // YUI Toolbar Functions
153 function yuiToolbar() {
154 var booksellermenu = [
155 { text: _("Vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]" },
156 { text: _("Edit vendor"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]"},
159 { text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?supplierid=[% booksellerid %]" },
160 { text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" },
162 new YAHOO.widget.Button("newbasketgroup");
163 new YAHOO.widget.Button({
166 name: "booksellerbutton",
167 menu: booksellermenu,
171 new YAHOO.widget.Button({
174 name: "ordersbutton",
181 <a href="?op=add&booksellerid=[% booksellerid %]" name="newbasketgroup" id="newbasketgroup">New Basket Group</a>
183 <h1>Basket Grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername %]</a></h1>
185 [% IF ( grouping ) %]
188 <div class="yui-u grouping">
190 <form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
192 <div class="workarea_alt" >
193 <h3>Ungrouped Baskets</h3>
194 <ul id="ungrouped" class="draglist_alt">
196 [% FOREACH basket IN baskets %]
197 <li class="ungrouped" id="b-[% basket.basketno %]" >
198 <a href="basket.pl?basketno=[% basket.basketno %]">
199 [% IF ( basket.basketname ) %]
200 [% basket.basketname %]
202 No name, basketnumber: [% basket.basketno %]
205 Total: [% basket.total %]
206 <input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
217 <div class="yui-u first">
218 <form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
219 <fieldset id="various" class='various' >
220 <h3><label for="basketgroupname">Basket Group Name:</label></h3>
221 <input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" />
222 <h3><label for="billingplace">Billing Place:</label></h3>
223 <select name="billingplace" id="billingplace">
224 [% FOREACH billingplaceloo IN billingplaceloop %]
225 <option value="[% billingplaceloo.value %]" [% IF ( billingplaceloo.selected ) %]selected[% END %]>[% billingplaceloo.branchname %]</option>
228 <h3><label for="deliveryplace">Delivery Place:</label></h3>
229 <select name="deliveryplace" id="deliveryplace">
230 <option value="">--</option>
231 [% FOREACH deliveryplaceloo IN deliveryplaceloop %]
232 <option value="[% deliveryplaceloo.value %]" [% IF ( deliveryplaceloo.selected ) %]selected[% END %]>[% deliveryplaceloo.branchname %]</option>
236 <h3><label for="freedeliveryplace">Delivery Place:</label></h3>
237 <textarea cols="26" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea>
238 <h3><label for="deliverycomment">Delivery comment:</label></h3>
239 <textarea cols="26" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
240 <div class="workarea">
242 <ul class="draglist" id="bg">
243 [% FOREACH selectedbasket IN selectedbaskets %]
244 <li class="grouped" id="b-[% selectedbasket.basketno %]" >
245 <a href="basket.pl?basketno=[% selectedbasket.basketno %]">
246 [% IF ( selectedbasket.basketname ) %]
247 [% selectedbasket.basketname %]
249 No name, basketnumber: [% selectedbasket.basketno %]
252 Total: [% selectedbasket.total %]
253 <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
259 <div><input type="checkbox" name="close"> Close</input></div>
260 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
261 [% IF ( basketgroupid ) %]
262 <input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
264 <input type="hidden" name="op" value="attachbasket" />
265 <input type="submit" value="Save" />
273 <div id="bgtabs" class="yui-navset">
275 <li[% UNLESS ( closed ) %] class="selected"[% END %]><a href="#opened"><em>Opened</em></a></li>
276 <li[% IF ( closed ) %] class="selected"[% END %]><a href="#closed"><em>Closed</em></a></li>
278 <div class="yui-content">
281 [% FOREACH basketgroup IN basketgroups %]
282 [% UNLESS ( basketgroup.closed ) %]
283 <li class="basketgroup">
284 [% IF ( basketgroup.name ) %]
285 [% basketgroup.name %]
287 Basket Group n°[% basketgroup.id %]
291 <span class="yui-button yui-link-button">
292 <span class="first-child">
293 <a href="javascript:closeandprint([% basketgroup.id %])" class="yui-button yui-link-button">Close & Print</a>
298 <span class="yui-button yui-link-button">
299 <span class="first-child">
300 <a href="?op=add&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button" >Edit</a>
305 <span class="yui-button yui-link-button">
306 <span class="first-child">
307 <a href="?op=delete&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button" >Delete</a>
320 [% FOREACH basketgroup IN basketgroups %]
321 [% IF ( basketgroup.closed ) %]
322 <li class="basketgroup">
323 [% IF ( basketgroup.name ) %]
324 [% basketgroup.name %]
326 Basket Group n°[% basketgroup.id %]
330 <span class="yui-button yui-link-button">
331 <span class="first-child">
332 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button">Reopen</a>
337 <span class="yui-button yui-link-button">
338 <span class="first-child">
339 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=print&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button">Print</a>
355 [% INCLUDE 'intranet-bottom.inc' %]