📄 tijiaosave.asp
字号:
<!--#include file="dataconn.asp"-->
<!--#include file="session.asp"-->
<%
tjid=request("id")
zy_cs=trim(request("zy_cs"))
zy_km=request("zy_km")
zy_teacher=request("zy_teacher")
zy_title=request("zy_title")
content=request("content")
zy_studentname=session("user")
zy_studentid=session("student_id")
zy_tjtime=now()
sql_pd="select * from tjzy where zy_studentid='"&zy_studentid&"' and zy_cs='"&zy_cs&"' and zy_km='"&zy_km&"'"
set rs_pd=conn.execute(sql_pd)
if not rs_pd.eof then
response.write"<script language='jscript'>"
response.write"alert('你已经提交过该作业!');"
response.write"window.location.href='zxtj.asp';"
response.write"</script>"
else
set rscat=server.createobject("adodb.recordset")
sql="select * from tjzy"
rscat.open sql,conn,1,3
rscat.addnew
rscat("tjid")=tjid
rscat("zy_cs")=zy_cs
rscat("zy_km")=zy_km
rscat("zy_teacher")=zy_teacher
rscat("zy_title")=zy_title
rscat("content")=content
rscat("zy_studentname")=zy_studentname
rscat("zy_studentid")=zy_studentid
rscat("zy_tjtime")=now()
rscat.update
rscat.close
set rscat=nothing
end if
%>
<HTML>
<head>
<style type="text/css">
<!--
p{font-size:9pt};
td{font-size:9pt};
li{font-size:9pt};
select{font-size:9pt};
.forms {
BORDER-RIGHT: #254b03 1px solid; BORDER-TOP: #254b03 1px solid; MARGIN-TOP: auto; MARGIN-BOTTOM: auto; BORDER-LEFT: #254b03 1px solid; WIDTH: 80px; BORDER-BOTTOM: #254b03 1px solid; HEIGHT: 14px; BACKGROUND-COLOR: #ffffff
}
a {color:#5f5f5f;font-size: 9pt ;text-decoration:none; line-height:13.5pt}
a:hover {text-decoration:none; color:#000000;text-decoration: underline}
-->
.a10 { font-size: 10.5pt}
.bg {
background-repeat: no-repeat;
}
.ziti {
font-family: "宋体";
font-size: 14px;
color: #000000;
}
.zt {
font-family: "宋体";
font-size: 16px;
font-weight: bold;
}
</style>
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<title>作业提交成功</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv=refresh content="2; url=zxtj.asp">
<link href="../css/main.css" rel=stylesheet>
</head>
<body background="../images/untitled/bg.gif" leftmargin="0" topmargin="0">
<table width="760" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td background="../images/untitled/top.gif" height="15">
<div align="right"></div>
</td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><img src="../images/untitled/zy.gif" width="760" height="78"></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" bordercolor="003366" align="center">
<tr>
<td background="../images/untitled/top2.gif" height="32">
<div align="right">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="center"><img src="../images/untitled/top3.gif" width="197" height="32"></div>
<div align="right"></div></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" bordercolor="003366" align="center">
<tr>
<td valign="top">
<table width="100%" height="438" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="438" align="center" valign="top" background="../images/untitled/bg1.png">
<div align="center"> </div>
<div align="left" class="bg"> <br>
<table width=95% cellspacing=1 cellpadding=5 align=center>
<tr align=center>
<td colspan=2><b><font color=#cc0000>恭喜,作业提交成功!</font></b></td>
</tr>
<tr >
<td ></td>
<td>【2秒后<a href="zxtj.asp"><font color=red>返回首页</font></a>】</td>
</tr>
</table>
<br>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" height="24" bordercolor="003366" align="center">
<tr>
<td background="../images/untitled/botton-bg.gif">
<div align="center" class="ziti">CopyRight @ 2005 东北师范大学网络学院</div>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -