<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>账户余额 - {config.webname}</title>
<meta content="{config.webkeyword}" name="keywords" />
<meta content="{config.webdescription}" name="description" />
<link rel="stylesheet" type="text/css" href="<!--angelcms{templateskin}-->/css/basic.css" />
<link rel="stylesheet" type="text/css" href="<!--angelcms{templateskin}-->/css/style.css" />
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/lang-chi.min.js"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/common.min.js"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/overlay.min.js"></script>
<script type="text/javascript" src="{config.webpath}scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/base.js"></script>

</head>
<body >
<!--Header-->
<!--angelcms{template src="header.html"}-->
<!--/Header-->
<!--中间区块-->
<div id="content-block">
<div class="content-block-width">
	<div id="bd">
	<div id="innerpg" class="bd-inner">
    <!--检查这里是否为一样-->
	<div class="clearfix layout-innerpg ">
		<div class="col-main">
		<div class="main-wrap">
		<div id='htmlpages' class="block first-block block-article-view">
<div class="block-head">
	<div class="head-inner">
	<h1 class="title"><span><a href="<!--angelcms{linkurl("usercenter","index")}-->">管理首页</a></span>
      账户余额
      <strong>Balance</strong></h1>
	</div>
</div>
    <!--会员中心-->
<div class="block-content clearfix">
	<div class="article-content clearfix" style="padding-top:10px;">
    <!--angelcms{if(action=="recharge")}-->
    <!--账户充值-->
    <link rel="stylesheet" href="{config.webpath}css/validate.css" />
	<script type="text/javascript" src="{config.webpath}scripts/jquery/jquery.form.min.js"></script>
    <script type="text/javascript" src="{config.webpath}scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript">
      $(function(){
          AjaxInitForm('recharge_form', 'btnSubmit', 0);
      });
    </script>
    <div class="tab_head">
      <ul class="tabs">
        <li class="selected"><a href="<!--angelcms{linkurl("useramount","recharge")}-->">账户充值</a></li>
        <li><a href="<!--angelcms{linkurl("useramount","list")}-->">收支明细</a></li>
      </ul>
    </div>
    <h3>当前账户金额为：<b class="red">￥{userModel.amount}</b> 元</h3>
    <form id="recharge_form" name="recharge_form" url="{config.webpath}tools/submit_ajax.ashx?action=user_amount_recharge">
    <div class="form_box">
      <dl>
        <dt>充值金额：</dt>
        <dd><input name="order_amount" id="order_amount" type="text" class="input small" style="ime-mode:disabled;" datatype="n"  nullmsg="请输入金额" sucmsg=" " /> 元</dd>
      </dl>
      <dl>
        <dt>支付方式：</dt>
        <!--angelcms{set DataTable pay_list=get_payment_list(0, "type=1 and id>2")}--> <!--取得一个DataTable-->
        <!--angelcms{loop dr pay_list}--> 
        <dd>
          <input name="payment_id" type="radio" value="{dr[id]}" /> {dr[title]}
        </dd>
        <!--angelcms{/loop}-->
      </dl>
      <dl>
        <dt></dt>
        <dd><input name="btnSubmit" id="btnSubmit" type="submit" class="btn_submit" value="确认充值" /></dd>
      </dl>
    </div>
    </form>
    <!--账户充值-->
    
    <!--angelcms{else if(action=="list")}-->
    <!--收支明细-->
    <script type="text/javascript">
        function ExecPostBack(checkValue) {
            if (arguments.length == 1) {
                ExecDelete('{config.webpath}tools/submit_ajax.ashx?action=user_amount_delete', checkValue, 'turl');
            }else{
                var valueArr = '';
                $("input[name='checkId']:checked").each(function(i){
                    valueArr += $(this).val();
                    if(i < $("input[name='checkId']:checked").length - 1){
                        valueArr += ","
                    }
                });
                ExecDelete('{config.webpath}tools/submit_ajax.ashx?action=user_amount_delete', valueArr, 'turl');
            }
        }
    </script>
    <link rel="stylesheet" href="{config.webpath}css/pagination.css" />
    <div class="tab_head">
      <ul class="tabs">
        <li><a href="<!--angelcms{linkurl("useramount","recharge")}-->">账户充值</a></li>
        <li class="selected"><a href="<!--angelcms{linkurl("useramount","list")}-->">收支明细</a></li>
      </ul>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mtable">
      <!--angelcms{set DataTable list1=get_user_amount_list(10, page, "user_id='"+userModel.id+"'", out totalcount)}--> <!--取得一个DataTable-->
      <!--angelcms{set string pagelist1=get_page_link(10, page, totalcount, "useramount", action, "__id__")}--> <!--取得分页页码列表-->
      <!--angelcms{loop dr list1}-->
      <tr>
        <td width="20" align="center"><input name="checkId" class="checkall" type="checkbox" value="{dr[id]}" ></td>
        <td width="150">{dr[add_time]}</td>
        <td>
          {dr[remark]}
          <!--angelcms{if {dr[order_no]}!=""}-->
          (订单号：{dr[order_no]})
          <!--angelcms{/if}-->
        </td>
        <td width="50">
          <!--angelcms{if({strtoint({dr[value]})}>0)}-->
            +{dr[value]}
          <!--angelcms{else}-->
            {dr[value]}
          <!--angelcms{/if}-->
        </td>
        <td width="50">
          <!--angelcms{if({strtoint({dr[status]})}>0)}-->
            已完成
          <!--angelcms{else}-->
            未完成
          <!--angelcms{/if}-->
        </td>
        <td width="30"><a onclick="ExecPostBack('{dr[id]}');" href="javascript:;">删除</a></td>
      </tr>
      <!--angelcms{/loop}-->
      <!--angelcms{if(totalcount<1)}-->
      <tr><td align="center">暂无记录</td></tr>
      <!--angelcms{/if}-->
    </table>
    <div class="page_foot">
      <div class="flickr right">{pagelist1}</div><!--放置页码列表-->
      <div class="page_btns">
        <a onclick="checkAll(this);" href="javascript:;">全选</a>
        <span class="pipe">|</span>
        <a onclick="ExecPostBack();" href="javascript:;">删除</a>
      </div>
    </div>
    <input id="turl" type="hidden" value="<!--angelcms{linkurl("useramount","list")}-->" />
    <!--angelcms{/if}-->
</div>
</div>
    <!--会员中心-->
  <div class="clear"></div>
		<div class="block-foot"><div><div>-</div></div></div>
			</div>
		</div>
		</div>
		<div class="col-sub">
   <div class="block first-block block-products  list-240" id="block-products-89301" rel="89301"> 
   <!--UserCenter navtion-->
    <!--angelcms{template src="ucenter_nav.html"}-->
    <!--UserCenter navtion-->
    <div class="block-foot">
	<div><div>-</div></div></div>
	</div>
	

	</div>
	
	</div>
	</div>
	</div>
</div>
</div>
<!--Footer-->
<!--angelcms{template src="footer.html"}-->
<!--/Footer-->
</body>
</html>