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</a>
145 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin</a>
149 <!-- TMPL_IF name="Acquisitions" -->
150 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions" class="button">Acquisitions</a>
152 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions</a>
156 <!-- TMPL_IF name="Authorities" -->
157 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities" class="button">Authorities</a>
159 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities</a>
163 <!-- TMPL_IF name="Catalogue" -->
164 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue" class="button">Catalogue</a>
166 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue</a>
170 <!-- TMPL_IF name="Circulation" -->
171 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation" class="button">Circulation</a>
173 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation</a>
177 <!-- TMPL_IF name="Members" -->
178 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members" class="button">Members</a>
180 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Members</a>
184 <!-- TMPL_IF name="OPAC" -->
185 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC" class="button">OPAC</a>
187 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC</a>
191 <!-- TMPL_IF name="Others" -->
192 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=" class="button">Others</a>
194 <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=">Others</a>
199 <!-- TMPL_VAR NAME="searchfield" -->
200 <table border="0" cellspacing="0" cellpadding="2">
201 <tr valign="top" bgcolor="#99cc33">
204 <th colspan="3">Explanation</th>
206 <!-- TMPL_LOOP NAME="loop" -->
207 <!-- TMPL_IF NAME="toggle" --><tr valign="top" class="hilighted"><!-- TMPL_ELSE --><tr valign="top"><!-- /TMPL_IF -->
208 <td><!-- TMPL_VAR NAME="variable" --></td>
209 <td><!-- TMPL_VAR NAME="value" --></td>
210 <td><!-- TMPL_VAR NAME="explanation" --></td>
211 <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>
212 <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>
215 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
216 <input type="hidden" name="op" value="add_form">
220 <td width="50%"><!-- TMPL_VAR NAME="previous" --></td>
221 <td width="50%"><!-- TMPL_VAR NAME="next" --></td>
226 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
227 <input type="hidden" name="op" value="add_form">
228 <input type="submit" class="button" value="Add System preference">
234 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->