<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>
  .actionsTitle {color:#0099cc;font-size:14px;font-weight:bold;margin-bottom:5px;}
  .actionsInner {font-size:12px;padding-left:10px;margin-bottom:8px;border-bottom:#e5e5e5 1px solid;}
  .classtd { padding:2px 5px 2px 5px;}
  #the_tips_iframe {
		margin: 0px;
		padding:0px;
		width: 100%;
		height: 100%;
		position: relative;
		z-index: 20002;
  }
</style>
<link rel="stylesheet" type="text/css" href="../CSS/Base.css">
<link rel="stylesheet" type="text/css" href="../CSS/Common.css">
<LINK href="../CSS/Actions.css" type=text/css rel=stylesheet>
<LINK href="../CSS/Window.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="../JS/Loading.js.php"></script>
<script type="text/javascript" src="../JS/Common.js.php"></script>
<script type="text/javascript" src="../JS/Actions.js.php"></script>
<script type="text/javascript" src="../JS/Window.js.php"></script>
<link href="../CSS/SurveyList.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../JS/Browser.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];
			e.checked = true;
		}
	}
	else
	{
		for(var i = 0;i < form.elements.length-1; i++) 
		{
			var e = form.elements[i];
			e.checked = false;
		}
    }
}
function submit_form_action()
{
 	var objField = document.getElementById('Email_Form').userName;
    if( CheckRadioNoClick(objField,"邮件账号") != false )
	{
		//得到UserName的值
		var theUserNameValue = '';
		if( objField.length != null )
		{
			for( i=0;i<objField.length;i++){
				if (objField[i].checked)  theUserNameValue += objField[i].value + ';';
			}
		}
		else
		{
			if (objField.checked)  theUserNameValue += objField.value + ',';
		}
		var userNameList = theUserNameValue.substr(0,theUserNameValue.length-1);
		var theURL = "PrivateNoCommit.php?surveyID={surveyID}&Action=SendEmail&passportType=1&administratorsName="+userNameList;
		showPopWin(theURL, 850, 450,null, null,'发送问卷提醒邮件');
	}
}
function excelNoCommitLimit()
{
	gId('excelForm').action = '../Export/Export.members.inc.php';
	gId('excelForm').submit();
}
//判断单选/复选必选
function CheckRadioNoClick(objField, strText)
{
	var strErr = "必须选择“" + strText + "”一个选项！";
	if( objField.length == null )
	{
		if (objField.checked) return true;
		objField.focus();
		$.notification(strErr);
	}
	for (i=0;i<objField.length;i++){
		if (objField[i].checked) return true;
		objField[0].focus();
		$.notification(strErr);
	}
	return false;
}
</script>
</head>
<body oncontextmenu="return false" style="background-color:#244d8f;">
<div style="line-height:10px">&nbsp;</div>
<div id="menu">
  <span style="float:left;padding-left:26px;"><div class="navmenu">我的问卷 &raquo; 调查问卷分析 &raquo; 尚未回复清单</div></span>
  <span style="float:right">
  <ul><li><a href="javascript:void(0);" onclick="_ShowResultActionBox(700,50,{surveyID},50);">快速导航</a></li>
      <li class="current"><a href="{thisURL}">尚未回复清单</a>
	  </ul></span>
</div>
<div class="wrap q_clear" id=wrap>
<div>
<div class=content>
<div class=q_clear id=mysurvey><h1>列出“私有”问卷应回复但未回复的样本清单</h1><p class=surveynum>[ <span class=red>{recNum}</span> 记录 ]</p><br/></div>
<div id=myname></div>
<div class="datalist">
  <form name="Check_Form" method="post" action="">
  <table class=datatable id="datatable" style="border-bottom:0px;" cellspacing=0 cellpadding=0>
        <tr><td colspan=8 height=35 valign=center bgcolor="#ffffff">
		  <span style="float:left"><IMG SRC="../Images/search.gif">查找
			<select name="searchType">
			  <option value='1'>邮件账号</option>
			  <option value='2' {isNickName}>昵称</option>
		   </select>
		    中包含：<input type="text" name="name" value="{name}">
		   <select name="administratorsGroupID">
		     <option value="all">请选择所属样本分组...</option>
				{members_group_list}
		    </select>
			的尚未提交名单
             <input name="Action" type="hidden" id="Action" value="querySubmit"> 
             <input type="submit" name="Submit" class=inputsubmit value="查询"></span>	    
		  <span style="float:right;"><IMG SRC="../Images/excel.gif">&nbsp;<a href="javascript:excelNoCommitLimit();">导出至Excel</a>&nbsp;</span>
	    </td></tr>
		</form>
        <form name="Email_Form" id="Email_Form" method="POST" action="" target="the_tips_iframe">
        <tr class=coltitle> 
			 <td width=2% align=center noWrap><input name="all" type="checkbox" id="all" value="all" onclick="checkall(this.form)" style="BACKGROUND-COLOR:#f5f5f5"></td>
             <td width=30% noWrap><strong>&nbsp;邮件账号</strong></td>
             <td width=15% noWrap><strong>&nbsp;昵称</strong></td>
	         <td width=6% noWrap><strong>&nbsp;状态</strong></td>
             <td width=17% noWrap><strong>&nbsp;最后登录</strong></td>
	         <td width=19% align=center><strong>&nbsp;样本分组</strong></td>
		     <td width=13% align=center><strong>&nbsp;操作</strong></td>
        </tr>

         <!-- BEGIN USER -->
         <tr onmouseover="this.style.backgroundColor='#DEEFFF'"  onmouseout="this.style.backgroundColor='#FFFFFF'"> 
			  <td align=center><input name="userName" type="checkbox" id="userName" value="{userName}"></td>
              <td>&nbsp;{userName}</td>
              <td>&nbsp;{nickName}</td>
              <td>&nbsp;{stat}</td>
              <td>&nbsp;{lastVisitTime}</td>
			  <td align=center>&nbsp;{administratorsGroupName}</td>
			  <td align=center>&nbsp;<a href="javascript:showPopWin('{emailURL}', 850, 450,null, null,'发送问卷提醒邮件');">发送提醒邮件</a></td>
          </tr>
          <!-- END USER -->
		 <tr>
		      <td width=2%>&nbsp;</td>
			  <td height="15" colspan="6">
				  <input class=inputsubmit type="button" name="submitbutton" id="submitbutton" type="button" value="选中发送邮件" onclick="javascript:submit_form_action();" {noUserList}>&nbsp;<input class=inputsubmit type="button" name="submitall" name="submitall" type="button" value="全体发送邮件" onclick="javascript:showPopWin('{emailAllURL}', 850, 450,null, null,'向全体未回复清单发送问卷提醒邮件');" {noUserList}>
			  </td>
		 </tr>
		</form>
  </table></div>
<div class="pages">{pagesList}</div>
</div></div></div>
<form name="excelForm" id="excelForm" style="margin:0px;padding:0px;" method="post">
	<input name="exportSQL" id="exportSQL" type=hidden value="{exportSQL}">
	<input name="exportName" id="exportName" type=hidden value="{exportName}">
	<input name="isNoCommit" id="isNoCommit" value=1 type=hidden>
</form>
<div id="menu-div">
	<div id="actionInner">
	  <div id="actionTitleBar">
	      <div id="actionTitle">请选择对应问卷操作</div>
		  <div id="actionControls"><img src="../Images/closewindow.gif" onclick="closeLog('menu-div');" id="actionCloseBox"/></div>
	  </div>
      <div id="actionContent"></div>
	</div>
</div>
<script>setTimeout("closeDialog()",400);adjustMenuWarpSize();</script>
</body></html>
