📄 mod_jiangcheng.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
response.write "您无此权限"
response.end
end if
dim id
id=trim(request("id"))
set rs=server.createobject("adodb.recordset")
sql="select * from jiangcheng where id="& id
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>修改奖惩情况</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--#include file="top.asp"-->
<%
if request("key")=1 then
user_number=session("user_number")
%>
<div align="center">
<table width="700">
<tr><td align="left"><a href="query.asp?id=2&user_number=<%=user_number%>">返回学生信息查询</a></td></tr>
</table>
</div>
<%end if%>
<div align="center">
<table border="0" width="400">
<tr>
<td width="100%">
<form method="POST" action="mod_jiangcheng1.asp">
<%if request("key")=1 then%>
<input type="hidden" name="key" value="1">
<%end if%>
<input type="hidden" value="<%=id%>" name="id">
<input type="hidden" value="<%=rs("user_name")%>" name="user_name">
<table border="1" width="100%" cellspacing="0" cellpadding="5" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td colspan="3"><div align="center">添加奖惩情况<div></td>
</tr>
<tr>
<td>姓名:</td>
<td colspan="2"><%=rs("user_name")%></td>
</tr>
<tr>
<td>奖惩原因:</td>
<td colspan="2"><input type="text" name="yuanying" value="<%=rs("yuanying")%>"></td>
</tr>
<tr>
<td>奖惩状况:</td>
<%if rs("zk")=1 then%>
<td><input type="radio" name="zk" value="1" checked>奖励</td>
<td><input type="radio" name="zk" value="0">惩罚</td>
<%else%>
<td><input type="radio" name="zk" value="1" >奖励</td>
<td><input type="radio" name="zk" value="0" checked>惩罚</td>
<%end if%>
</tr>
<tr>
<td>学分:</td>
<td colspan="2"><input type="text" name="user_xuefen" value="<%=abs(rs("user_xuefen"))%>"></td>
</tr>
<tr>
<td>时间:</td>
<td colspan="2">
<%
dim i,num,y,d,m
y=cint(year(rs("time")))
d=cint(day(rs("time")))
m=cint(month(rs("time")))
%>
<select name="year">
<%
for i=0 to 50
num=2000+i
if num=y then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
年
<select name="month">
<%
for i=1 to 12
num=i
if num=m then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
月
<select name="day">
<%
for i=1 to 31
num=i
if num=d then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
日
</td>
</tr>
<tr>
<td colspan="3"><div align="center"><input type="submit" name="b1" value="提交"></div></td>
</tr>
</table>
</form>
<p> </center></td>
</tr>
</table>
</div>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -