<?php widget("fhead");include($path_cache.DS."mod_agent_Shared_fhead.php"); ?>
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="<?php echo $vd['root']; ?>index.php?m=mod_b2b&c=Dealer&a=home">经销商管理系统</a> >> 财务管理 >> 提成或收入转余额</span></div>
	<div id="hearder"><span>帐户详细资金(单位：<?php echo $vd['lang']['moneyunit']; ?>)</span></div>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<?php $item=$vd['item']; ?>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
    	<tr>
        <td width="14%" class="heardertop1">帐户可用余额</td>
        <td width="14%" class="heardertop1">自己冻结资金</td>
        <td width="14%" class="heardertop1">交易冻结资金</td>
        <td width="14%" class="heardertop1">系统冻结资金</td>
        <td width="14%" class="heardertop1">上级冻结资金</td>
        <td width="14%" class="heardertop1">代理所得金额</td> 
        <td width="14%" class="heardertop1">供货所得收入</td> 
      </tr>
      <tr class="stline" onmouseover="this.className='nd'" onmouseout="this.className='stline'">
        <td>
          <?php if($item['aremain'] != ''){ echo round($item['aremain'], 3);} ?></td>
        <td>
          <?php if($item['selffrozenfunds'] != ''){ echo round($item['selffrozenfunds'], 3);} ?></td>
        <td>
          <?php if($item['tradefrozenfunds'] != ''){ echo round($item['tradefrozenfunds'], 3);} ?></td>
        <td>
          <?php if($item['sysfrozenfunds'] != ''){ echo round($item['sysfrozenfunds'], 3);} ?></td>
        <td>
          <?php if($item['bossfrozenfunds'] != ''){ echo round($item['bossfrozenfunds'], 3);} ?></td>
        <td>
          <?php if($item['income'] != ''){ echo round($item['income'], 3);} ?></td> 
        <td>
          <?php if($item['funds'] != ''){ echo round($item['funds'], 3);} ?></td> 
      </tr>
      <tr>
      	<td colspan="7" style="text-align:left;padding:5px">
      		帐户总金额 = 帐户可用余额 + 自己冻结资金 + 交易冻结资金 + 系统冻结资金 + 上级冻结资金 + 代理所得金额 + 供货所得收入
      	</td>
      </tr>
    </table>
	</td>
	</tr>
	</table>
	<br>
	<div id="hearder"><span>资金转化</span></div>
	<?php if($vd['rights'][1]==1){ ?>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
  <form method="post" action="index.php?m=mod_agent&c=Funds&a=SelfCz" name="cform" id="cform" onsubmit="return checklock()">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
    <tr>
      <td width="22%" height="30" class="tableleft1">公司名：</td>
      <td width="78%" class="tableright1"><?php echo $item['company']; ?></td>
    </tr>
    <tr>
      <td class="tableleft1">操作对象：</td>
      <td class="tableright1">
      	<select name="fromobject" id="fromobject">
      		<?php (Option($vd['funds'])); ?>
      	</select>
      </td>
    </tr>
    <tr>
      <td class="tableleft1">转化为：</td>
      <td class="tableright1">
      	<b><font color="#0000ff">账户可用余额</font></b>
      </td>
    </tr>
    <tr>
      <td class="tableleft1">操作金额：</td>
      <td class="tableright1"><input type="text" class="input" style="font-weight:normal" name="dollars" id="dollars" size="24"/><?php echo $vd['lang']['moneyunit']; ?></td>
    </tr>
    <tr>
      <td class="tableleft1">输入交易密码：</td>
      <td class="tableright1"><input type="password" class="input" style="font-weight:normal" name="tradepwd" id="tradepwd" size="24"/></td>
    </tr>
    <tr>
      <td class="tableleft1">操作原因：</td>
      <td class="tableright1" style="height:90px">
      	<textarea name="reason" cols="50" rows="5" scrolling="yes" style="padding:5px"></textarea>
      </td>
    </tr>
    <tr>
      <td class="tableleft1">&nbsp;</td>
      <td class="tableright1">
      	<input name="submit" type="submit" class="button" tabindex="7" value="确认转化">
		    <input type="reset" value="重新填写" class="button" name="reset" tabindex="8">
      </td>
    </tr>
  </table>
  </form>
  </td>
	</tr>
	</table>
  <?php }else{ ?>
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
    <tr>
    	<td>系统未开通权限
    	</td>
    </tr>
  </table>
  </td>
  </tr>
  </table>
  <?php } ?>
  <br/>
  <div id="hearder"><span>相关说明</span></div>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
      <tr>
      	<td colspan="7" style="text-align:left;padding:5px">
      		提示：此处您可以查看到您的帐户余额，其中记录了您的帐号的详细资金情况，如果您发现您的帐号有被冻结资金，请根据以下提示进行操作。点击“查看本帐户资金被冻结记录”可以查到您的资金为什么被冻结。 
          <br/>A：上级冻结——请用电话或者QQ向您的上级咨询冻结原因并申请解冻
          <br/>B：自己冻结——请您自行解冻 
          <br/>C：交易冻结——由于您购买了某种直充产品或者人工代充产品，由于交易没有顺利完成，该笔购
          <br/>   卡款被临时冻结了，请马上查看是否有购卡单据仍然处于“处理中”状态，然后向供货商进行
          <br/>   投诉，要求解除交易并退款。
      	</td>
      </tr>
    </table>
	</td>
	</tr>
	</table>
<script type="text/javascript">
	var ctablenum = 1;
	var helperVal = 2;
	function checklock()
	{
		if($("dollars").value=="")
		{
			alert("金额不能为空");
			$("dollars").focus();
			return false;
		}
	}
</script>
</body>
</html>