<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">
<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>
<style>
 td { padding:2px 5px 2px 5px;}
 #jquery-notification-message {width:100%;}
</style>
<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)">
  <table class=datatable style="line-height: 150%;border-collapse:collapse;" cellspacing=0 cellpadding=0 bordercolor=#b5cfd9 border=1 width=100%>
        <div class=position>位置：&nbsp; 我的问卷</font> &raquo; 从CSV文件导入任务分配数据</div>
      <tr> 
         <td colspan="2" bgcolor="#f5f5f5"><b>上传本地格式文件(.csv)</b></td>
      </tr>
  	  <tr><td align=left width="12%"><strong></strong></td>
          <td align=left width="88%"><input name="csvFile" type="file" id="csvFile" size=70  onchange="CheckExt(this)"></td>
	  </tr>
	  <tr><td align=center>控制</td>
	      <td><input name="isUpdateTag" id="isUpdateTag" value="1" type="checkbox">已分配的任务数据利用导入数据更新</td>
	  </tr>
	  </table><table width=100%>
	  <tr><td width=12%></td><td>
        <input name="Action" type="hidden" id="Action" value="ImportTaskSubmit">
	    <input type=submit id=submitAction class=inputsubmit value="确定">&nbsp;<input class=inputsubmit type="button" name="close" value="关闭" onClick="javascript:parent.hidePopWin();"></td>
       </td>
     </tr>
  </form> 
 </table>
 
  <table width=100% style="margin-top:10px">
   <tr><td style="padding-left:0px">
     <span class=red>*</span>&nbsp;导出所有的可分配任务清单：<a href="../Export/Export.nodes.inc.php?projectOwner={projectOwner}"><b><font color=red>导出可分配任务数据</font></b></a><br/>
     <span class=red>*</span>&nbsp;批量导入文件模板请参照示例文件：<a href="../WebAPI/Down.php?path=../Help/&file=CSV_Sample_Task.csv"><b><font color=red>下载示例文件</font></b></a><br/>
	 <span class=red>*</span>&nbsp;批量导入的CSV文件<b>须保留文件标题行(第1行)</b>，并确保上传的CSV文件内<b>列顺序</b>与示例文件保持一致<br/>
  </td></tr>
  </table>
</body></html>