<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>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<link href="../CSS/SurveyList.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../JS/Browser.js.php"></script>
<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 language=javascript src="../JS/CheckQuestion.js.php"></script>
<script>
function gId(_sId){
	return document.getElementById(_sId);
}
function Check_Form_Validator()
{
	if (IsInCheckBox(document.Check_Form.projectType,1 ))
	{
		if (!CheckNotNull(document.Check_Form.projectOwner, "关联客户对象")) {return false;}
	}
	if (!CheckPhone(document.Check_Form.custTel, "项目客户服务电话")) {return false;}
}
function changeProjectType()
{
	if (IsInCheckBox(document.Check_Form.projectType,1 ))
	{
		gId('projectOwner_cont').style.display = '';
		gId('appeal_cont_0').style.display = '';
		gId('appeal_cont_1').style.display = '';
		gId('appeal_cont_2').style.display = '';
	}
	else
	{
		gId('projectOwner_cont').style.display = 'none';
		gId('appeal_cont_0').style.display = 'none';
		gId('appeal_cont_1').style.display = 'none';
		gId('appeal_cont_2').style.display = 'none';
	}
}
function refreshParent() {
   //window.location.replace(window.location.href);
   window.location.reload(true);
}
function CheckExt(obj)
{
   	var AllowExt = ".png|.jpg|.gif|.jpeg|";
	FileExt = obj.value.substr(obj.value.lastIndexOf(".")).toLowerCase();
	if( AllowExt.indexOf(FileExt + "|") == -1) 
	{
		document.getElementById("submitButton").disabled = true;
	    $.notification("Logo图片文件扩展名仅支持.png|.jpg|.gif|.jpeg|");
		return false;
	}
	else
	{
		document.getElementById("submitButton").disabled = false;
		return true;
    }    
}
</script>
<meta content="mshtml 6.00.3790.0" name=generator></head>
<body oncontextmenu="return false" style="background-color:#244d8f;" onload="javascript:changeProjectType();">
<div style="line-height:10px">&nbsp;</div>
<div id="menu">
  <span style="float:left;padding-left:26px;"><div class="navmenu">我的问卷 &raquo; {surveyTitle}</div></span>
  <span style="float:right">
  <ul><li><a href="ShowMain.php">我的问卷</a></li>
	  <li style="display:{isAdmin6}"><a href="ShowSurveyList.php?Action=Edit&surveyID={surveyID}">属性</a></li>
	  <li style="display:{isDeployStat}"><a href="GetSurveyCode.php?Action=Edit&surveyID={surveyID}">分发</a></li>
	  <li class="current"><a href="ShowSurveyList.php?Action=EditUser&surveyID={surveyID}">用户</a></li>
	  <li style="display:{haveTask}"><a href="{taskURL}">任务</a></li>
	  <li style="display:{havePlan}"><a href="{planURL}">计划</a></li>
  </ul></span>
</div>
<a name="top" href="javascript:void(0);"></a>
<div class="wrap q_clear" id=wrap>
<div>
<div class=content>
<div class=q_clear id=mysurvey><h1>调整问卷用户权限</h1><br/></div>
<div id=myname>调配调查问卷的用户权限，建立问卷和系统用户之间的权限关联关系</div>
<div class="datalist">
   <form name="Check_Form" method="post" enctype="multipart/form-data" action="" onsubmit="return Check_Form_Validator()">
    <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
      <tr height=25 bgcolor="#e9e9e9"><td colspan=2><span class=red>&nbsp;调查问卷所属项目类型</span>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
      <tr>
		  <td height="25"><SPAN class=red>*</SPAN> 所属项目类型：</td>
	  	  <td><input type="radio" name="projectType" value=1 onclick="javascript:changeProjectType();" {projectType_1}>神秘客/暗访/明检等调研对象清楚的调研项目（&nbsp;<a onmouseover="this.T_WIDTH=530;this.T_PADDING=0;this.T_BGCOLOR='#ffffff'; return escape('&nbsp;1) 需要先指定项目的关联客户对象，即“用户”树“客户”节点的次级节点<br/>&nbsp;2) 系统将会使用该关联客户对象下无子孙节点的节点信息作为数据录入员的任务可分配清单<br/>&nbsp;3) 系统将会使用该关联客户对象下的用户身份作为申诉允许的可分配用户<br/>&nbsp;4) 该项目的数据查看和审核权限其一依赖“单位”树节点的从属关系，即查看员和审核员可查看<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;或审核本节点与下属节点数据录入员录入的数据，其二依据任务和录入员的对应关系以及“客<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户”树节点的从属关系，来决定“客户”树下某用户的数据查看权限')" href="javascript:void(0);"><font color=red><b>?</font></a></b>&nbsp;）<br/>
		      <input type="radio" name="projectType" value=2 onclick="javascript:changeProjectType();" {projectType_2}>面访/街访/网络调查等随机调研对象的调研项目（&nbsp;<a onmouseover="this.T_WIDTH=530;this.T_PADDING=0;this.T_BGCOLOR='#ffffff'; return escape('&nbsp;1) 本类型项目“用户”树“客户”节点下属所有用户身份对其无任何数据权限<br/>&nbsp;2) 若要为该项目的业主创建数据查看员账户，需要将其创建在“单位”树对应节点位置<br/>&nbsp;3) 该项目的数据查看和审核权限依赖“单位”树节点的从属关系，即查看员和审核员可查看或审<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;核本节点与下属节点数据录入员录入的数据')" href="javascript:void(0);"><font color=red><b>?</font></a></b>&nbsp;）<br/>
		  </td>
	  </tr>
      <tr id="projectOwner_cont">
		  <td height="25"><SPAN class=red>*</SPAN> 关联客户对象：</td>
	  	  <td><select name="projectOwner" id="projectOwner" style="width:432px;*width:442px">
		       <option value=''>请选择...</option>
			   {projectOwnerList}
			  </select>
		  </td>
	  </tr>
	  <tr><td height="25">&nbsp;&nbsp;&nbsp;上传客户Logo：</td>
	  	  <td><input name="custLogo" type="file" id="custLogo" size=70 onchange="CheckExt(this)"><br/>
		      <span class=red>*</span>&nbsp;建议Logo图片的宽度少于480px;<br/>
		      <span class=red>*</span>&nbsp;建议项目客户的登录系统地址：<a href="{loginURL}" target=_blank><font color=red>{loginURL}</font></a><br/>
		      <span class=red>*</span>&nbsp;查看现有Logo：{custLogoFile}，上传新文件将覆盖旧文件<br/>
		      <span class=red>*</span>&nbsp;需要EnableQ系统“项目登录界面Logo自定义”扩展许可证
		  </td>
      </tr>	  
	  <tr><td height="25">&nbsp;&nbsp;&nbsp;项目客户服务电话：</td>
	  	  <td><input name="custTel" type="text" id="custTel" size=26 value="{custTel}"></td>
      </tr>	  
      <tr height=25 bgcolor="#e9e9e9"><td colspan=2><span class=red>&nbsp;调查问卷用户权限</span>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
      <tr>
		  <td height="25"><SPAN class=red>*</SPAN> 问卷管理用户：</td>
	  	  <td><b>问卷创建者：</b>{ownerUser}<br/><b>系统管理员：</b>{adminUsers}<br/><b>超级问卷员：</b>{superUsers}</td>
	  </tr>
      <tr>
		  <td height="25"><SPAN class=red>*</SPAN> 数据录入用户：<br/>&nbsp;&nbsp;&nbsp;<input class=inputsubmit name="userRight" type="button" id="userRight" value="调整" onclick="javascript:showPopWin('?Action=EditInputUser&surveyID={surveyID}', 800, 470,refreshParent, null,'调整问卷数据录入用户')"></td>
	  	  <td valign=top>
		   <table cellspacing=0 cellpadding=0 style="border:0px">
		   <tr><td style="margin:0px;padding:0px;border:0px" valign=top height=90><b>数据录入员：</b>{inputUserList}</td></tr></table>

		   <table cellspacing=0 cellpadding=0 style="padding:0px;margin:0px;border:0px;border-top:#b5cfd9 1px solid">
		   <tr><td style="padding:0px;margin:0px;border:0px" width=52%><input type=checkbox name="isImportData" id="isImportData" value="1" {isImportData}>禁止数据录入员自CSV导入问卷回复数据</td>
		       <td style="padding:0px;margin:0px;border:0px" width=48%><input type=checkbox name="isDeleteData" id="isDeleteData" value="1" {isDeleteData}>禁止数据录入员删除问卷已录入数据</td>
		   </tr></table>
		  </td>
	  </tr>   
      <tr>
		  <td height="25" width=16%><SPAN class=red>*</SPAN> 数据查看用户：<br/>&nbsp;&nbsp;&nbsp;<input class=inputsubmit name="userRight" type="button" id="userRight" value="调整" onclick="javascript:showPopWin('?Action=EditViewUser&surveyID={surveyID}',800, 470,refreshParent, null,'调整问卷数据查看用户')"></td>
	  	  <td valign=top>
		    <table cellspacing=0 cellpadding=0 style="border:0px">
			 <tr><td style="margin:0px;padding:0px;border:0px" valign=top height=90><b>数据查看员：</b>{viewUserList}</td></tr>
			</table>

			<table cellspacing=0 cellpadding=0 style="padding:0px;margin:0px;border:0px;border-top:#b5cfd9 1px solid">
			<tr><td style="padding:0px;margin:0px;border:0px"><input type=checkbox name="isOnline0View" id="isOnline0View" value="1" {isOnline0View}>允许数据查看员查看所有<font color=#335ea8>网调数据</font></td>
			    <td style="padding:0px;margin:0px;border:0px"><input type=checkbox name="isViewAuthInfo" id="isViewAuthInfo" value="1" {isViewAuthInfo}>允许数据查看员查看所有<font color=#335ea8>审核信息明细</font></td>
			</tr>
			<tr><td style="padding:0px;margin:0px;border:0px" width=52%><input type=checkbox name="isViewAuthData" id="isViewAuthData" value="1" {isViewAuthData}>数据查看员仅能查看<font color=#335ea8>审核通过</font>的回复数据</td>
			    <td style="padding:0px;margin:0px;border:0px" width=48%><input type=checkbox name="isExportData" id="isExportData" value="1" {isExportData}>禁止数据查看员导出问卷回复数据明细</td>	
			</tr>
		  </table>
		  </td>
	  </tr>

      <tr>
		  <td height="25" width=16%><SPAN class=red>*</SPAN> 数据审核用户：<br/>&nbsp;&nbsp;&nbsp;<input class=inputsubmit name="userRight" type="button" id="userRight" value="调整" onclick="javascript:showPopWin('?Action=EditAuthUser&surveyID={surveyID}',800, 470,refreshParent, null,'调整问卷数据审核用户')"></td>
	  	  <td valign=top>
  		    <table cellspacing=0 cellpadding=0 style="border:0px">
				<tr><td style="margin:0px;padding:0px;border:0px" valign=top height=90><b>数据审核员：</b>{authUserList}</td></tr>
			</table>
			
			<table cellspacing=0 cellpadding=0 style="padding:0px;margin:0px;border:0px;border-top:#b5cfd9 1px solid">
			<tr><td style="padding:0px;margin:0px;border:0px" width=52%><input type=checkbox name="isOnline0Auth" id="isOnline0Auth" value="1" {isOnline0Auth}>允许数据审核员审核所有<font color=#335ea8>网调数据</font></td>
			    <td style="padding:0px;margin:0px;border:0px" width=48%><input type=checkbox name="messbut3" disabled>不允许数据审核员修改<font color=#335ea8>网调数据</font>(默认)</td>
			</tr>
		  </table>
		  </td>
	  </tr>

      <tr height=25 bgcolor="#e9e9e9" id="appeal_cont_0"><td colspan=2><span class=red>&nbsp;神秘客/暗访/明检等调研项目的申诉设定</span>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
      <tr id="appeal_cont_1">
		  <td height="25"><SPAN class=red>*</SPAN> 申诉允许用户：<br/>&nbsp;&nbsp;&nbsp;<input class=inputsubmit name="userRight" type="button" id="userRight" value="调整" onclick="javascript:goEditAppealUser();"></td>
	  	  <td valign=top>
		   <table cellspacing=0 cellpadding=0 style="border:0px">
		   <tr><td style="margin:0px;padding:0px;border:0px" valign=top height=90><b>申诉允许用户：</b>{appealUserList}</td></tr></table>
		  </td>
	  </tr>
	  <script>
			function goEditAppealUser()
			{
				var projectOwner = getRadioCheckBoxValue(getID('projectOwner'));
				if( projectOwner == '' )
				{
					getID('projectOwner').focus();
					$.notification("必须先指定项目的“关联客户对象”!");
				}
				else
				{
					showPopWin('?Action=EditAppealUser&surveyID={surveyID}&projectOwner='+projectOwner, 800, 500,refreshParent, null,'调整问卷申诉允许用户');
				}
			}
	  </script>
      <tr id="appeal_cont_2">
		  <td height="25"><SPAN class=red>*</SPAN> 申诉处理用户：<br/>&nbsp;&nbsp;&nbsp;<input class=inputsubmit name="userRight" type="button" id="userRight" value="调整" onclick="javascript:showPopWin('?Action=EditAppealAuthUser&surveyID={surveyID}',800, 470,refreshParent, null,'调整问卷申诉处理用户')"></td>
	  	  <td valign=top>
		   <table cellspacing=0 cellpadding=0 style="border:0px">
		   <tr><td style="margin:0px;padding:0px;border:0px" valign=top height=90><b>申诉处理用户：</b>{appealAuthUserList}</td></tr></table>
		  </td>
	  </tr>   

    </table>
	  
    <table width=100% style="border:0px">
      <tr><td height="23" style="border:0px">
	      <input name="surveyID" type="hidden" value="{surveyID}"> 
 		  <input name="surveyTitle" type="hidden" value="{surveyTitle}">
		  <input name="ori_projectOwner" type="hidden" value="{projectOwner}">
		  <input name="ori_custLogo" type="hidden" value="{custLogo}">
 		  <input name="Action" type="hidden" id="Action" value="EditUserSubmit"> 
	      <input type=submit class=inputsubmit id="submitButton" value="确定">&nbsp;<input name="back2" class=inputsubmit type="button" value="返回"  onClick="javascript:window.location.href='{surveyListURL}'">
	 </td></tr></table>
  </form>
</div>
</div></div></div>
<script language=javascript src="../JS/Example.js.php"></script>
<script>adjustMenuWarpSize();</script>
</body></html>
