<div class=q_clear id=mysurvey><h1>列出问卷中问题</h1><p class=surveynum>[ <span class=red>{totalRecNum}</span> 问题 ]</p><br/></div>
<div id=myname></div>
<div style="font-size:12px;margin-bottom:8px;">
<a href="../d.php?qname={surveyName}&qlang={qlang}" target=_blank><div class=inputsubmit style="width:60px;*width:95px;height:16px;float:left;display:{isHaveSite};position:relative;;margin-right:4px;*margin-right:0px" onmousedown="this.style.left='1px';this.style.top='1px';" onmouseup="this.style.left='0px';this.style.top='0px';" id="preSurvey" name="preSurvey">预览问卷</div></a>
<input class=inputsubmit style="display:{isHaveSite}" name="deploySurvey" type="button" id="deploySurvey" value="执行问卷" onclick="if(window.confirm('您确定把设计好的问卷开始发布执行？该问卷将不能再执行问卷设计操作！？')){window.location.href='ShowSurveyList.php?Action=ChangeStatus&surveyID={surveyID}&status=1&surveyTitle={surveyTitle}';}">
<input class=inputsubmit style="display:{isHaveSite}" name="exportNew" type="button" id="exportNew" value="导出问题" onclick="window.location.href='../Export/Export.text.inc.php?surveyID={surveyID}'">
<!--<input class=inputsubmit style="display:{isHaveSite}" name="surveyLogic" type="button" id="surveyLogic" value="逻辑关系" onclick="javascript:window.location.href='{logicURL}';">
<input class=inputsubmit style="display:{isHaveSite}" name="surveyQuota" type="button" id="surveyQuota" value="问卷配额" onclick="javascript:window.location.href='{quotaURL}';">
<input class=inputsubmit style="display:{isHaveSite}" name="surveyOptWeight" type="button" id="surveyOptWeight" value="选项权重" onclick="javascript:window.location.href='{weightURL}';">-->
<input class=inputsubmit name="importNew" type="button" id="importNew" value="导入问题" onclick="javascript:showPopWin('{importURL}', 720, 280, refreshParent, null,'自TXT文件导入问卷问题')">
<input class=inputsubmit name="indexNew" type="button" id="indexNew" value="指标复制" onclick="javascript:showPopWin('{copySurveyIndexURL}', 720, 470, refreshParent, null,'从现有问卷指标体系复制问题新增')">
<input class=inputsubmit name="copyNew" type="button" id="copyNew" value="复制问题" onclick="javascript:showPopWin('{copySurveyURL}', 720, 420, refreshParent, null,'自现有问卷中复制问题新增')">
<input class=inputsubmit name="createNew" type="button" id="createNew" value="新增问题" onclick="javascript:qtnAddAction();"></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="createqtn">&nbsp;&nbsp;<a href="javascript:void(0);" onclick="javascript:qtnAddAction();"><img src="../Images/create_qtn.png" border=0></a>&nbsp;</div>
</div>

<div class="datalist" style="display:{isHaveSite}">
<table class=datatable id="datatable" cellspacing=0 cellpadding=0 style="border-bottom:0px;display:{isHaveSite}">
<tr class=coltitle>
  <td width=2% noWrap>&nbsp;</td>
  <td width=*>&nbsp;<B>题目文字</B></td>
  <td width=11% noWrap align=center><B>题型</B></td>
  <td width=13% noWrap align=center><strong>排序</strong></td>
  <td width=7% noWrap align=center><b>操 作</b> </td>
</tr>
<!-- BEGIN QUESTION -->
<tr onmouseover="this.style.backgroundColor='#DEEFFF'" onmouseout="this.style.backgroundColor='#FFFFFF'"> 
  <td><input name="questionID[]" type="checkbox" id="questionID" value="{questionID}"><input name="isRequired[{ID}]" type="hidden" id="isRequired[{ID}]" value="{isRequired}"></td>
  <td bgcolor="{logic_color}">{questionName}</td>
  <td align=center bgcolor="{qtn_color}">{questionType}<input name="questionType[{ID}]" type="hidden" id="questionType[{ID}]" value="{qtnType}"></td>
  <td align=right>
	  {orderAction}
	  <input name="orderByID[{ID}]" type="text" id="orderByID[{ID}]" value="{orderByID}" size="5" maxlength="15" readonly></td>
  <td align=center><a href="javascript:void(0);" onclick="_ShowQtnActionBox(700,50,'{actionStr}');">操作</a></td>
</tr>
<!-- END QUESTION -->
<tr><td height="15" colspan="7" style="border:0px">
		<input name="all" type="checkbox" id="all" value="all" onclick="checkall(this.form)" style="background-color:#ffffff">
		<input name="surveyID" type="hidden" id="surveyID" value="{surveyID}"> 
		<select name="newQuestionType" id="newQuestionType" onchange="newChangeQtn();">
		  <option value=''>在当前选中问题前插入合适题型...</option>
		  <option value='1'>是非题</option>
		  <option value='2'>单选题</option>
		  <option value='24'>复合单选题</option>
		  <option value='3'>多选题</option>
		  <option value='25'>复合多选题</option>
		  <option value='4'>填空题</option>
		  <option value='5'>多行填空题</option>
		  <option value='23'>组合填空题</option>
		  <option value='27'>矩阵填空题</option>
		  <option value='29'>自动矩阵填空题</option>
		  <option value='9'>段落小节</option>
		  <option value='14'>枚举题</option>
		  <option value='6'>矩阵单选题</option>
		  <option value='19'>自动矩阵单选题</option>
		  <option value='26'>复合矩阵单选题</option>
		  <option value='7'>矩阵多选题</option>
		  <option value='28'>自动矩阵多选题</option>
		  <option value='10'>排序题</option>
		  <option value='20'>自动排序题</option>
		  <option value='15'>评分题</option>
		  <option value='21'>自动评分题</option>
		  <option value='16'>比重题</option>
		  <option value='22'>自动比重题</option>
		  <option value='11'>文件上传题</option>
		  <option value='17'>自动选项题</option>
		  <option value='18'>条件选项题</option>
		  <option value='12'>隐藏变量</option>
		  <option value='30'>空题</option>
		</select>&nbsp;<span id="baseQtnList"><select name="baseID" id="baseID" style="width:520px;*width:530px">
		<option value=''>选择掩蔽问题题型的来源问题...</option>
		</select></span>
		<input name="formAction" id="formAction" type="hidden">
		<input name="InsertNewQtnSubmit" class=inputsubmit type="button" id="InsertNewQtnSubmit" value="插入问题" onclick="javascript:checkInsertNewQtn();">
</td></tr>
    <tr><td colspan="7" style="border:0px">
	<span style="float:left"> 
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="InsertPageBreakSubmit" class=inputsubmit type="button" id="InsertPageBreakSubmit" value="插入分页" onclick="javascript:checkQtnAction('InsertPageBreakSubmit');">
		<input name="DeleteQuestionSubmit" class=inputsubmit type="button" id="DeleteQuestionSubmit" value="删除问题" onclick="if( window.confirm('您真的想删除当前选中的问题吗？本操作不可恢复！')) {checkQtnAction('DeleteQuestionSubmit');}">
		<input name="UpdateIsRequireSubmit" class=inputsubmit type="button" id="UpdateIsRequireSubmit" value="开闭必答" onclick="javascript:checkQtnAction('UpdateIsRequireSubmit');">
		<input class=inputsubmit name="createNew" type="button" id="createNew" value="新增问题" onclick="javascript:qtnAddAction();">
	</span>
	<span style="float:right">&nbsp;<a name="footer" href="#top"><img src="../Images/top.gif" align="middle" alt="TOP"></a></span></td></tr>
</table>
<table width="100%" style="border:0px;" style="display:{isHaveSite}">
   <tr style="display:{isHaveSite}"> 
    <td style="border:0px;padding-left:0px;display:{isHaveSite}"><B><IMG src="../Images/notes.gif" alt=已封存 border=0></B><strong>：</strong>点击<IMG src="../Images/arrow_up.gif">或<IMG src="../Images/arrow_down.gif">可调整问题在问卷中的显示顺序<br>
	<B><IMG src="../Images/notes.gif" alt=已封存 border=0></B><strong>：</strong><span class=red>*</span>表示该问题为必答题；背景为黄色的问题表明该题存在逻辑关系。
	</td>
   </tr>
</table></div>
