<!--
<?php
if($job=='pwd'){
print <<<EOT
--> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">支付密码设置</td>
        </tr>
        <tr> 
          <td class="middle" style="padding:10px;line-height:25px;"><form name="form1" method="post" action="?job=$job">
              <table width="100%" border="0" cellspacing="1" cellpadding="3">
                <tr> 
                  <td width="23%">新的支付密码:</td>
                  <td width="77%"> 
                    <input type="password" name="pwd" size="20">
                  </td>
                </tr>
                <tr> 
                  <td width="23%">重复输入新的支付密码:</td>
                  <td width="77%"> 
                    <input type="password" name="pwd2" size="20">
                  </td>
                </tr>
                <!--
EOT;
if($lfjdb[rmb_pwd]){print <<<EOT
-->
                <tr> 
                  <td width="23%">旧的支付密码:</td>
                  <td width="77%"> 
                    <input type="password" name="old_pwd" size="20">
                  </td>
                </tr>
                <!--
EOT;
}print <<<EOT
-->
                <tr> 
                  <td width="23%">&nbsp;</td>
                  <td width="77%"> 
                    <input type="submit" name="Submit" value="提交">
                    <input type="hidden" name="step" value="2">
                  </td>
                </tr>
                <tr> 
                  <td colspan="2"><br>
                    <br>
                    1.支付密码很重要,涉及到你的人民币消费与取现等相关操作.请尽量不要跟登录密码一样.<br>
                    2.除首次设置外,今后更改支付密码需要输入原密码,如果忘记原密码,请联系管理员!</td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
        <tr> 
          <td class="foot"></td>
        </tr>
      </table>
	  
    </td>
  </tr>
</table>
<br>

<!--
EOT;
}elseif($job=='get'){print <<<EOT
-->

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">提现</td>
        </tr>
        <tr> 
          <td class="middle" style="padding:10px;line-height:25px;"><form name="form1" method="post" action="?job=$job">
              <table width="100%" border="0" cellspacing="1" cellpadding="3">
                <tr> 
                  <td width="23%">可用余额为:</td>
                  <td width="77%"> <b><font color="#FF0000">$lfjdb[rmb]</font></b> 
                    元</td>
                </tr>
                <tr> 
                  <td width="23%">提现金额为:(<font color="#FF0000">*</font>)</td>
                  <td width="77%"> 
                    <input type="text" name="RMBmoney" size="5">
                    元 </td>
                </tr>
                <!--
EOT;
if($lfjdb[rmb_pwd]){print <<<EOT
-->
                <tr> 
                  <td width="23%">支付密码:(<font color="#FF0000">*</font>)</td>
                  <td width="77%"> 
                    <input type="password" name="pwd" size="20">
                  </td>
                </tr>
                <tr>
                  <td width="23%">请选择提现到哪个收款帐户:(<font color="#FF0000">*</font>)</td>
                  <td width="77%">
				  <!--
EOT;
foreach($backDB[BACK] AS $key=>$value){print <<<EOT
-->
                    <input type="radio" name="banktype" value="$key $value">
                    $key $value<br>
					
					<!--
EOT;
}print <<<EOT
-->
                  </td>
                </tr><tr> 
                  <td width="23%">收款人真实姓名:(<font color="#FF0000">*</font>)</td>
                  <td width="77%">
                    <input type="text" name="truename">
                  </td>
                </tr>
                 <tr> 
                  <td width="23%">
                    <p>联系电话:(选填)</p>
                    </td>
                  <td width="77%">
                    <input type="text" name="tel">
                  </td>
                </tr><tr> 
                  <td width="23%">提现原因:(选填)</td>
                  <td width="77%">
                    <textarea name="why" cols="50" rows="5"></textarea>
                  </td>
                </tr>
                <!--
EOT;
}print <<<EOT
-->
                <tr> 
                  <td width="23%">&nbsp;</td>
                  <td width="77%"> 
                    <input type="submit" name="Submit" value="提交">
                    <input type="hidden" name="step" value="2">
                  </td>
                </tr>
                <tr> 
                  <td colspan="2"><br>
                    <br>
                    1.提现金额将会被冻结不可用.<br>
                    2.资料提交后,管理员需要1-2天时间审核处理,请耐心等待.</td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
        <tr> 
          <td class="foot"></td>
        </tr>
      </table>
	  
    </td>
  </tr>
</table><br>
<!--
EOT;
}elseif($job=='getlog'){print <<<EOT
--><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">提现记录</td>
        </tr>
        <tr> 
          <td class="middle" >
            <table width="100%" border="0" cellspacing="1" cellpadding="3" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr align="center" class="head_in"> 
                <td width="11%">提现金额</td>
                <td width="19%">申请时间</td>
                <td width="19%">处理时间</td>
                <td width="28%">收款帐号</td>
                <td width="11%">支付与否</td>
                <td width="12%">删除</td>
              </tr>
              <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
              <tr class='trA' onMouseOver="this.className='trB'" onMouseOut="this.className='trA'"> 
                <td align="center" width="11%"><b>$rs[money]</b> 元</td>
                <td  align="center" width="19%">$rs[posttime]</td>
                <td  align="center" width="19%">$rs[replytime]</td>
                <td align="center" width="28%">$rs[bankname] $rs[banktype]</td>
                <td align="center" width="11%">$rs[pay]</td>
                <td align="center" width="12%"> <a href="?act=del_get_log&id=$rs[id]">删除</a></td>
              </tr>
              <!--
EOT;
}print <<<EOT
-->
              <tr align="center"> 
                <td colspan="7">$showpage</td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td class="foot"></td>
        </tr>
      </table>
    
    </td>
  </tr>
</table>

<br>
<!--
EOT;
}else{print <<<EOT
-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">我的财务信息</td>
        </tr>
        <tr> 
          <td class="middle" style="padding:10px;line-height:25px;"> 当前可用余额: <b><font color="#FF0000">{$lfjdb[rmb]}</font></b> 
            元 [<a href="../do/rmb_add.php" target="_blank">充值</a>] [<a href="?job=get">提现</a>] 
            [<a href="?job=getlog">提现记录</a>] [<a href="bank.php?job=set">收款帐号设置</a>] 
            [<a href="?job=pwd">支付密码设置</a>]<br>
            冻结资金: <b><font color="#0000FF">{$lfjdb[rmb_freeze]}</font></b> 元</td>
        </tr>
        <tr> 
          <td class="foot"></td>
        </tr>
      </table>
	  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">充值/消费记录</td>
        </tr>
        <tr> 
          <td class="middle" >
            <table width="100%" border="0" cellspacing="1" cellpadding="3" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr align="center" class="head_in"> 
                <td width="10%">状态</td>
                <td width="38%">项目</td>
                <td width="21%">可用余额变动</td>
                <td width="16%">发生时间</td>
                <td width="15%">删除</td>
              </tr>
              <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
              <tr class='trA' onMouseOver="this.className='trB'" onMouseOut="this.className='trA'"> 
                <td align="center" width="10%">$rs[state]</td>
                <td align="left" width="38%">$rs[about]</td>
                <td  align="center" width="21%"><b>$rs[money]</b> 元</td>
                <td align="center" width="16%">$rs[posttime]</td>
                <td align="center" width="15%"> <a href="?act=del_consume&id=$rs[id]">删除</a></td>
              </tr>
              <!--
EOT;
}print <<<EOT
-->
              <tr align="center"> 
                <td colspan="6">$showpage</td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td class="foot"></td>
        </tr>
      </table>
    
    </td>
  </tr>
</table>
<!--
EOT;
}
?>
-->
