📄 mod_suject.asp
字号:
<!--#include file = "inc/conn.asp" -->
<!--#include file = "CheckLogin.asp" -->
<!--#include file = "inc/zhuru.asp" -->
<%
Dim strID ,rs ,strSql
strID = Trim(Request.QueryString("ID"))
If strID & "" = "" Then
Response.Write("参数错误!")
Response.End
End If
strSql = "SELECT * FROM Suject WHERE ID = " & strID
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open strSql,conn,1,1
If Not rs.EOF Then
%>
<style type="text/css">
<!--
.STYLE9 {color: #003300; font-size: 14px; }
body,td,th {
font-size: 12px;
}
.STYLE10 {font-size: 14px}
-->
</style>
<SCRIPT language=JavaScript>
function CheckValue(thisform)
{
if (thisform.Name.value.length == 0){
alert ('请输入课程名。');
}
if (thisform.Name.value.length > 200){
alert ('课程名过长。');
}
if (thisform.Synopsis.value.length > 2500){
alert ('课程简介过长。');
}
else {
thisform.submit();
}
}
</SCRIPT>
<body bgcolor="#B1DB99" topmargin="5" leftmargin="5">
<table width="355" border="0" align="left">
<form id="form1" name="form1" method="post" action="ModSuject.asp?ID=<%=strID%>" onSubmit="CheckValue(this);return false">
<tr bgcolor="#66C06D">
<td colspan="2" background="images/Down_bg.gif"><div align="center" class="STYLE10">课程信息</div></td>
</tr>
<tr bgcolor="#66C06D">
<td width="94"><div align="right"><span class="STYLE9">课程名:</span></div></td>
<td width="251">
<label>
<input type="text" name="Name" value=<%=rs("name").value%> />
</label> </td>
</tr>
<tr bgcolor="#66C06D">
<td height="17"><div align="right"><span class="STYLE9">简介: </span></div></td>
<td><textarea name="Synopsis" cols="30" rows="6" ><%=rs("Synopsis").value%></textarea></td>
</tr>
<tr bgcolor="#66C06D">
<td height="18" colspan="2" align="center">
<input name="清空" type="reset" value="清空" />
<input type="submit" name="Submit2" value="修改" /> </td>
</tr>
<tr bgcolor="#66C06D">
<td colspan="2" background="images/Top_bg.gif"> </td>
</tr>
</form>
</table>
<%
Else
Response.Write("参数错误!")
Response.End
End If
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -