1 <!-- TMPL_INCLUDE NAME="main-top.inc" -->
2 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
3 <!-- TMPL_INCLUDE NAME="admin-topmenu.inc" -->
4 <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
7 <!-- TMPL_IF NAME=add_form -->
10 function isNotNull(f,noalert) {
11 if (f.value.length ==0) {
18 var x=f.value.toUpperCase();
23 function isNum(v,maybenull) {
24 var n = new Number(v.value);
28 if (maybenull=="0" && v.value=="") {
35 var t = Date.parse(f.value);
45 if (f.currency.value.length==0) {
46 _alertString += "- Currency name missing\\n";
48 if (f.rate.value.length==0) {
49 _alertString += "- Rate missing\\n";
51 if (_alertString.length==0) {
52 document.Aform.submit();
54 alertString2 = "Form not submitted because of the following problem(s)\\n";
55 alertString2 += "------------------------------------------------------------------------------------\\n\\n";
56 alertString2 += _alertString;
62 <form action="<!-- TMPL_VAR NAME=script_name -->" name="Aform" method="post">
63 <input type="hidden" name="op" value="add_validate" />
66 <caption><!-- TMPL_IF NAME=searchfield -->
70 <!-- /TMPL_IF --></caption>
71 <!-- TMPL_IF NAME="searchfield" -->
75 <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
82 <input type="text" name="currency" size="50" maxlength="50" onblur="toUC(this);" />
90 <input type="text" name="rate" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="rate" -->" />
93 </table><input type="button" value="Update" onClick="Check(this.form)" class="submit" /> <input type="button" class="cancel" value="Cancel" onclick="location.href='<!-- TMPL_VAR NAME="script_name" -->'; return false;" />
98 <!-- TMPL_IF NAME="add_validate" -->
99 <h3>Data Recorded</h3>
100 <div class="form"><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="OK" class="submit" />
104 <!-- TMPL_IF NAME="delete_confirm" -->
105 <table><caption>Confirm Deletion of Currency <em><!-- TMPL_VAR NAME="searchfield" --></em></caption>
109 <td><!-- TMPL_VAR NAME="searchfield" --></td>
116 <td><!-- TMPL_VAR NAME="rate" --></td>
119 <!-- TMPL_IF NAME="totalgtzero" -->
121 <span class="alert">This currency is used <!-- TMPL_VAR NAME="total" --> times. Deletion not possible</span>
122 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
123 <input type="submit" value="OK" class="submit" />
126 <div class="tabitem"> <form action="<!-- TMPL_VAR NAME=script_name -->" method="post">
127 <input type="hidden" name="op" value="delete_confirmed" />
128 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
129 <input type="submit" value="Delete this Currency" class="cancel" />
131 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
132 <input type="submit" value="Do Not Delete" class="submit" />
137 <!-- TMPL_IF NAME="delete_confirmed" -->
138 <h3>Currency Deleted</h3>
139 <div class="form"><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
140 <input type="submit" value="OK" class="submit" />
144 <!-- TMPL_IF NAME="else" -->
146 <h2>Currencies admin</h2>
147 <!-- TMPL_IF NAME="searchfield" -->
148 You searched for <span class="ex"><!-- TMPL_VAR NAME="searchfield" --></span>
150 <form action="<!-- TMPL_VAR NAME=script_name -->" method="post">
151 <input type="text" name="description" value="<!-- TMPL_VAR NAME=searchfield -->" />
152 <input type="submit" name="Search" value="Search" class="submit" />
154 <div class="table"><table>
158 <th colspan="2"> </th>
160 <!-- TMPL_LOOP NAME="loop" -->
162 <td><!-- TMPL_VAR NAME="currency" --></td>
163 <td><!-- TMPL_VAR NAME="rate" --></td>
164 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&searchfield=<!-- TMPL_VAR NAME="currency" -->">Edit</a></td>
165 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&searchfield=<!-- TMPL_VAR NAME="currency" -->">Delete</a></td>
169 <form action="<!-- TMPL_VAR NAME=script_name -->" method="post">
170 <input type="hidden" name="op" value="add_form" /><input type="submit" class="submit" value="Add Currency" />
174 <!-- TMPL_IF NAME="offsetgtzero" -->
175 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->"><< Prev</a>
179 <!-- TMPL_IF NAME="ltcount" -->
180 <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next >></a>
183 <!-- /TMPL_IF --></div>
186 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->