📄 main.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=data/conn.asp-->
<!--#include file=connfig.asp-->
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from email where sname='"&session("admin_name")&"' order by time desc"
rs.open sql,conn,1,1
tel=rs.recordcount
set rs3=server.CreateObject("adodb.recordset")
sql3="select * from email where new=0 and sname='"&session("admin_name")&"'"
rs3.open sql3,conn,1,1
cou=rs3.recordcount
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
background-color: #ffffff;
}
.style3 {color: #FF0000}
.style4 {color: #FFFFFF}
body,td,th {
font-size: 12px;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:visited {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #0000FF;
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style6 {color: #000000}
-->
</style></head>
<body>
<table width="85%" border="0" align="center">
<tr>
<td><table width="100%" height="100%" border="0" align="center" cellspacing="1" bgcolor="#999999" style="border:ta">
<tr bgcolor="BC82D6">
<td colspan="3"><table width="100%" height="14%" border="0">
<tr>
<td width="6%" height="20"> <img src="images/mail.gif" width="20" height="15"> </td>
<td width="46%" ><span class="style4">→个人邮件</span></td>
<td width="48%"><div align="right" class="style4">共有<span class="style4"><%=tel%></span>封邮件 新邮件<span class="style4"><%=cou%></span>封</div></td>
</tr>
</table></td>
</tr>
<tr>
<td width="198" height="26" background="images/tile_sub.gif"><div align="center" class="style6">标题</div></td>
<td width="101" background="images/tile_sub.gif"><div align="center" class="style6">发件人</div></td>
<td width="150" background="images/tile_sub.gif"><div align="center" class="style6">日期</div> <div align="center" class="style6"></div></td>
</tr>
<%
if not rs.eof then
for i=1 to 5
%>
<tr >
<td height="21" bgcolor="#FFFFFF" ><span class="style3"> →</span><a href="#" onClick="window.open('mailxian.asp?id=<%=rs("id")%>','','scrollbars=yes,width=650,height=500')"><%=rs("title")%></a>
<%if rs("new")=0 then%>
<img src="images/new.gif">
<%end if%></td>
<td height="21" bgcolor="#FFFFFF" ><div align="center"><%=rs("fname")%></div></td>
<td bgcolor="#FFFFFF" ><div align="center"><%=rs("time")%></div> <div align="center"></div></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
else
response.Write("暂无信息")
end if
rs.close
%>
</table>
<p align="center"><img src="images/seperator.gif" width="359" height="1"></p></td>
</tr>
<tr>
<td><table width="100%" border="0" align="center" cellspacing="1" bgcolor="#999999" style="border:ta">
<tr bgcolor="#BC82D6">
<td colspan="3"><table width="100%" height="14%" border="0">
<tr>
<td width="6%" height="20"><img src="images/edit.gif" width="18" height="16"> </td>
<td width="46%" ><span class="style4">→会议通知</span></td>
<td width="48%"><div align="right" class="style4"></div></td>
</tr>
</table></td>
</tr>
<tr>
<%
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from huiyi order by time desc"
rs1.open sql1,conn,1,1
%>
<td width="219" height="26" background="images/tile_sub.gif"><div align="center" class="style6">会议标题</div></td>
<td width="113" background="images/tile_sub.gif"><div align="center" class="style6">发起人</div></td>
<td width="166" background="images/tile_sub.gif"><div align="center" class="style6">日期</div></td>
</tr>
<%
if not rs1.eof then
for i=1 to 3
%>
<tr >
<td height="26" bgcolor="#FFFFFF" ><span class="style3">→</span><a href="#" onClick="window.open('hxian.asp?id=<%=rs1("id")%>','','scrollbars=yes,width=510,height=500')"><%=rs1("title")%></a></td>
<td height="26" bgcolor="#FFFFFF" ><div align="center"><%=rs1("name")%></div></td>
<td bgcolor="#FFFFFF" ><div align="center"><%=rs1("time")%></div></td>
</tr>
<%
rs1.movenext
if rs1.eof then exit for
next
else
response.Write("暂无信息")
end if
rs1.close
%>
</table>
<p align="center"><img src="images/seperator.gif" width="359" height="1"></p> </td>
</tr>
<tr>
<td><table width="100%" border="0" align="center" cellspacing="1" bgcolor="#999999" style="border:ta">
<tr bgcolor="#BC82D6">
<td colspan="3"><table width="100%" height="14%" border="0">
<tr>
<td width="6%" height="20"><img src="images/SYSTEM.GIF" width="18" height="16"> </td>
<td width="46%" ><span class="style4">→公共信息</span></td>
<td width="48%"><div align="right" class="style4"></div></td>
</tr>
</table></td>
</tr>
<tr>
<%
set rs2=server.CreateObject("adodb.recordset")
sql2="select * from gonggong order by time desc"
rs2.open sql2,conn,1,1
%>
<td width="219" height="26" background="images/tile_sub.gif"><div align="center" class="style6">信息标题</div></td>
<td width="113" background="images/tile_sub.gif"><div align="center" class="style6">发起人</div></td>
<td width="166" background="images/tile_sub.gif"><div align="center" class="style6">日期</div></td>
</tr>
<%
if not rs2.eof then
for i=1 to 3
%>
<tr >
<td height="26" bgcolor="#FFFFFF" ><span class="style3">→</span><a href="#" onClick="window.open('gxian.asp?id=<%=rs2("id")%>','','scrollbars=yes,width=510,height=500')"><%=rs2("title")%></a></td>
<td height="26" bgcolor="#FFFFFF" ><div align="center"><%=rs2("name")%></div></td>
<td bgcolor="#FFFFFF" ><div align="center"><%=rs2("time")%></div></td>
</tr>
<%
rs2.movenext
if rs2.eof then exit for
next
else
response.Write("暂无信息")
end if
rs2.close
%>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -