340 lines
12 KiB
Cheetah
Executable file
340 lines
12 KiB
Cheetah
Executable file
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Basket grouping for Vendor <!-- TMPL_VAR name="booksellername" --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
|
|
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="yuipath" -->/fonts/fonts-min.css" />
|
|
<script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/yahoo-dom-event/yahoo-dom-event.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/animation/animation-min.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/dragdrop/dragdrop-min.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/element/element-min.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR NAME="yuipath" -->/tabview/tabview-min.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME='yuipath' -->/tabview/assets/skins/sam/tabview.css" />
|
|
|
|
<style type="text/css">
|
|
/*margin and padding on body element
|
|
can introduce errors in determining
|
|
element position and are not recommended;
|
|
we turn them off as a foundation for YUI
|
|
CSS treatments. */
|
|
body {
|
|
margin:0;
|
|
padding:0;
|
|
}
|
|
|
|
#ungrouped {
|
|
overflow: auto;
|
|
height: 400px;
|
|
}
|
|
|
|
.draglist{
|
|
width: 200px;
|
|
height: 300px;
|
|
overflow: auto;
|
|
}
|
|
|
|
div.workarea_alt { padding: 5px; float:left; width: 95%;}
|
|
div.closed { background-color="pink"; padding:10px; float:left; width: 45%;}
|
|
|
|
ul.closed {
|
|
position: relative;
|
|
background: grey;
|
|
padding-bottom:10;
|
|
border: 1px solid gray;
|
|
list-style: none;
|
|
margin:0;
|
|
padding: 5px;
|
|
}
|
|
|
|
ul.draglist {
|
|
position: relative;
|
|
background: #f7f7f7;
|
|
padding-bottom:10;
|
|
border: 1px solid gray;
|
|
list-style: none;
|
|
margin:0;
|
|
padding: 5px;
|
|
}
|
|
|
|
ul.draglist li {
|
|
margin: 1px;
|
|
cursor: move;
|
|
list-style: none;
|
|
}
|
|
|
|
ul.draglist_alt {
|
|
position: relative;
|
|
border: 1px solid gray;
|
|
list-style: none;
|
|
margin: 0;
|
|
background: #f7f7f7;
|
|
padding: 5px;
|
|
cursor: move;
|
|
}
|
|
|
|
ul.draglist_alt li {
|
|
margin: 1px;
|
|
list-style: none;
|
|
}
|
|
|
|
li.grouped {
|
|
background-color: #D1E6EC;
|
|
border:1px solid #7EA6B2;
|
|
list-style: none;
|
|
}
|
|
|
|
li.ungrouped {
|
|
background-color: #D8D4E2;
|
|
border:1px solid #6B4C86;
|
|
}
|
|
|
|
fieldset.various li {
|
|
list-style: none;
|
|
clear: none;
|
|
}
|
|
|
|
.basketgroup {
|
|
margin-top: 10px;
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
list-style: none;
|
|
background-color: #D8D4E2;
|
|
display: block;
|
|
}
|
|
.basketgroup li{
|
|
font-size: 0.5em;
|
|
list-style: none;
|
|
display: inline;
|
|
}
|
|
|
|
</style>
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
|
|
var tabView = new YAHOO.widget.TabView('bgtabs');
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
|
|
|
|
<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 for vendor: <!-- TMPL_VAR NAME="booksellername" --></div>
|
|
|
|
<div id="doc" class="yui-t7">
|
|
|
|
<div class="yui-b">
|
|
<div id="toolbar">
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
// prepare DOM for YUI Toolbar
|
|
|
|
$(document).ready(function() {
|
|
// $("#toolbar").empty();
|
|
yuiToolbar();
|
|
});
|
|
|
|
// YUI Toolbar Functions
|
|
|
|
function yuiToolbar() {
|
|
var booksellermenu = [
|
|
{ text: _("Vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="booksellerid" -->" },
|
|
{ text: _("Edit vendor"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->"},
|
|
]
|
|
var ordersbutton = [
|
|
{ text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?supplierid=<!-- TMPL_VAR name="booksellerid" -->" },
|
|
{ text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=<!-- TMPL_VAR name="booksellerid" -->&owner=1" },
|
|
]
|
|
new YAHOO.widget.Button("newbasketgroup");
|
|
new YAHOO.widget.Button({
|
|
type: "menu",
|
|
label: _("Vendor"),
|
|
name: "booksellerbutton",
|
|
menu: booksellermenu,
|
|
container: "toolbar"
|
|
});
|
|
|
|
new YAHOO.widget.Button({
|
|
type: "menu",
|
|
label: _("Orders"),
|
|
name: "ordersbutton",
|
|
menu: ordersbutton,
|
|
container: "toolbar"
|
|
});
|
|
}
|
|
//]]>
|
|
</script>
|
|
<a href="?op=add&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" name="newbasketgroup" id="newbasketgroup">New Basket Group</a>
|
|
</div>
|
|
<h1>Basket grouping for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR name="booksellername" --></a></h1>
|
|
</div>
|
|
<!-- TMPL_IF NAME="grouping" -->
|
|
<div id="bd">
|
|
<div class="yui-gc">
|
|
<div class="yui-u first">
|
|
|
|
<form action="<!-- TMPL_VAR name="scriptname" -->" method="post" name="basketgroups" id="basketgroups">
|
|
<div id="groups">
|
|
<div class="workarea_alt" >
|
|
<h3>Ungrouped Baskets</h3>
|
|
<ul id="ungrouped" class="draglist_alt">
|
|
<!-- TMPL_IF NAME="baskets" -->
|
|
<!-- TMPL_LOOP NAME="baskets" -->
|
|
<li class="ungrouped" id="b-<!-- TMPL_VAR NAME="basketno" -->" >
|
|
<a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
|
|
<!-- TMPL_IF NAME="basketname" -->
|
|
<!-- TMPL_VAR NAME="basketname" -->
|
|
<!-- TMPL_ELSE -->
|
|
No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
|
|
<!-- /TMPL_IF -->
|
|
</a>, <br />
|
|
Total: <!-- TMPL_VAR name="total" -->
|
|
<input type="hidden" class="basket" name="basket" value="<!-- TMPL_VAR NAME="basketno" -->" />
|
|
</li>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- /TMPL_IF -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="yui-u grouping">
|
|
<form action="" method="post">
|
|
<fieldset id="various" class='various' >
|
|
<h3><label for="basketgroupname">Basketgroup Name:</label></h3>
|
|
<input type="text" name="basketgroupname" id="basketgroupname" value="<!-- TMPL_VAR NAME="name" -->" />
|
|
<h3><label for="billingplace">Billing Place:</label></h3>
|
|
<select name="billingplace" id="billingplace">
|
|
<!-- TMPL_LOOP name="billingplaceloop" -->
|
|
<option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<h3><label for="deliveryplace">Delivery Place:</label></h3>
|
|
<select name="deliveryplace" id="deliveryplace">
|
|
<option value="">--</option>
|
|
<!-- TMPL_LOOP name="deliveryplaceloop" -->
|
|
<option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
<h3><label for="deliverycomment">Delivery comment:</label></h3>
|
|
<textarea cols="26" name="deliverycomment" id="deliverycomment"><!-- TMPL_VAR NAME="deliverycomment" --></textarea>
|
|
<div class="workarea">
|
|
<h3>Grouping</h3>
|
|
<ul class="draglist" id="bg">
|
|
<!-- TMPL_LOOP NAME="selectedbaskets" -->
|
|
<li class="grouped" id="b-<!-- TMPL_VAR NAME="basketno" -->" >
|
|
<a href="basket.pl?basketno=<!-- TMPL_VAR NAME="basketno" -->">
|
|
<!-- TMPL_IF NAME="basketname" -->
|
|
<!-- TMPL_VAR NAME="basketname" -->
|
|
<!-- TMPL_ELSE -->
|
|
No name, basketnumber: <!-- TMPL_VAR NAME="basketno" -->
|
|
<!-- /TMPL_IF -->
|
|
</a>, <br />
|
|
Total: <!-- TMPL_VAR name="total" -->
|
|
<input type="hidden" class="basket" name="basket" value="<!-- TMPL_VAR NAME="basketno" -->" />
|
|
</li>
|
|
<!-- /TMPL_LOOP -->
|
|
|
|
</ul>
|
|
</div>
|
|
<div><input type="checkbox" name="close">Close</input></div>
|
|
<input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
|
|
<!-- TMPL_IF NAME="basketgroupid" -->
|
|
<input type="hidden" name="basketgroupid" value="<!-- TMPL_VAR name="basketgroupid" -->" />
|
|
<!-- /TMPL_IF -->
|
|
<input type="hidden" name="op" value="attachbasket" />
|
|
<input type="submit" value="Save" />
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<div class="yui-g">
|
|
<div id="bgtabs" class="yui-navset">
|
|
<ul class="yui-nav">
|
|
<li class="selected"><a href="#opened"><em>Opened</em></a></li>
|
|
<li><a href="#closed"><em>Closed</em></a></li>
|
|
</ul>
|
|
<div class="yui-content">
|
|
<div id="opened">
|
|
<ul>
|
|
<!-- TMPL_LOOP NAME="basketgroups" -->
|
|
<!-- TMPL_UNLESS NAME="closed" -->
|
|
<li class="basketgroup">
|
|
<!-- TMPL_IF NAME="name" -->
|
|
<!-- TMPL_VAR NAME="name" -->
|
|
<!-- TMPL_ELSE -->
|
|
Basket Group n°<!-- TMPL_VAR NAME="id" -->
|
|
<!-- /TMPL_IF -->
|
|
<ul>
|
|
<li>
|
|
<span class="yui-button yui-link-button">
|
|
<span class="first-child">
|
|
<a href="javascript:closeandprint(<!-- TMPL_VAR "id" -->)" class="yui-button yui-link-button">Close & Print</a>
|
|
</span>
|
|
</span>
|
|
</li>
|
|
<li>
|
|
<span class="yui-button yui-link-button">
|
|
<span class="first-child">
|
|
<a href="?op=add&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketgroupid=<!-- TMPL_VAR NAME="id" -->" class="yui-button yui-link-button" >Edit</a>
|
|
</span>
|
|
</span>
|
|
</li>
|
|
<li>
|
|
<span class="yui-button yui-link-button">
|
|
<span class="first-child">
|
|
<a href="?op=delete&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketgroupid=<!-- TMPL_VAR NAME="id" -->" class="yui-button yui-link-button" >Delete</a>
|
|
</span>
|
|
</span>
|
|
</li>
|
|
|
|
</ul>
|
|
</li>
|
|
<!-- /TMPL_UNLESS -->
|
|
<!-- /TMPL_LOOP -->
|
|
</ul>
|
|
</div>
|
|
<div id="closed">
|
|
<ul>
|
|
<!-- TMPL_LOOP NAME="basketgroups" -->
|
|
<!-- TMPL_IF NAME="closed" -->
|
|
<li class="basketgroup">
|
|
<!-- TMPL_IF NAME="name" -->
|
|
<!-- TMPL_VAR NAME="name" -->
|
|
<!-- TMPL_ELSE -->
|
|
Basket Group n°<!-- TMPL_VAR NAME="id" -->
|
|
<!-- /TMPL_IF -->
|
|
<ul>
|
|
<li>
|
|
<span class="yui-button yui-link-button">
|
|
<span class="first-child">
|
|
<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>
|
|
</span>
|
|
</span>
|
|
</li>
|
|
<li>
|
|
<span class="yui-button yui-link-button">
|
|
<span class="first-child">
|
|
<a href="/cgi-bin/koha/acqui/basketgroup.pl?op=print&basketgroupid=<!-- TMPL_VAR "id" -->" class="yui-button yui-link-button">Print</a>
|
|
</span>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|