1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Basket Grouping for <!-- TMPL_VAR name="booksellername" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="yuipath" -->/fonts/fonts-min.css" />
6 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/yahoo-dom-event/yahoo-dom-event.js"></script>
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/animation/animation-min.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/dragdrop/dragdrop-min.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/element/element-min.js"></script>
10 <script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/tabview/tabview-min.js"></script>
11 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script>
12 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME='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 <!-- TMPL_INCLUDE NAME="header.inc" -->
133 <!-- TMPL_INCLUDE NAME="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=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="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=<!-- TMPL_VAR name="booksellerid" -->" },
156 { text: _("Edit vendor"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->"},
159 { text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?supplierid=<!-- TMPL_VAR name="booksellerid" -->" },
160 { text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="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=<!-- TMPL_VAR NAME="booksellerid" -->" name="newbasketgroup" id="newbasketgroup">New Basket Group</a>
183 <h1>Basket Grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR name="booksellername" --></a></h1>
185 <!-- TMPL_IF NAME="grouping" -->
188 <div class="yui-u grouping">
190 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post" name="basketgroups" id="basketgroups">
192 <div class="workarea_alt" >
193 <h3>Ungrouped Baskets</h3>
194 <ul id="ungrouped" class="draglist_alt">
195 <!-- TMPL_IF NAME="baskets" -->
196 <!-- TMPL_LOOP NAME="baskets" -->
197 <li class="ungrouped" id="b-<!-- TMPL_VAR NAME="basketno" -->" >
198 <a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
199 <!-- TMPL_IF NAME="basketname" -->
200 <!-- TMPL_VAR NAME="basketname" -->
202 No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
205 Total: <!-- TMPL_VAR name="total" -->
206 <input type="hidden" class="basket" name="basket" value="<!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="name" -->" />
222 <h3><label for="billingplace">Billing Place:</label></h3>
223 <select name="billingplace" id="billingplace">
224 <!-- TMPL_LOOP name="billingplaceloop" -->
225 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
228 <h3><label for="deliveryplace">Delivery Place:</label></h3>
229 <select name="deliveryplace" id="deliveryplace">
230 <option value="">--</option>
231 <!-- TMPL_LOOP name="deliveryplaceloop" -->
232 <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
236 <h3><label for="freedeliveryplace">Delivery Place:</label></h3>
237 <textarea cols="26" name="freedeliveryplace" id="freedeliveryplace"><!-- TMPL_VAR NAME="freedeliveryplace" --></textarea>
238 <h3><label for="deliverycomment">Delivery comment:</label></h3>
239 <textarea cols="26" name="deliverycomment" id="deliverycomment"><!-- TMPL_VAR NAME="deliverycomment" --></textarea>
240 <div class="workarea">
242 <ul class="draglist" id="bg">
243 <!-- TMPL_LOOP NAME="selectedbaskets" -->
244 <li class="grouped" id="b-<!-- TMPL_VAR NAME="basketno" -->" >
245 <a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
246 <!-- TMPL_IF NAME="basketname" -->
247 <!-- TMPL_VAR NAME="basketname" -->
249 No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
252 Total: <!-- TMPL_VAR name="total" -->
253 <input type="hidden" class="basket" name="basket" value="<!-- TMPL_VAR NAME="basketno" -->" />
259 <div><input type="checkbox" name="close"> Close</input></div>
260 <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
261 <!-- TMPL_IF NAME="basketgroupid" -->
262 <input type="hidden" name="basketgroupid" value="<!-- TMPL_VAR name="basketgroupid" -->" />
264 <input type="hidden" name="op" value="attachbasket" />
265 <input type="submit" value="Save" />
273 <div id="bgtabs" class="yui-navset">
275 <li<!-- TMPL_UNLESS NAME="closed" --> class="selected"<!-- /TMPL_UNLESS -->><a href="#opened"><em>Opened</em></a></li>
276 <li<!-- TMPL_IF NAME="closed" --> class="selected"<!-- /TMPL_IF -->><a href="#closed"><em>Closed</em></a></li>
278 <div class="yui-content">
281 <!-- TMPL_LOOP NAME="basketgroups" -->
282 <!-- TMPL_UNLESS NAME="closed" -->
283 <li class="basketgroup">
284 <!-- TMPL_IF NAME="name" -->
285 <!-- TMPL_VAR NAME="name" -->
287 Basket Group n°<!-- TMPL_VAR NAME="id" -->
291 <span class="yui-button yui-link-button">
292 <span class="first-child">
293 <a href="javascript:closeandprint(<!-- TMPL_VAR "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=<!-- TMPL_VAR NAME="booksellerid" -->&basketgroupid=<!-- TMPL_VAR NAME="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=<!-- TMPL_VAR NAME="booksellerid" -->&basketgroupid=<!-- TMPL_VAR NAME="id" -->" class="yui-button yui-link-button" >Delete</a>
314 <!-- /TMPL_UNLESS -->
320 <!-- TMPL_LOOP NAME="basketgroups" -->
321 <!-- TMPL_IF NAME="closed" -->
322 <li class="basketgroup">
323 <!-- TMPL_IF NAME="name" -->
324 <!-- TMPL_VAR NAME="name" -->
326 Basket Group n°<!-- TMPL_VAR NAME="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=<!-- TMPL_VAR NAME="booksellerid" -->&basketgroupid=<!-- TMPL_VAR "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=<!-- TMPL_VAR "id" -->" class="yui-button yui-link-button">Print</a>
355 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->