📄 admin_tcinfo.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<%
dim id
if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.html';</script>"
response.End
else
if request.QueryString("action")="delTcInfo" then
id=request.QueryString("id")
set rsdel=server.CreateObject("adodb.recordset")
rsdel.open "delete from Tc_Info where id="&id,conn,1,3
response.Write("<script>window.location.href='admin_TcInfo.asp';</script>")
response.End
rsdel.close
set rsdel=nothing
end if
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="main.css">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
background-image: url(images/5.jpg);
}
-->
</style></head>
<body>
<table width="95%" align="center" bordercolor="#999999">
<tr>
<td align="center">姓名</td>
<td align="center">性别</td>
<td align="center">年龄</td>
<td align="center">职称</td>
<td align="center">部门</td>
<td align="center">学历</td>
<td align="center">政治面貌</td>
<td align="center">参加工作时间</td>
<td align="center">操作</td>
</tr>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from Tc_Info Order By id Desc",conn,1,1
do while not rs.EOF
%>
<tr>
<td align="center"><a href="show_TcInfo.asp?id=<%=rs("id")%>"><span style="color:#FF0000; font-weight:bold;"><%=rs("TcName")%></span></a></td>
<td align="center"><%=rs("TcSex")%></td>
<td align="center"><%=rs("TcAge")%></td>
<td align="center"><%=rs("TcPost")%></td>
<td align="center"><%=rs("DepartName")%></td>
<td align="center"><%=rs("TcEdu")%></td>
<td align="center"><%=rs("TcPolitical")%></td>
<td align="center"><%=rs("TcAddTime")%></td>
<td align="center"><span class="edit"><a href="modify_TcInfo.asp?id=<%=rs("id")%>"><span style="color:#fff; font-weight:bold;">修改</span></a></span> <span class="edit"><a onclick="return confirm('确定要删除【<%=rs("TcName")%>】老师的信息吗?将不可恢复!');" href="admin_TcInfo.asp?id=<%=rs("id")%>&action=delTcInfo"><span style="color:#fff; font-weight:bold;">删除</span></a></span></span></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
</table>
<%
conn.close
set conn=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -