<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/Window.css" type=text/css rel=stylesheet>
<script language=javascript src="../JS/HighLight.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 type="text/javascript" src="../JS/Common.js.php"></script>
<script type="text/javascript" src="../JS/Window.js.php"></script>
<script language=javascript src="../JS/Textarea.js.php"></script>
<script language=javascript src="../JS/TheEditor.js.php"></script>
<script language=javascript>
var editTextRange;
function Check_Form_Validator()
{
	if (!CheckNotNull(Check_Form.questionName, "题目文字")) {return false;}
	if (!CheckNotNull(Check_Form.maxLength, "文件选择框长度")) {return false;}
	if (!CheckNumber(Check_Form.maxLength, "文件选择框长度",2,80)) {return false;}
	if (!CheckNotNull(Check_Form.maxSize, "上传文件的最大大小")) {return false;}
	if (!CheckNumber(Check_Form.maxSize, "上传文件的最大大小",1,{postMaxSize})) {return false;}
	if (!CheckNotNull(Check_Form.allowType, "上传文件的允许类型")) {return false;}
	if (!Check_File_Type(Check_Form.allowType, "上传文件的允许类型")) {return false;}
	if (!CheckRadioNoClick(Check_Form.hiddenVarName, "安卓端的设置")) {return false;}
}
function Check_File_Type(objField, strText)
{
    var objValue = Trim(objField.value);
	var strErr = "“" + strText + "”不是正确的文件扩展名组合！";
	var reg=/^(.\w{3,4}\|){1,}$/;
	if (!reg.exec(objValue)) {
        objField.focus();
		$.notification(strErr);
		return false;
	}
	return true;
}
</script>
<meta content="mshtml 6.00.3790.0" name=generator></head>
<body oncontextmenu="return false" >
<form style="margin:0px" method="post" action="" name="Check_Form" enctype="multipart/form-data" onsubmit="return Check_Form_Validator()">
  <table class=datatable style="line-height: 150%;border-collapse:collapse;" cellspacing=0 cellpadding=0 bordercolor=#b5cfd9 border=1 width=100%>
   <div class=position>位置：&nbsp; 我的问卷 &raquo; 编辑问卷问题 &raquo; 文件上传题</div>
   <tr><td bgcolor="#e9e9e9"><b>编辑问卷问题</b></td></tr>
   <tr><td>&nbsp;<span style="font-size:14px;font-weight:bold;">文件上传题</span>&nbsp;
     <a onmouseover="this.T_WIDTH=446;this.T_PADDING=0;this.T_BGCOLOR='#ffffff'; return escape('<img src=../Images/Example/example_upload.jpg width=446 align=center>')" href="javascript:void(0);"><font color=red>图例</font></a></td></tr>
   <tr bgcolor="#f5f5f5" height=25><td><b>&nbsp;题目文字</b>&nbsp;<img src="../Images/info.gif" border=0>
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="javascript:{var textEditor = document.getElementById('questionName');textEditor.focus();editTextRange = textEditor.document.selection.createRange();showPopWin('../System/ShowInsertImage.php', 590, 250, null, null,'插入图片或视频');}"><font color=red><b>插入图片或视频</font></b></a><img src="../Images/list_menu_arrow.gif" border=0>
	 &nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onclick="javascript:{var textEditor = document.getElementById('questionName');textEditor.focus();editTextRange = textEditor.document.selection.createRange();showPopWin('../System/ShowInsertAnswer.php?&surveyID={surveyID}&orderByID={orderByID}', 700, 160, null, null,'插入前述问题的答案');}"><font color=red><b>插入前述问题答案</font></b></a><img src="../Images/list_menu_arrow.gif" border=0>
   </td></tr>
   <tr><td>
	  <a href="javascript:void(0)" onclick="doMyExecCommand('Bold')"><img src="../Images/Editor/bold.gif" WIDTH="20" HEIGHT="20" title="Bold"></a>
	  <a href="javascript:void(0)" onclick="doMyExecCommand('Italic')"><img src="../Images/Editor/italic.gif" WIDTH="20" HEIGHT="20" title="Italic"></a>
	  <a href="javascript:void(0)" onclick="doMyExecCommand('Underline')"><img src="../Images/Editor/underline.gif" WIDTH="20" HEIGHT="20" title="Underline"></a>
	  <img src="../Images/Editor/separator.gif" WIDTH="5" HEIGHT="20">
 	  <select onchange="doMySelectClick('FontSize',this);" style="width: 75px;margin-bottom:4px;">
          <option>字体大小</option>
          <option VALUE="12">12</option>
          <option VALUE="14">14</option>
          <option VALUE="16">16</option>
          <option VALUE="18">18</option>
          <option VALUE="20">20</option>
          <option VALUE="22">22</option>
          <option VALUE="24">24</option>
          <option VALUE="30">30</option>
          <option VALUE="36">36</option>
      </select>
      <select name="ForeColor" onChange="doMyFormat('ForeColor',this[this.selectedIndex].style.color); this.selectedIndex=0" style="width: 80px;margin-bottom:4px;">
		  <option selected>文字颜色
		  <option style="BACKGROUND: #000000; Color: #000000">Black</option>
		  <option style="BACKGROUND: #FFFFFF; Color: #FFFFFF">White</option>
		  <option style="BACKGROUND: #0000FF; Color: #0000FF">Blue 1</option>
		  <option style="BACKGROUND: #2222FF; Color: #2222FF">Blue 2</option>
		  <option style="BACKGROUND: #4444FF; Color: #4444FF">Blue 3</option>
		  <option style="BACKGROUND: #6666FF; Color: #6666FF">Blue 4</option>
		  <option style="BACKGROUND: #333333; Color: #333333">Gray 1</option>
		  <option style="BACKGROUND: #666666; Color: #666666">Gray 2</option>
		  <option style="BACKGROUND: #999999; Color: #999999">Gray 3</option>
		  <option style="BACKGROUND: #EEEEEE; Color: #EEEEEE">Gray 4</option>
		  <option style="BACKGROUND: #004000; Color: #004000">Green 1</option>
		  <option style="BACKGROUND: #006000; Color: #006000">Green 2</option>
		  <option style="BACKGROUND: #008000; Color: #008000">Green 3</option>
		  <option style="BACKGROUND: #00A000; Color: #00A000">Green 4</option>
		  <option style="BACKGROUND: #FF0000; Color: #FF0000">Red 1</option>
		  <option style="BACKGROUND: #FF2222; Color: #FF2222">Red 2</option>
		  <option style="BACKGROUND: #FF4444; Color: #FF4444">Red 3</option>
		  <option style="BACKGROUND: #FF6666; Color: #FF6666">Red 4</option>
		  <option style="BACKGROUND: #FFFF00; Color: #FFFF00">Yellow 1</option>
		  <option style="BACKGROUND: #FFFF33; Color: #FFFF33">Yellow 2</option>
		  <option style="BACKGROUND: #FFFF66; Color: #FFFF66">Yellow 3</option>
		  <option style="BACKGROUND: #FFFF99; Color: #FFFF99">Yellow 4</option>
	  </select>
	  <select name="fontbackground" onChange="doMyFormat('BackColor',this[this.selectedIndex].style.color); this.selectedIndex=0" style="width: 80px;margin-bottom:4px;">
		  <option selected>文字底色</option>
		  <option style="BACKGROUND: #000000; Color: #000000">Black</option>
		  <option style="BACKGROUND: #FFFFFF; Color: #FFFFFF">White</option>
		  <option style="BACKGROUND: #0000FF; Color: #0000FF">Blue 1</option>
		  <option style="BACKGROUND: #2222FF; Color: #2222FF">Blue 2</option>
		  <option style="BACKGROUND: #4444FF; Color: #4444FF">Blue 3</option>
		  <option style="BACKGROUND: #6666FF; Color: #6666FF">Blue 4</option>
		  <option style="BACKGROUND: #333333; Color: #333333">Gray 1</option>
		  <option style="BACKGROUND: #666666; Color: #666666">Gray 2</option>
		  <option style="BACKGROUND: #999999; Color: #999999">Gray 3</option>
		  <option style="BACKGROUND: #EEEEEE; Color: #EEEEEE">Gray 4</option>
		  <option style="BACKGROUND: #004000; Color: #004000">Green 1</option>
		  <option style="BACKGROUND: #006000; Color: #006000">Green 2</option>
		  <option style="BACKGROUND: #008000; Color: #008000">Green 3</option>
		  <option style="BACKGROUND: #00A000; Color: #00A000">Green 4</option>
		  <option style="BACKGROUND: #FF0000; Color: #FF0000">Red 1</option>
		  <option style="BACKGROUND: #FF2222; Color: #FF2222">Red 2</option>
		  <option style="BACKGROUND: #FF4444; Color: #FF4444">Red 3</option>
		  <option style="BACKGROUND: #FF6666; Color: #FF6666">Red 4</option>
		  <option style="BACKGROUND: #FFFF00; Color: #FFFF00">Yellow 1</option>
		  <option style="BACKGROUND: #FFFF33; Color: #FFFF33">Yellow 2</option>
		  <option style="BACKGROUND: #FFFF66; Color: #FFFF66">Yellow 3</option>
		  <option style="BACKGROUND: #FFFF99; Color: #FFFF99">Yellow 4</option>
	  </select>	
    <textarea rows=5 cols=130 name="questionName" id="questionName" tabIndex=1>{questionName}</textarea>  <a href="javascript:resizeTextHeight('questionName',1);"><img src="../Images/jia.gif"></a><a href="javascript:resizeTextHeight('questionName',-1);"><img src="../Images/jian.gif"></a>
   </td></tr>
   <tr bgcolor="#f5f5f5" height=25><td>&nbsp;有关问题的说明或问题回复提示&nbsp;<img src="../Images/info.gif" border=0></td></tr>
   <tr><td><textarea rows=3 cols=130 name="questionNotes" id="questionNotes" tabIndex=1>{questionNotes}</textarea>  <a href="javascript:resizeTextHeight('questionNotes',1);"><img src="../Images/jia.gif"></a><a href="javascript:resizeTextHeight('questionNotes',-1);"><img src="../Images/jian.gif"></a></td></tr>
   <tr bgcolor="#f5f5f5" height=25><td><b>&nbsp;显示设置</b>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
   <tr><td>
 	    &nbsp;&nbsp;&nbsp;文件选择框长度&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" value="{maxLength}" name="maxLength" size=6> <br/>
   </td></tr>
   <tr bgcolor="#f5f5f5" height=25><td><b>&nbsp;控制设置</b>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
   <tr><td>
	    &nbsp;&nbsp;<input type="checkbox" value="1" name="isRequired" {isRequired}> 此题为必答题 <br/>
		&nbsp;&nbsp;&nbsp;<b>PC端：</b><br/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上传文件的最大大小 <input type="text" value="{maxSize}" name="maxSize" size=4> M &nbsp;<a onmouseover="this.T_WIDTH=460;this.T_PADDING=0;this.T_BGCOLOR='#ffffff'; return escape('&nbsp;上传文件的最大大小取决于PHP.ini配置文件中的如下设置：<br>&nbsp;&nbsp;upload_max_filesize=2M；允许上传文件大小的最大值。默认为2M<br>&nbsp;&nbsp;post_max_size =8M；指通过表单POST给PHP的所能接收的最大值。默认为8M<br>&nbsp;&nbsp;max_execution_time=30；每个PHP页面运行的最大时间值(秒)。默认为30秒<br>&nbsp;&nbsp;max_input_time=60；每个PHP页面接收数据所需的最大时间。默认为60秒<br>&nbsp;&nbsp;memory_limit=8M；每个PHP页面所吃掉的最大内存。默认为8M')" href="javascript:void(0);"><font color=red><b>?</font></a></b> <br/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上传文件的允许类型 <input type="text" value="{allowType}" name="allowType" size=80>  (注意格式与结束标记)<br/>
		&nbsp;&nbsp;&nbsp;<b>安卓端：</b><br/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value=1 name="hiddenVarName[]" id="hiddenVarName" {hiddenVarName_1}>允许拍照直接上传<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value=2 name="hiddenVarName[]" id="hiddenVarName" {hiddenVarName_2}>允许录像直接上传(注意会与数据录入员的离线安卓端的全程录音功能相互冲突，系统将会使用拍照替代)<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value=3 name="hiddenVarName[]" id="hiddenVarName" {hiddenVarName_3}>允许录音直接上传(注意会与数据录入员的离线安卓端的全程录音功能相互冲突，系统将会使用拍照替代)<br/>
		</td>
	  </td>
   </tr></table><table width=100%>
   <tr> 
  	 <td height="15">
         <input name="surveyID" type="hidden" id="surveyID" value="{surveyID}"> 
         <input name="questionID" type="hidden" id="questionID" value="{questionID}"> 
         <input name="orderByID" type="hidden" id="orderByID" value="{orderByID}"> 
         <input class=inputsubmit name="AddUploadSubmit" type=submit id="AddUploadSubmit" value="保存，下一个" > 
         <input class=inputsubmit name="AddUploadOver" type=submit id="AddUploadOver" value="保存，结束" > 
         <input class=inputsubmit type="button" name="close" value="  关闭  " onClick="javascript:parent.hidePopWin();">
		</span>
      </td>
    </tr>
  </form>
 </table>
 <script type="text/javascript">initInputHighlightScript();</script> 
 <script language=javascript src="../JS/Example.js.php"></script>
</body></html>
