<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta charset="UTF-8">
    <title>小号列表|----软件管理平台</title>
    <link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
    <link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
    <link rel="stylesheet" type="text/css" href="__CSS__/module.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
    <link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
    <script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery.mousewheel.js"></script>
</head>
<style>
    html{width:100%;min-width: auto;}
    body {
        padding: 0px;
    }
</style>
<body>
<div id="main" class="main" style="min-height: 342px;">
    <div class="cf" style="padding-top:20px;"><span>玩家账号:{$_GET['account']}</span>
			<form class="jssearch fr search_list" onsubmit="return false;" style="margin-bottom:0;">
				<span class="input-list">
				<input type="text" name="small" value="{:I('small')}" placeholder="请输入小号" >
				</span>
				<input type="hidden" name="id" value="{:I('id')}" >
				<input type="hidden" name="account" value="{:I('account')}" >
				<span class="input-list search_item">
				<a class="sch-btn" href="javascript:;" id="search"
                   url="{:U('Member/small_list','',false)}">搜索</a>
				</span>
			</form>
		</div>
    <!-- 数据列表 -->
    <div class="data_list box_mt">
        <div class="" s>
            <table>
                <!-- 表头 -->
                <thead>
                <tr>
                    <th>小号</th>
                    <th>游戏名称</th>
                    <th>创建天数</th>
                    <th>累计充值</th>
                    <th>创建时间</th>
                    <th>状态</th>
                </tr>
                </thead>
                <!-- 列表 -->
                <tbody>
                <volist name="list_data" id="data">
                    <tr>
                        <td>{$data.account}</td>
                        <td>{$data.fgame_name}</td>
                        <td>{$data.day|default=0}</td>
                        <td>{:get_small_spend_sum($data['id'])}</td>
                        <td>{$data.register_time|date='Y-m-d H:i:s',###}</td>
												<if condition="$data['source_puid'] eq $pid">
                        <td style="color:red;">已锁定</td>
												<else />
												<td >{:get_info_status($data['lock_status'],4)}</td>
												</if>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </div>
    <div class="page">
        {$_page}
    </div>
</div>
<script type="text/javascript">
    (function(){
        var ThinkPHP = window.Think = {
            "ROOT"   : "__ROOT__", //当前网站地址
            "APP"    : "__APP__", //当前项目地址
            "PUBLIC" : "__PUBLIC__", //项目公共目录地址
            "DEEP"   : "{:C('URL_PATHINFO_DEPR')}", //PATHINFO分割符
            "MODEL"  : ["{:C('URL_MODEL')}", "{:C('URL_CASE_INSENSITIVE')}", "{:C('URL_HTML_SUFFIX')}"],
            "VAR"    : ["{:C('VAR_MODULE')}", "{:C('VAR_CONTROLLER')}", "{:C('VAR_ACTION')}"]
        }
    })();
    </script>
<script src="__STATIC__/think.js"></script>
<script>
	$(function() {
		$("#search").click(function () {
				var url = $(this).attr('url');
				var query = $('.jssearch').find('input').serialize();
				query += "&" + $('.jssearch').find('select').serialize();
				query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
				query = query.replace(/^&/g, '');
				if (url.indexOf('?') > 0) {
						url += '&' + query;
				} else {
						url += '?' + query;
				}
				window.location.href = url;
		});
		
		$('input[name="small"]').keyup(function(event) {
			var e = event || window.event;
			if(e.keyCode == 13) {
				$('#search').click();
			}
			return false;
		});
		
		Think.setValue('row',"{:I('row')}");
		
	});
</script>
</body>
</html>