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 <!-- TMPL_IF NAME="add_form" -->
10 <script type="text/javascript">
13 function isNotNull(f,noalert) {
14 if (f.value.length ==0) {
21 var x=f.value.toUpperCase();
26 function isNum(v,maybenull) {
27 var n = new Number(v.value);
31 if (maybenull=="0" && v.value=="") {
38 var t = Date.parse(f.value);
48 if (f.currency.value.length==0) {
49 _alertString += "- Currency name missing\\n";
51 if (f.rate.value.length==0) {
52 _alertString += "- Rate missing\\n";
54 if (_alertString.length==0) {
55 document.Aform.submit();
57 alertString2 = "Form not submitted because of the following problem(s)\\n";
58 alertString2 += "------------------------------------------------------------------------------------\\n\\n";
59 alertString2 += _alertString;
68 <!-- TMPL_INCLUDE NAME="header.inc" -->
69 <!-- TMPL_INCLUDE NAME="currencies-admin-search.inc" -->
71 <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 -->
72 <!-- TMPL_IF NAME="add_validate" -->Data Recorded<!-- /TMPL_IF -->
73 <!-- TMPL_IF NAME="delete_confirm" -->Confirm Deletion of Currency '<!-- TMPL_VAR NAME="searchfield" -->'<!-- /TMPL_IF -->
74 <!-- TMPL_IF NAME="delete_confirmed" -->Currency Deleted<!-- /TMPL_IF -->
75 <!-- TMPL_IF NAME="else" -->Currencies<!-- /TMPL_IF --></div>
77 <div id="doc3" class="yui-t2">
83 <!-- TMPL_IF NAME="else" -->
85 <script type="text/javascript">
87 // prepare DOM for YUI Toolbar
88 $(document).ready(function() {
91 // YUI Toolbar Functions
92 function yuiToolbar() {
93 new YAHOO.widget.Button("newcurrency");
97 <li><a id="newcurrency" href="/cgi-bin/koha/admin/currency.pl?op=add_form">New Currency</a></li>
101 <!-- TMPL_IF NAME="add_form" -->
104 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
105 <input type="hidden" name="op" value="add_validate" />
107 <fieldset class="rows">
108 <legend><!-- TMPL_IF NAME="searchfield" -->
112 <!-- /TMPL_IF --></legend>
113 <ol><!-- TMPL_IF NAME="searchfield" -->
115 <span class="label">Currency: </span>
116 <input type="hidden" name="currency" id="currency" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
120 <label for="currency">Currency: </label>
121 <input type="text" name="currency" id="currency" size="50" maxlength="50" onblur="toUC(this);" />
126 <label for="rate">Rate: </label>
127 <input type="text" name="rate" id="rate" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="rate" -->" />
131 <fieldset class="action"><input type="submit" value="Submit" onclick="Check(this.form)" /> </fieldset>
136 <!-- TMPL_IF NAME="add_validate" -->
137 <h3>Data Recorded</h3>
138 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="OK" />
142 <!-- TMPL_IF NAME="delete_confirm" -->
143 <table><caption>Confirm Deletion of Currency <!-- TMPL_VAR NAME="searchfield" --></caption>
147 <td><!-- TMPL_VAR NAME="searchfield" --></td>
154 <td><!-- TMPL_VAR NAME="rate" --></td>
157 <!-- TMPL_IF NAME="totalgtzero" -->
159 <span class="alert">This currency is used <!-- TMPL_VAR NAME="total" --> times. Deletion not possible</span>
160 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
161 <input type="submit" value="OK" />
164 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
165 <input type="hidden" name="op" value="delete_confirmed" />
166 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
167 <input type="submit" value="Delete this Currency" />
169 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
170 <input type="submit" value="Do Not Delete" />
175 <!-- TMPL_IF NAME="delete_confirmed" -->
176 <h3>Currency Deleted</h3>
177 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
178 <input type="submit" value="OK" />
182 <!-- TMPL_IF NAME="else" -->
184 <h2>Currencies and Exchange Rates</h2>
185 <!-- TMPL_IF NAME="searchfield" -->
186 You searched for <!-- TMPL_VAR NAME="searchfield" --></span>
193 <th colspan="2"> </th>
195 <!-- TMPL_LOOP NAME="loop" -->
197 <td><!-- TMPL_VAR NAME="currency" --></td>
198 <td><!-- TMPL_VAR NAME="rate" --></td>
199 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&searchfield=<!-- TMPL_VAR NAME="currency" -->">Edit</a></td>
200 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&searchfield=<!-- TMPL_VAR NAME="currency" -->">Delete</a></td>
205 <!-- TMPL_IF NAME="offsetgtzero" -->
206 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->"><< Previous</a>
210 <!-- TMPL_IF NAME="ltcount" -->
211 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next >></a>
220 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
223 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->