⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admindatabaseadd.asp

📁 该系统测试用户信息主要由数据库直接输入
💻 ASP
📖 第 1 页 / 共 4 页
字号:
<!--#include file="conn.asp"-->
<%
  if session("adminname")="" then
  response.redirect "relogin.asp"
  end if
  
subjectview=request("subjectview")
typeadd=request("typeadd")
filename=request("filename")
chapter=request("chapter")
 
 kao=request("kao")
 
 if kao="" then 
 kao=0
 end if
%><html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系统管理 | 题库管理 | 添加题目</title>
<script language="javascript">
function saveit(myform)
{
  if (confirm("是否保存所有修改?"))
  {
    myform.action="adminsubjectsaveedit.asp";
    myform.submit();
  }
}

function savephoto1(myform)
{
    myform.action="upfile.asp";
}

function delit(myform)
{
  if (confirm("将删除此题库下的所有数据?"))
  {
    myform.action="adminsubjectdel.asp";
    myform.submit();
  }
}
function submitit()
{

         myform.action=" admindatabasesave.asp";
        return true;
 
}
</script>
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<% 


sql="select * from tbkc where kcid="&subjectview

      set rs=server.createobject("adodb.recordset")
      rs.open sql,conn,3,2


%>
<body>

<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" id="AutoNumber2" width="100%" height="25">
  <tr>
    <td width="100%" bgcolor="#FFFFFF">当前位置: 系统管理  &gt;
    <a href="admindatabase.asp">题库管理</a> &gt; 添加题目</td>
  </tr>
</table>
<form name="addform" method="POST" action="admindatabasesave.asp"    enctype="multipart/form-data" >
<input  type="hidden"  value="<%=subjectview%>" name="subjectview" size="20"  >
 <input type="hidden"  value="<%=typeadd%>" name="typeadd" size="20" >
  <input type="hidden"  value="<%=filename%>" name="filename" size="20" >
 <%
if typeadd="1" then
%><p></p>
      
      
<center>

  <%=request("str")%><table border="1" cellspacing="1" style="border-collapse: collapse" bordercolor="#799AE1" width="521" id="AutoNumber3" height="340">
    <tr>
      <td width="195" align="center" bgcolor="#799AE1" height="16" bordercolor="#799AE1">
      <b><font color="#FFFFFF">当前题库</font></b></td>
      <td width="228" height="16" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <input type="text" name="subjectview1" size="40" value="<%=rs("kcm")%>"  readonly class="inputnormal"></td>
      <td width="196" colspan="2" height="16" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
        <tr>
          <td width="20%" height="2">&nbsp;
          <input type="radio" name="kao" value="1" <%if kao="1"  then %> checked <%end if %>></td>
          <td width="34%" height="2">考 试</td>
          <td width="13%" height="2">
          <input type="radio" name="kao"  value="0" <%if kao="0"  then %> checked <%end if %>></td>
          <td width="33%" height="2">练 习</td>
        </tr>
      </table>
      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#799AE1" width="195" height="30" bordercolor="#799AE1">
      <b><font color="#FFFFFF">类<span lang="en-us">&nbsp;&nbsp;&nbsp;
      </span>型</font></b></td>
      <td width="449" colspan="3" height="30" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber4" width="103">
        <tr>
          <td width="23">
           </td>
          <td width="80">名词解释</td>
        </tr>
      </table>
      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#799AE1" width="195" height="54" bordercolor="#799AE1">
      <b><font color="#FFFFFF">图&nbsp;&nbsp;&nbsp; 
      片</font></b></td>
      <td width="449" colspan="3" height="54" bgcolor="#FFFDE8" bordercolor="#799AE1">
  


<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="425">
  <tr>
      <td align="center" id="upid" height="47" width="418">
  <input type="file" name="file1" size="30"  class="inputnormalleft" ><span lang="en-us">&nbsp;&nbsp;&nbsp;
  </span><input type="submit" name="Submit" value="提 交" class="s02" onclick="savephoto1(addform)" ></td>
    </tr>
    <%if filename<>"" then %>
  <tr>
      <td align="center" id="upid" height="69" width="418">
       
     <img border="0" src="examimage/<%=filename%>"><br><%=filename%></td>
    </tr><%end if %>
</table>
  


</td>
    </tr>
    <tr>
      <td align="center" bgcolor="#799AE1" width="195" height="54" bordercolor="#799AE1">
      <b><font color="#FFFFFF">试&nbsp;&nbsp;&nbsp; 
      题</font></b></td>
      <td width="449" colspan="3" height="54" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <textarea rows="4" name="question" cols="60" onblur="this.className='inputnormalleft'" onfocus="this.className='inputedit';this.select()" class="inputnormalleft"></textarea></td>
    </tr>
    <tr>
      <td align="center" height="54" bgcolor="#799AE1" width="195" bordercolor="#799AE1">
      <b><font color="#FFFFFF">答&nbsp;&nbsp;&nbsp; 案</font></b></td>
      <td height="54" width="449" colspan="3" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <textarea rows="4" name="answer" cols="60" onblur="this.className='inputnormalleft'"  onfocus="this.className='inputedit';this.select()" class="inputnormalleft"></textarea></td>
    </tr>
    <tr>
      <td align="center" height="24" bgcolor="#799AE1" width="195" bordercolor="#799AE1">
      <b><font color="#FFFFFF">章&nbsp;<span lang="en-us"> </span>&nbsp; 
      节</font></b></td>
      <td height="24" width="226" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <select size="1" name="chapter"><% 

	  	 sqlch="select * from tbchapter  where kcid="&subjectview&" order by chapter"
      set rsch=server.createobject("adodb.recordset")
      rsch.open sqlch,conn,3,2	
       
       do while not rsch.eof %>
      <option value="<%=rsch("chapter")%>" <%if rsch("chapter")=int(chapter)  then %>selected <%end if %>>第<%=rsch("chapter")%>章</option>
      <% rsch.movenext
      loop
    
       %></select></td>
      <td height="24" width="46" bgcolor="#799AE1" bordercolor="#799AE1">
      <p align="center"><b><font color="#FFFFFF">难&nbsp; 度</font></b></td>
      <td height="24" width="114" bgcolor="#FFFDE8" bordercolor="#799AE1">
      &nbsp;<select size="1" name="level">
      <option selected value="1">容易</option>
      <option value="2">中等</option>
      <option value="3">较难</option>
      <option value="4">最难</option>
      </select></td>
    </tr>
    <tr>
      <td align="center" height="32" colspan="4" width="585">
      <div align="right"> 

        <input type="submit" value="保存" name="B1" class="s02">
        <span lang="en-us">&nbsp;&nbsp; </span>
        <input type="reset" value="重置" name="B2" class="s02"> <span lang="en-us">&nbsp;&nbsp;
        </span>  <INPUT class="s02" onclick="window.location='admindatabase.asp?subjectview=<%=subjectview%>&typeadd=<%=typeadd%>';" type=button value=返回 name=close>&nbsp;
      </div>
      </td>
    </tr>
  </table>
 </center>
<%
end if
if request("typeadd")="2" then
%><p></p><center>
 
  <%=request("str")%><table border="1" cellspacing="1" style="border-collapse: collapse" bordercolor="#799AE1" width="519" id="AutoNumber3" height="332">
    <tr>
      <td width="145" align="center" bgcolor="#799AE1" height="20" bordercolor="#799AE1">
      <b><font color="#FFFFFF">当前题库</font></b></td>
      <td width="246" height="20" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <input type="text" name="subjectview1" size="40" value="<%=rs("kcm")%>" readonly class="inputnormal">
      </td>
      <td width="188" colspan="2" height="20" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
        <tr>
          <td width="20%" height="2">&nbsp;
          <input type="radio" name="kao" value="1" <%if kao="1"  then %> checked <%end if %>></td>
          <td width="34%" height="2">考 试</td>
          <td width="13%" height="2">
          <input type="radio" name="kao"  value="0" <%if kao="0"  then %> checked <%end if %>></td>
          <td width="33%" height="2">练 习</td>
        </tr>
      </table>
      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#799AE1" width="145" height="25" bordercolor="#799AE1">
      <b><font color="#FFFFFF">类<span lang="en-us">&nbsp;&nbsp;&nbsp;
      </span>型</font></b></td>
      <td width="445" colspan="3" height="25" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber4">
        <tr>
          <td width="20"> </td>
          <td width="82">填空题</td>
          </tr>
      </table>
      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#799AE1" width="195" height="54" bordercolor="#799AE1">
      <b><font color="#FFFFFF">图&nbsp;&nbsp;&nbsp; 
      片</font></b></td>
      <td width="449" colspan="3" height="54" bgcolor="#FFFDE8" bordercolor="#799AE1">
  


<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="425">
  <tr>
      <td align="center" id="upid" height="47" width="418">
  <input type="file" name="file1" size="30"  class="inputnormalleft" ><span lang="en-us">&nbsp;&nbsp;&nbsp;
  </span><input type="submit" name="Submit" value="提 交" class="s02" onclick="savephoto1(addform)" ></td>
    </tr>
    <%if filename<>"" then %>
  <tr>
      <td align="center" id="upid" height="69" width="418">
       
     <img border="0" src="examimage/<%=filename%>"><br><%=filename%></td>
    </tr><%end if %>
</table>
  


</td>
    </tr>
    <tr>
      <td align="center" bgcolor="#799AE1" width="145" height="54" bordercolor="#799AE1">
      <b><font color="#FFFFFF">试&nbsp;&nbsp;&nbsp; 题</font></b></td>
      <td width="445" colspan="3" height="54" bgcolor="#FFFDE8" bordercolor="#799AE1">
      <textarea rows="4" name="question" cols="60" onblur="this.className='inputnormalleft'"  onfocus="this.className='inputedit';this.select()" class="inputnormalleft"></textarea>
      </td>
    </tr>
    <tr>
      <td align="center" height="54" bgcolor="#799AE1" width="145" bordercolor="#799AE1">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -