📄 button_t.asp
字号:
<!-- #include file="cookies.asp" -->
<!-- #include file="conn/conn.asp" -->
<%
id=request.cookies("username")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
body {
background-color: #0099FF;
}
-->
</style></head>
<body>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="exam_add.asp?id=<%=id%>">试卷管理</a>
<a href="que_add.asp?id=<%=id%>">创建题目</a>
<a href="que_manage.asp?id=<%=id%>">题库管理</a>
<a href="cjtj.asp?id=<%=id%>">成绩管理</a>
<% '取当前登录用户级别
set rs=server.createobject("adodb.recordset")
sql="select * from student where id='"&trim(id)&"'"
rs.open sql,conn,1,1
if not rs.eof then
lev=trim(rs("lev"))
if lev=3 then '管理员 %>
<a href="stud_manage.asp?id=<%=id%>">用户管理</a>
<a href="m_pro_add.asp?id=<%=id%>">专业管理</a>
<a href="m_cur_add.asp?id=<%=id%>">课程管理</a>
<% else lev=2%>
</td>
<td>
<input type="button" name="change" value="编辑个人信息" onclick="window.open('stud_edit.asp?id=<%=trim(rs("id"))%>','intr','menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=1,resizable=0,width=530,height=200,top=80,left=100');return false;">
</td>
<%
end if
end if
rs.close
set rs=nothing
%>
</td>
</tr>
</table>
<hr>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -