<!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>在线商城后台管理</title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/check.css" />
<script type="text/javascript" src="view/admin/js/jquery.js"></script>
{literal}
<script type="text/javascript">
	function insertText(id, text){
		var contents = $('#'+id).val();
		if(contents) text = "\r\n"+text;
		$('#'+id).focus();
		$('#'+id).val(contents + text);
	}
</script>
{/literal}
</head>
<body>
<div style="padding:10px; overflow:hidden;">
<div style="padding:10px; overflow:hidden;">

	<div class="main_top" style="clear:both;">
		<h4>温馨提示:</h4>
		<p class="green">如不了解此功能请不要开启, 否则会影响浏览用户访问! </p>
		<p class="green">点击左边示例, 可以查看屏蔽IP输入格式.</p>		
		<p class="green">每输入一个ip地址或者地址段的时候一回车分割.</p>
		<p class="green">如果想删除屏蔽，删除文本框的对应蜘蛛即可。</p>
		
	</div>

</div>

<div class="check_content">
<div class="check_title">屏蔽ip访问</div>
<form action="?a=banip&m=update" method="post">
	<table class="banip">
		<tr>
			<th></th>
			<td>屏蔽IP访问：
		{if $banip->is_ban ==1}
		   <input id="ban1" type="radio" checked="checked" value="1" name="is_ban" />
		{else}
		   <input id="ban1" type="radio" value="1" name="is_ban" />
		{/if}
		<label for="ban1">&nbsp;开启&nbsp;</label>
		{if $banip->is_ban ==0}
			<input id="ban0" type="radio" checked="checked" value="0" name="is_ban" />
		{else}
			<input id="ban0" type="radio" value="0" name="is_ban" />
		{/if}
		<label for="ban0">&nbsp;关闭&nbsp;</label>
		<span class="">选择关闭则不屏蔽以下IP地址</span></td>
		</tr>
		<tr>
			<td class="left">
				<p>填写屏蔽的IP地址</p>				
				<p>一行一组IP地址</p>			
				<br/>
				<font class="red">点击查看示例：</font>
				<br/>
				<u class="cu" title="直接填写单个IP" onclick="insertText('banip', '127.0.0.2')">屏蔽单个IP</u>
				|
				<u class="cu" title="用“-”分隔IP范围" onclick="insertText('banip', '123.123.123.5-123.123.123.18')">屏蔽IP范围</u>
			</td>
			<td class="right">
				<textarea name="ban_content" rows="16" cols="40" id="banip">{$banip->ban_content}</textarea>
			</td>			
		</tr>
		<tr>
			<th></th>
			<td>
				<input class="submit" type="submit" value="提交" name="send" />
				<input class="button" type="reset" value="重置" />
			</td>
		</tr>
	</table>
	</form>
</div>

</div>
</body>
</html>