<html><head><title>IP对应文件导入</title>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<LINK href="../CSS/Base.css" rel=stylesheet>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../JS/Jquery.min.js.php"></script>
<script type="text/javascript" src="../JS/Jquery.notification.js.php"></script>
<link type="text/css" rel="stylesheet" href="../CSS/Notification.css" />
<script language=javascript src="../JS/CheckQuestion.js.php"></script>
<script language=javascript>
function Check_Form_Validator()
{
	if (!CheckNotNull(Check_Form.csvFile, "选择导入的文件")) {return false;}
}
function CheckExt(obj)
{
   	var AllowExt = ".csv|";
	FileExt = obj.value.substr(obj.value.lastIndexOf(".")).toLowerCase();
	if( AllowExt.indexOf(FileExt + "|") == -1) 
	{
		document.getElementById("submitAction").disabled = true;
	    $.notification("上传的导入文件扩展名仅支持CSV");
		return false;
	}
	else
	{
		document.getElementById("submitAction").disabled = false;
		return true;
    }    
}
</script>
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<body oncontextmenu="return false" style="background-color:#244d8f;">

<div style="line-height:10px">&nbsp;</div>
<div id=nav><a href="../System/ShowMain.php">我的问卷</a> &raquo; 维护IP对应表</div>
<div class="wrap q_clear" id=wrap>
<div>
<div class=content>
<div class=q_clear id=mysurvey><h1>维护IP地址与地域对应表</h1><br/></div>
<div id=myname></div>
<div class="datalist">
  <form name="Check_Form" method="post" enctype="multipart/form-data" action="" onsubmit="return Check_Form_Validator(this)">
    <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
        <tr><td bgcolor="#e9e9e9"><b>批量导入IP地址与地域对应数据</b></td></tr>
		<tr bgcolor="#f5f5f5" height=25><td><b>&nbsp;关于...</b>&nbsp;<img src="../Images/info.gif" border=0></td></tr>   <tr><td>&nbsp;要想记录填写问卷单一人员的地域来源，需对可探测到的来源IP地址进行地域翻译。本界面提供IP地址与地域对应关系数据的维护。</td></tr>
		<tr bgcolor="#f5f5f5" height=25><td><b>&nbsp;原数据导出...</b>&nbsp;<img src="../Images/info.gif" border=0></td></tr>   
		<tr><td>&nbsp;<IMG SRC="../Images/excel.gif">&nbsp;<a href="../Export/Export.address.inc.php">导出至CSV</a>&nbsp;</span>
  	    <tr bgcolor="#f5f5f5" height=25><td><b>&nbsp;新数据导入...</b>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
		<tr><td>&nbsp;<b>上传本地格式文件(.csv)</b>&nbsp;<input name="csvFile" type="file" id="csvFile" size=70  onchange="CheckExt(this)"></td>
	    </tr></table><table width=100% style="border:0px;">
	    <tr><td align=center style="border:0px;">
        <input name="Action" type="hidden" id="Action" value="ImportSubmit">
		<input type="submit" name="submit" id="submitAction" class=inputsubmit value="确定">&nbsp;<input type="reset" name="reset" class=inputsubmit value="重置">&nbsp;<input class=inputsubmit type="button" name="close" value="关闭" onClick="javascript:parent.hidePopWin();">
       </td>
     </tr>
  </form> 
 </table>
 
   <table style="border:0px;">
    <tr> 
     <td style="border:0px;padding-left:0px;">
     <Img src="../Images/notes.gif">&nbsp;批量导入文件模板请参照示例文件：<a href="../WebAPI/Down.php?path=../Help/&file=CSV_Sample_Address.csv"><b><font color=red>下载示例文件</font></b></a>；<br/>
	 <Img src="../Images/clerk.gif">&nbsp;批量导入的CSV文件请保留<b>文件标题行(第1行)</b>，并确保上传的CSV文件列的顺序与示例文件保持一致<br/>
     <Img src="../Images/clerk.gif">&nbsp;导入新的IP地址与地域对应数据，将会删除全部原有数据<br>
     <Img src="../Images/notes.gif">&nbsp;系统将不确保数据文件内IP地址的连贯以及对应地域翻译的准确
  </td></tr>
  </table>
</div>
</div></div></div>
<script type="text/javascript" src="../JS/CssPatch.js.php"></script>
</body></html>


