137 lines
5.4 KiB
Cheetah
137 lines
5.4 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Administration › Library Transfer Limits</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$("#CheckAll").click(function(){ $("#transferlimit_tabs").checkCheckboxes();});
|
|
$("#UncheckAll").click(function(){ $("#transferlimit_tabs").unCheckCheckboxes();});
|
|
$("#SwapAll").click(function(){ $("#transferlimit_tabs").toggleCheckboxes();});
|
|
$('#transferlimit_tabs > ul').tabs();
|
|
|
|
var checkcolumn = $(".checkcolumn");
|
|
var checkrow = $(".checkrow");
|
|
var checkall = $(".checkall");
|
|
var uncheckall = $(".uncheckall");
|
|
var swapall = $(".swapall");
|
|
|
|
$(checkcolumn).click(function(){
|
|
if(this.checked){ status = "checked" } else { status = "" }
|
|
var tableid = $(this).parent().parent().parent().parent().attr("id");
|
|
var columncontext = $(this).parent();
|
|
var tdindex = columncontext.parent().children().index(columncontext);
|
|
$("#"+tableid+" tr td:nth-child("+(tdindex+2)+") input[type='checkbox']").attr("checked",status);
|
|
});
|
|
|
|
$(checkrow).click(function(){
|
|
if(this.checked){ status = "checked" } else { status = "" }
|
|
$(this).parent().siblings().each(function(){
|
|
$(this).find("input[type='checkbox']").attr("checked",status);
|
|
})
|
|
});
|
|
|
|
$(checkall).click(function(){
|
|
var tid = $(this).attr("id");
|
|
tid = tid.replace("CheckAll","");
|
|
$("#"+tid).checkCheckboxes();
|
|
return false;
|
|
});
|
|
|
|
$(uncheckall).click(function(){
|
|
var tid = $(this).attr("id");
|
|
tid = tid.replace("UncheckAll","");
|
|
$("#"+tid).unCheckCheckboxes();
|
|
return false;
|
|
});
|
|
|
|
$(swapall).click(function(){
|
|
var tid = $(this).attr("id");
|
|
tid = tid.replace("SwapAll","");
|
|
$("#"+tid).toggleCheckboxes();
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
<style type="text/css">td { text-align: center; }</style>
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Set Library Transfer Limits</div>
|
|
|
|
<div id="doc3" class="yui-t1">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h1>Library Transfer Limits</h1>
|
|
<p class="help">Check the boxes for the items that should <strong><em>not</em></strong> be transferable.</p>
|
|
<fieldset>For <strong>all</strong> <!--TMPL_VAR NAME="limit_phrase" -->s: <a id="CheckAll" href="#">Check All</a> | <a id="UncheckAll" href="#">Uncheck All</a> | <a id="SwapAll" href="#">Toggle All</a></fieldset>
|
|
|
|
|
|
<div id="transferlimit_tabs" class="toptabs">
|
|
<ul class="ui-tabs-nav">
|
|
<!-- TMPL_LOOP NAME="codes_loop" --><li><a href="#<!-- TMPL_VAR NAME="code" -->set"><!-- TMPL_VAR NAME="code" --></a></li><!-- /TMPL_LOOP -->
|
|
</ul>
|
|
|
|
<form method="post" action="branch_transfer_limits.pl">
|
|
|
|
<!-- TMPL_LOOP NAME="codes_loop" -->
|
|
<div id="<!-- TMPL_VAR NAME="code" -->set">
|
|
<h4>Limits for <!--TMPL_VAR NAME="limit_phrase" -->: <!-- TMPL_VAR NAME="code" --></h4>
|
|
<p><a id="CheckAll<!-- TMPL_VAR NAME="code" -->table" class="checkall" href="#">Check All</a> | <a id="UncheckAll<!-- TMPL_VAR NAME="code" -->table" class="uncheckall" href="#">Uncheck All</a> | <a id="SwapAll<!-- TMPL_VAR NAME="code" -->table" class="swapall" href="#">Toggle All</a></p>
|
|
<table id="<!-- TMPL_VAR NAME="code" -->table">
|
|
<thead>
|
|
<tr>
|
|
<th> </th><th>To:</th>
|
|
<!-- TMPL_LOOP NAME="to_branch_loop" -->
|
|
<th><!-- TMPL_VAR NAME="toBranch" --></th>
|
|
<!-- /TMPL_LOOP -->
|
|
</tr>
|
|
<tr><th colspan="2">From:</th>
|
|
<!-- TMPL_LOOP NAME="to_branch_loop" -->
|
|
<th><input type="checkbox" name="checkcolumn" class="checkcolumn" /></th>
|
|
<!-- /TMPL_LOOP -->
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<!-- TMPL_LOOP NAME="to_branch_loop" -->
|
|
<!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE
|
|
--><tr><!-- /TMPL_UNLESS -->
|
|
<td><input type="checkbox" name="checkrow" id="<!-- TMPL_VAR NAME="code" --><!-- TMPL_VAR NAME="toBranch" -->row" class="checkrow" /></td>
|
|
<td><label for="<!-- TMPL_VAR NAME="code" --><!-- TMPL_VAR NAME="toBranch" -->row"><!-- TMPL_VAR NAME="toBranch" --></label></td>
|
|
<!-- TMPL_LOOP NAME="from_branch_loop" -->
|
|
<td>
|
|
<!-- TMPL_IF NAME="isChecked" -->
|
|
<input
|
|
name="<!-- TMPL_VAR NAME="code" -->_<!-- TMPL_VAR NAME="toBranch" -->_<!-- TMPL_VAR NAME="fromBranch" -->"
|
|
type="checkbox" value="1" checked="checked" />
|
|
<!-- TMPL_ELSE-->
|
|
<input
|
|
name="<!-- TMPL_VAR NAME="code" -->_<!-- TMPL_VAR NAME="toBranch" -->_<!-- TMPL_VAR NAME="fromBranch" -->"
|
|
type="checkbox" value="1" />
|
|
<!-- TMPL_ELSE-->
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<!-- /TMPL_LOOP -->
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /TMPL_LOOP -->
|
|
</div>
|
|
|
|
<fieldset class="action"><input type="hidden" name="updateLimits" value="1" />
|
|
<input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a></fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|