<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
$dv_foc = strval($dv_bogj->dv_trasvar['lixi1']*100).'%';
$fv_bmangers = explode(",",$dv_bogj->dv_bmanages);

$user_AddDate = gmdate("Y-m-d H:i:s",$user_AddDate+getUserTimeZoneOffset());
//require_once('pet_mtop.php');//如果不需要和宠物整合，直接注释掉即可
print <<<EOT
<table cellpadding=0 cellspacing=0 width="100%" align=center class="mainbox">
<tr align=center>
<td  width=25% valign=top>
<table align=center cellspacing=1 cellpadding=0  class="mainbox tableborder">
<tr><th>{$lang['tpl.bank.str13']}</th></tr>
<tr align=left><td class=tablebody1>
{$lang['tpl.bank.str16']}：{$username}<br />
{$lang['tpl.bank.str34']}：{$user_EP}<br>
{$lang['tpl.bank.str35']}：{$user_CP}<br>
{$lang['tpl.bank.str37']}：{$user_Ticket}<br>
{$lang['tpl.bank.str36']}：{$user_Money}<br>
{$lang['tpl.bank.str8']}：{$dv_bogj->dv_money}<br>

</td></tr></table>
<br>
</td><td valign=top>
<table cellpadding=0 cellspacing=0 align=center  class="mainbox tableborder">
<tr align=left>
<th class=tablebody2>{$lang['tpl.bank.str17']}</th>
</tr>
<tr align=left>
<td class=tablebody2><a href="{$_thisfile}?dv_bopt=1">{$lang['tpl.bank.str1']}</a> | 
<a href="{$_thisfile}?dv_bopt=2">{$lang['tpl.bank.str2']}</a> | 
<a href="{$_thisfile}?dv_bopt=3">{$lang['tpl.bank.str3']}</a> | 
<a href="{$_thisfile}?dv_bopt=4">{$lang['tpl.bank.str4']}</a> | 
<a href="{$_thisfile}?dv_bopt=5">{$lang['tpl.bank.str5']}</a> | 
<a href="{$_thisfile}?dv_bopt=6">{$lang['tpl.bank.str6']}</a> | 
<a href="{$_thisfile}?dv_bopt=7">{$lang['tpl.bank.str7']}</a></td>
</tr>
</table><br />

<table cellpadding=0 cellspacing=0 align=center  class="mainbox tableborder">
EOT;
//还没开户
if(0==$dv_bogj->dv_status){
print <<<EOT
	<tr align=left>
	<th class=tablebody2>{$lang['tpl.bank.str18']}</th>
	</tr>
	<tr align=left>
	<td class=tablebody2>
	{$lang['tpl.bank.str19']}<font color=#FF0000>{$dv_bogj->dv_vars['statutext']}</font> | 
	{$lang['tpl.bank.str21']}<font color=#FF0000>&nbsp;1</font> | 
	{$lang['tpl.bank.str23']}<font color=#FF0000>&nbsp;2</font> | 
	{$lang['tpl.bank.str24']}<font color=#FF0000>&nbsp;3</font> 
	</td>
	</tr>
	<tr><td class=tablebody1 align=center valign=middle colspan=5>{$lang['tpl.bank.str27']}<br />
	({$lang['tpl.bank.str25']}<font color=#FF0000>&nbsp;3</font>，{$lang['tpl.bank.str26']}<font color=#FF0000>&nbsp;3</font>)
	</td></tr>
	</table><br />
EOT;
//银行业务的主页面
}elseif(1 == $dv_bogj->dv_bopt){
print <<<EOT
	<tr align=left>
	<th class=tablebody2>{$lang['tpl.bank.str18']}</th>
	</tr>
	<tr align=left>
	<td class=tablebody2>
	{$lang['tpl.bank.str19']}<font color=#FF0000>{$dv_bogj->dv_vars['statutext']}</font> | 
	{$lang['tpl.bank.str22']}<font color=#FF0000>{$dv_bogj->dv_allmoney}</font> | 
	{$lang['tpl.bank.str23']}<font color=#FF0000>{$dv_bogj->dv_ucount}</font> | 
	{$lang['tpl.bank.str24']}<font color=#FF0000>{$dv_foc}</font> 
	</td>
	</tr>
	</table><br />
EOT;
//银行中心
}elseif(2 == $dv_bogj->dv_bopt || 21 == $dv_bogj->dv_bopt || 22 == $dv_bogj->dv_bopt || 23 == $dv_bogj->dv_bopt || 24 == $dv_bogj->dv_bopt || 25 == $dv_bogj->dv_bopt){
print <<<EOT
	<tr align=left>
	<th class=tablebody2>{$lang['tpl.bank.str2']}</th>
	</tr>
	<tr align=left>
	<td class=tablebody2>
	<a href="{$_thisfile}?dv_bopt=21">{$lang['tpl.bank.str8']}</a> | 
	<a href="{$_thisfile}?dv_bopt=22">{$lang['tpl.bank.str9']}</a> | 
	<a href="{$_thisfile}?dv_bopt=23">{$lang['tpl.bank.str39']}</a> | 
	<a href="{$_thisfile}?dv_bopt=24">{$lang['tpl.bank.str10']}</a> | 
	<a href="{$_thisfile}?dv_bopt=25">{$lang['tpl.bank.str45']}</a>
	</td>
	</tr>

	<tr><td class=tablebody1 align=left valign=middle colspan=5>{$lang['tpl.bank.str40']}<br /></td></tr>
	
	</table><br />
EOT;
//社区服务
}elseif(3 == $dv_bogj->dv_bopt){
print <<<EOT
	<tr align=left>
	<th class=tablebody2>{$lang['tpl.bank.str3']}</th>
	</tr>
	<tr align=left>
	<td class=tablebody2>
<a href="javascript:void(window.open('bank_news.php?action=addann&boardid=0','','width=500,height=400,resizable=1,scrollbars=yes,menubar=no,status=no'));">发布公告</a>
	<a href="javascript:void(window.open('bank_msg.php?action=new','','width=500,height=400,resizable=1,scrollbars=yes,menubar=no,status=no'));">群发短信</a>
	</td>
	</tr>
	<tr><td class=tablebody1 align=left valign=middle colspan=5>
{$lang['tpl.bank.str43']}
	</td></tr>
	</table><br />
EOT;
//社区富豪榜
}elseif(4 == $dv_bogj->dv_bopt){
print <<<EOT
	<tr align=left>
	<th class=tablebody2 colspan=2>{$lang['tpl.bank.str4']}</th></tr>
	<tr align=left>
	<td class=tablebody2>{$lang['tpl.bank.str16']}</td><td class=tablebody2>{$lang['tpl.bank.str36']}</td>
EOT;
$dv_arraylist = $dv_bogj->getfhlist();
foreach( $dv_arraylist as $val ){
	echo '<tr><td class=tablebody1 align=left valign=middle>'.$val['username'].'</td>';
	echo '<td class=tablebody1 align=left valign=middle style="width:140px">'.$val['money'].'</td></tr>';
}
echo '</table><br />';

//银行条例
}elseif(5 == $dv_bogj->dv_bopt){
print <<<EOT
	<tr align=left>
	<th class=tablebody2>{$lang['tpl.bank.str5']}</th>
	</tr>
	<tr><td class=tablebody1 align=left valign=middle colspan=5>
	{$lang['tpl.bank.str66']}<br />
	</td></tr>
	</table><br />
EOT;
//业务历史
}elseif(6 == $dv_bogj->dv_bopt){
print <<<EOT
	<tr align=left>
	<th class=tablebody2 colspan=3>{$lang['tpl.bank.str6']}</th></tr>
	<tr align=left>
	<td class=tablebody2>{$lang['tpl.bank.str16']}</td><td class=tablebody2>{$lang['tpl.bank.str68']}</td><td class=tablebody2>{$lang['tpl.bank.str67']}</td>
EOT;
$dv_arraylist = $dv_bogj->getlolist();
foreach( $dv_arraylist as $val ){
	echo '<tr><td class=tablebody1 align=left valign=middle>'.$val['username'].'</td>';
	echo '<td class=tablebody1 align=left valign=middle style="width:30%">'.$val['action'].'</td>';
	echo '<td class=tablebody1 align=left valign=middle style="width:30%">'.$val['acttime'].'</td></tr>';
}
?>
<tr><td valign=middle colspan=3 class=tablebody1>
<table border=0 cellpadding=0 cellspacing=0 class="mainbox tableborder" align=center>
<tr><td valign=middle nowrap align="left">
<?=$lang['tpl.bank.str69']?><b><?=$dv_bogj->CurrentPage?></b>/<b><?=$dv_bogj->Pcount?></b><?=$lang['tpl.bank.str70']?>&nbsp;
<?=$lang['tpl.bank.str71']?><b><?=$dv_bogj->PageNum?></b> <?=$lang['tpl.bank.str72']?><b><?=$dv_bogj->totalrec?></b>
</td> 
<td valign=middle nowrap align=right><?=$lang['tpl.bank.str73']?>
<?
	print pagelist($dv_bogj->totalrec,$dv_bogj->PageNum,$dv_bogj->CurrentPage,$_thisfile.'?dv_bopt='.$dv_bogj->dv_bopt,count($dbResults));
?>
</td></tr></table> 	
<?
echo '</table><br />';

//行长决策
}elseif(7 == $dv_bogj->dv_bopt){	
	echo 	'<tr align=left><th class=tablebody2 align=left>'.$lang['tpl.bank.str7'].'</th></tr>';
print <<<EOT
	<tr><td class=tablebody1 align=left valign=middle colspan=5>
	<fieldset class="" style="margin:10px;padding:5px 10px 10px 10px;border:1px solid #E1E8EF"><legend>{$lang['tpl.bank.str77']}:</legend>
	<div style="margin-left:20px;line-height:23px">
	{$lang['tpl.bank.str92']}： {$dv_bogj->dv_trasvar['eptomony']} ：1<br />
	{$lang['tpl.bank.str93']}： {$dv_bogj->dv_trasvar['cptomony']} ：1<br />
	{$lang['tpl.bank.str94']}： {$dv_bogj->dv_trasvar['tickettomony']} ：1<br />
	
	{$lang['tpl.bank.str85']}： {$dv_bogj->dv_trasvar['lixi1']} ：1<br />
	{$lang['tpl.bank.str86']}： {$dv_bogj->dv_trasvar['lixi7']} ：1<br />
	{$lang['tpl.bank.str87']}： {$dv_bogj->dv_trasvar['lixi15']} ：1<br />
	{$lang['tpl.bank.str88']}： {$dv_bogj->dv_trasvar['lixi30']} ：1<br />
	{$lang['tpl.bank.str89']}： {$dv_bogj->dv_trasvar['lixi180']} ：1<br />
	{$lang['tpl.bank.str90']}： {$dv_bogj->dv_trasvar['msg1money']} ：1<br />
	{$lang['tpl.bank.str91']}： {$dv_bogj->dv_trasvar['news1money']} ：1<br />	
	</div></fieldset></td></tr>
	</table><br />
EOT;
}
//公告
print <<<EOT
<table cellpadding=0 cellspacing=0 align=center  class="mainbox tableborder">
<tr align=left>
<th class=tablebody2>{$lang['tpl.bank.str28']}</th>
</tr>
<tr align=left>
<td class=tablebody2>{$lang['tpl.bank.str29']}</td>
</tr>
<tr><td class=tablebody1 align=left valign=middle colspan=5>
{$dv_bogj->dv_bnews}
</td></tr>
</table><br />

</table><br>
</td></tr></table>
EOT;
?>