1 <!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
3 <script language="JavaScript" type="text/javascript">
4 function _(s) { return s } // dummy function for gettext
6 function isNotNull(f,noalert) {
7 if (f.value.length ==0) {
14 var x=f.value.toUpperCase();
19 function isNum(v,maybenull) {
20 var n = new Number(v.value);
24 if (maybenull==0 && v.value=='') {
31 var t = Date.parse(f.value);
41 if (f.variable.value.length==0) {
42 _alertString += "\n- " + _("variable missing");
44 if (f.value.value.length==0) {
45 _alertString += "\n- " + _("value missing");
47 if (_alertString.length==0) {
48 document.Aform.submit();
50 alertString2 = _("Form not submitted because of the following problem(s)");
51 alertString2 += "\n------------------------------------------------------------------------------------\n";
52 alertString2 += _alertString;
58 <!-- TMPL_IF NAME="add_form" -->
60 <!-- TMPL_IF NAME="modify" -->
61 <h1>Modify a system preference</h1>
63 <h1>Add a system preference</h1>
65 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
67 <h2 class="parameters"><input type="text" name="explanation" size="60" value="<!-- TMPL_VAR NAME="explanation" escape="HTML" -->"></h2>
68 <input type="hidden" name="op" value="add_validate">
70 <!-- TMPL_IF NAME="searchfield" -->
71 <label>Variable</label><!-- TMPL_VAR NAME="searchfield" --><input type="hidden" name="variable" value="<!-- TMPL_VAR NAME="searchfield" -->">
73 <label>Variable</label><input type="text" name="variable" size="60">
76 <p><label>Value</label>
77 <!-- TMPL_IF NAME="type-free" -->
78 <input type="text" name="value" value="<!-- TMPL_VAR NAME="value" escape="HTML" -->" size="<!-- TMPL_VAR NAME="fieldlength" -->">
80 <!-- TMPL_IF NAME="type-textarea" -->
81 <textarea name="value" rows="<!--TMPL_VAR NAME="rows" -->" cols="<!-- TMPL_VAR NAME="cols" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
83 <!-- TMPL_IF NAME="type-choice" -->
85 <!-- TMPL_LOOP NAME="options" -->
86 <option value="<!-- TMPL_VAR NAME="option" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="option" --></option>
90 <!-- TMPL_IF NAME="type-yesno" -->
91 <input type="radio" name="value" value="1"<!-- TMPL_IF NAME="value-yes" --> checked<!-- /TMPL_IF -->>Yes
92 <input type="radio" name="value" value="0"<!-- TMPL_IF NAME="value-no" --> checked<!-- /TMPL_IF -->>No
96 <p><label> </label><input type="submit" value="OK" class="button"></p>
99 <h2 class="parameters">Koha internal (you should have no reasons to modify the following default values)</h2>
100 <p>Variable type: <input type="text" name="preftype" value="<!--TMPL_VAR NAME="preftype" -->" size="40" maxlength="40"> (Choice, YesNo,Integer,Textarea,Float,Themes,Languages)</p>
101 Variable options :<input type="text" name="prefoptions" value="<!-- TMPL_VAR NAME="prefoptions" -->" size="80" maxlength="80"> (choice list for Choice (separated by |) and cols|rows for Texarea)
106 <!-- TMPL_IF NAME="add_validate" -->
109 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
110 <input type="submit" value="OK">
114 <!-- TMPL_IF NAME="delete_confirm" -->
116 <table border="0" cellspacing="0" cellpadding="2">
117 <tr valign="top" bgcolor="#99cc33">
118 <td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif"><b>Variable</b></td>
119 <td background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif"><b><!-- TMPL_VAR NAME="searchfield" --></b></td>
121 <tr><td>Value</td><td><!-- TMPL_VAR NAME="Tvalue" --></td></tr>
122 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed"><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
123 <tr><td colspan="2" align="center">CONFIRM DELETION</td></tr>
124 <tr><td><input type="submit" value="YES"></form></td><td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="NO"></form></td></tr>
129 <!-- TMPL_IF NAME="delete_confirmed" -->
132 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
133 <input type="submit" value="OK">
137 <!-- TMPL_IF NAME="else" -->
138 <h1>System preferences admin</h1>
142 <!--TMPL_IF Name="Admin"-->
143 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin" class="button">Admin
146 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin
151 <!--TMPL_IF Name="Acquisitions"-->
152 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions" class="button">Acquisitions
155 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions
160 <!--TMPL_IF Name="Authorities"-->
161 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities" class="button">Authorities
164 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities
169 <!--TMPL_IF Name="Catalogue"-->
170 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue" class="button">Catalogue
173 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue
178 <!--TMPL_IF Name="Circulation"-->
179 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation" class="button">Circulation
182 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation
187 <!--TMPL_IF Name="Members"-->
188 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members" class="button">Members
191 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Members
196 <!--TMPL_IF Name="OPAC"-->
197 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC" class="button">OPAC
200 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC
205 <!--TMPL_IF Name="Others"-->
206 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=" class="button">Others
209 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=">Others
215 <table border="0" cellspacing="0" cellpadding="2">
216 <tr valign="top" bgcolor="#99cc33">
219 <th colspan="3">Explanation</th>
221 <!-- TMPL_LOOP NAME="loop" -->
222 <!-- TMPL_IF NAME="toggle" --><tr valign="top" class="hilighted"><!-- TMPL_ELSE --><tr valign="top"><!-- /TMPL_IF -->
223 <td><!-- TMPL_VAR NAME="variable" --></td>
224 <td><!-- TMPL_VAR NAME="value" --></td>
225 <td><!-- TMPL_VAR NAME="explanation" --></td>
226 <td><a href="<!-- TMPL_VAR NAME="edit" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" width="32" hspace="0" vspace="0" border="0"><br>Edit</a></td>
227 <td><a href="<!-- TMPL_VAR NAME="delete" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0"><br>Delete</a></td>
230 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
231 <input type="hidden" name="op" value="add_form">
235 <td width="50%"><!-- TMPL_VAR NAME="previous" --></td>
236 <td width="50%"><!-- TMPL_VAR NAME="next" --></td>
241 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
242 <input type="hidden" name="op" value="add_form">
243 <input type="submit" class="button" value="Add System preference">
249 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->