?? update.asp
字號:
<%if session("password")<>"" then%>
<!--#include file="conn1.asp"--> <%
id=trim(Request("id"))
sqlcmd = ("select * from teacher1 where id="&id) '查詢id(ID號)這條記錄
rs.Open sqlcmd,newconn,1,2
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>更新頁面</title>
<style type="text/css">
<!--
body {
scrollbar-face-color: #FFC4B0;
scrollbar-highlight-color: #FFC4B0;
scrollbar-shadow-color: #FF7142;
scrollbar-3dlight-color: #FF7142;
scrollbar-arrow-color: #FF7142;
scrollbar-darkshadow-color:#FFC4B0;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(img/bg3.gif);
background-position:center;
margin-left: 0px;
}
body,td,th {
font-size: 15px;
color: #FF7142;
font-family: 宋體;
}
a {
font-family: 宋體;
font-size: 13px;
}
a:link {
text-decoration: none;
color: #FF7142;
}
a:visited {
text-decoration: none;
color: #FF7142;
}
a:hover {
text-decoration: none;
color: #FFB59D;
}
a:active {
text-decoration: none;
color: #FFB59D;
}
h1,h2,h3,h4,h5,h6 {
font-family: 宋體;
}
.style2 {color: #ff41b5}
-->
</style>
</head>
<body>
<table width="495" height="578" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="495" height="83" align="center" valign="top" background="img/top3.gif"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="421" valign="top">
<table width="430" border="0" height="90%" align="center" cellpadding="0" cellspacing="0">
<tr><td width="478" height='421' valign='top' background="img/bg33.gif"><div align=center>
<p>
<p>教師成績更新
</p>
<form method="POST" action="modi.asp"?id=<%=id%>">
<br>
<table width="400" border="1" cellspacing="2" cellpadding="0" align="center" bordercolor="#FFFFFF">
<tr>
<td bordercolor="#FFCC66" width="84" align="center" bgcolor="F2F2F2">考號</td>
<td width="12"> </td>
<td width="288"> <input name="xh" size="46" maxlength="40" class="editbox1" value="<%=rs("tnum")%>">
</td>
</tr>
<tr>
<td bordercolor="#FFCC99" width="84" height="22" align="center" bgcolor="F2F2F2">姓名</td>
<td width="12"> </td>
<td width="288"> <input name="user" size="46" maxlength="30" class="editbox1" value="<%=rs("tname")%>">
</td>
</tr>
<tr>
<td bordercolor="#FFCC99" width="84" height="22" align="center" bgcolor="F2F2F2">科目</td>
<td width="12"> </td>
<td width="288"> <input name="km" size="46" maxlength="30" class="editbox1" value="<%=rs("tsc")%>">
</td>
</tr>
<tr>
<td bordercolor="#FFCC99" width="84" height="22" align="center" bgcolor="F2F2F2">成績</td>
<td width="12"> </td>
<td width="288"> <input name="cj" size="46" maxlength="100" class="editbox1" value="<%=rs("tscore")%>">
</td>
</tr>
<tr>
<td colspan="3">
<input class=bottom name=B12 type=submit value="修改記錄"> <input class=bottom name=B22 type=reset value="重新添寫">
<input type="hidden" name="id" value="<%=rs("id")%>"> </td>
</tr>
</table>
<br>
<table width="400" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="1" bgcolor="7285CF" colspan="2"></td>
</tr>
<tr bordercolor="#FFCC99">
<td width="271" height="30"> </td>
<td height="30" align="center" bordercolor="#FFCC66" bgcolor="F2F2F2"><a
href="gl.asp" class="black">返回主頁面</a> </td>
</tr>
<tr bgcolor="7285CF">
<td height="1" colspan="2"></td>
</tr>
</table>
<div align="center"></div>
</form>
</p>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
<%else
Response.Redirect "dlu.asp"
end if%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -