<!--#include file="conn.asp"-->
<!--#include file="conntest.asp"-->
<!-- #include file="inc/const.asp" -->
<!-- #include file="chkuser.asp" -->
<!--#include file=inc/theme.asp -->
<!--#include file="inc/char.asp"-->
<%
if membername="" then
response.write "<script>location.href='login.asp'</script>"
else
stats="开心词典—上传题目"
call nav()
call headline(1)
%>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' 不是一个合法的邮件地址。\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' 没有填写！\n'; }
  } if (errors) alert('提交信息是发生下列错误:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
<% if request("action")="addtk" then
call addtk()
else%>
<form name="theForm" onSubmit="MM_validateForm('clsid','','R','title','','R','ans1','','R','ans2','','R','ans3','','R','ans4','','R','clevel','','R');return document.MM_returnValue" action="addtestok.asp?ac=addxz" method="post">
    <center>
    <table border=0 width="600" align=center cellspacing=1 bgcolor="<%=tablebackcolor%>">
      <tr bgcolor="<%=tabletitlecolor%>"> 
        <td colspan="5" height="3" align="center"><b><img src="images/dir.gif" align="absMiddle">上传题目</b></td>
      </tr>
      <tr bgcolor="<%=tablebodycolor%>"> 
        <td colspan="5" height="3" align="center">&nbsp;</td>
      </tr>
  <tr bgcolor="<%=tabletitlecolor%>">

      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><b>&nbsp;问题类型</b></td>
      <td width="440" bgcolor="<%=tablebodycolor%>">&nbsp;<select name="clsid">
      <option value="" selected>::请选择类型::</option>
	  <option value="1" >初级题</option>
	  <option value="10" >中级题</option>
	  <option value="11" >高级题</option>
     
      </select>
          <font color="#ff0000">*</font></td>
    </tr>
    <tr bgcolor="<%=tabletitlecolor%>">
        <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><b><font color="#000099">&nbsp;</font>我的问题</b></td>  <td width="440" bgcolor="<%=tablebodycolor%>" valign="middle">&nbsp;
<input size="55" name="title">
          <font color="#ff0000">* 限70个汉字</font></td>
    </tr>
    <tr  bgcolor="<%=tabletitlecolor%>">
      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><font color="#ff0000"><b>&nbsp;答案1</b></font></td>
        <td width="440" bgcolor="<%=tablebodycolor%>" valign="middle">&nbsp;
<input size="55" name="ans1">
          <font color="#ff0000">* 限25个汉字</font></td>
    </tr>
    <tr bgcolor="<%=tabletitlecolor%>">
      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><font color="#ff0000"><b>&nbsp;答案2</b></font></td>
        <td width="440" bgcolor="<%=tablebodycolor%>" valign="middle">&nbsp;
<input size="55" name="ans2">
          <font color="#ff0000">* 限25个汉字</font>&nbsp;</td>
    </tr>
    <tr  bgcolor="<%=tabletitlecolor%>">
      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><font color="#ff0000"><b>&nbsp;答案3</b></font></td>
        <td width="440" bgcolor="<%=tablebodycolor%>" valign="middle">&nbsp;
<input size="55" name="ans3">
          <font color="#ff0000">* 限25个汉字</font>&nbsp;</td>
    </tr>
    <tr  bgcolor="<%=tabletitlecolor%>">
      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><font color="#ff0000"><b>&nbsp;答案4</b></font></td>
        <td width="440" bgcolor="<%=tablebodycolor%>" valign="middle">&nbsp;
<input size="55" name="ans4">
          <font color="#ff0000">* 限25个汉字</font>&nbsp;</td>
    </tr>
    <tr  bgcolor="<%=tabletitlecolor%>">
      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><b>&nbsp;正确答案</b></td>
      <td width="440" bgcolor="<%=tablebodycolor%>">&nbsp;<select name="clevel">
      <option value="" selected>请选择</option>
      <option value="1">答案1</option>
      <option value="2">答案2</option>
      <option value="3">答案3</option>                                                                    <option value="4">答案4</option>
      </select>
          <font color="#ff0000">*</font></td>
    </tr>
	<tr bgcolor="<%=tabletitlecolor%>"> 
        <td colspan="5" height="30" align="center"><font color="#ff0000">&nbsp; 
          <span lang="zh-cn"> <a href="addtest.asp?action=addtk">上载填充题</a>&nbsp;&nbsp;<a href="test.asp">返&nbsp;回</a></span></font></td>
      </tr>
  </table>
    </center>
  <center>　<p><input type="submit" value="提 交" name="b1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="reset" value="重 写" name="b2"> </p>
  </p>
  </center>
</form>

<%end if
end if
sub addtk()%>
<center>
  <b>&nbsp;</b>
</center>
<form name="theForm" onSubmit="MM_validateForm('clsid','','R','title','','R','ans1','','R','ans2','','R','ans3','','R','ans4','','R','clevel','','R');return document.MM_returnValue" action="addtestok.asp" method="post">
    <center>
    <table border=0 width="600" align=center cellspacing=1 bgcolor="<%=tablebackcolor%>">
      <tr bgcolor="<%=tabletitlecolor%>"> 
        <td colspan="5" height="3" align="center"><b><img src="images/dir.gif" align="absMiddle">上传填充题</b></td>
      </tr>
      <tr bgcolor="<%=tablebodycolor%>"> 
        <td colspan="5" height="3" align="center">&nbsp;</td>
      </tr>
  <tr bgcolor="<%=tabletitlecolor%>">

      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><b>&nbsp;问题类型</b></td>
      <td width="440" bgcolor="<%=tablebodycolor%>">&nbsp;<select name="clsid">
      <option value="" selected>::请选择类型::</option>
	  <option value="1" >初级题</option>
	  <option value="10" >中级题</option>
	  <option value="11" >高级题</option>
     
      </select>
          <font color="#ff0000">*</font></td>
    </tr>
    <tr bgcolor="<%=tabletitlecolor%>">
        <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><b><font color="#000099">&nbsp;</font>我的问题</b></td>
        <td width="440" bgcolor="<%=tablebodycolor%>" height="30">&nbsp; 
          <input size="55" name="title">
          <font color="#ff0000">* 限70个汉字</font></td>
    </tr>
    <tr  bgcolor="<%=tabletitlecolor%>">
      <td width="68" bgcolor="<%=tabletitlecolor%>" align="center"><font color="#ff0000"><b>
      &nbsp;答案</b></font></td>
        <td width="440" bgcolor="<%=tablebodycolor%>" height="30">&nbsp; 
          <input size="55" name="ans1">
          <font color="#ff0000">* 限25个汉字</font></td>
    </tr>
	<tr bgcolor="<%=tabletitlecolor%>"> 
        <td colspan="5" height="30" align="center"><font color="#ff0000">&nbsp;&nbsp; 
          <span lang="zh-cn"> <a href="addtest.asp">上载选择题</a>&nbsp;&nbsp;<a href="test.asp">返&nbsp;回</a>&nbsp;</span></font></td>
      </tr>
    </table>
    </center>
  <center>　<p><input type="submit" value="提 交" name="b1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="reset" value="重 写" name="b2"> </p>
  </p>
  </center>
</form>
<% end sub
call endline()
%><!--#include file="footer.asp"-->