Add and change preferences, change tab names in sysprefs editor
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / currency.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; Currencies &amp; Exchange Rates &rsaquo; 
3 <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="searchfield" -->Modify Currency '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->New Currency<!-- /TMPL_IF --><!-- /TMPL_IF -->
4 <!-- TMPL_IF NAME="add_validate" -->Data Recorded<!-- /TMPL_IF -->
5 <!-- TMPL_IF NAME="delete_confirm" -->Confirm Deletion of Currency '<!-- TMPL_VAR NAME="searchfield" -->'<!-- /TMPL_IF -->
6 <!-- TMPL_IF NAME="delete_confirmed" -->Currency Deleted<!-- /TMPL_IF -->
7 <!-- TMPL_IF NAME="else" -->Currencies<!-- /TMPL_IF --></title>
8 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
9 <script type="text/javascript">
10 //<![CDATA[
11     function toUC(f) {
12         var x=f.value.toUpperCase();
13         f.value=x;
14         return true;
15     }
16     function Check(f) {
17         var _alertString="";
18         var alertString2;
19         if (f.currency.value.length==0) {
20             _alertString += "- Currency name missing\\n";
21         }
22         if (f.rate.value.length==0) {
23             _alertString += "- Rate missing\\n";
24         }
25         if (_alertString.length==0) {
26             document.Aform.submit();
27         } else {
28             alertString2 = "Form not submitted because of the following problem(s)\\n";
29             alertString2 += "------------------------------------------------------------------------------------\\n\\n";
30             alertString2 += _alertString;
31             alert(alertString2);
32         }
33     }
34
35     $(document).ready(function() {
36         new YAHOO.widget.Button("newcurrency");
37     });
38 //]]>
39 </script>
40 </head>
41 <body>
42 <!-- TMPL_INCLUDE NAME="header.inc" -->
43 <!-- TMPL_INCLUDE NAME="currencies-admin-search.inc" -->
44
45 <div id="breadcrumbs">
46          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
47 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
48 &rsaquo; <a href="<!-- TMPL_VAR NAME="script_name" -->">Currencies &amp; Exchange Rates</a>
49 &rsaquo; <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="searchfield" -->Modify Currency '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->New Currency<!-- /TMPL_IF --><!-- /TMPL_IF -->
50 <!-- TMPL_IF NAME="add_validate" -->Data Recorded<!-- /TMPL_IF -->
51 <!-- TMPL_IF NAME="delete_confirm" -->Confirm Deletion of Currency '<span class="ex"><!-- TMPL_VAR NAME="searchfield" --></span>'<!-- /TMPL_IF -->
52 <!-- TMPL_IF NAME="delete_confirmed" -->Currency Deleted<!-- /TMPL_IF -->
53 <!-- TMPL_IF NAME="else" -->Currencies<!-- /TMPL_IF -->
54 </div>
55
56 <div id="doc3" class="yui-t2">
57    
58    <div id="bd">
59         <div id="yui-main">
60         <div class="yui-b">
61         
62 <!-- TMPL_IF NAME="else" -->
63 <div id="toolbar">
64         <ul class="toolbar">
65         <li><a id="newcurrency" href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form">New Currency</a></li>
66 </ul></div>
67 <!-- /TMPL_IF -->
68
69 <!-- TMPL_IF NAME="add_form" -->
70
71 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
72     <input type="hidden" name="op" value="add_validate" />
73         <fieldset class="rows">
74         <legend><!-- TMPL_IF NAME="searchfield" -->
75                 Modify currency
76         <!-- TMPL_ELSE -->
77                 New currency
78         <!-- /TMPL_IF --></legend>
79         <ol>
80                 <li>
81         <!-- TMPL_IF NAME="searchfield" -->
82                         <span class="label">Currency: </span>
83                         <input type="hidden" name="currency" id="currency" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
84         <!-- TMPL_ELSE -->
85                         <label for="currency">Currency: </label>
86                         <input type="text" name="currency" id="currency" size="50" maxlength="50" onblur="toUC(this);" />
87         <!-- /TMPL_IF -->
88                 </li>
89         <li>
90                         <label for="rate">Rate: </label>
91                         <input type="text" name="rate" id="rate" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="rate" -->" />
92                 </li>
93         <li>
94                         <label for="symbol">Symbol: </label>
95                         <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="<!-- TMPL_VAR NAME="symbol" -->" />
96                 </li>
97         <li>
98                         <label for="currency">Last Updated: </label><!-- TMPL_VAR NAME="timestamp" -->
99                 </li>
100     </ol>
101     </fieldset>
102                 
103     <fieldset class="action">
104         <input type="submit" value="Submit" onclick="Check(this.form)" /> <a class="cancel" href="<!-- TMPL_VAR NAME="script_name" -->">Cancel</a>
105     </fieldset>
106     </form>
107
108 <!-- /TMPL_IF -->
109
110 <!-- TMPL_IF NAME="add_validate" -->
111 <div class="dialog message">
112     <h3>Data Recorded</h3>
113     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
114         <input type="submit" class="approve"  value="OK" />
115     </form>
116 </div>
117 <!-- /TMPL_IF -->
118
119 <!-- TMPL_IF NAME="delete_confirm" -->
120     <!-- TMPL_IF NAME="totalgtzero" -->
121     <div class="dialog message">
122         <h3>Cannot Delete Currencey <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
123         <p>This currency is used <!-- TMPL_VAR NAME="total" --> times. Deletion not possible</p>
124         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
125             <input type="submit" value="OK" class="approve" />
126         </form>
127     </div>
128     <!-- TMPL_ELSE -->
129     <div class="dialog alert">
130         <h3>Confirm Deletion of Currency <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
131         <table>
132             <tr><th>Currency</th>
133                 <td><!-- TMPL_VAR NAME="searchfield" --></td>
134             </tr>
135             <tr><th>Rate</th>
136                 <td><!-- TMPL_VAR NAME="rate" --></td>
137             </tr>
138         </table>
139         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
140             <input type="hidden" name="op" value="delete_confirmed" />
141             <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
142             <input type="submit" class="approve" value="Delete this Currency" />
143         </form>
144         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
145             <input type="submit" class="deny" value="No, Do Not Delete" />
146         </form>
147     </div>
148     <!-- /TMPL_IF -->
149 <!-- /TMPL_IF -->
150
151 <!-- TMPL_IF NAME="delete_confirmed" -->
152 <div class="dialog message"><h3>Currency Deleted</h3>
153 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
154     <input type="submit" class="approve" value="OK" />
155 </form></div>
156 <!-- /TMPL_IF -->
157
158 <!-- TMPL_IF NAME="else" -->
159
160 <h2>Currencies and Exchange Rates</h2>
161         <!-- TMPL_IF NAME="searchfield" -->
162                 You searched for <!-- TMPL_VAR NAME="searchfield" --></span>
163         <!-- /TMPL_IF -->       
164
165         <table>
166                 <tr>
167                         <th>Currency</th>
168                         <th>Rate</th>
169                         <th>Symbol</th>
170                         <th>Last Updated</th>
171                         <th colspan="2">&nbsp;</th>
172                 </tr>
173                 <!-- TMPL_LOOP NAME="loop" -->
174                 <!-- TMPL_UNLESS NAME="__odd__" -->
175                 <tr class="highlight">
176                 <!-- TMPL_ELSE -->
177                 <tr>
178                 <!-- /TMPL_UNLESS -->
179                         <td><!-- TMPL_VAR NAME="currency" --></td>
180                         <td><!-- TMPL_VAR NAME="rate" --></td>
181                         <td><!-- TMPL_VAR NAME="symbol" ESCAPE="HTML" --></td>
182                         <td><!-- TMPL_VAR NAME="timestamp" --></td>
183                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;searchfield=<!-- TMPL_VAR NAME="currency" -->">Edit</a></td>
184             <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="currency" -->">Delete</a></td>
185                 </tr>
186                 <!-- /TMPL_LOOP -->
187         </table>
188         
189         <!-- TMPL_IF NAME="offsetgtzero" -->
190                 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->">&lt;&lt; Previous</a>
191         <!-- /TMPL_IF -->
192
193         <!-- TMPL_IF NAME="ltcount" -->
194                 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next &gt;&gt;</a>       
195         <!-- /TMPL_IF -->
196
197 <!-- /TMPL_IF -->
198
199 </div>
200 </div>
201 <div class="yui-b">
202 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
203 </div>
204 </div>
205 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->