<extend name="Public/base"/>
<block name="css">
    <link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
    <link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
    <style>
        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height:35px;
            line-height:28px;
        }
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height:26px;
        }
        .select2-container--default .select2-search--dropdown .select2-search__field {
            height:26px;line-height:26px;font-size:12px;
        }
        .select2-results__option[aria-selected] {font-size:12px;}
        .tabcon1711 .select2-container--default .select2-selection--single{
            font-size: 12px;
            color: #555;
            vertical-align: middle;
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            border-radius: 4px;
            background-color: #fff;
            border: 1px solid #ccc;
            -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
            -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
            box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
            -webkit-transition: border linear .2s, box-shadow linear .2s;
            -moz-transition: border linear .2s, box-shadow linear .2s;
            -o-transition: border linear .2s, box-shadow linear .2s;
            transition: border linear .2s, box-shadow linear .2s;height:30px;}
        .tabcon1711 .select2-container--default .select2-selection--single .select2-selection__rendered {line-height: 30px;}
        .tabcon1711 .select2-container--default .select2-selection--single .select2-selection__arrow {height:30px;}
        .tabcon1711 .select2-container--default .select2-search--dropdown .select2-search__field {
            height:26px;line-height:26px;font-size:12px;
        }
        .tabcon1711 .select2-results__option[aria-selected] {font-size:12px;}
        #form .txt_area.download_url {
            width: 400px;
        }

        .tabcon1711 .table_radio2 .table_btn {
            width: 215px;
        }
        .tabcon1711 td:first-child {
            width: 300px;
        }
    </style>
</block>
<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>

    <script src="__STATIC__/md5.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="__STATIC__/webuploader/webuploader.js"></script>
    <script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
    <script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>


    <!-- 标签页导航 -->
    <div class="tab-wrap">
        <div class="cf main-place top_nav_list navtab_list">
            <h3 class="page_title">{$meta_title}</h3>
        </div>

        <div class="tab-content tabcon1711">
            <!-- 表单 -->
            <form id="form" action="{:U('edit')}" method="post" class="form-horizontal">
                <!-- 基础 -->
                <div id="tab1" class="tab-pane in tab1 ">
                    <table border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr id="game_choosename">
                            <td class="l"><i class="mustmark" style="margin-left:-7px">*</i>游戏名称:</td>
                            <td class="r">
                                <select id="game_id" name="game_id" disabled>
                                    <option value="0" selected="">请选择游戏</option>
                                    <volist name=':getAllGame()' id='vo'>
                                        <option value="{$vo.id}" <if condition="$vo['game_name']==$data['game_name']"> selected </if>>{$vo.game_name}</option>
                                    </volist>
                                </select>
                                <input type="hidden" id="game_name" name="game_name" value=""/>
                            </td>
                        </tr>

                        <tr id="gift_platform">
                            <td class="l">终端</td>
                            <td class="r table_radio">
                        <span class="form_radio">
                        <gt name="key" value="0">
                        <label id="type0">
                            <input type="radio" disabled class="inp_radio js-typeradio" value="0" name="sdk_version"> <span
                                class="type0" <if condition="$data['sdk_version']==0"> checked </if>>全部</span>
                        </label>
                        </gt>
                        <volist name=":get_systems_list('cnen')" id="vo">
                        <gt name="key" value="0">
                        <label id="type{$key}">
                            <input type="radio" disabled class="inp_radio js-typeradio" value="{$key}"
                                   name="sdk_version" <if condition="$data['sdk_version']==$key"> checked </if>>
                            <span class="type{$key}">{$vo}</span>
                        </label>
                        </gt>
                        </volist>

                    </span>
                            </td>
                        </tr>

                        <tr>
                            <td class="l"><i class="mustmark" style="margin-left:-7px">*</i>新用户判断标准(说明第几次之前为新用户)(次):</td>
                            <td class="r">
                                <input type="text" class="txt " name="new_apply_count" value="{$data['new_apply_count']}" placeholder="请输入新用户判断标准" onkeyup="value=value.replace(/[^\d]/g,'')">
                            </td>
                        </tr>

                        <tr>
                            <td class="l">新用户资源最低申请额度(/个):</td>
                            <td class="r">
                                <input type="text" class="txt " name="new_low_value" value="{$data['new_low_value']}" placeholder="请输入最低申请额度" onkeyup="value=value.replace(/[^\d]/g,'')">
                            </td>
                        </tr>

                        <tr>
                            <td class="l">新用户资源最高申请额度(/个):</td>
                            <td class="r">
                                <input type="text" class="txt " name="new_high_value" value="{$data['new_high_value']}" placeholder="请输入最高申请额度" onkeyup="value=value.replace(/[^\d]/g,'')">
                            </td>
                        </tr>

                        <tr>
                            <td class="l">非新用户可申请额度占总充值量的比例(%):</td>
                            <td class="r">
                                <input type="text" class="txt " name="old_value_ratio" value="{$data['old_value_ratio']}" placeholder="请输入比例">
                            </td>
                        </tr>


                        </tbody>
                    </table>
                </div>
                <div class="form-item cf">
                    <button class="submit_btn ajax-post" id="submit" type="submit" target-form="form-horizontal"
                            style="margin-left:210px;">
                        保存
                    </button>
                    <a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:history.back(-1);">
                        返回
                    </a>
                </div>
                <input type="hidden" name="id" value="{$data['id']}">
            </form>
        </div>
    </div>
    <div class="common_settings">
        <span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
        <form class="addShortcutIcon">
            <input type="hidden" name="title" value="{$meta_title}">
            <input type="hidden" name="url" value="Partner/add">
        </form>
        <a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;"
           target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img
                src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else/>添加至常用设置</notempty></span></a>
    </div>

</block>

<block name="script">
    <script type="text/javascript" src="__JS__/select2.min.js"></script>
    <script type="text/javascript">
        //导航高亮
        highlight_subnav("{:U('ResourceVerifyConfig/lists')}");
        $('#submit').click(function () {
            $('#form').submit();
        });
    </script>

    <script>
        $("#game_id").select2();
        $("#game_id").change(function(){
            $("#game_name").val($("#game_id option:selected").text());
        });
    </script>
</block>