<html>
<head>
<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">
<style>
 td { padding:2px 5px 2px 5px;}
</style>
<link href="../CSS/Base.css" rel=stylesheet>
<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">

<form name="Check_Form" method="post" enctype="multipart/form-data" action="" onsubmit="return Check_Form_Validator(this)" style="margin:0px;padding:0px">
<table class=datatable style="line-height: 150%;border-collapse:collapse;" cellspacing=0 cellpadding=0 bordercolor=#b5cfd9 border=1 width=100%>
   <div class=position>位置：&nbsp; 我的问卷 &raquo; {surveyTitle}</div>
        <tr><td bgcolor="#e9e9e9"><b>批量导入问卷数据</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;系统允许按照一定格式导入问卷的回复数据，并将与现有数据一并参与到系统分析。</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="../Import/ImportData.php?Action=ExportSample&surveyID={surveyID}">导出问卷数据的导入格式说明(.xls)</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="surveyID" type="hidden" id="surveyID" value="{surveyID}">
        <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;数据的导入必须按照固定的格式，故需要先导出关于导入格式的说明文件；<br/>
	 <Img src="../Images/clerk.gif">&nbsp;数据导入的CSV文件确保列的顺序和取值范围与格式说明文件保持一致；<br/>
     <Img src="../Images/clerk.gif">&nbsp;对于单元格内的值，如不在变量的取值范围内，系统将使用空来取代；<br/>
     <Img src="../Images/clerk.gif">&nbsp;配额、唯一性、阀值等数据合法性检查在数据导入时，将不再启用，请自行确保数据质量；<br/>
     <Img src="../Images/clerk.gif">&nbsp;同一份数据进行多次导入操作，可能会造成数据重复；<br/>
     <Img src="../Images/notes.gif">&nbsp;对于较大的导入数据文件，可按行分割成多个小文件分次导入
 </td></tr>
  </table>
</body></html>


