⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_login1.asp

📁 ASP程序实现的酒店预定系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="../../Include/AdoConn.asp"-->
<%
dim var(17)
	
code=session("UID")'修改
if code<>"" then 
   set rst=server.createobject("adodb.recordset")
   strsql="select * from XT_TD_user where 会员卡号='" & code & "'"
   rst.open strsql,conn
   if not rst.eof then 
		for i=1 to 17
			var(i)=rst(i)
		next
   else
	   code=""
   end if
end if

'取出市
set rst1=server.CreateObject ("adodb.recordset")
strsql="select 中文城市名 from xt_td_city"
rst1.open strsql,conn,3,2
%>

<html>
<head>
<title>用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="../../js/check_email_num.js"></script>
<%
dim today
today=formatdatetime(now(),1)&formatdatetime(now(),3)
%>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var dDate = new Date();
var dCurMonth = dDate.getMonth();
var dCurDayOfMonth = dDate.getDate();
var dCurYear = dDate.getFullYear();
var objPrevElement = new Object();

function fToggleColor(myElement) {
var toggleColor = "#000000";
if (myElement.id == "calDateText") {
if (myElement.color == toggleColor) {
myElement.color = "";
} else {
myElement.color = toggleColor;
   }
} else if (myElement.id == "calCell") {
for (var i in myElement.children) {
if (myElement.children[i].id == "calDateText") {
if (myElement.children[i].color == toggleColor) {
myElement.children[i].color = "";
} else {
myElement.children[i].color = toggleColor;
            }
         }
      }
   }
}
function fSetSelectedDay(myElement){
if (myElement.id == "calCell") {
if (!isNaN(parseInt(myElement.children["calDateText"].innerText))) {
myElement.bgColor = "#c0c0c0";
objPrevElement.bgColor = "";
document.all.calSelectedDate.value = parseInt(myElement.children["calDateText"].innerText);
objPrevElement = myElement;
      }
   }
}
function fGetDaysInMonth(iMonth, iYear) {
var dPrevDate = new Date(iYear, iMonth, 0);
return dPrevDate.getDate();
}
function fBuildCal(iYear, iMonth, iDayStyle) {
var aMonth = new Array();
aMonth[0] = new Array(7);
aMonth[1] = new Array(7);
aMonth[2] = new Array(7);
aMonth[3] = new Array(7);
aMonth[4] = new Array(7);
aMonth[5] = new Array(7);
aMonth[6] = new Array(7);
var dCalDate = new Date(iYear, iMonth-1, 1);
var iDayOfFirst = dCalDate.getDay();
var iDaysInMonth = fGetDaysInMonth(iMonth, iYear);
var iVarDate = 1;
var i, d, w;
if (iDayStyle == 2) {
aMonth[0][0] = "日";
aMonth[0][1] = "一";
aMonth[0][2] = "二";
aMonth[0][3] = "三";
aMonth[0][4] = "四";
aMonth[0][5] = "五";
aMonth[0][6] = "六";
} else if (iDayStyle == 1) {
aMonth[0][0] = "日";
aMonth[0][1] = "一";
aMonth[0][2] = "二";
aMonth[0][3] = "三";
aMonth[0][4] = "四";
aMonth[0][5] = "五";
aMonth[0][6] = "六";
} else {
aMonth[0][0] = "日";
aMonth[0][1] = "一";
aMonth[0][2] = "二";
aMonth[0][3] = "三";
aMonth[0][4] = "四";
aMonth[0][5] = "五";
aMonth[0][6] = "六";
}
for (d = iDayOfFirst; d < 7; d++) {
aMonth[1][d] = iVarDate;
iVarDate++;
}
for (w = 2; w < 7; w++) {
for (d = 0; d < 7; d++) {
if (iVarDate <= iDaysInMonth) {
aMonth[w][d] = iVarDate;
iVarDate++;
      }
   }
}
return aMonth;
}
function fDrawCal(iYear, iMonth, iCellWidth, iCellHeight, sDateTextSize, sDateTextWeight, iDayStyle) {
var myMonth;
myMonth = fBuildCal(iYear, iMonth, iDayStyle);
document.write("<table border='1'>")
document.write("<tr>");
document.write("<td align='center' style='FONT-FAMILY:Arial;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][0] + "</td>");
document.write("<td align='center' style='FONT-FAMILY:Arial;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][1] + "</td>");
document.write("<td align='center' style='FONT-FAMILY:Arial;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][2] + "</td>");
document.write("<td align='center' style='FONT-FAMILY:Arial;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][3] + "</td>");
document.write("<td align='center' style='FONT-FAMILY:Arial;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][4] + "</td>");
document.write("<td align='center' style='FONT-FAMILY:Arial;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][5] + "</td>");
document.write("<td align='center' style='FONT-FAMILY:Arial;FONT-SIZE:12px;FONT-WEIGHT: bold'>" + myMonth[0][6] + "</td>");
document.write("</tr>");
for (w = 1; w < 7; w++) {
document.write("<tr>")
for (d = 0; d < 7; d++) {
document.write("<td align='left' valign='top' width='" + iCellWidth + "' height='" + iCellHeight + "' id=calCell style='CURSOR:Hand' onMouseOver='fToggleColor(this)' onMouseOut='fToggleColor(this)' onclick=fSetSelectedDay(this)>");
if (!isNaN(myMonth[w][d])) {
document.write("<font id=calDateText onMouseOver='fToggleColor(this)' style='CURSOR:Hand;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOut='fToggleColor(this)' onclick=fSetSelectedDay(this)>" + myMonth[w][d] + "</font>");
} else {
document.write("<font id=calDateText onMouseOver='fToggleColor(this)' style='CURSOR:Hand;FONT-FAMILY:Arial;FONT-SIZE:" + sDateTextSize + ";FONT-WEIGHT:" + sDateTextWeight + "' onMouseOut='fToggleColor(this)' onclick=fSetSelectedDay(this)>&nbsp;</font>");
}
document.write("</td>")
}
document.write("</tr>");
}
document.write("</table>")
}
function fUpdateCal(iYear, iMonth) {
myMonth = fBuildCal(iYear, iMonth);
objPrevElement.bgColor = "";
document.all.calSelectedDate.value = "";
for (w = 1; w < 7; w++) {
for (d = 0; d < 7; d++) {
if (!isNaN(myMonth[w][d])) {
calDateText[((7*w)+d)-7].innerText = myMonth[w][d];
} else {
calDateText[((7*w)+d)-7].innerText = " ";
         }
      }
   }
}
// End -->
</script>
<STYLE type=text/css>
A.a01:link {
	COLOR: #cccccc; TEXT-DECORATION: none
}
A.a01:visited {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.a01:active {
	COLOR: #ffffff; TEXT-DECORATION: none
}
A.a01:hover {
	COLOR: #ffffff; TEXT-DECORATION: underline
}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FFFFFF">
<table width="756" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="16" valign="top" colspan="14" bgcolor="#336699">&nbsp;</td>
  </tr>
  <tr> 
    <td valign="middle" colspan="3" rowspan="3" align="center"><img src="../../Images/index/images/index22.gif" width="122" height="79"></td>
    <td valign="top" colspan="8" rowspan="2"><img src="../../Images/biao_zy_13.gif" width="525" height="90"></td>
    <td valign="top" height="67" colspan="3">&nbsp;</td>
  </tr>
  <tr> 
    <td height="23" valign="top" colspan="3"><img src="../../Images/zhongwen.gif" width="40" height="22" usemap="#Map3" border="0"> 
      <img src="../../Images/hanwen_kr.gif" width="40" height="22" usemap="#Map" border="0"> 
    </td>
  </tr>
  <tr> 
    <td height="1" width="70"></td>
    <td width="90"></td>
    <td width="86"></td>
    <td width="91"></td>
    <td width="43"></td>
    <td width="47"></td>
    <td width="90"></td>
    <td width="8"></td>
    <td width="44"></td>
    <td width="37"></td>
    <td width="20"></td>
  </tr>
  <tr> 
    <td valign="top" width="21" height="22" bgcolor="#336699">&nbsp;</td>
    <td width="89" valign="middle" align="left" bgcolor="#336699"><b><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font size="2"><a  class="a01" href="../index.asp">首页</a></font> </b></td>
    <td valign="middle" colspan="2" bgcolor="#336699"><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font  size="2"><a  class="a01" href="../Hotel/hotel.asp">酒店预订</a></font> 
    </td>
    <td valign="middle" bgcolor="#336699"><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font  size="2"><a class="a01"  href="../plane/plane_query.asp">机票预订</a></font> </td>
    <td valign="middle" bgcolor="#336699"><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font  size="2"><a class="a01"  href="../CAR/Rentcar.htm">汽车租赁</a></font></td>
    <td valign="middle" bgcolor="#336699"><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font  size="2"><a  class="a01" href="../City/city_query.asp">城市指南</a></font> </td>
    <td colspan="2" valign="middle" bgcolor="#336699"><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font  size="2"><a  class="a01" href="../../TRIP/Trip.htm">旅游指南</a></font> 
    </td>
    <td valign="middle" bgcolor="#336699"><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font  size="2"><a  class="a01" href="../City/city_query.asp">会员中心</a></font></td>
    <td colspan="3" valign="middle" bgcolor="#336699"><img src="../../Images/biaoti_zy_4.gif" width="4" height="8"> 
      <font  size="2"><a class="a01" href="../../Bbs/default.asp">BBS</a></font> 
    </td>
    <td valign="top" bgcolor="#326A94">&nbsp;</td>
  </tr>
  <tr bgcolor="#cacaca"> 
    <td height="22" colspan="8" valign="middle"><font color="#326A94" size="2">订位电<font color="#000000">话:024-23490652  800-8907894</font></font></td>
    <td colspan="4" valign="middle" ><font size=2px> 
      <%response.write today %>
      </font> </td>
    <td valign="middle" colspan="2" ><img src="../../Images/calendar.gif" width="36" height="17" onClick="MM_showHideLayers('Layer1','','show')"> 
    </td>
  </tr>
  <tr> 
    <td height="0"></td>
    <td></td>
    <td width="20"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>
<table width="755" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="135" valign="top" height="550" bgcolor="#f1f1f1">&nbsp;</td>
    <td width="490" valign="top"> 
      <table width="487" border="0" cellpadding="0" cellspacing="0" height="593">
        <form name="form1" method="post" action="RegOk.asp">
          <tr> 
            <td colspan="8" height="15" valign="top" width="477">&nbsp;</td>
            <td width="6" height="15"></td>
          </tr>
          <tr> 
            <td width="25" valign="top" rowspan="22" height="501">&nbsp;</td>
            <td valign="top" height="21" colspan="5" bgcolor="#f1f1f1" width="276"><font size="2"> 会员注册_填写信息</font></td>
            <td valign="top" width="160" bgcolor="#f1f1f1" height="21"> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -