<html><head><title>调查样本列表</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"/>
<LINK href="../CSS/Window.css" type=text/css rel=stylesheet>
<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/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 type="text/javascript" src="../JS/Actions.js.php"></script>
<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 )	e.checked = true;
		}
	}
	else
	{
		for(var i = 0;i < form.elements.length-1; i++) 
		{
			var e = form.elements[i];
			if( ! e.disabled )	e.checked = false;
		}
    }
}
function refreshParent() {
   //self.location.replace(self.location.href);
   self.location.reload(true);
}
function checkSelectUser()
{
	var strErr = "操作要求必须先选择一个或多个样本！";
	objField = document.Check_Form.administratorsID;
	if( typeof objField != 'undefined' )
	{
		if( objField.length == null )
		{
			if (! objField.disabled && objField.checked) return true;
			else
			{
				document.Check_Form.all.focus();
				$.notification(strErr);
				return false;
			}
		}
		else
		{
			for (i=0;i<objField.length;i++){
				if ( ! objField[i].disabled && objField[i].checked) return true;
			}
			document.Check_Form.all.focus();
			$.notification(strErr);
			return false;
		}
	}
	else
	{
		$.notification(strErr);
		return false;
	}
}
function checkUserAction( actionValue )
{
	if ( checkSelectUser()) 
	{
		gId('formAction').value = actionValue;
		gId('Check_Form').submit();
	}
}
</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; 调查样本列表</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>&nbsp;&nbsp;<input class=inputsubmit name="createNew" type="button" id="createNew" value="新增样本" onclick="javascript:showPopWin('ShowMembersList.php?Action=Add', 700, 450, refreshParent, null,'新增调查样本')">&nbsp;<input class=stnsubmit name="mailMgt" type="button" id="mailMgt" value="发送邮件通知" onClick="javascript:showPopWin('../System/SendMailNotes.php', 900, 470,null, null,'发送电子邮件通知');"><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><span style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="../Images/search.gif">查找
		  <select name="searchType">
		  <option value='t1'>邮件账号</option>
		  <option value='t2' {isNickName}>昵称</option>
		  {fieldsList}
		  </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:void(0);" onclick="javascript:showPopWin('ShowMembersList.php?Action=Import', 700, 310, refreshParent, null,'从CSV文件导入样本数据')">从CSV导入</a>&nbsp;<IMG SRC="../Images/excel.gif">&nbsp;<a href="{exportURL}">导出样本信息至CSV</a>&nbsp;<IMG SRC="../Images/excel.gif">&nbsp;<a href="{exportReplyURL}">导出样本回复信息至CSV</a></span>
		</td></tr>
        <tr class=coltitle> 
             <td width=3% align=center noWrap><input name="all" type="checkbox" id="all" value="all" onclick="checkall(this.form)" style="BACKGROUND-COLOR:#f5f5f5"></td>
             <td width=25% noWrap><strong>&nbsp;邮件账号</strong></td>
             <td width=13% noWrap><strong>昵称</strong></td>
             <td width=6% noWrap align=center><strong>登陆次数</strong></td>
             <td width=13% noWrap align=center><strong>最后登录</strong></td>
             <td width=11% noWrap align=center><strong>加入时间</strong></td>
		     <td width=12% align=center><strong>样本分组</strong></td>
		     <td width=17% align=center><strong>操作</strong></td>
        </tr>

         <!-- BEGIN USER -->
         <tr onmouseover="this.style.backgroundColor='#DEEFFF'"  onmouseout="this.style.backgroundColor='#FFFFFF'"> 
              <td align=center><input name="administratorsID[]" type="checkbox" id="administratorsID" value="{administratorsID}" {isAuthTran}></td>
              <td>&nbsp;{userName}</td>
              <td>{nickName}</td>
              <td align=center>{loginNum}</td>
              <td align=center>{lastVisitTime}</td>
              <td align=center>{time}</td>
              <td align=center>{administratorsGroupName}</td>
			  <td align=center><a href="javascript:void(0);" onclick="javascript:showPopWin('{viewURL}', 700, 450, refreshParent, null,'查看调查样本信息')">查看</a>{editURL}{deleteURL}{closeURL}</td>
          </tr>
          <!-- END USER -->
		 <tr>
		    <td colspan=8>
		    &nbsp;&nbsp;选中的样本迁移至样本分组：
	        <SELECT name="tran_administratorsGroupID">
		     {members_group_list}
		    </SELECT>
 			<input name="formAction" id="formAction" type="hidden">
            <input name="TranMembersSubmit" class=inputsubmit type="button" id="TranMembersSubmit" value="开始" onclick="javascript:checkUserAction('TranMembersSubmit');" > 
            <input name="DeleMembersSubmit" class=inputsubmit type="button" id="DeleMembersSubmit" value="删除" onclick="if( window.confirm('您真的想删除选中样本吗？本操作不可恢复！?')) {checkUserAction('DeleMembersSubmit');}"> 
    </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> 样本自CSV导入时，可从第7列开始直接在CSV中描述样本属性，一并导入；</li>
				<li><b>[数据]</b> 专有的CSV文件编辑工具，可访问<a href="http://csved.sjfrancke.nl/" target=_blank><b>CSVed</b></a>下载。</li>
			</ul>			
		</div>
	</div>	
</div>
<script>initSideBar();</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( {haveRecNum} == 0 )
	  {
		  $.jnotify('新用户提示[样本]', '样本属性指描述单一样本的属性字段，系统允许创建多个样本属性。调查抽样主要是针对属性进行的', '../Images/admin.png', mOptions);
		  $.jnotify('样本导入', 'EnableQ允许按照示例文件格式自CSV快速导入样本数据；请留意导入界面的说明提示', '../Images/admin.png', mOptions);
	  }
</script>
<script type="text/javascript" src="../JS/CssPatch.js.php"></script>
</body></html>