<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" type="text/css"/>
<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/Actions.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/Actions.js.php"></script>
<script>
function referIframeSrc(theURL) {
   window.location.href = theURL;
}
function reloadAjaxContent(returnVal) {
	var postStr = '&surveyID=' + returnVal + "&randid="+Math.random(); 
	ajax_Post_Action('AjaxSurveyAction.php',postStr);
}
function isIE6() {
  var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf('msie') + 5, 3);
  var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
  if( is_ie && (window.navigator.userAgent.indexOf('MSIE 5')>-1 || window.navigator.userAgent.indexOf('MSIE 6')>-1) )
  {
	 gId('menu-div').style.display = "none";
  }
}
</script>
<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;}
 </style>
 </head>
<body oncontextmenu="return false" style="background-color:#244d8f;">

<div style="line-height:10px">&nbsp;</div>
<div id=nav><a href="ShowMain.php">我的问卷</a> &raquo; 我的问卷列表<span id="tipsinfo" style="color:red;font-weight:bold;padding-left:20px;"></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>&nbsp;<input style="display:{isShowCate}" class=inputsubmit name="surveyCate" type="button" id="surveyCate" value="问卷分类" onclick="javascript:showPopWin('ShowSurveyCate.php', 900, 450, null, null,'管理问卷分类')">&nbsp;<input class=inputsubmit name="createNew" type="button" id="createNew" value="新建问卷" onclick="javascript:showPopWin('../System/ShowSurveyList.php?Action=Add', 780, 450, null, null,'新建调查问卷')"><br/></div>
<div id=myname><h3>欢迎您，{nick_Name}，来到EnableQ调查问卷管理桌面</h3></div>
<div id="nonesite" class="nonewebsite" style="display:{noneSite}">
  <div class="title"><h2>&nbsp;&nbsp;系统还没有可管理的调查问卷？</h2></div>
  <div class="info"><p>在EnableQ系统中创建一个新的调查问卷，才能利用其的强大功能对问卷进行管理</p></div>
  <div class="createbtn"><a href="javascript:void(0);" onclick="javascript:showPopWin('../System/ShowSurveyList.php?Action=Add', 780, 450, null, null,'新建调查问卷')"><img src="../Images/create_site.gif" border=0/></a>&nbsp;</div>
</div>
<div class="datalist" style="display:{isHaveSite}">
<form name="Check_Form" style="margin:0;padding:0" method="POST" action="">
<table class=datatable id="datatable" cellspacing=0 cellpadding=0 style="border-bottom:0px;display:{isHaveSite}">
  <tr><td colspan=8 height=35 valign=center bgcolor="#ffffff">
		   <IMG SRC="../Images/search.gif"> 查找
			  <select name="t_searchType" id="t_searchType">
				<option value='1'>问卷标题</option>
		        <option value='2' {isQName}>问卷标识名</option>
			  </select>
		    中包含：<input type="text" name="t_name" value="{t_name}" size=15>
			<select name="t_status">
			  <option value="">选择问卷状态...</option>
			  <option value="0" {option_0}>设计</option>
			  <option value="1" {option_1}>执行</option>
			  <option value="2" {option_2}>结束</option>
			</select>
		   <select name="t_cate">
		     <option value="">选择问卷分类...</option>
				{cate_list}
		    </select>
		   <select name="t_administratorsID">
		     <option value="0">选择创建用户...</option>
				{users_list}
		    </select>
			的调查问卷
             <input name="Action" type="hidden" id="Action" value="querySubmit"> 
             <input type="submit" class=inputsubmit name="Submit" value="查询">
  </td></tr>
  <tr class=coltitle>
	<td width=1% style="padding:0px">&nbsp;</td>
    <td width=57%><b>&nbsp;问卷标题</b></td>
    <td width=5% align=center><b>类型</b></td>
    <td width=5% align=center><b>状态</b></td>
    <td width=10% align=center><b>创建</b></td>
	<td width=9% align=center><b>结束时间</b></td>
	<td width=7% align=center><b>回复</b></td>
	<td width=6% align=center><b>操作</b></td>
  </tr>
 <!-- BEGIN SURVEY -->
  <tr onmouseover="this.style.backgroundColor='#DEEFFF'" onmouseout="this.style.backgroundColor='#FFFFFF'">
    <td style="padding:0px" {projectType}>&nbsp;</td>
    <td>&nbsp;{surveyTitle}</td>
    <td align=center>{isPublic}</td>
    <td bgcolor="{status_color}" align=center>{status}</td>
    <td align=center>{owner}</td>
	<td align=center>{endTime}</td>
	<td align=center bgcolor="#efefef"><b>{resultNum}</b></td>
	<td align=center><a href="javascript:void(0);" title="选择对应问卷操作" onclick="_ShowActionBox(700,50,{surveyID},{topMargin});">操作</a></td>
  </tr>
  <!-- END SURVEY -->
</table></form></div>

<div class="pages">{pagesList}</div>
</div></div></div>
<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>

<link href="../CSS/SideBar.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="../JS/Jquery.min.js.php"></script>
<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>更多帮助信息，方便访问<a href="http://doc.itenable.com.cn" target=_blank><b>EnableQ在线文档中心</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( {haveQtnNum} == 0 )
	  {
		  $.jnotify('新用户提示[设计]', '新增调查问卷，需要您继续添加问卷问题与选项，问卷设计工作才算完成', '../Images/admin.png', mOptions);
	  }

	  if( {haveRunSurveyNum} == 0 )
	  {
		  $.jnotify('新用户提示[预览]', '检查问卷的正确与否及最终样式，可对问卷进行预览，并可进行模拟数据提交', '../Images/admin.png', mOptions);
		  $.jnotify('新用户提示[执行]', '问卷要供被调查者回复，需把问卷转成“执行”状态，点击对应问卷的“操作”，选择“执行问卷”按钮', '../Images/admin.png', mOptions);
	  }
      //浏览器兼容
	  mOptions.lifeTime = 8000;
	  var userAgent = navigator.userAgent.toLowerCase();
	  var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
	  var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
	  var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf('msie') + 5, 3);
	  var is_mac = userAgent.indexOf('mac') != -1;
	  if( is_ie ) {}
	  else { 
	  	  $.jnotify('浏览器兼容', 'EnableQ建议您使用IE浏览器以获得更好的操作体验', '../Images/admin.png', mOptions);
	  }
</script>
<script>parent.document.getElementById("the_content_iframe").contentWindow.document.body.style.overflowX='hidden';</script>
<script type="text/javascript" src="../JS/CssPatch.js.php"></script>
</body>
</html>
