<!--<?php
include_once PrintEot('left');
if(empty($action)){
print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=b>
[<b><a href="$basename">{#bankset}</a></b>]
[<a href="$basename&action=log">{#banklog}</a>]
</td></tr></table><br>

<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>{#bankset_info}<br>&nbsp;</td></tr></table><br>

<br><form action="$basename" method="post">
<input type=hidden name="action" value="unsubmit">
<table width=98% align="center" cellpadding=3 cellspacing=1 class=i_table>
<tr class=head align=center>
<td colspan="2">{#bankset_guide}</td>
</tr>
<tr class=b><td>{#bankset_ifopen}</td>
<td><input type=radio value=1 $bk_open_1 name=config[open]> {#_yes} <input type=radio value=0 $bk_open_0 name=config[open]> {#_no}</td></tr>
<tr class=b><td>{#bankset_virement}</td>
<td><input type=radio value=1 $bk_virement_1 name=config[virement]> {#_yes} <input type=radio value=0 $bk_virement_0 name=config[virement]> {#_no}</td></tr>
<tr class=b><td>{#bankset_per}</td>
<td><input size=35 value="$bk_per" name=config[per]></td></tr>
<tr class=b><td>{#bankset_num}</td>
<td><input size=35 value="$bk_num" name=config[num]></td></tr>
<tr class=b><td>{#bankset_virerate}</td>
<td><input size=35 value="$bk_virerate" name=config[virerate]></td></tr>
<tr class=b><td>{#bankset_virelimit}</td>
<td><input size=35 value="$bk_virelimit" name=config[virelimit]></td></tr>
<tr class=b>
<td>{#bankset_timelimit}</td>
<td><input size=35 value="$bk_timelimit" name=config[timelimit]></td>
</tr>
<tr class=b>
<td>{#bankset_rate}</td>
<td><input size=35 value="$bk_rate" name=config[rate]></td>
</tr>
<tr class=b>
<td>{#bankset_drate}</td>
<td><input size=35 value="$bk_drate" name=config[drate]></td>
</tr>
<tr class=b>
<td>{#bankset_ddate}</td>
<td><input size=35 value="$bk_ddate" name=config[ddate]></td></tr></table>
<br><center><input type=submit value="{#submit}">
<input type=reset value="{#reset}"></center></form><br>

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#bankset_credit}</td></tr>
<tr><td class=b>
<br><ul>
{#bankset_intro}
</ul></td></tr></table><br>

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr class=i_table><td colspan="8" class=head>{#bankset_swap}</td></tr>
<tr class=head_2  align=center><td width=5%>ID</td><td width=20%>{#bankset_credit1}</td>
<td width=20%>{#bankset_credit2}</td><td width=20%>{#bankset_forward}</td><td width=20%>{#bankset_back}</td>
<td width=5%>{#bankset_manner}</td><td width=5%>{#bankset_state}</td><td width=5%>{#bankset_del}</td></tr>
<!--
EOT;
$id=1;
foreach($bk_A as $key=>$bkinfo){
$bkinfo[4]=$bkinfo[4]==1 ? '{#bankset_both}' :'{#bankset_only}';
$bkinfo[5]=$bkinfo[5]==1 ? '{#bankset_use}' :'{#bankset_ban}';
$bkinfo[2]="1 : $bkinfo[2]";$bkinfo[3]="$bkinfo[3] : 1";
print <<<EOT
-->
<tr align=center><td class=b>$id</td><td class=b>$bkinfo[0]</td><td class=b>$bkinfo[1]</td>
<td class=b>$bkinfo[2]</td><td class=b>$bkinfo[3]</td>
<td class=b><a href="$basename&action=method&mid=$key" title='{#bankset_method}' >$bkinfo[4]</a></td>
<td class=b><a href="$basename&action=change&changeid=$key" title='{#bankset_change}' >$bkinfo[5]</a></td>
<td class=b><a href="$basename&action=del&delid=$key">{#bankset_del}</a></td></tr>
<!--
EOT;
$id++;}print <<<EOT
-->
<form action="$basename" method=post>
<input type=hidden name=action value='add'>
<tr align=center><td class=b>$id</td>
<td class=b><select name=jifen1>$jifen</select></td>
<td class=b><select name=jifen2>$jifen</select></td>
<td class=b><input type=text name=rate1 size=10></td>
<td class=b><input type=text name=rate2 size=10></td>
<td class=b><select name=method><option value=1>{#bankset_both}</option><option value=0>{#bankset_only}</option></select></td>
<td class=b><select name=ifuse><option value=1>{#bankset_use}</option><option value=0>{#bankset_ban}</option></select></td>
<td class=b><input type='submit' value='{#bankset_new}'></td></tr></table>
</form><br><br>
<!--
EOT;
}elseif($action=='log'){print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=b>
[<a href="$basename">{#bankset}</a>]
[<b><a href="$basename&action=log">{#banklog}</a></b>]
</td></tr></table><br>

<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>{#banklog_info}<br>&nbsp;</td></tr></table><br>

<form action="$basename&action=log&" method="post">
<table width=98% align=center cellspacing=0 cellpadding=0>
<tr><td>
<table width=100% cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=6>{#log_search}</td></tr>
<tr align=center class=b>
<td>{#username}: <input type="text" size=25 name="username1" value="$username1"></td>
<td>{#record_keyword}: <input type="text" size=25 name="keyword" value="$keyword"></td>
<td>
<select name="type">
<option value="all">{#all}</option>
<option value="bk_save" $select[bk_save]>{$logtype[bk_save]}</option>
<option value="bk_draw" $select[bk_draw]>{$logtype[bk_draw]}</option>
<option value="bk_vire" $select[bk_vire]>{$logtype[bk_vire]}</option>
<option value="bk_credit" $select[bk_credit]>{$logtype[bk_credit]}</option>
</select>
</td>
<td class=b><input type=submit value='{#submit}'></td>
</tr></table></td></tr></table></form>
 &nbsp; $pages
<form action="$basename&" method="post">
<input type="hidden" name="action" value="dellog">
<table width="98%" cellpadding=6 cellspacing=1 class="i_table" align="center">
<tr class=head><td colspan=6><b>{#bank_log}</b></td></tr>
<tr class="head_2" align="center">
<td width="5%">ID</td>
<td width="5%">{#log_type}</td>
<td width="*">{#log_descrip}</td>
<td width="15%">{#log_date}</td>
<td width="15%">IP</td>
<td width="3%">{#notice_del}</td>
</tr>
<!--
EOT;
$num=($page-1)*$db_perpage;
foreach($logdb as $key => $value){
$num++;
print <<<EOT
-->
<tr class="b" align="center">
<td>$num</td>
<td>{$logtype[$value[type]]}</td>
<td><div style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word' align="left">$value[descrip]</div></td>
<td>$value[date]</td>
<td>$value[ip]</td>
<td><input type="checkbox" name="selid[]" value="$value[id]"></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</td></tr></table>
<br><center><input type="button" name="chkall" value="{#sel_all}" onclick="CheckAll(this.form)">
<input type="submit" name="hello" value="{#submit}"></center></form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->