📄 birth_bless.asp
字号:
<!--#include file="access_conn.asp"-->
<html>
<head>
<title>生日祝福</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<%
s= date()
temp = month(date()) & "-" & day(date())
'response.write s
'temp = temp & "-" & day()
'response.write temp
'sql = "SELECT * FROM [EMPOLY_BIRTHDAY] WHERE [BIRTHDAY] = '"&RIGHT(s,5)&"' "
sql = "SELECT * FROM [EMPOLY_BIRTHDAY] WHERE [BIRTHDAY] = '"&temp&"' ORDER BY USERNAME "
set rs = conn.execute(sql)
i= 0
sTemp = " "
while not rs.bof and not rs.eof
sUsername = rs("username")
' sDeptpost = rs("dept_post")
' sBirthday = rs("birthday")
' sMemo = rs("memo")
' if sMemo = " " then
' sMemo = "祝您生日快乐"
' end if
sTemp = sTemp & sUsername & "同志"
rs.movenext
i = i+1
if i >= 1 then
sTemp = sTemp & ","
end if
wend
rs.Close
conn.Close
%>
<%if i <> 0 then %>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<center>
<table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="0088CE">
<tr bgcolor="EFF7FF" >
<td>
<marquee width="100%" scrolldelay="55" scrollamount="2" width="10%">
<!--
*************
marquee width :用来改滚动条的宽度
td width:用来更改滚动条的高度
*************
-->
<%=sTemp%>
<% if i < 2 then %>
今天是您的生日,祝您生日快乐!
<% else %>
今天是您们的生日,祝您们生日快乐!
<% end if %>
</marquee>
</td>
</tr>
</table>
</center>
</body>
<% end if %>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -