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