small gui fixes
[koha.git] / koha-tmpl / intranet-tmpl / default / en / parameters / systempreferences.tmpl
1 <TMPL_INCLUDE NAME="parameters-top.inc">
2 <TMPL_IF NAME="loggedinuser">
3     <p align=left>Logged in as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/mainpage.pl?logout.x=1>Log Out</a>]</p>
4 <TMPL_ELSE>
5     <p align=left><a href=/cgi-bin/koha/opac-user.pl>Log In</a> to Koha</p>
6 </TMPL_IF>
7
8 <script>
9         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10         function isNotNull(f,noalert) {
11                 if (f.value.length ==0) {
12    return false;
13                 }
14                 return true;
15         }
16         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
17         function toUC(f) {
18                 var x=f.value.toUpperCase();
19                 f.value=x;
20                 return true;
21         }
22         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23         function isNum(v,maybenull) {
24         var n = new Number(v.value);
25         if (isNaN(n)) {
26                 return false;
27                 }
28         if (maybenull==0 && v.value=='') {
29                 return false;
30         }
31         return true;
32         }
33         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
34         function isDate(f) {
35                 var t = Date.parse(f.value);
36                 if (isNaN(t)) {
37                         return false;
38                 }
39         }
40         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
41         function Check(f) {
42                 var ok=1;
43                 var _alertString="";
44                 var alertString2;
45                 if (f.variable.value.length==0) {
46                         _alertString += "- variable missing\\n";
47                 }
48                 if (f.value.value.length==0) {
49                         _alertString += "- value missing\\n";
50                 }
51                 if (_alertString.length==0) {
52                         document.Aform.submit();
53                 } else {
54                         alertString2 = "Form not submitted because of the following problem(s)\\n";
55                         alertString2 += "------------------------------------------------------------------------------------\\n\\n";
56                         alertString2 += _alertString;
57                         alert(alertString2);
58                 }
59         }
60         </SCRIPT>
61
62 <TMPL_IF name="add_form">
63 <!-------------------------------------------------------------------------------------------------->
64         <H1><TMPL_VAR name="action"></H1>
65         <form action='<TMPL_VAR name="script_name">' name=Aform method=post>
66         <input type=hidden name=op value='add_validate'>
67         <input type=hidden name=explanation value='<TMPL_VAR name="explanation">'>
68         <table>
69         <tr><td>Variable</td><td><TMPL_VAR name="searchfield"></td></tr>
70         <tr><td>Value</td><td><input type=text name=value value='<TMPL_VAR name="value">'></td></tr>
71         <tr><td>&nbsp;</td><td><INPUT type=button value='OK' onClick='Check(this.form)'></td></tr>
72         </table>
73         </form>
74 </TMPL_IF>
75
76 <TMPL_IF name="add_validate">
77 <!-------------------------------------------------------------------------------------------------->
78         data recorded
79         <form action='<TMPL_VAR name="script_name">' method=post>
80         <input type=submit value=OK>
81         </form>
82 </TMPL_IF>
83
84 <TMPL_IF name="delete_confirm">
85 <!-------------------------------------------------------------------------------------------------->
86 <table border=0 cellspacing=0 cellpadding=2>
87         <tr valign=top bgcolor=#99cc33>
88                 <td background="/images/background-mem.gif"><b>Variable</b></td>
89                 <td background="/images/background-mem.gif"><b><TMPL_VAR name="searchfield"></b></td>
90         </tr>
91         <tr><td>Value</td><td><TMPL_VAR name="Tvalue"></td></tr>
92         <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">'>
93         <tr><td colspan=2 align=center>CONFIRM DELETION</td></tr>
94         <tr><td><INPUT type=submit value='YES'></form></td><td><form action='$script_name' method=post><input type=submit value=NO></form></td></tr>
95 </TMPL_IF>
96
97 <TMPL_IF name="delete_confirmed">
98 <!-------------------------------------------------------------------------------------------------->
99         data deleted
100         <form action='<TMPL_VAR name="script_name">' method=post>
101         <input type=submit value=OK>
102         </form>
103 </TMPL_IF>
104
105 <!-------------------------------------------------------------------------------------------------->
106 <TMPL_IF name="else">
107 <font SIZE=6><em>System preferences admin</em></font>
108 <form action=/cgi-bin/koha/admin/systempreferences.pl method=post>
109         <input type=text name=searchfield value="">
110         <input type=reset name=reset value="clr">
111 </form>
112 <TMPL_VAR name="searchfield">
113 <table border=0 cellspacing=0 cellpadding=2>
114 <tr valign=top bgcolor=#99cc33>
115         <td background="/images/background-mem.gif"><b>Variable</b></td>
116         <td background="/images/background-mem.gif"><b>Value</b></td>
117         <td background="/images/background-mem.gif"><b>Explanation</b></td>
118         <td background="/images/background-mem.gif">&nbsp;</td>
119         <td background="/images/background-mem.gif">&nbsp;</td>
120 <TMPL_LOOP name="loop">
121 </tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
122         <td><TMPL_VAR name="variable"></td>
123         <td><TMPL_VAR name="value"></td>
124         <td><TMPL_VAR name="explanation"></td>
125         <td><a href="<TMPL_VAR name="edit">">Edit</a></td>
126         <td><a href="<TMPL_VAR name="delete">">Delete</a></td>
127 </tr>
128 </TMPL_LOOP>
129 <form action='<TMPL_VAR name="script_name">' method=post>
130 <input type=hidden name=op value=add_form>
131 </table>
132         <form action='<TMPL_VAR name="script_name">' method=post>
133         <input type=hidden name=op value=add_form>
134 <table width=40%>
135         <tr>
136                 <td width=50%><TMPL_VAR name="previous"></td>
137                 <td width=50%><TMPL_VAR name="next"></td>
138         </tr>
139 </table>
140 <br><input type=image src="/images/button-add-new.gif"  WIDTH=188  HEIGHT=44  ALT="Add budget" BORDER=0 ></a><br>
141 </form>
142 </TMPL_IF>
143
144 <TMPL_INCLUDE NAME="parameters-bottom.inc">