<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=7>{#guide}</td></tr>
<tr><td class=b>{#currency_info}</td></tr>
</table><br>
<!--
EOT;
if (!$action){print <<<EOT
-->
<form action="$basename&" method="post">
<input type="hidden" name="action" value="edit">
<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=9>{#currency_title}</td></tr>
<tr><td class=b>{#username}</td>
<td class=b><input type="text" name="username"></td></tr>
</table>
<br><center><input type=submit value='{#submit}'></center></form>

 &nbsp; $pages
<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=4>{#currency_title}</td></tr>
<tr class="c" align="center">
<td>ID</td>
<td>{#username}</td>
<td>{#currency}</td>
<td>{#edit}</td>
</tr>
<!--
EOT;
$id=($page-1)*$db_perpage;
foreach($currencydb as $key => $value){
$id++;
print <<<EOT
-->
<tr class=b align="center">
<td>$id</td>
<td>$value[username]</td>
<td>$value[currency]</td>
<td><a href="$basename&action=edit&uid=$value[uid]">{#edit}</a></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='edit'){print <<<EOT
-->
<form action="$basename" method="post">
<input type="hidden" name="action" value="edit">
<input type="hidden" name="step" value="2">
<input type="hidden" name="uid" value="$rt[uid]">
<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2 align="center">{#currency_title}</td></tr>
<tr><td class=b width="20%">{#username}</td>
<td class=b>$rt[username]</td></tr>
<tr><td class=b width="20%">{#currency}</td>
<td class=b><input type="text" name="currency" value="$rt[currency]"></td></tr>
</table>
<br><center><input type=submit value='{#submit}'></center></form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->