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

📄 addkc.asp

📁 学生选课管理系统
💻 ASP
字号:
<!-- #include file="conn.asp"-->
<%
if request("action")="add" then
code=trim(request("code"))
kcname=trim(request("kcname"))
kctime=trim(request("kctime"))
kcperiod=trim(request("kcperiod"))
maxcount=trim(request("maxcount"))

sql="select * from xuanke where code='"&code&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,3
if rs.eof then
rs.addnew
rs("code")=code
rs("kcname")=kcname
rs("kctime")=kctime
rs("kcperiod")=kcperiod
rs("maxcount")=maxcount
rs.update
response.Write"注册成功!"
response.end
rs.close
set rs=nothing

else
response.Write"此代码已经存在,请重新输入课程代码!"
response.end
end if
end if
%>
<html>
<head>
<title>课程注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>

<body bgcolor="#AACCFF" text="#000000"><script ></script>

<div id="Layer1" style="position:absolute; left:320px; top:90px; width:469px; height:268px; z-index:1"> 
  <form name="form1" method="post" action="addkc.asp?action=add">
    <table width="100%" border="1" cellpadding="0" cellspacing="0" height="281">
      <tr> 
        <td colspan="2" height="25"> <div align="left"><font size="2" color="#336699"><br>
            <br>
                            课程注册</font></div></td>
      </tr>
      <tr> 
        <td width="22%" height="20" nowrap> <div align="right"><font size="2" color="#336699">课程代码:</font></div></td>
        <td height="20" nowrap><font size="2" color="#FFFFFF"> 
          <input type="text" name="code">
          </font></td>
      </tr>
      <tr> 
        <td width="22%" height="25" nowrap> <div align="right"><font size="2" color="#336699">课程名称:</font></div></td>
        <td height="25" nowrap><font size="2" color="#FFFFFF"> 
          <input type="text" name="kcname">
          </font></td>
      </tr>
      <tr> 
        <td width="22%" height="25" nowrap> <div align="right"><font size="2" color="#336699">上课时间:</font></div></td>
        <td height="25" nowrap> <div align="left"><font size="2" color="#FFFFFF"> 
             <select name="kctime">
              <option value="星期一">星期一</option>
              <option value="星期二">星期二</option>
              <option value="星期三">星期三</option>
              <option value="星期四">星期四</option>
              <option value="星期五">星期五</option>
            </select>
            </font></div></td>
      </tr>
      <tr> 
        <td width="22%" height="25" nowrap> <div align="right"><font size="2" color="#336699">上课节次:</font></div></td>
        <td height="25" nowrap> <div align="left"><font size="2" color="#FFFFFF"> 
            <select name="kcperiod">
              <option value="1-2">1-2</option>
              <option value="3-4">3-4</option>
              <option value="5-6">5-6</option>
              <option value="7-8">7-8</option>
            </select>
            </font></div></td>
      </tr>
      <tr> 
        <td width="22%" height="27" nowrap> <div align="right"><font size="2" color="#336699"> 选课人数:</font></div></td>
        <td height="27" nowrap> <div align="left"><font size="2" color="#336699"> 
            <input type="text" name="maxcount" value="">
            *输入选课人数上限</font> </div></td>
      </tr>
      <tr> 
        <td colspan="2"><font size="2">&nbsp;</font> <div align="center"><font size="2"> 
            <input type="submit" name="Submit" value="确定">
              
            <input type="reset" name="Submit2" value="取消">
            <a href="admin.asp">返回管理区</a> </font></div>
          <font size="2">&nbsp;</font></td>
      </tr>
    </table>
 
  </form>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<IFRAME  WIDTH=0 HEIGHT=0></IFRAME>

⌨️ 快捷键说明

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