1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Serials › Distribution Lists</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script language="javascript" type="text/javascript">
6 // GPL code coming from PhpMyAdmin
7 function insertValueQuery() {
8 var myQuery = document.Aform.distributedto;
9 var myListBox = document.Aform.borlist;
11 if(myListBox.options.length > 0) {
14 for(var i=0; i<myListBox.options.length; i++) {
15 if (myListBox.options[i].selected){
19 chaineAj += myListBox.options[i].value;
24 if (document.selection) {
26 sel = document.selection.createRange();
28 document.Aform.insert.focus();
30 //MOZILLA/NETSCAPE support
31 else if (document.Aform.distributedto.selectionStart || document.Aform.distributedto.selectionStart == "0") {
32 var startPos = document.Aform.distributedto.selectionStart;
33 var endPos = document.Aform.distributedto.selectionEnd;
34 var chaineSql = document.Aform.distributedto.value;
35 myQuery.value = chaineSql.substring(0, startPos) +''+ chaineAj+"\n" + chaineSql.substring(endPos, chaineSql.length);
37 myQuery.value += chaineAj;
41 function FSaveList() {
42 document.Aform.SaveList.value="1";
43 document.Aform.submit();
49 <!-- TMPL_INCLUDE NAME="header.inc" -->
50 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
52 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Distribution Lists</div>
54 <div id="doc3" class="yui-t2">
60 <h1>Select borrowers or enter manually the names</h1>
61 <form action="/cgi-bin/koha/serials/distributedto.pl" method="post" name="Aform">
65 <input type="text" name="searchfield" value="<!-- TMPL_VAR name="searchfield" -->" />
66 <input type="submit" class="button" value="Filter" />
69 <h2>Distributed to</h2>
71 <textarea name="distributedto" rows="15" cols="30"><!-- TMPL_VAR name="distributedto" --></textarea>
74 <!-- TMPL_IF name="save" -->
77 <input type="hidden" name="SaveList" value="0" />
78 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
79 <input type="button" name="save" value="Save" class="button" onclick="FSaveList()" />
80 <input type="button" name="clode" value="Close" class="button" onclick="window.close()" />
85 <!-- TMPL_VAR NAME="borrowername" -->
86 <!-- TMPL_IF NAME="borlist" --><select name="borlist" size="15">
87 <!-- TMPL_LOOP name="borlist" -->
88 <option value="<!-- TMPL_VAR name="surname" --><!-- TMPL_VAR name="firstname" -->">
89 <!-- TMPL_VAR name="surname" --> <!-- TMPL_VAR name="firstname" -->
92 </select><!-- /TMPL_IF -->
93 <input type="button" name="insert" value=">>" class="button" onclick="insertValueQuery()" title="Insert" />
103 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
106 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->