<!--<?php print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=0 align=center><tr><td align=left>
<img src='$imgpath/$stylepath/index/home.gif' align=absbottom> 
<b><a href='$db_bfn'>$db_bbsname </a>  -> <a href="$basename">{#bank_guide}</a></b></td></tr></table><br>

<table width='$tablewidth' align="center" cellpadding="1" cellspacing="0">
<tr><td width=20% valign="top">
<table width=100% align="center" cellpadding=3 cellspacing=1 $i_table>
<tr><td class=head colspan=2>{#bank_bank}</td></tr>
<tr class='f_one'><td class='smalltxt'>
{#bank_introduce}
</td></tr>
<!--
EOT;
if(!$action){print <<<EOT
-->
<tr><td class=head colspan=2>{#bank_userinfo}</td></tr>
<tr class='f_one'><td class='smalltxt'>
{#username}:$windid<br><br>
$db_rvrcname:$userrvrc $db_rvrcunit<br>
$db_moneyname:$winddb[money] $db_moneyunit<br>
$db_creditname:$winddb[credit] $db_creditunit<br>
<!--
EOT;
foreach($showdb as $show){
print <<<EOT
-->
$show[0]:$show[1] {#bank_unit}<br>
<!--
EOT;
}print <<<EOT
-->
<br>
{#bank_deposit}
</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table></td>
<td width='10'></td>
<td valign="top">
<!--
EOT;
if(!$action){print <<<EOT
-->
<table width=100% cellpadding=3 cellspacing=1 $i_table>
<tr>
<td class=head colspan=2>{#bank_bank_save}</td></tr>
<tr class='f_one'>
<form name="form1" method="post" action="$basename&">
<input type="hidden" name="action" value="save">
<td width=50%><font color="5A6633">{#bank_save}</font><br>
<input name="btype" type="radio" value="1" checked>{#bank_term}
<input name="btype" type="radio" value="2">{#bank_fixed}<br><br>
{#bank_save_money}($db_moneyunit) <br><input name="savemoney" type="text"> 
<input type="submit" value="{#submit}">
</td></form>
<form name="form2" method="post" action="$basename&">
<input type="hidden" name="action" value="draw">
<td><font color="5A6633">{#bank_draw}</font><br>
<input name="btype" type="radio" value="1" checked>{#bank_term}
<input name="btype" type="radio" value="2">{#bank_fixed}<br><br>
{#bank_draw_money}($db_moneyunit) <br>
<input name="drawmoney" type="text" id="drawmoney"> 
<input type="submit" value="{#submit}">
</td></form></tr></table>
<!--
EOT;
if($bk_virement=='1'){
print <<<EOT
-->
<br>
<form name="form3" method="post" action="$basename&">
<input type="hidden" name="action" value="virement">
<table width=100% cellpadding=3 cellspacing=1 $i_table>
<tr><td class=head colspan=2>{#bank_virement}</td></tr>
<tr class='f_one'>
<td width=50%>{#bank_toname}<br><input name="pwuser" type="text"></td>
<td>{#bank_tomoney}( {#bank_min} $bk_virelimit $db_moneyunit)
<br><input name="to_money" type="text">
<input type="submit" value="{#submit}"></td>
</form></tr></table>
<!--
EOT;
}
foreach($bk_A as $key=>$thread){
if($thread[5]){
list($credit_1,$credit_2)=explode('_',$key);
if(is_numeric($credit_1)){
$credit_1 = $_CREDITDB[$credit_1][0];
}else{
switch($credit_1){
	case 'rvrc'   : $credit_1 = $db_rvrcname;break;
	case 'money'  : $credit_1 = $db_moneyname;break;
	case 'credit' : $credit_1 = $db_creditname;break;
}
}
if(is_numeric($credit_2)){
$credit_2 = $_CREDITDB[$credit_2][0];
}else{
switch($credit_2){
	case 'rvrc'   : $credit_2 = $db_rvrcname;break;
	case 'money'  : $credit_2 = $db_moneyname;break;
	case 'credit' : $credit_2 = $db_creditname;break;
}
}
print <<<EOT
-->
<br>
<table width=100% cellpadding=3 cellspacing=1 $i_table>
<tr><td class=head colspan=2>{#bank_credit_swap}</td></tr>
<tr class='f_one'>
<form name="form4" method="post" action="$basename&">
<input type="hidden" name="action" value="credit">
<input type="hidden" name="type" value=$key>
<input type="hidden" name="method" value=1>
<td width=50%><font color="5A6633">$credit_1 -> $credit_2</font>(1£º$thread[2])<br><br>
{#bank_reduce}<font color="red">$credit_1</font>{#bank_point} <br><input name="change" type="text">
<input type="submit" value="{#submit}"> 
</td></form>
<!--
EOT;
if($thread[4]){
print <<<EOT
-->
<form name="form5" method="post" action="$basename&">
<input type="hidden" name="action" value="credit">
<input type="hidden" name="type" value=$key>
<input type="hidden" name="method" value=2>
<td><font color="5A6633">$credit_2 -> $credit_1</font>($thread[3]£º1)<br><br>
{#bank_add}<font color="red">$credit_1</font>{#bank_point} <br><input name="change" type="text">
<input  type="submit" value="{#submit}"> </td></form>
<!--
EOT;
}print <<<EOT
-->
</tr></table>
<!--
EOT;
}}print <<<EOT
-->
<br>
<table width=100% cellpadding=3 cellspacing=1 $i_table>
<tr><td class=head colspan=2>{#bank_bank_sort}</td></tr>
<tr class='f_one'><td width=50% valign=top>
<table width=100%><tr><td colspan=2 align=center>{#bank_term_sort}</td></tr>
<!--
EOT;
$id=0;
foreach($_DESPOSTDB as $thread){
if($thread[2]){
$id++;
print <<<EOT
-->
<tr><td width=10%>$id</td><td width=30%><a href="profile.php?action=show&uid=$thread[0]">$thread[1]</a></td>
<td width=25%>$thread[2] $db_moneyunit</td><td class='smalltxt'>$thread[3]</td></tr>
<!--
EOT;
}}print <<<EOT
-->
</table></td><td valign=top>
<table width=100%><tr><td colspan=3 align=center>{#bank_fixed_sort}</td></tr>
<!--
EOT;
$id=0;
foreach($_DDESPOSTDB as $thread){
if($thread[2]){
$id++;
print <<<EOT
-->
<tr><td width=10%>$id</td><td width=30%><a href="profile.php?action=show&uid=$thread[0]">$thread[1]</a></td>
<td width=25%>$thread[2] $db_moneyunit</td><td class='smalltxt'>$thread[3]</td></tr>
<!--
EOT;
}}print <<<EOT
-->
</table>
</td></tr></table>
<!--
EOT;
}elseif($action=='log'){print <<<EOT
-->
<table width="100%" cellpadding=6 cellspacing=1 $i_table>
<tr class=head><td colspan=5>
<div>
<div style="float:left;"><b>{#bank_log}</b></div>
<div style="float:right;"><select name="type" onchange="Bjump(this.options[this.selectedIndex].value)">
<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></div></div>
</td></tr>
<tr class="cbg" 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></tr>
<!--
EOT;
$num=($page-1)*$db_perpage;
foreach($logdb as $key => $value){
$num++;
print <<<EOT
-->
<tr class="f_one" 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></tr>
<!--
EOT;
}print <<<EOT
-->
</td></tr></table>
 &nbsp; $pages
<script language=JavaScript>
function Bjump(value){
	if(value!= '') {
		window.location=('$basename&action=log&type='+value);
	}
}
</script>
<!--
EOT;
}print <<<EOT
-->
</td></tr></table>
<!--
EOT;
?>-->