<?php widget("fhead");include($path_cache.DS."mod_agent_Shared_fhead.php"); ?>
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：直销商管理系统</a> >> 安全管理 >> IP及所在地绑定</span></div>
	<?php $s = $vd['security'];$sitem='ipcheck';$sitem1='IP';$sitem2='ip';$sitem3='IP' ?>
	<div id="tabs5">
		<ul class="menu5" id="menu5">
		<li onclick="location.href='index.php?m=mod_agent&c=IPCheck&a=Index'" class=hover><span class="mm">IP地址绑定</span></li><li style="display:none" onclick="location.href='index.php?m=mod_agent&c=IPCheck&a=Addr';" ><span class="mm">所在地绑定</span></li>
		<li style="display:none" onclick="location.href='index.php?m=mod_agent&c=IPCheck&a=IPList';" ><span class="mm">多线IP设置</span></li>
		</ul>
	</div>
	<div class="main5" id="main5">
	<form name="bindip" method="post" action="index.php?m=mod_agent&c=IPCheck&a=<?php echo $sitem1; ?>Save">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
		<tr>
		<td width="22%" height="30" class="tableleft1">绑定状态：</td>
		<td width="78%" class="tableright1"><strong><?php if($s[$sitem]==1){ ?><font color=#0000ff>已绑定</font><?php }else{ ?><font color=#cccccc>未绑定</font><?php } ?></strong></td>
		</tr>
		<tr>
		<td width="22%" height="30" class="tableleft1"><?php echo $sitem3; ?>地址绑定操作：</td>
		<td width="78%" class="tableright1"><input type="radio" name="<?php echo $sitem; ?>" value="1"  id="yesbind" checked><label for="yesbind"><strong><font color=#0000ff>绑定<?php echo $sitem3; ?>地址</font></strong></label> <input type="radio" name="<?php echo $sitem; ?>" value="0" id="nobind" ><label for="nobind"><strong><font color=#ff0000>取消绑定<?php echo $sitem3; ?>地址</font></strong></label></td>
		</tr>
		<?php for($i=0; $i<5; $i++){ ?>
		<tr>
		<td width="22%" height="30" class="tableleft1"><?php echo $sitem3; ?>地址<?php echo $i+1; ?>：</td>
		<td width="78%" class="tableright1">
			<input type="text" class="input" size="25" name="<?php echo $sitem2; ?>[]" id="<?php echo $sitem2; ?>_<?php echo $i; ?>" value="<?php echo $s[$sitem2][$i]; ?>"/>
			<input type="button" name="button" value="取<?php echo $sitem3; ?>地址" class="button" onclick="javascript:document.bindip.<?php echo $sitem2; ?>_<?php echo $i; ?>.value='<?php echo $vd[$sitem2]; ?>';">
		</td>
		</tr>
		<?php } ?>
		<tr>
		<td class="tableleft1">帐户交易密码：</td>
		<td class="tableright1"><input type="password" name="tradepwd" size="25" class='input'/></td>
		</tr>
		
		<tr>
		<td class="tableleft1">&nbsp;</td>
		<td class="tableright1"><input type="hidden" name="Login_my" value="15904562"><input type="submit" name="submit" value="确认设置" class="button" > <input type="reset" name="reset" value="重新填写" class="button"></td>
		</tr>
		</table>
	</td>
	</tr>
	</table>
	</form>
	</div>
</body>
</html>
