📄 guest.asp
字号:
<%i=i+1
my_rs.movenext
loop
else
response.write "对不起,暂无记录"
end if
my_rs.close
%>
<SCRIPT language=JavaScript>marquee2();</SCRIPT> </td>
</tr>
<tr>
<td height="20" align="center" bgcolor="#CCCCCC">系统使用说明</td>
</tr>
<tr>
<td height="120" bgcolor="#FFFFFF"><p> 只有管理员才能够添加、删除人员;每一位职工(经授权)可以修改自己的信息;其他人员只能够浏览信息,能够发布信息(公告信息),管理员能够给指定的一组人员发送E-mail<br />
</p> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table></td>
<td width="570" valign="top"><table width="100%" height="398" border="1" align="center" cellspacing="0" bordercolor="#FF0000" bgcolor="#00FF00">
<tr>
<td width="10%"><SCRIPT language=JavaScript>
function Year_Month(){
var now = new Date();
var yy = now.getYear();
var mm = now.getMonth()+1;
var cl = '<font color="#0000df">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + yy + '年' + mm + '月</font>'); }
function Date_of_Today(){
var now = new Date();
var cl = '<font color="#ff0000">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + now.getDate() + '</font>'); }
function Day_of_Today(){
var day = new Array();
day[0] = "星期日";
day[1] = "星期一";
day[2] = "星期二";
day[3] = "星期三";
day[4] = "星期四";
day[5] = "星期五";
day[6] = "星期六";
var now = new Date();
var cl = '<font color="#0000df">';
if (now.getDay() == 0) cl = '<font color="#c00000">';
if (now.getDay() == 6) cl = '<font color="#00c000">';
return(cl + day[now.getDay()] + '</font>'); }
function CurentTime(){
var now = new Date();
var hh = now.getHours();
var mm = now.getMinutes();
var ss = now.getTime() % 60000;
ss = (ss - (ss % 1000)) / 1000;
var clock = hh+':';
if (mm < 10) clock += '0';
clock += mm+':';
if (ss < 10) clock += '0';
clock += ss;
return(clock); }
function refreshCalendarClock(){
document.all.calendarClock1.innerHTML = Year_Month();
document.all.calendarClock2.innerHTML = Date_of_Today();
document.all.calendarClock3.innerHTML = Day_of_Today();
document.all.calendarClock4.innerHTML = CurentTime(); }
var webUrl = webUrl;
document.write('<table border="0" cellpadding="0" cellspacing="0"><tr><td>');
document.write('<table id="CalendarClockFreeCode" border="0" cellpadding="0" cellspacing="0" width="60" height="70" ');
document.write('style="position:absolute;visibility:hidden" bgcolor="#eeeeee">');
document.write('<tr><td align="center"><font ');
document.write('style="cursor:hand;color:#ff0000;font-family:宋体;font-size:14pt;line-height:120%" ');
if (webUrl != 'netflower'){
document.write('</td></tr><tr><td align="center"><font ');
document.write('style="cursor:hand;color:#2000ff;font-family:宋体;font-size:9pt;line-height:110%" ');
}
document.write('</td></tr></table>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="61" bgcolor="#C0C0C0" height="70">');
document.write('<tr><td valign="top" width="100%" height="100%">');
document.write('<table border="1" cellpadding="0" cellspacing="0" width="58" bgcolor="#FEFEEF" height="67">');
document.write('<tr><td align="center" width="100%" height="100%" >');
document.write('<font id="calendarClock1" style="font-family:宋体;font-size:7pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock2" style="color:#ff0000;font-family:Arial;font-size:14pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock3" style="font-family:宋体;font-size:9pt;line-height:120%"> </font><br>');
document.write('<font id="calendarClock4" style="color:#100080;font-family:宋体;font-size:8pt;line-height:120%"><b> </b></font>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
document.write('</td></tr></table>');
setInterval('refreshCalendarClock()',1000);
</SCRIPT></td>
<td align="center"><span class="STYLE1">您在本站逗留了</span>
<input type="text" name="stay" size="15" readonly style="border:0;background-color:#00FF00;color:#FF0000;font-size:24px">
<SCRIPT Language="JavaScript">
<!--
var second=0;
var minute=0;
var hour=0;
window.setTimeout("staytime();",1000);
function staytime()
{
second++;
if(second==60){second=0;minute+=1;}
if(minute==60){minute=0;hour+=1;}
stay.value=hour+"小时"+minute+"分"+second+"秒";
window.setTimeout("staytime();",1000);
}
//-->
</SCRIPT></td>
</tr>
<%
'sql="select * from 电子邮件 where 收信人='" & session("Username") & "'"
sql="select * from 电子邮件 where 收信人='" & session("Username") & "' order by 发信时间 desc"
my_rs.open sql,my_Conn,1,1
%>
<tr>
<td height="320" colspan="2" align="center" valign="top" bgcolor="#FFFF00"><p> </p>
<%if my_rs.eof and my_rs.bof then %>
<p>没有你的任何邮件</p>
<% else%>
<table width="98%" border="1" align="center" cellspacing="0" bordercolor="#FF0000" bgcolor="#0000FF">
<tr>
<td align="center"> </td>
<td align="center"><span class="STYLE2">发信人</span></td>
<td align="center"><p class="STYLE2">发信时间</p> </td>
<td align="center"><span class="STYLE2">邮件主题</span></td>
<td align="center"><span class="STYLE2">删除</span></td>
</tr>
<%
do while not my_rs.eof
%>
<tr>
<td align="center"><span class="STYLE3">
<span class="STYLE5">
<%if my_rs("新")="Yes" then response.Write("新") else response.Write("<font color=white>旧</font>") end if%>
</span> </span></td>
<td align="center"><span class="STYLE3"><%=my_rs("发信人")%></span></td>
<td align="center"><span class="STYLE3"><%=my_rs("发信时间")%></span></td>
<td align="center"><a href="#"><span class="STYLE3" onclick="MM_openBrWindow('email_show.asp?yjid=<%=my_rs("编号")%>','','width=500,height=250')"><%=my_rs("主题")%></span></a></td>
<td align="center"><a href="#"><span class="STYLE3" onclick="MM_openBrWindow('delete_email.asp?yjid=<%=my_rs("编号")%>','','width=200,height=100')">删除</span></a></td>
</tr>
<% my_rs.movenext
loop
%>
</table>
<% end if%>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="96" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#999999">
<!--DWLayoutTable-->
<tr>
<td width="800" height="96" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="800" height="96" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="800" height="70" align="center" valign="top"><p> </p>
<table width="75%" border="0" align="center" cellspacing="2">
<tr>
<td width="100%" align="center" valign="middle">人事管理信息系统版权所有 @ 2006 </td>
</tr>
<tr>
<td align="center">制作维护:<a href="http://www.ysu.edu.cn" target="_blank">燕山大学</a> 刘海涛</td>
</tr>
</table> <p> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<%
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
Set MyTextFile=MyFileObject.OpenTextFile(server.mappath("日志.log"),8,TRUE)
MyTextFile.WriteLine("用户:" & session("Username") &" 登录时间:" & now()& " 权限:"& session("权限"))
MyTextFile.writeblanklines(1)
MyTextFile.Close
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -