<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="loweradd.aspx.cs" Inherits="AgentManager.admin.loweradd" %>






     <div class="content-wrapper"  style="background-color:#8aa4af;height:100%">
         <link href="css/about.css" rel="stylesheet" />
         <link href="css/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
         <script src="js/jquery-1.9.1.min.js"></script>
         <script src="css/bootstrap/js/bootstrap.min.js"></script>
         <script src="js/reg.js"></script>
   
<section class="content-header">

 
</section>

<section class="content">

<div id="mainbox"  style="width:50%;text-align:center;font-weight:bold">

    <div class="tabbox box1">
                <h5>注册帐号</h5>
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="15%" align="right">帐号：</td>
                        <td width="35%">
                            <input type="text" name="rusername" id="rusername" maxlength="9" 

autocomplete="off" onkeyup="value=value.replace(/[^a-zA-Z\d]/g,'')" onpaste="return false" 

/><small></small>
                        </td>
                        <td width="55%" id="is_ok"><span class="wtxt">* 请输入长度6-9位,可输入英文字母

或数字</span></td>
                    </tr>
                    <tr>
                        <td width="15%" align="right">密码：</td>
                        <td width="35%">
                            <input type="password" name="rpassword1" id="rpassword1" maxlength="24" 
                                onkeyup="value=value.replace(/[^a-zA-Z\d]/g,'')" onpaste="return false" 
autocomplete="off" />
                        </td>
                        <td width="55%" id="is_ok_password1"><span class="wtxt">* 密码规则:须为6-24位英

文或数字的字符</span></td>
                    </tr>
                    <tr>
                        <td width="15%" align="right">确认密码：</td>
                        <td width="35%">
                            <input type="password" name="rpassword2" id="rpassword2" maxlength="24" 

autocomplete="off" onkeyup="value=value.replace(/[^a-zA-Z\d]/g,'')" onpaste="return false"  />
                        </td>
                        <td width="55%" id="is_ok_password2"></td>
                    </tr>
                    <tr>
                        <% if ((Session["LoginUser"] as Model.usertableInfo).addagent == true) { %>
                        <td width="15%" align="right">下属代理：</td>
                        <td>
                            <input id="xsagent" type="checkbox" name="name" value="" />
                        </td>
                     <%} %>
                    </tr>
               <tr>
                   <td></td>
                   <td id="fsli" style="display:none;width:15%;align:right;color:red">
                       
                   </td>
               </tr>
                </table>
            </div>
            <div class="tabbox box2">
                <h5>会员资料</h5>
                <table style="width:100%"border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="15%"   style="display:none" align="right">真实姓名：</td>
                        <td width="35%" style="display:none">
                            <input type="text" name="rmyname" value="无无" id="rmyname" maxlength="4" 

autocomplete="off" />
                        </td>
                        <td width="55%" style="display:none" id="is_ok_name"><span class="wtxt">* 请输入中文姓名</span></td>
                    </tr>
                    <tr>
                        <td width="15%" style="display:none" align="right">手机：</td>
                        <td width="35%" style="display:none">
                            <input type="text" name="rmyphone" id="rmyphone" maxlength="11" 

autocomplete="off" onkeyup="value=value.replace(/[^0-9]/g,'')" onpaste="value=value.replace(/[^0-

9]/g,'')" oncontextmenu="value=value.replace(/[^0-9]/g,'')" value="18888888888" />
                        </td>
                        <td width="55%" id="is_ok_mobile" style="display:none"><span class="wtxt">* 请输入正确手机号

</span></td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" >取款密码：</td>
                        <td width="35%" style="display:none">
                            <input type="password" name="rqkpassword" value="123456" id="rqkpassword" maxlength="6" autocomplete="off" onkeyup="value=value.replace(/[^0-9]/g,'')" onpaste="value=value.replace(/[^0-9]/g,'')" oncontextmenu="value=value.replace(/[^0-9]/g,'')" />
                        </td>
                        <td width="55%" id="is_ok_qkPassword"><span class="wtxt">* 默认提款为【123456】

认证必须，请务必记住</span><input type="hidden" id="regaddress" style="display:none" onload="GetCookie()"/></td>
                    </tr>
                </table>
            </div>
            <div class="rbtn">
                <a href="javascript:;" class="rsub">立即注册</a>
            </div>





</div>

</section>
         <input type="hidden" id="isok" name="name" value="<%=isok %>" />
   <div class="modal fade" id="myModal" tabindex="-1" role="dialog" data-backdrop="false" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" >
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">新增反水比例</h4>
            </div>
            <div class="modal-body">
                <input type="hidden" id ="hidid" name="name" value="" />
 <%--   <label>等级名称</label>
    <input type="text" class="form-control" id="grade1" placeholder="">--%>

                <label >玩家类型</label>
                <input type="text" id="usertype1" disabled style="color:red" class="form-control" name="name" value="代理" />
             
                <label>反水类型</label>
                <select disabled  style="color:red"  class="form-control" id="fstype1">
                    <%if (fstype == 1)
                        { %>
                    <option value="1">流水</option>
                    <%}
    else
    {%>
                    <option value="2">盈利</option>
                    <%} %>
                </select>
        
                <br />
            <div class="input-group">
                <span class="input-group-addon" style="font-weight:bold">真人反水比例</span>
            <input type="text" name="" maxlength="10" value="0" id ="fs_live1" onblur="if (!(/^[\d]+\.?\d*$/.test(this.value)&&this.value<=<%=fs_live * 100 %>) ){ this.value='0'}"  class="form-control" />
            <span class="input-group-addon">%</span>
            <span  style="color:red" class="input-group-addon">不超过<%=(fs_live * 100).ToString("f1") %>%</span>
               </div>
                <br />     <div class="input-group">
                <span class="input-group-addon" style="font-weight:bold">电子反水比例</span>
            <input type="text" name="" maxlength="10" value="0" id ="fs_game1" onblur="if (!(/^[\d]+\.?\d*$/.test(this.value)&&this.value<=<%=fs_game * 100 %>) ){ this.value='0'}" class="form-control" />
            <span class="input-group-addon">%</span>
                     <span style="color:red" class="input-group-addon">不超过<%=(fs_game*100).ToString("f1") %>%</span>
               </div>
                <br />     <div class="input-group">
                <span class="input-group-addon" style="font-weight:bold">棋牌反水比例</span>
            <input type="text" name="" maxlength="10" value="0" id ="fs_chess1" onblur="if (!(/^[\d]+\.?\d*$/.test(this.value)&&this.value<=<%=fs_chess * 100 %>) ){ this.value='0'}" class="form-control" />
            <span class="input-group-addon">%</span>
                     <span  style="color:red" class="input-group-addon">不超过<%=(fs_chess*100).ToString("f1") %>%</span>
               </div>
                <br />     <div class="input-group">
                <span class="input-group-addon" style="font-weight:bold">体育反水比例</span>
            <input type="text" name="" maxlength="10" value="0" id ="fs_sport1" onblur="if (!(/^[\d]+\.?\d*$/.test(this.value)&&this.value<=<%=fs_sport * 100 %>) ){ this.value='0'}"  class="form-control" />
            <span class="input-group-addon">%</span>
                     <span  style="color:red" class="input-group-addon">不超过<%=(fs_sport*100).ToString("f1") %>%</span>
               </div>
                <br />     <div class="input-group">
                <span class="input-group-addon" style="font-weight:bold">捕鱼反水比例</span>
            <input type="text" name="" maxlength="10" value="0" id ="fs_fish1" onblur="if (!(/^[\d]+\.?\d*$/.test(this.value)&&this.value<=<%=fs_fish * 100 %>) ){ this.value='0'}" class="form-control" />
            <span class="input-group-addon">%</span>
                     <span  style="color:red" class="input-group-addon">不超过<%=(fs_fish*100).ToString("f1") %>%</span>
               </div>
                <br />     <div class="input-group">
                <span class="input-group-addon" style="font-weight:bold">彩票反水比例(只根据流水)</span>
            <input type="text" name="" maxlength="10" value="0" id ="fs_lottery1" onblur="if (!(/^[\d]+\.?\d*$/.test(this.value)&&this.value<=<%=fs_lottery * 100 %>) ){ this.value='0'}"  class="form-control" />
            <span class="input-group-addon">%</span>
                     <span  style="color:red" class="input-group-addon">不超过<%=(fs_lottery*100).ToString("f1") %>%</span>
               </div>
                <br />     <div class="input-group">
                <span class="input-group-addon" style="font-weight:bold">六合彩反水比例(只根据流水)</span>
            <input type="text" name="" maxlength="10" value="0" id ="fs_sixlottery1" onblur="if (!(/^[\d]+\.?\d*$/.test(this.value)&&this.value<=<%=fs_sixlottery * 100 %>) ){ this.value='0'}"  class="form-control" />
            <span class="input-group-addon">%</span>
                     <span  style="color:red" class="input-group-addon">不超过<%=(fs_sixlottery*100).ToString("f1") %>%</span>
               </div>
                <br />
            </div>
            <div class="modal-footer">
                <button type="button" onclick="butclose()"  class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" onclick="butclick()" id="but" name="add" class="btn btn-primary">提交更改</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>




</div>
<script>
    $('#xsagent').click(function () {
        if ($('#isok').val() == "False") {
            alert("您没有默认的反水比例，不能添加下级代理！请联系客服咨询！")
            return false;
        }

        var checked = $('#xsagent').prop('checked')
        if (checked == true) {
            $('#myModal').modal('show')
        } 
    })
    function butclose() {
        $('#xsagent').removeAttr('checked')
       
    }
    function butclick() {
    
        $('#myModal').modal('hide')
    }

</script>






