<%@ page language="C#" autoeventwireup="true" inherits="admin_Ipblock, LebiMall" %>
<!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 id="Head1" runat="server">
    <title>IP锁定</title>
    <link rel="stylesheet" type="text/css" href="css/css.css" media="screen"/>
    <script type="text/javascript" language="javascript" src="js/topHead.js"></script>
    <script src="js/checked.js" type="text/javascript"></script>
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script>
        function resizeEditor2(name,size) {   
	        var newheight = parseInt(document.getElementById(name).style.height) + size;
	        if(newheight >= 200) {   
		        document.getElementById(name).style.height = newheight + 'px';   
	        }   
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <script>header(6,9,"images/");</script>
    <div class="blank clearfix"></div>
    <div class="tabmenus mainwidth">
            <ul>
                <li><a href="Corp.aspx"><span>网站授权</span></a></li>
                <li><a href="AdminSQL.aspx"><span>命令执行</span></a></li>
                <li class="current"><a href="Ipblock.aspx"><span>IP锁定</span></a></li>
                <li><a href="Admin_upfile.aspx"><span>上传管理</span></a></li>
                <li><a href="clear_Log.aspx"><span>数据维护</span></a></li>
            </ul>
        </div>
    <div class="tab-mainbody">
        <div class="tab-mainbody2">
        <div>
            <script type="text/javascript">
                var $=jQuery;
                var i=2;
                var f="<%=returnValue %>";
                if(f=="true"){
                    tipsWindown('操作结果','text:成功锁定IP！','250','100','true','2000','true','');
                    setInterval("fun()", 1000);
                }
                if(f=="false"){
                    tipsWindown('操作结果','text:操作失败！','250','100','true','2000','true','');
                }
                function fun() {
                    if (i == 1) {
                        window.location.href="Ipblock.aspx";
                    }
                    i--;
                }
            </script>
        </div> 
        <div class="functionHandleArea clearfix">
            <div style="float: left;">
                 <input type="image" title=" 保存 " src="images/bt_app.gif" runat="server" onserverclick="Image2_ServerClick" />
                 <input type="image" title=" 重填 " onclick="reset();return false;" src="images/bt_res.gif" />
                 <input type="image" title=" 返回 "  onclick="history.back();return false;" src="images/bt_bak.gif" />
            </div>
            <div style="float: right;"></div>
        </div>
        <div id="datalist">
            <table cellspacing="0" width="100%" cellpadding="0" id="list">
                <tr>
                    <th class="td_right td_left" align="left" >IP锁定</th>
                </tr>
                <tr>
                    <td>
                        <textarea  name="Ncontent" id="Ncontent" cols="88" class="input-textarea"  style="height:200px; margin-bottom:4px " runat="server"></textarea><br />
                        <a href="javascript:resizeEditor2('Ncontent',-20)"><img src="images/bt_close.gif" border='0'></a>
                        <a href="javascript:resizeEditor2('Ncontent',20)"><img src="images/bt_open.gif" border='0'></a>
                        <span id="msg_c"></span>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="classfaq">
                            <div class="faq_main">
                                <p class="faq_title">使用答疑：</p>
                                清空不填写即允许所有IP访问网站;<br />
                                您可以添加多个IP，每个IP用回车分隔，锁定IP的书写方式如202.152.12.1就禁止了202.152.12.1这个IP的访问，如202.152.12.*就禁止了以202.152.12开头的IP访问;<br />
                                在添加多个IP的时候，请注意最后一个IP的后面不要加回车。
                            </div>
                        </td>
                    </tr>
                <tr>
                    <td class="list-foot" colspan="2"><input id="Image2" type="image" title=" 保存 " src="images/bt_app.gif" runat="server" onserverclick="Image2_ServerClick" /></td>
                </tr>
            </table>
            <script type="text/javascript">tdshowm("list");</script>
        </div>
      </div>
    </div>
    </form>
</body>
</html>
