1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Currencies & Exchange Rates ›
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">
12 var x=f.value.toUpperCase();
19 if (f.currency.value.length==0) {
20 _alertString += "- Currency name missing\n";
22 if (f.rate.value.length==0) {
23 _alertString += "- Rate missing\n";
25 if (f.symbol.value.length==0) {
26 _alertString += "- Symbol missing\n";
28 if (_alertString.length==0) {
29 document.Aform.submit();
31 alertString2 = "Form not submitted because of the following problem(s)\n";
32 alertString2 += "------------------------------------------------------------------------------------\n";
33 alertString2 += _alertString;
38 $(document).ready(function() {
39 new YAHOO.widget.Button("newcurrency");
45 <!-- TMPL_INCLUDE NAME="header.inc" -->
46 <!-- TMPL_INCLUDE NAME="currencies-admin-search.inc" -->
50 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <a href="/cgi-bin/koha/admin/currency.pl">Currencies & Exchange Rates</a> › <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="searchfield" -->Modify Currency '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->New Currency<!-- /TMPL_IF --><!-- /TMPL_IF -->
51 <!-- TMPL_IF NAME="add_validate" -->Data Recorded<!-- /TMPL_IF -->
52 <!-- TMPL_IF NAME="delete_confirm" -->Confirm Deletion of Currency '<span class="ex"><!-- TMPL_VAR NAME="searchfield" --></span>'<!-- /TMPL_IF -->
53 <!-- TMPL_IF NAME="delete_confirmed" -->Currency Deleted<!-- /TMPL_IF -->
54 <!-- TMPL_IF NAME="else" -->Currencies<!-- /TMPL_IF -->
57 <div id="doc3" class="yui-t2">
63 <!-- TMPL_IF NAME="else" -->
66 <li><a id="newcurrency" href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form">New Currency</a></li>
70 <!-- TMPL_IF NAME="add_form" -->
72 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
73 <input type="hidden" name="op" value="add_validate" />
74 <fieldset class="rows">
75 <legend><!-- TMPL_IF NAME="searchfield" -->
79 <!-- /TMPL_IF --></legend>
82 <!-- TMPL_IF NAME="searchfield" -->
83 <span class="label">Currency: </span>
84 <input type="hidden" name="currency" id="currency" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
86 <label for="currency">Currency: </label>
87 <input type="text" name="currency" id="currency" size="50" maxlength="50" onblur="toUC(this);" />
91 <label for="rate">Rate: </label>
92 <input type="text" name="rate" id="rate" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="rate" -->" />
95 <label for="symbol">Symbol: </label>
96 <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="<!-- TMPL_VAR NAME="symbol" -->" />
100 <label for="currency">Last Updated: </label><!-- TMPL_VAR NAME="timestamp" -->
103 <label for="currency">Active: </label>
104 <input type="checkbox" id="active" name="active" value="1"
105 <!-- TMPL_IF NAME="active" --> checked <!-- /TMPL_IF --> />
111 <fieldset class="action">
112 <input type="submit" value="Submit" onclick="Check(this.form)" />
113 <input type="button" onclick="window.location.href='<!-- TMPL_VAR NAME="script_name" -->'" value="Cancel" />
119 <!-- TMPL_IF NAME="add_validate" -->
120 <div class="dialog message">
121 <h3>Data Recorded</h3>
122 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
123 <input type="submit" class="approve" value="OK" />
128 <!-- TMPL_IF NAME="delete_confirm" -->
129 <!-- TMPL_IF NAME="totalgtzero" -->
130 <div class="dialog message">
131 <h3>Cannot Delete Currencey <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
132 <p>This currency is used <!-- TMPL_VAR NAME="total" --> times. Deletion not possible</p>
133 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
134 <input type="submit" value="OK" class="approve" />
138 <div class="dialog alert">
139 <h3>Confirm Deletion of Currency <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
141 <tr><th>Currency</th>
142 <td><!-- TMPL_VAR NAME="searchfield" --></td>
145 <td><!-- TMPL_VAR NAME="rate" --></td>
148 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
149 <input type="hidden" name="op" value="delete_confirmed" />
150 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
151 <input type="submit" class="approve" value="Delete this Currency" />
153 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
154 <input type="submit" class="deny" value="No, Do Not Delete" />
160 <!-- TMPL_IF NAME="delete_confirmed" -->
161 <div class="dialog message"><h3>Currency Deleted</h3>
162 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
163 <input type="submit" class="approve" value="OK" />
167 <!-- TMPL_IF NAME="else" -->
169 <h2>Currencies and Exchange Rates</h2>
170 <!-- TMPL_IF NAME="searchfield" -->
171 You searched for <!-- TMPL_VAR NAME="searchfield" --></span>
179 <th>Last Updated</th>
181 <th colspan="2">Actions </th>
183 <!-- TMPL_LOOP NAME="loop" -->
184 <!-- TMPL_UNLESS NAME="__odd__" -->
185 <tr class="highlight">
188 <!-- /TMPL_UNLESS -->
189 <td><!-- TMPL_VAR NAME="currency" --></td>
190 <td><!-- TMPL_VAR NAME="rate" --></td>
191 <td><!-- TMPL_VAR NAME="symbol" ESCAPE="HTML" --></td>
192 <td><!-- TMPL_VAR NAME="timestamp" --></td>
193 <td style="color:green;"><!-- TMPL_IF NAME="active" -->✓<!-- /TMPL_IF --></td>
194 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&searchfield=<!-- TMPL_VAR NAME="currency" -->">Edit</a></td>
195 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&searchfield=<!-- TMPL_VAR NAME="currency" -->">Delete</a></td>
201 <!-- TMPL_IF NAME="offsetgtzero" -->
202 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->"><< Previous</a>
205 <!-- TMPL_IF NAME="ltcount" -->
206 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next >></a>
214 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
217 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->