1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Serials › Select Supplier</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7 <!--TMPL_INCLUDE NAME="menu-serials.inc" -->
9 <div id="doc3" class="yui-t2">
13 <div class="yui-b"><div class="yui-g">
15 <h1>Select borrowers or enter manually the names</h1>
17 <form action="/cgi-bin/koha/serials/distributedto.pl" method="post" name="Aform">
21 <input type="text" name="searchfield" value="<!-- TMPL_VAR name="searchfield" -->">
22 <input type="submit" class="button" value="Filter">
25 <h2>Distributed to</h2>
27 <textarea name="distributedto" rows="15" cols="30"><!-- TMPL_VAR name="distributedto" --></textarea>
30 <!-- TMPL_IF name="save" -->
33 <input type="hidden" name="SaveList" value="0">
34 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
35 <input type="button" name="save" value="Save" class="button" onclick="FSaveList()">
36 <input type="button" name="clode" value="Close" class="button" onclick="window.close()">
41 <!-- TMPL_VAR NAME="borrowername" -->
42 <select name="borlist" size="15">
43 <!-- TMPL_LOOP name="borlist" -->
44 <option value="<!-- TMPL_VAR name="surname" --><!-- TMPL_VAR name="firstname" -->">
45 <!-- TMPL_VAR name="surname" --> <!-- TMPL_VAR name="firstname" -->
49 <input type="button" name="insert" value=">>" class="button" onclick="insertValueQuery()" title="Insert" />
55 <script language="javascript" type="text/javascript">
56 // GPL code coming from PhpMyAdmin
57 function insertValueQuery() {
58 var myQuery = document.Aform.distributedto;
59 var myListBox = document.Aform.borlist;
61 if(myListBox.options.length > 0) {
64 for(var i=0; i<myListBox.options.length; i++) {
65 if (myListBox.options[i].selected){
69 chaineAj += myListBox.options[i].value;
74 if (document.selection) {
76 sel = document.selection.createRange();
78 document.Aform.insert.focus();
80 //MOZILLA/NETSCAPE support
81 else if (document.Aform.distributedto.selectionStart || document.Aform.distributedto.selectionStart == "0") {
82 var startPos = document.Aform.distributedto.selectionStart;
83 var endPos = document.Aform.distributedto.selectionEnd;
84 var chaineSql = document.Aform.distributedto.value;
85 myQuery.value = chaineSql.substring(0, startPos) +''+ chaineAj+"\n" + chaineSql.substring(endPos, chaineSql.length);
87 myQuery.value += chaineAj;
91 function FSaveList() {
92 document.Aform.SaveList.value="1";
93 document.Aform.submit();
100 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
101 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->