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

📄 guanli.asp

📁 用户界面 一次作业
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="conn.asp" -->
<%
if Session("name")="" then
%>
<script LANGUAGE='javascript'>
alert("对不起,你还没有登陆!");
</script>
<meta HTTP-EQUIV=REFRESH CONTENT='1; URL=login.asp'>
<%
else
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</head>
<body>
<LINK href="images/csssf.css" type=text/css rel=stylesheet>
<table width=100% border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td height="30" colspan="2"><%if Request.QueryString("ccnf")="kc" then%>
        <table width="320" border="0">
          <tr>
            <th scope="row">&nbsp;</th>
            <td><a href="guanli.asp?lastnf=tjkc&ccnf=kc"><img src="images/tjkc.gif" border="0"></a></td>
            <td><a href="guanli.asp?lastnf=kcwh&ccnf=kc"><img src="images/kcwh.gif" border="0"></a></td>
            <td><a href="index.asp" target="_parent"><img src="images/fhsy.gif" border="0"></a></td>
          </tr>
        </table>
      <%end if

if Request.QueryString("ccnf")="zy" then%>
        <table width="320" border="0">
          <tr>
            <th scope="row">&nbsp;</th>
            <td><a href="guanli.asp?lastnf=tjzy&ccnf=zy"><img src="images/tjzy.gif" border="0"></a></td>
            <td><a href="guanli.asp?lastnf=zywh&ccnf=zy"><img src="images/zywh.gif" border="0"></a></td>
            <td><a href="index.asp" target="_parent"><img src="images/fhsy.gif" border="0"></a></td>
          </tr>
        </table>
      <%end if

if Request.QueryString("ccnf")="bj" then%>
        <table width="320" border="0">
          <tr>
            <th scope="row">&nbsp;</th>
            <td><a href="guanli.asp?ccnf=bj"><img src="images/tjbj.gif" border="0"></a></td>
            <td><a href="guanli.asp?ccnf=bj"><img src="images/bjwh.gif" border="0"></a></td>
            <td><a href="index.asp" target="_parent"><img src="images/fhsy.gif" border="0"></a></td>
          </tr>
        </table>
      <%end if

if Request.QueryString("ccnf")="cj" then%>
        <table width="320" border="0">
          <tr>
            <th scope="row">&nbsp;</th>
            <td><a href="guanli.asp?ccnf=cj"><img src="images/tjcj.gif" border="0"></a></td>
            <td><a href="guanli.asp?ccnf=cj"><img src="images/cjwh.gif" border="0"></a></td>
            <td><a href="index.asp" target="_parent"><img src="images/fhsy.gif" border="0"></a></td>
          </tr>
        </table>
      <%end if

if Request.QueryString("ccnf")="yh" then%>
        <table width="320" border="0">
          <tr>
            <th scope="row">&nbsp;</th>
            <td><a href="guanli.asp?ccnf=yh"><img src="images/tjyh.gif" border="0"></a></td>
            <td><a href="guanli.asp?ccnf=yh"><img src="images/yhwh.gif" border="0"></a></td>
            <td><a href="index.asp" target="_parent"><img src="images/fhsy.gif" border="0"></a></td>
          </tr>
        </table>
      <%end if%>    </td>
  </tr>
 
<% 
  if (Request.QueryString("lastnf")="" and Request.QueryString("ccnf")="")then
%>
        <tr><td width="37%" height=100% valign="top">
	  最新动态:
	      <%
	  sql1="select * from news where bknum=2 or bknum=1"
		set rs1=server.CreateObject("ADODB.RECORDSET")
		rs1.open sql1,conn_sql,0,1
		DO WHILE NOT rs1.eof
	  %>
	  <table width="359" border="0">
        <tr>
          <td width="51" align="right" scope="row">&nbsp;</td>
          <td width="36" align="left" scope="row"><img src="<%=rs1("tupian")%>"></td>
          <td width="241" align="left" scope="row"><a href="index.asp" target="_parent"><%=rs1("biaoti")%></a></td>
          <td width="13" align="left" scope="row">&nbsp;</td>
        </tr>
      </table>
	  <%
		rs1.movenext
		loop
		rs1.close
		set rs1=nothing
	  %>
	  </td>
	      <td width="63%" valign="top"><table width="150" border="0">
              <tr>
                <th scope="row">&nbsp;</th>
              </tr>
              <tr>
                <th scope="row"><img src="images/05.gif" width="150" height="200"></th>
              </tr>
            </table></td>
      </tr>
    <%
	end if 
 
  	if (Request.QueryString("lastnf")="" and Request.QueryString("ccnf")="kc")then
	%>
      <tr><td height=100% colspan="2" valign="top">
	  <%
	  sql1="select * from kecheng"
		set rs1=server.CreateObject("ADODB.RECORDSET")
		rs1.open sql1,conn_sql,0,2
		DO WHILE NOT rs1.eof
	  %>
	  <table width="491" border="0">
        <tr>
          <td colspan="8" align="right" scope="row" background="images/jia.GIF">&nbsp;</td>
        </tr>
        <tr>
          <td width="69" align="right" scope="row">课程编号:</td>
          <td width="24" align="left" scope="row"><%=rs1("cnum")%>号</td>
          <td width="53" align="right" scope="row">课程名:</td>
          <td width="65" align="left" scope="row"><%=rs1("cname")%></td>
          <td width="68" align="right" scope="row">任课教师:</td>
          <td width="47" align="left" scope="row"><%=rs1("cteacher")%></td>
          <td width="61" align="right" scope="row">学分:</td>
          <td width="70" align="left" scope="row"><%=rs1("cxuefen")%>分</td>
        </tr>
      </table>
	  <%
		rs1.movenext
		loop
		rs1.close
		set rs1=nothing
	  %>
	  </td>
	  </tr>
    <%
	end if
    
	if Request.QueryString("lastnf")="tjkc" then%>
	<tr>
    <form action="check.asp">
      <input type="hidden" name="check" value="addkc">
      <td height=100% colspan="2" valign="top"><table width="491" border="0">
        <tr bgcolor="#0033FF">
          <td colspan="4" align="right" scope="row">&nbsp;</td>
          </tr>
        <tr>
          <td align="right" scope="row">&nbsp;</td>
          <td>&nbsp;</td>
          <td align="right">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="70" align="right" scope="row">课程名:</td>
          <td width="149"><input type="text" name="cname" size="17"></td>
          <td width="133" align="right">任课教师:</td>
          <td width="121"><input type="text" name="cteacher" size="17"></td>
        </tr>
        <tr>
          <td align="right" scope="row">课时:</td>
          <td><input type="text" name="ctime" size="17"></td>
          <td align="right">学分:</td>
          <td><input type="text" name="cxuefen" size="17"></td>
        </tr>
        <tr>
          <td align="right" scope="row">上课地点:</td>
          <td><input type="text" name="cadder" size="17"></td>
          <td align="right">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="right" scope="row">课程介绍:</td>
          <td colspan="3" rowspan="2"><textarea name="cjshao" rows="4" cols="57"></textarea></td>
        </tr>
        <tr>
          <td align="right" scope="row">&nbsp;</td>
        </tr>
        <tr>
          <td align="right" scope="row">&nbsp;</td>
          <td align="center"><input type="submit" name="Submit" value="确 定"></td>
          <td align="center"><input type="reset" name="Submit2" value="重 置"></td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
    </form></tr>
    <%end if

if Request.QueryString("lastnf")="kcwh" then
%>
      <tr><td height=100% colspan="2" valign="top">
	  <%
	  sql1="select * from kecheng"
		set rs1=server.CreateObject("ADODB.RECORDSET")
		rs1.open sql1,conn_sql,0,3
		DO WHILE NOT rs1.eof
	  %>
	  <table width="491" border="0">
        <tr bgcolor="#0033FF">
          <td colspan="4" align="right" scope="row">&nbsp;</td>
        </tr>
        <tr>
          <td align="right" scope="row">课程编号:</td>
          <td><%=rs1("cnum")%></td>
          <td align="right">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="70" align="right" scope="row">课程名:</td>
          <td width="149"><%=rs1("cname")%></td>
          <td width="133" align="right">任课教师:</td>
          <td width="121"><%=rs1("cteacher")%></td>
        </tr>
        <tr>
          <td align="right" scope="row">课时:</td>
          <td><%=rs1("ctime")%></td>
          <td align="right">学分:</td>
          <td><%=rs1("cxuefen")%></td>
        </tr>
        <tr>
          <td align="right" scope="row">上课地点:</td>
          <td><%=rs1("cadder")%></td>
          <td align="right">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="right" scope="row">课程介绍:</td>
          <td colspan="3" rowspan="2" valign="top"><%=rs1("cjshao")%></td>
        </tr>
        <tr>
          <td align="right" scope="row">&nbsp;</td>
        </tr>
      </table>

⌨️ 快捷键说明

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