eaff11319078938a328bccaeb6b7f4a98708a19e
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / parameters / systempreferences.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration: 
2 <!-- TMPL_IF name="add_form" --><!-- TMPL_IF NAME="modify" -->Modify system preference '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->Add a system preference<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="add_validate" -->Data Added<!-- /TMPL_IF -->
3 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->Preferences<!-- /TMPL_IF -->
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5
6 <script language="JavaScript" type="text/javascript">
7                 function _(s) { return s } // dummy function for gettext
8                 //
9                 function isNotNull(f,noalert) {
10                         if (f.value.length ==0) {
11         return false;
12                         }
13                         return true;
14                 }
15                 //
16                 function toUC(f) {
17                         var x=f.value.toUpperCase();
18                         f.value=x;
19                         return true;
20                 }
21                 //
22                 function isNum(v,maybenull) {
23                 var n = new Number(v.value);
24                 if (isNaN(n)) {
25                         return false;
26                         }
27                 if (maybenull==0 && v.value=='') {
28                         return false;
29                 }
30                 return true;
31                 }
32                 //
33                 function isDate(f) {
34                         var t = Date.parse(f.value);
35                         if (isNaN(t)) {
36                                 return false;
37                         }
38                 }
39                 //
40                 function Check(f) {
41                         var ok=1;
42                         var _alertString="";
43                         var alertString2;
44                         if (f.variable.value.length==0) {
45                                 _alertString += "\n- " + _("variable missing");
46                         }
47                         if (f.value.value.length==0) {
48                                 _alertString += "\n- " + _("value missing");
49                         }
50                         if (_alertString.length==0) {
51                                 document.Aform.submit();
52                         } else {
53                                 alertString2  = _("Form not submitted because of the following problem(s)");
54                                 alertString2 += "\n------------------------------------------------------------------------------------\n";
55                                 alertString2 += _alertString;
56                                 alert(alertString2);
57                         }
58                 }
59                 </script>
60
61 <!-- TMPL_IF NAME="add_form" -->
62         
63                 <!-- TMPL_IF NAME="modify" -->
64                         <h1>Modify a system preference</h1>
65                 <!-- TMPL_ELSE -->
66                         <h1>Add a system preference</h1>
67                 <!-- /TMPL_IF -->
68                 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
69                 
70                 
71                 <table>
72                         <tr><td><label for="explanation">Explanation: </label></td><td><input type="text" name="explanation" id="explanation" size="60" value="<!-- TMPL_VAR NAME="explanation" escape="HTML" -->" /><input type="hidden" name="op" value="add_validate" /></td></tr>
73                         <tr><!-- TMPL_IF NAME="searchfield" --><td><label>Variable</label></td><td><!-- TMPL_VAR NAME="searchfield" --><input type="hidden" name="variable" value="<!-- TMPL_VAR NAME="searchfield" -->"></td>
74                         <!-- TMPL_ELSE --><td><label for="variable">Variable</label></td><td><input type="text" name="variable" id="variable" size="60" /></td><!-- /TMPL_IF --></tr>
75                         <tr><td><label for="value">Value</label></td><td><!-- TMPL_IF NAME="type-free" -->
76                                         <input type="text" id="value" name="value" value="<!-- TMPL_VAR NAME="value" escape="HTML" -->" size="<!-- TMPL_VAR NAME="fieldlength" -->" />
77                                 <!-- /TMPL_IF -->
78                                 <!-- TMPL_IF NAME="type-textarea" -->
79                                         <textarea name="value" id="value" rows="<!--TMPL_VAR NAME="rows" -->" cols="<!-- TMPL_VAR NAME="cols" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
80                                 <!-- /TMPL_IF -->
81                                 <!-- TMPL_IF NAME="type-choice" -->
82                                         <select name="value" id="value">
83                                                 <!-- TMPL_LOOP NAME="options" -->
84                                                         <option value="<!-- TMPL_VAR NAME="option" -->"<!-- TMPL_IF NAME="selected" -->selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="option" --></option>
85                                                 <!-- /TMPL_LOOP -->
86                                         </select>
87                                 <!-- /TMPL_IF -->
88                                 <!-- TMPL_IF NAME="type-yesno" -->
89                                         <!-- TMPL_IF NAME="value-yes" -->
90                                         <input type="radio" name="value" id="value" value="1" checked="checked"><!-- TMPL_ELSE --><input type="radio" name="value" id="value" value="1" /><!-- /TMPL_IF -->Yes
91                                 <!-- TMPL_IF NAME="value-no" -->        
92                                         <input type="radio" name="value" value="0" checked="checked" /><!-- TMPL_ELSE --><input type="radio" name="value" value="0" /><!-- /TMPL_IF -->No<!-- /TMPL_IF -->
93                                 </td></tr>
94                 </table>
95                 <p><input type="submit" value="<!-- TMPL_IF NAME="modify" -->Save Changes<!-- TMPL_ELSE -->Add this Preference<!-- /TMPL_IF -->"> <input type="button"  value="Cancel" onclick="location.href='<!-- TMPL_VAR name="script_name" -->'; return false;" /></p>
96                 
97 <h3>Koha internal</h3>          
98                 Note: you should have no reasons to modify the following default values
99                 <table>
100                 <tr><td><label for="preftype">Variable type:</label></td><td><input type="text" name="preftype" id="preftype" value="<!--TMPL_VAR NAME="preftype" -->" size="40" maxlength="40"><span class="formfield-notes"> (Choice, YesNo, Integer, Textarea, Float, Themes, or Languages)</td></tr>
101                 <tr><td><label for="prefoptions">Variable options:</label></td><td><input type="text" name="prefoptions" id="prefoptions" value="<!-- TMPL_VAR NAME="prefoptions" -->" size="60" maxlength="80" />(a choice list for Choice (separated by |) or cols|rows for Texarea)</td></tr>
102                 </table>
103                 </form>
104         <!-- /TMPL_IF -->
105         
106         <!-- TMPL_IF NAME="add_validate" -->
107         
108
109                 <h3>Data recorded</h3>
110                 
111                 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
112                 <input type="submit" value="OK" />
113                 </form>
114         <!-- /TMPL_IF -->
115         
116         <!-- TMPL_IF NAME="delete_confirm" -->
117         
118         <table>
119                 <caption>Confirm Deletion of <!-- TMPL_VAR NAME="searchfield" -->?</caption>
120                 <tr>
121                         <th>Variable Name:</th>
122                         <td><!-- TMPL_VAR NAME="searchfield" --></td>
123                 </tr>
124                 <tr><th>Value: </th><td><!-- TMPL_VAR NAME="Tvalue" --></td></tr></table>
125                 <form class="inline" 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" -->" />
126                 <input type="submit"  value="Yes, Delete"></form> <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do not Delete" /></form>
127         
128         
129         <!-- /TMPL_IF -->
130         
131         <!-- TMPL_IF NAME="delete_confirmed" -->
132         
133                 <h3>Data deleted</h3>
134                 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
135                 <input type="submit" value="Back to System Preferences" />
136                 </form>
137         <!-- /TMPL_IF -->
138         
139         <!-- TMPL_IF NAME="else" -->
140         <h1>System preferences admin</h1>
141                 <ul>
142                         <li>
143                                 <!--TMPL_IF Name="Admin"-->
144                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin" class="here">Admin
145                                         </a>
146                                 <!--TMPL_ELSE-->
147                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin
148                                         </a>
149                                 <!--/TMPL_IF-->
150                         </li>
151                         <li>
152                                 <!--TMPL_IF Name="Acquisitions"-->
153                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions" class="here">Acquisitions
154                                         </a>
155                                 <!--TMPL_ELSE-->
156                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions
157                                         </a>
158                                 <!--/TMPL_IF-->
159                         </li>
160                         <li>
161                                 <!--TMPL_IF Name="Authorities"-->
162                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities" class="here">Authorities
163                                         </a>
164                                 <!--TMPL_ELSE-->
165                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities
166                                         </a>
167                                 <!--/TMPL_IF-->
168                         </li>
169                         <li>
170                                 <!--TMPL_IF Name="Catalogue"-->
171                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue" class="here">Catalogue
172                                         </a>
173                                 <!--TMPL_ELSE-->
174                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue
175                                         </a>
176                                 <!--/TMPL_IF-->
177                         </li>
178                         <li>
179                                 <!--TMPL_IF Name="Circulation"-->
180                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation" class="here">Circulation
181                                         </a>
182                                 <!--TMPL_ELSE-->
183                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation
184                                         </a>
185                                 <!--/TMPL_IF-->
186                         </li>
187                         <li>
188                                 <!--TMPL_IF Name="Members"-->
189                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members" class="here">Members
190                                         </a>
191                                 <!--TMPL_ELSE-->
192                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Members
193                                         </a>
194                                 <!--/TMPL_IF-->
195                         </li>
196                         <li>
197                                 <!--TMPL_IF Name="OPAC"-->
198                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC" class="here">OPAC
199                                         </a>
200                                 <!--TMPL_ELSE-->
201                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC
202                                         </a>
203                                 <!--/TMPL_IF-->
204                         </li>
205                         <li>
206                                 <!--TMPL_IF Name="Others"-->
207                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=" class="here">Others
208                                         </a>
209                                 <!--TMPL_ELSE-->
210                                         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=">Others
211                                         </a>
212                                 <!--/TMPL_IF-->
213                         </li>
214                 </ul>
215
216         <!-- TMPL_VAR NAME="searchfield" -->
217         <table>
218         <tr>
219                 <th>Variable</th>
220                 <th>Value</th>
221                 <th colspan="3">Explanation</th>
222         </tr>
223         <!-- TMPL_LOOP NAME="loop" -->
224         <tr<!-- TMPL_IF NAME="toggle" --> class="highlight"<!-- /TMPL_IF -->>
225                 <td><!-- TMPL_VAR NAME="variable" --></td>
226                 <td><!-- TMPL_VAR NAME="value" --></td>
227                 <td><!-- TMPL_VAR NAME="explanation" --></td>
228                 <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
229                 <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
230         </tr>
231         <!-- /TMPL_LOOP -->
232         </table>
233         </form>
234         
235         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
236                 <input type="hidden" name="op" value="add_form" />
237                 <input type="submit" value="Add a System Preference" />
238         </form>
239         
240         <!-- /TMPL_IF -->
241
242 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->