<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>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<link href="../CSS/SurveyList.css" rel="stylesheet" type="text/css"/>
<LINK href="../CSS/Window.css" type=text/css rel=stylesheet>
<link href="../CSS/Tab.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../JS/Common.js.php"></script>
<script type="text/javascript" src="../JS/Window.js.php"></script>
<script type="text/javascript" src="../JS/Browser.js.php"></script>

<script type="text/javascript" src="../JS/Actions.js.php"></script>
<script language=javascript src="../JS/CheckQuestion.js.php"></script>

<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"> 
function checkall(form) 
{
	if( form.all.checked)
	{
		for(var i = 0;i < form.elements.length-1; i++) 
		{
			var e = form.elements[i];
			if( e.disabled != true ) e.checked = true;
		}
	}
	else
	{
		for(var i = 0;i < form.elements.length-1; i++) 
		{
			var e = form.elements[i];
			if( e.disabled != true ) e.checked = false;
		}
    }
}
var http_request = false;
function AjaxRequest(url,cond)
{
	http_request = false;
	if(window.ActiveXObject)
	{
		try  // IE
		{
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e) {}
		}
	}
	else if(window.XMLHttpRequest)
	{
		// Mozilla, Safari,...
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType)
		{
			http_request.overrideMimeType('text/xml');
		}
	}
	
	if (!http_request)
	{
		alert("Cannot create an XMLHTTP instance");
		return false;
	}
	http_request.onreadystatechange = AlertChangeMainShow;
  	http_request.open('GET', url, true);
	http_request.send(null);
}
function AlertChangeMainShow()
{
	if (http_request.readyState == 4)
	{
		if(http_request.status == 200)
		{
			window.location.replace(window.location.href);
		}
		else
		{
			alert('网络传输问题');
		}
	}
}
function refreshParent() {
   //self.location.replace(self.location.href);
   self.location.reload(true);
}
var http_request = false;
function AjaxDataListRequest(url)
{
	http_request = false;
	if(window.ActiveXObject){
		try{ http_request = new ActiveXObject("Msxml2.XMLHTTP");}
		catch (e){ try{ http_request = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}
		}
	}
	else if(window.XMLHttpRequest){
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType){ http_request.overrideMimeType('text/xml');}
	}	
	if (!http_request){ alert("Cannot create an XMLHTTP instance");return false;}
	http_request.onreadystatechange = function() {
	  if( http_request.readyState == 4 && http_request.status == 200) {
			 var theRtn = http_request.responseText.split('######');
			 if( theRtn[0] == 'false' )
			 {
				  $.notification(theRtn[1]);
				  gId('t_userGroupID_text').focus();
			 }
			 else
			 {
				$("#t_userGroupID_container").html(theRtn[1]);
			    gId('SearchUsersSubmit').value = '清空';
			 }
		}
	}
	http_request.open('GET', url, true);
	http_request.send(null);
}
function AjaxInitRequest(url)
{
	http_request = false;
	if(window.ActiveXObject){
		try{ http_request = new ActiveXObject("Msxml2.XMLHTTP");}
		catch (e){ try{ http_request = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}
		}
	}
	else if(window.XMLHttpRequest){
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType){ http_request.overrideMimeType('text/xml');}
	}	
	if (!http_request){ alert("Cannot create an XMLHTTP instance");return false;}
	http_request.onreadystatechange = function() {
	  if( http_request.readyState == 4 && http_request.status == 200) {
			 var theRtn = http_request.responseText;
			 $("#t_userGroupID_container").html(theRtn);
			 gId('SearchUsersSubmit').value = '清空';
		}
	}
	http_request.open('GET', url, true);
	http_request.send(null);
}
function checkUserSubmit(groupId)
{
	if( document.getElementById('t_userGroupID') == null )
	{
		if(Trim(gId('t_userGroupID_text').value) == '' )
		{
			$.notification("输入节点名中的关键字获得可选择的节点列表!");
			gId('t_userGroupID_text').focus();
		}
		else
		{
			AjaxDataListRequest("../System/AjaxUserNodes.php?projectOwner={projectOwner}&surveyID={surveyID}&t_name="+Trim(gId('t_userGroupID_text').value));		
		}
	}
	else
	{
		gId('t_userGroupID_container').innerHTML = "<input name=\"t_userGroupID_text\" id=\"t_userGroupID_text\" size=30>";
		gId('SearchUsersSubmit').value = '检索';
	}
}
function Init()
{
	if( {t_userGroupID} != '' )
	{
		AjaxInitRequest("../System/AjaxShowUserNode.php?t_userGroupID={t_userGroupID}");
	}
}
</script> 
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<body oncontextmenu="return false" style="background-color:#244d8f;" onload="javascript:AjaxShowDataSource({surveyID},2);">

<div style="line-height:10px">&nbsp;</div>
<div id="menu">
  <span style="float:left;padding-left:26px;"><div class="navmenu">数据报告中心 &raquo; 回复数据列表</div></span>
  <span style="float:right">
  <ul><li><a href="../System/ShowMain.php">我的问卷</a></li>
      <li><a href="../Analytics/DataOverview.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}">标准报告</a>
      <li><a href="../Analytics/DefineReport.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}">自定义报告</a></li>
      <li class="current"><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}">回复数据</a></li>
      <li><a href="../Analytics/EventAward.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}">调查奖励</a></li>
      <li><a href="../Analytics/PanelArea.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}">样本来源</a></li>
      <li><a href="../Analytics/TaskResult.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}">计划任务</a></li>
      <li><a href="../Analytics/SurveyIndexResult.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}">指标分析</a></li>
	  </ul></span>
</div>

<div class="wrap q_clear" id=wrap>
<div>
<div class=content>
<div class=q_clear id=mysurvey><h1>[<font color=red>{surveyTitle}</font>] 回复数据详细</h1><p class=surveynum>[ <span class=red>{totalResponseNum}</span> 记录 ]</p>&nbsp;<br/></div>
<div id=myname><span class=red>*</span> 用以列出每个样本在每个调查问题上的详细回复，并可按照需求把数据导出</div>
<div class="datalist">
<table class=datatable width=100% cellspacing=0 cellpadding=0 style="border-left:0px;border-right:0px">
  <tr>
      <td width=1% noWrap style="border:0px">&nbsp;</td>
      <td width=107 nowrap style="border:0px"><b>选择数据处理方向</b></td>
      <td width=110 nowrap bgcolor="#244d8f" align=center style="border-left:1px #b5cfd9 solid;border-right:1px #b5cfd9 solid;border-bottom:0px"><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}" style="color:white">回复数据详细</a><IMG SRC="../Images/list_menu_arrow.gif"></td>
	  <td width=110 nowrap bgcolor="#eeeeee" align=center style="border-right:1px #b5cfd9 solid;border-bottom:0px"><a href="../Analytics/QuotaReCheck.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}" style="color:#444444">问卷配额检查</a><IMG SRC="../Images/list_menu_arrow.gif"></td>
 	  <td width=* style="border:0px;border-right:0px;">&nbsp;</td>
 </tr>
</table>

 <script src="../JS/AjaxDataSource.js.php"></script>
 <script>
 function refreshDataSource(){
	AjaxShowDataSource({surveyID},2);
 }
 </script>
<form name="Check_Form" id="Check_Form" method="POST" action="">
<div id="dataSourceTable"><div id="dataloading" style="background-color:#f0f0f0;width:160px;overflow:hidden;white-space:nowrap;color:black;font-weight:bold;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;-khtml-border-bottom-right-radius:5px;border-bottom-right-radius:5px;">&nbsp;<img src="../Images/wait.gif" width="16px" height="16px">&nbsp;正在加载数据源...&nbsp;</div></div>

<div id="tabs1" style="margin-top:0px;padding-top:0px;"> 
    <ul> 
        <li {c_all}><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}&authStat=all"><span>所有</span></a></li>
        <li {c_0}><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}&authStat=0"><span>未审核</span></a></li>
        <li {c_3}><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}&authStat=3"><span>{authNodeText}</span></a></li>
        <li {c_1}><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}&authStat=1"><span>审核通过</span></a></li>
        <li {c_2}><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}&authStat=2"><span>审核不通过</span></a></li>
        <li {c_1000}><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}&authStat=1000"><span>我的审核</span></a></li>
        <li {c_4}><a href="../Analytics/DataList.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}&authStat=4"><span>申诉处理</span></a></li>
    </ul> 
</div> 

 <table class=datatable id="datatable" style="border-bottom:0px;" cellspacing=0 cellpadding=0>
   <tr class=coltitle><td>
	  <IMG SRC="../Images/search.gif"> 查找序号为：<input type="text" name="t_responseID" value="{t_responseID}" size=10>
	  样本标识中包含：<input type="text" name="t_name" value="{t_name}" size=15>	    
		<select name="area" id="area" style="width:135px;*width:145px">
		    <option value=''>请选择来源...</option>
            {area_list}
        </select>&nbsp;<input type="submit" class=inputsubmit name="Submit" value="查询"><br/>
		<span style="display:{isProjectType1}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户节点为：<span id="t_userGroupID_container"><input name="t_userGroupID_text" id="t_userGroupID_text" size=30></span>&nbsp;<input name="SearchUsersSubmit" class=inputsubmit type="button" id="SearchUsersSubmit" value="检索" onclick="javascript:checkUserSubmit();"></span>
		<input name="Action" type="hidden" id="Action" value="querySubmit">
	</td></tr>
	<tr><td>
	   <span style="float:left"><a href="javascript:void(0)" onclick="javascript:showPopWin('../System/AjaxEditSurveyAlias.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}', 900, 480, null, null,'修改问题别名')" style="display:{isModiAlias}"><IMG SRC="../Images/config.png">&nbsp;修改问题别名</a>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="javascript:showPopWin('../System/AjaxEditSurveyCode.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}', 900, 480, null, null,'定义选项代码')" style="display:{isModiAlias}"><IMG SRC="../Images/config.png">&nbsp;定义选项代码</a></span>

	   <span style="float:right"><a href={dataImportURL} style="display:{isImport}"><IMG SRC="../Images/excel.gif">&nbsp;导入问卷数据</a>&nbsp;&nbsp;<IMG SRC="../Images/txt.jpg">&nbsp;<a href={labelExportURL}>导出SPSS标签</a>&nbsp;&nbsp;<IMG SRC="../Images/excel.gif">&nbsp;<a href={spssExportURL}>导出元数据至SPSS</a>&nbsp;&nbsp;<IMG SRC="../Images/excel.gif">&nbsp;<a href={exportExportURL}>导出元数据至Excel</a>&nbsp;&nbsp;<a href="../Export/Export.uploadfile.inc.php?surveyID={surveyID}&surveyName={surveyName}&surveyTitle={survey_URLTitle}" style="display:{isHaveUpload}"><IMG SRC="../Images/zip.gif">&nbsp;批量下载上传附件</a>&nbsp;</span>
	</td></tr>
 </table>
</form>

<form name="Ajax_Form" id="Ajax_Form" method="post" action="">
<table class="datatable" id="datatable" style="border-bottom:0px;" cellspacing=0 cellpadding=0 border=0>
   <tr class=coltitle> 
      <td width=2% align=center noWrap><input name="all" type="checkbox" id="all" value="all" onclick="checkall(this.form)" style="background:#f5f5f5"></td>
	  <td width=4% noWrap style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;<strong>序号</strong></td>
	  <td width=13% noWrap style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;<strong>时间</strong></td>
      <td width=6%  noWrap style="font-size:11px;padding-left:0px;padding-right:0px;text-align:center;"><strong>审核</strong></td>
      <td width=20% noWrap style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;<strong>样本标识</strong></td>
      <td width=* noWrap style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;<strong>地址标识</strong></td>
      <td width=8% noWrap style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;<strong>来源</strong></td>
      <td id="main_show_fileds" width=26% style="font-size:11px;display:{isMainShowQtn};padding-left:0px;padding-right:0px;">
	    <select name="ajax_qtnID" id="ajax_qtnID" style="width:220px;*width:230px" onChange="AjaxRequest('../System/AjaxChangeMainShow.php?surveyID={surveyID}&selectedID='+document.Ajax_Form.ajax_qtnID.options[document.Ajax_Form.ajax_qtnID.selectedIndex].value);">
		  {qtnNameList}
		</select>
	  </td>
	  <script>document.getElementById("main_show_fileds").style.display = "{isMainShowQtn}";</script>
	  <td width=10% align=center style="font-size:11px;"><strong>操作</strong></td>
   </tr>
   <!-- BEGIN LIST -->
   <tr onmouseover="this.style.backgroundColor='#DEEFFF'"  onmouseout="this.style.backgroundColor='#FFFFFF'"> 
      <td align=center nowrap><input name="responseID[]" type="checkbox" id="responseID" value="{responseID}"></td>
      <td style="font-size:11px;background-color:{noHaveAll};padding-left:0px;padding-right:0px;" align=center nowrap>{responseID}&nbsp;</td>
      <td style="font-size:11px;padding-left:0px;padding-right:0px;" nowrap>{joinTime}<input name="createDate[{responseID}]" type="hidden" id="createDate" value="{createDate}"><input name="overFlag[{responseID}]" type="hidden" id="overFlag" value="{overFlag}"><input name="overFlag0[{responseID}]" type="hidden" id="overFlag0" value="{overFlag0}"></td>
	  <td style="font-size:11px;background-color:{authColor};text-align:center;padding-left:0px;padding-right:0px;" nowrap>{authStat}</td>
      <td style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;{administratorsName}</td>
      <td style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;{ipAddress}</td>
      <td style="font-size:11px;padding-left:0px;padding-right:0px;">&nbsp;{area}</td>
      <td id="show_{responseID}" style="font-size:11px;display:{isMainShowQtnValue};padding-left:0px;padding-right:0px;white-space:normal;word-break:break-all;">&nbsp;{qtnValue}</td>
 	  <script>document.getElementById("show_{responseID}").style.display = "{isMainShowQtnValue}";</script>
      <td align=center style="padding-left:0px;padding-right:0px;" nowrap>{action}</td>
   </tr>
   <!-- END LIST -->
   </table><table width=100% style="border:0px">
   <tr>
      <td width=2% style="border:0px"></td>
      <td height="15" colspan="9" style="border:0px"><input name="cancelAction" type="hidden" id="cancelAction">
		 <input class=stnsubmit name="OverFlagSubmit" type="submit" id="OverFlagSubmit" value="开闭无效回复" onclick="return window.confirm('您真的想对选中的数据进行开闭无效回复操作？!对数据设为无效回复将使其不参与数据分析和统计!')" style="display:{isAdmin7}">&nbsp;<input class=stnsubmit name="DeleteSubmit" type="submit" id="DeleteSubmit" value="删除选定记录" onclick="return window.confirm('您真的想删除这些数据吗？本操作不可恢复！')" style="display:{isAdmin7}">&nbsp;<input class=stnsubmit name="YesAuthSubmit" type="submit" id="YesAuthSubmit" value="批量审核通过" onclick="return window.confirm('您真的想将这些数据批量通过审核?!')" style="display:{isAdmin7}"></td>
   </tr>
   </form>
  </table>
</div>
<div class=pages>{pagesList}</div>
</div></div></div>

<link href="../CSS/SideBar.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="../JS/SideBar.js.php"></script>
<div id="sideBar">	
	<a href="javascript:void(0);" id="sideBarTab" onfocus="this.blur();"><img src="../Images/slide-button.gif"/></a>
	<div id="sideBarContents" style="display:none">
		<div id="sideBarContentsInner" style="display:none">
			<h2>操作小提示</h2>			
			<ul>
				<li><b>[白色]</b> 背景为白色的数据为回复问卷正常完成的数据；</li>
				<li><b>[黄色]</b> 背景为黄色的数据为回复问卷未完成的缓存数据；</li>
				<li><b>[红色]</b> 背景为红色的数据为无效回复的数据与到达配额之后的数据；</li>
				<li><b>[修改]</b> 无效回复的数据是不允许修改的；</li>
				<li><b>[修改]</b> 只有修改自身的缓存数据才会变更为已完成数据；</li>
				<li><b>[审核]</b> 依据数据所处的不同审核状态，系统将会提供对应的操作。</li>
				<li>更多帮助信息，方便访问<a href="http://doc.itenable.com.cn" target=_blank><b>EnableQ在线文档中心</b></a></li>
			</ul>			
		</div>
	</div>	
</div>
<script>initSideBar();Init();</script>

<link href="../CSS/Notifier.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="../JS/Jquery.notifier.min.js.php"></script>
<script>
	  var mOptions = {};
	  mOptions.lifeTime = 0;
	  if( {isEvalUsers} == 1 )
	  {
		  $.jnotify('购买信息', '想获得更多功能和更高软件版本？可访问<a href="http://www.enableq.com/cn/buy/price.html" target=_blank>www.enableq.com</a>网站查询相关购买信息', '../Images/admin.png', mOptions);
	  }
</script>
</body></html>
