91网首页-91网页版-91网在线观看-91网站免费观看-91网站永久视频-91网站在线播放

LOGO OA教程 ERP教程 模切知識交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

ASP簡單日歷程序

admin
2010年7月8日 13:50 本文熱度 6055
[br]<% [br]y=request.querystring("y") [br]m=request.querystring("m") [br]d=request.querystring("d") [br][br]if y="" then [br] y=year(date) [br] m=month(date) [br] d=day(date) [br]end if [br][br]call blogdate(y,m,d) [br][br]'=====================以年月日為參數(shù)的顯示============================================== [br]sub blogdate(y,m,d) ' [br]str1=" 當前的日期是"&y&"年"&m&"月"&d&"日 " '得到當前日期的年月日 [br]nowdate=y&"-"&m&"-"&d [br]lastdate=dateadd("m",-1,nowdate) [br]lasty=year(lastdate) [br]lastm=month(lastdate) [br]nextdate=dateadd("m",1,nowdate) [br]nexty=year(nextdate) [br]nextm=month(nextdate) [br]str1=str1&"上一月 " [br]str1=str1&"下一月 " [br]str1=str1&"返回今日" [br]response.write str1 [br]thismonth=y&"-"&m&"-1" '當前月的第一天 [br]nextmonth=dateadd("m",1,thismonth) '下個月的第一天 [br]num=datediff("d",thismonth,nextmonth) '當前月的天數(shù) [br]firstday=weekday(thismonth)-1 '得到當前月第一天的星期 [br]'call displaydate(firstday,num) [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]response.write "" & vbcrlf [br]'需要參數(shù):當前月第一天的星期firstday,當前月的天數(shù)num [br]for n=1 to 6 [br]response.write "" [br] for i=1 to 7 [br] thisday=0 [br] if i>firstday then thisday=i-firstday [br] if n>1 then thisday=7*(n-1)+i-firstday [br] if thisday>num then thisday=0 [br] if thisday=0 then [br] display=" " [br] else [br] display=""&thisday&"" [br] end if [br] response.write "" [br] next [br] if n=5 and (thisday=num or thisday=0) then n=n+1 [br]response.write "" [br]next [br]response.write "
星期日星期一星期二星期三星期四星期五星期六
"&display&"
" & vbcrlf [br]end sub [br]'=================================================================== [br]%>
[code]
<%
y=request.querystring("y")
m=request.querystring("m")
d=request.querystring("d")
if y="" then
y=year(date)
m=month(date)
d=day(date)
end if
call blogdate(y,m,d)
'=====================以年月日為參數(shù)的顯示==============================================
sub blogdate(y,m,d) '
str1=" 當前的日期是"&y&"年"&m&"月"&d&"日 " '得到當前日期的年月日
nowdate=y&"-"&m&"-"&d
lastdate=dateadd("m",-1,nowdate)
lasty=year(lastdate)
lastm=month(lastdate)
nextdate=dateadd("m",1,nowdate)
nexty=year(nextdate)
nextm=month(nextdate)
str1=str1&"上一月 "
str1=str1&"下一月 "
str1=str1&"返回今日"
response.write str1
thismonth=y&"-"&m&"-1" '當前月的第一天
nextmonth=dateadd("m",1,thismonth) '下個月的第一天
num=datediff("d",thismonth,nextmonth) '當前月的天數(shù)
firstday=weekday(thismonth)-1 '得到當前月第一天的星期
'call displaydate(firstday,num)
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
response.write "" & vbcrlf
'需要參數(shù):當前月第一天的星期firstday,當前月的天數(shù)num
for n=1 to 6
response.write ""
for i=1 to 7
thisday=0
if i>firstday then thisday=i-firstday
if n>1 then thisday=7*(n-1)+i-firstday
if thisday>num then thisday=0
if thisday=0 then
display=" "
else
display=""&thisday&""
end if
response.write ""
next
if n=5 and (thisday=num or thisday=0) then n=n+1
response.write ""
next
response.write "
星期日星期一星期二星期三星期四星期五星期六
"&display&"
" & vbcrlf
end sub
'===================================================================
%>
[/code]

該文章在 2010/7/22 10:55:31 編輯過
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點晴ERP是一款針對中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國內(nèi)大量中小企業(yè)的青睞。
點晴PMS碼頭管理系統(tǒng)主要針對港口碼頭集裝箱與散貨日常運作、調(diào)度、堆場、車隊、財務費用、相關(guān)報表等業(yè)務管理,結(jié)合碼頭的業(yè)務特點,圍繞調(diào)度、堆場作業(yè)而開發(fā)的。集技術(shù)的先進性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點晴WMS倉儲管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購管理,倉儲管理,倉庫管理,保質(zhì)期管理,貨位管理,庫位管理,生產(chǎn)管理,WMS管理系統(tǒng),標簽打印,條形碼,二維碼管理,批號管理軟件。
點晴免費OA是一款軟件和通用服務都免費,不限功能、不限時間、不限用戶的免費OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved

主站蜘蛛池模板: 91福利国产精品 | 国产国产成年在 | 国产熟女精品专区 | 日韩中文在线字 | 国产学生情侣偷 | 午夜成人影视神马 | 成人精品玖玖资源 | 国产福利萌 | 中文字幕精品二区 | 午夜日韩免费视频 | 国产男女插插一级 | 欧美亚洲精品第一 | 国产九九自拍电 | 每日更新国产 | 欧美中文字幕无线 | 精品一区二区夜色 | 果冻文化传媒官网 | 91福利午夜 | 美腿丝袜在线播放 | 日本精油按摩电影 | 嗨嗨影院伦理电影 | 伦理电影网 | 中文字幕在线一 | 动漫在线观看 | 国产自约视频 | 国产理伦在线观看 | 99电影网| 欧美综合视频在线 | 欧美在线观看视 | 国产偷国产偷精 | 国产激情影视综合 | 成人午夜视 | 三年片免费观 | 日韩欧美在线综合网 | 国产精品视频色怕怕 | 欧美日韩在线国产 | 欧美中字日韩一区 | 国产不卡福利 | 国产在线精品专区 | 日本最新成人精品 | 日本综合在线 |