1 <!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
4 <!-- TMPL_IF NAME="else" -->
5 <form action="/cgi-bin/koha/admin/letter.pl" method="post">
6 <input type="text" name="searchfield" value="">
7 <input type="submit" class="button" value="Filter"></form>
8 <!-- TMPL_IF NAME="search" -->
9 <br>You Searched for <b><!-- TMPL_VAR NAME="searchfield" --></b><p><br>
19 <!-- TMPL_LOOP NAME="letter" -->
20 <tr bgcolor=<!-- TMPL_VAR NAME="toggle" --> >
21 <td><!-- TMPL_VAR NAME="module" --></td>
22 <td><!-- TMPL_VAR NAME="code" --></td>
23 <td><!-- TMPL_VAR NAME="name" --></td>
25 <a href="/cgi-bin/koha/admin/letter.pl?op=add_form&module=<!-- TMPL_VAR name="module" -->&code=<!-- TMPL_VAR NAME="code" -->">
26 <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" width="32" hspace="0" vspace="0" border="0">
30 <a href="/cgi-bin/koha/admin/letter.pl?op=delete_confirm&module=<!-- TMPL_VAR name="module"-->&code=<!-- TMPL_VAR NAME="code" -->">
31 <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
37 <form action="/cgi-bin/koha/admin/letter.pl" method="post">
38 <input type="hidden" name="op" value="add_form">
40 <input type="submit" class="button" value="Add Letter" title="Add Letter" alt="Add Letter">
46 <!-- TMPL_IF NAME="add_form" -->
47 <script language="javascript" type="text/javascript">
48 function _(s) { return s } // dummy function for gettext
49 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
50 function isNotNull(f,noalert) {
51 if (f.value.length ==0) {
56 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
58 var x=f.value.toUpperCase();
62 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
63 function isNum(v,maybenull) {
64 var n = new Number(v.value);
68 if (maybenull==0 && v.value=='') {
73 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
75 var t = Date.parse(f.value);
80 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
85 /* if (!(isNotNull(window.document.Aform.code))) {
86 _alertString += "\n- " + _("Code missing");
88 /* if (!(isNotNull(window.document.Aform.name))) {
89 _alertString += "\n- " + _("Name missing");
91 if (_alertString.length==0) {
92 document.Aform.submit();
94 alertString2 = _("Form not submitted because of the following problem(s)");
95 alertString2 += "\n------------------------------------------------------------------------------------\n";
96 alertString2 += _alertString;
100 // GPL code coming from PhpMyAdmin
101 function insertValueQuery() {
102 var myQuery = document.Aform.content;
103 var myListBox = document.Aform.SQLfieldname;
105 if(myListBox.options.length > 0) {
108 for(var i=0; i<myListBox.options.length; i++) {
109 if (myListBox.options[i].selected){
113 chaineAj += myListBox.options[i].value;
118 if (document.selection) {
120 sel = document.selection.createRange();
122 document.Aform.insert.focus();
124 //MOZILLA/NETSCAPE support
125 else if (document.Aform.content.selectionStart || document.Aform.content.selectionStart == "0") {
126 var startPos = document.Aform.content.selectionStart;
127 var endPos = document.Aform.content.selectionEnd;
128 var chaineSql = document.Aform.content.value;
129 myQuery.value = chaineSql.substring(0, startPos) +'<<'+ chaineAj+'>>' + chaineSql.substring(endPos, chaineSql.length);
131 myQuery.value += chaineAj;
138 <!-- TMPL_IF name="modify" -->
139 <h2 class="parameters">Modify letter</h2>
141 <h2 class="parameters">Add letter</h2>
143 <form action="/cgi-bin/koha/admin/letter.pl" name="Aform" method="post">
144 <input type="hidden" name="op" value="add_validate">
145 <input type="hidden" name="checked" value="0">
146 <!-- TMPL_IF NAME="modify" -->
148 <label class="label100">Koha module:</label>
149 <select name="module">
150 <!-- TMPL_IF name="acquisition" -->
151 <option value="acquisition" selected>Acquisition</option>
153 <option value="acquisition">Acquisition</option>
155 <!-- TMPL_IF name="catalogue" -->
156 <option value="catalogue" selected>Catalogue</option>
158 <option value="catalogue">Catalogue</option>
160 <!-- TMPL_IF name="serial" -->
161 <option value="serial" selected>Serial</option>
163 <option value="serial">Serial</option>
165 <!-- TMPL_IF name="circulation" -->
166 <option value="circulation" selected>Circulation</option>
168 <option value="circulation">Circulation</option>
170 <!-- TMPL_IF name="members" -->
171 <option value="members" selected>Members</option>
173 <option value="members">Members</option>
175 <!-- TMPL_IF name="authorities" -->
176 <option value="authorities" selected>Authorities</option>
178 <option value="authorities">Authorities</option>
180 <!-- TMPL_IF name="reports" -->
181 <option value="reports" selected>Reports</option>
183 <option value="reports">Reports</option>
185 <!-- TMPL_IF name="parameters" -->
186 <option value="parameters" selected>Parameters</option>
188 <option value="parameters">Parameters</option>
193 <label class="label100">Code:</label><input type="hidden" name="code" value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="code" -->
197 <!-- TMPL_IF NAME="adding" -->
199 <label class="label100">Koha module:</label>
200 <select name="module">
201 <option value="acquisition">Acquisition</option>
202 <option value="catalogue">Catalogue</option>
203 <option value="serial">Serial</option>
204 <option value="circulation">Circulation</option>
205 <option value="members">Members</option>
206 <option value="authorities">Authorities</option>
207 <option value="reports">Reports</option>
208 <option value="parameters">Parameters</option>
212 <label class="label100">Code:</label><input type="text" name="code" size="20" maxlength="20">
217 <label class="label100">Name:</label><input type="text" name="name" size="100" value="<!-- TMPL_VAR NAME="name" -->">
220 <label class="label100">Title (mail subject):</label><input type="text" name="title" size="100" value="<!-- TMPL_VAR NAME="title" -->">
223 <label class="label100">Content (mail content):</label>
225 <p><textarea name="content" cols="80" rows="10"><!-- TMPL_VAR NAME="content" --></textarea>
226 <input type="button" name="insert" value="<<" onclick="insertValueQuery()" title="Insert" />
227 <select name="SQLfieldname" size=10>
228 <!-- TMPL_LOOP name="SQLfieldname" -->
229 <option value="<!-- TMPL_VAR name="value"-->"><!-- TMPL_VAR name="text"--></option>
233 <p><input type="button" value="OK" onclick="Check(this.form)" class="button"></p>
238 <!-- TMPL_IF NAME="add_validate" -->
240 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
241 <input type="submit" value="OK">
245 <!-- TMPL_IF NAME="delete_confirm" -->
246 <table border="0" cellspacing="0" cellpadding="5">
247 <tr valign="top" bgcolor="#99cc33">
248 <td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif">
251 <td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif">
252 <b><!-- TMPL_VAR name="module"--> / <!-- TMPL_VAR NAME="code" --></b>
256 <form action="<!-- TMPL_VAR NAME="action" -->" method="post"><input type="hidden" name="op" value="delete_confirmed">
257 <input type="hidden" name="code" value="<!-- TMPL_VAR NAME="code" -->">
258 <input type="hidden" name="module" value="<!-- TMPL_VAR NAME="module" -->">
261 <td><!-- TMPL_VAR NAME="Name" --></td>
264 <td colspan="2" align="center">CONFIRM DELETION</td>
268 <input type="submit" value="YES">
272 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
273 <input type="submit" value="NO">
280 <!-- TMPL_IF NAME="delete_confirmed" -->
282 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
283 <input type="submit" value="OK">
287 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->