<html>
<head>
<title>请选择日期</title>
<style>
td {
font-family: Tahoma, Verdana, sans-serif;
font-size: 12px;
}
</style>
<script language="JavaScript">
// months as they appear in the calendar's title
var ARR_MONTHS = ["一月", "二月", "三月", "四月", "五月", "六月","七月", "八月", "九月", "十月", "十一月", "十二月"];
// week day titles as they appear on the calendar
var ARR_WEEKDAYS = ["日", "一", "二", "三", "四", "五", "六"];
// day week starts from (normally 0-Su or 1-Mo)
var NUM_WEEKSTART = 0;
// path to the directory where calendar images are stored. trailing slash req.
var STR_ICONPATH = 'images/';
var re_url = new RegExp('datetime=(\\-?\\d+)');
var dt_current = (re_url.exec(String(window.location)) ? new Date(new Number(RegExp.$1)) : new Date());
var re_id = new RegExp('id=(\\d+)');
var num_id = (re_id.exec(String(window.location)) ? new Number(RegExp.$1) : 0);
var obj_caller = (window.opener ? window.opener.calendars[num_id] : null);
if (obj_caller && obj_caller.year_scroll)
{
// get same date in the previous year
var dt_prev_year = new Date(dt_current);
dt_prev_year.setFullYear(dt_prev_year.getFullYear() - 1);
if (dt_prev_year.getDate() != dt_current.getDate())
dt_prev_year.setDate(0);
// get same date in the next year
var dt_next_year = new Date(dt_current);
dt_next_year.setFullYear(dt_next_year.getFullYear() + 1);
if (dt_next_year.getDate() != dt_current.getDate())
dt_next_year.setDate(0);
}
// get same date in the previous month
var dt_prev_month = new Date(dt_current);
dt_prev_month.setMonth(dt_prev_month.getMonth() - 1);
if (dt_prev_month.getDate() != dt_current.getDate())
dt_prev_month.setDate(0);
// get same date in the next month
var dt_next_month = new Date(dt_current);
dt_next_month.setMonth(dt_next_month.getMonth() + 1);
if (dt_next_month.getDate() != dt_current.getDate())
dt_next_month.setDate(0);
// get first day to display in the grid for current month
var dt_firstday = new Date(dt_current);
dt_firstday.setDate(1);
dt_firstday.setDate(1 - (7 + dt_firstday.getDay() - NUM_WEEKSTART) % 7);
// function passing selected date to calling window
function set_datetime(n_datetime, b_close) {
if (!obj_caller) return;
var dt_datetime = obj_caller.prs_time(
(document.cal ? document.cal.time.value : ''),
new Date(n_datetime)
);
if (!dt_datetime) return;
if (b_close) {
window.close();
obj_caller.target.value = (document.cal
? obj_caller.gen_tsmp(dt_datetime)
: obj_caller.gen_date(dt_datetime)
);
}
else obj_caller.popup(dt_datetime.valueOf());
}
</script>
</head>
<body bgcolor="#FFFFFF" marginheight="5" marginwidth="5" topmargin="5" leftmargin="5" rightmargin="5">
<table class="clsOTable" cellspacing="0" border="0" width="100%">
<tr>
<td bgcolor="#4682B4"><table cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<td colspan="7"><table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<script language="JavaScript">
document.write(
'<td>'+(obj_caller&&obj_caller.year_scroll?'<a href="javascript:set_datetime('+dt_prev_year.valueOf()+')"><img src="'+STR_ICONPATH+'prev_year.gif" width="16" height="16" border="0" alt="previous year"></a> ':'')+'<a href="javascript:set_datetime('+dt_prev_month.valueOf()+')"><img src="'+STR_ICONPATH+'prev.gif" width="16" height="16" border="0" alt="previous month"></a></td>'+
'<td align="center" width="100%"><font color="#ffffff">'+ARR_MONTHS[dt_current.getMonth()]+' '+dt_current.getFullYear() + '</font></td>'+
'<td><a href="javascript:set_datetime('+dt_next_month.valueOf()+')"><img src="'+STR_ICONPATH+'next.gif" width="16" height="16" border="0" alt="next month"></a>'+(obj_caller && obj_caller.year_scroll?' <a href="javascript:set_datetime('+dt_next_year.valueOf()+')"><img src="'+STR_ICONPATH+'next_year.gif" width="16" height="16" border="0" alt="next year"></a>':'')+'</td>'
);
</script>
</tr>
</table></td>
</tr>
<tr>
<script language="JavaScript">
// print weekdays titles
for (var n=0; n<7; n++)
document.write('<td bgcolor="#87cefa" align="center"><font color="#ffffff">'+ARR_WEEKDAYS[(NUM_WEEKSTART+n)%7]+'</font></td>');
document.write('</tr>');
// print calendar table
var dt_current_day = new Date(dt_firstday);
while (dt_current_day.getMonth() == dt_current.getMonth() ||
dt_current_day.getMonth() == dt_firstday.getMonth()) {
// print row heder
document.write('<tr>');
for (var n_current_wday=0; n_current_wday<7; n_current_wday++) {
if (dt_current_day.getDate() == dt_current.getDate() &&
dt_current_day.getMonth() == dt_current.getMonth())
// print current date
document.write('<td bgcolor="#ffb6c1" align="center" width="14%">');
else if (dt_current_day.getDay() == 0 || dt_current_day.getDay() == 6)
// weekend days
document.write('<td bgcolor="#dbeaf5" align="center" width="14%">');
else
// print working days of current month
document.write('<td bgcolor="#ffffff" align="center" width="14%">');
document.write('<a href="javascript:set_datetime('+dt_current_day.valueOf() +', true);">');
if (dt_current_day.getMonth() == this.dt_current.getMonth())
// print days of current month
document.write('<font color="#000000">');
else
// print days of other months
document.write('<font color="#606060">');
document.write(dt_current_day.getDate()+'</font></a></td>');
dt_current_day.setDate(dt_current_day.getDate()+1);
}
// print row footer
document.write('</tr>');
}
if (obj_caller && obj_caller.time_comp)
document.write('<form onsubmit="javascript:set_datetime('+dt_current.valueOf()+', true)" name="cal"><tr><td colspan="7" bgcolor="#87CEFA"><font color="White" face="tahoma, verdana" size="2">Time: <input type="text" name="time" value="'+obj_caller.gen_time(this.dt_current)+'" size="8" maxlength="8"></font></td></tr></form>');
</script>
</table>
</tr>
</td>
</tr>
</table>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
网上书城购物网站完整代码
共367个文件
jpg:122个
asp:76个
gif:76个
5星 · 超过95%的资源 需积分: 10 18 下载量 30 浏览量
2010-01-07
19:13:23
上传
评论 4
收藏 3.79MB RAR 举报
温馨提示
使用Dreamweaver + ASP制作的网站。界面很友好。
资源推荐
资源详情
资源评论
收起资源包目录
网上书城购物网站完整代码 (367个子文件)
rsearch.asp 16KB
rsearch.asp 16KB
sub.asp 15KB
sub.asp 15KB
commend.asp 14KB
commend.asp 14KB
config.asp 13KB
config.asp 13KB
new.asp 13KB
hot.asp 13KB
new.asp 13KB
hot.asp 13KB
chkorder.asp 13KB
chkorder.asp 13KB
reg.asp 12KB
reg.asp 12KB
recinfo.asp 12KB
recinfo.asp 12KB
vorder.asp 11KB
vorder.asp 11KB
checkout.asp 10KB
checkout.asp 10KB
index.asp 10KB
index.asp 10KB
vpro.asp 9KB
vpro.asp 9KB
search.asp 8KB
search.asp 8KB
myorder.asp 7KB
myorder.asp 7KB
userinfo.asp 6KB
userinfo.asp 6KB
icar.asp 5KB
icar.asp 5KB
left.asp 5KB
left.asp 5KB
cart.asp 5KB
cart.asp 5KB
rank.asp 5KB
rank.asp 5KB
login.asp 5KB
login.asp 5KB
changepws.asp 4KB
changepws.asp 4KB
car.asp 4KB
car.asp 4KB
forget.asp 3KB
forget.asp 3KB
class.asp 3KB
class.asp 3KB
statinfo.asp 3KB
statinfo.asp 3KB
comment.asp 3KB
comment.asp 3KB
repws.asp 3KB
repws.asp 3KB
MMHTTPDB.asp 3KB
MMHTTPDB.asp 3KB
help.asp 3KB
help.asp 3KB
tiao.asp 2KB
tiao.asp 2KB
deposit.asp 2KB
deposit.asp 2KB
muser.asp 2KB
muser.asp 2KB
uleft.asp 2KB
uleft.asp 2KB
conn.asp 326B
conn.asp 307B
logout.asp 279B
logout.asp 279B
conn.asp 254B
conn.asp 254B
chk.asp 112B
chk.asp 112B
style.css 2KB
style.css 2KB
mycar_up_1.gif 3KB
mycar_up_1.gif 3KB
cxtsph.gif 2KB
cxtsph.gif 2KB
mycar_down.gif 1KB
mycar_down.gif 1KB
lmdh.gif 1KB
lmdh.gif 1KB
xssj.gif 1KB
xssj.gif 1KB
tzts.gif 1KB
tzts.gif 1KB
mycar_up_2.gif 671B
mycar_up_2.gif 671B
left01.gif 655B
left01.gif 655B
lmenu_2.gif 601B
lmenu_2.gif 601B
cart_empty.gif 504B
cart_empty.gif 504B
top02.gif 460B
top02.gif 460B
共 367 条
- 1
- 2
- 3
- 4
资源评论
- loangage_0072012-11-24功能比较全,简单有效
- jjydyy2012-11-21功能挺好的,对于网上书店系统来说,该有的都有了
xuxu691
- 粉丝: 1
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功