网上书店-头-代码

<script language="JavaScript">

<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0

eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

if (restore) selObj.selectedIndex=0;

}

//-->

</script>

<head>

<title>网络书店-头</title>

<script language="JavaScript" type="text/JavaScript">

<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0

window.open(theURL,winName,features);

}

//-->

</script>

</head>

<body background="../chz.jpg">

<%

'1.创建连接对象 Connection

set cn=Server.CreateObject("ADODB.Connection")

'打开“网上书店库”连接

cn.open"PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE="&Server.MapPath("/fsxss/mdb/wssdk.mdb")

'中国学生网 ASP 会员 OLEDB 要修改“/会员名/路径/数据库名”与实际对应,

'虚拟主机不加会员名。

'自管主机软件要求 Windows Server 2000 服务版,IIS 管理发布 Web 站点,

'支持 ASP 脚本运行。

'OLEDB:提供程序MICROSOFT.JET.OLEDB.4.0,数据源路径要对应本机硬盘物理路径。

'cn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE="&Server.MapPath ("/mdb/wssdk.mdb")

 

'2.创建记录集对象 Recordset

set rs=Server.CreateObject("ADODB.Recordset")

%>

<p align="center"><FONT size=2>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="195" height="90">

<param name="movie" value="../wltd828.swf">

<param name="quality" value="high">

<embed src="../wltd828.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="184" height="93"></embed>

</object>

&nbsp; <img src="../wlsd/wlsd_bz.gif" width="492" height="90">

</FONT>

<p align="center"><font color="#0000FF"><center>

<a href="../index.asp">返回主页</a>|

<a href="wssd.asp">网上书店</a>|

<a href="wlsd.asp">网络书店</a>|

<a href="wlsd1.asp">网络书店1</a>|北京时间

<SCRIPT language=JavaScript>

today=new Date();

var hours = today.getHours();

var hours1 = (hours <= 12) ? hours : hours-12;

var minutes = today.getMinutes();

var AMPM = ((hours <= 12) ? "上午":"下午");

AMPM += hours1

AMPM += ((minutes < 10) ? "<BLINK>:</BLINK>0":"<BLINK>:</BLINK>") + minutes;

 

function initArray(){

this.length=initArray.arguments.length

for(var i=0;i<this.length;i++)

this[i+1]=initArray.arguments[i]}

var d=new initArray("日","一","二","三","四","五","六");

 

document.write(

today.getYear(),"年",

today.getMonth()+1,"月",

today.getDate(),"日 星期",

d[today.getDay()+1]," ",

AMPM);

</SCRIPT></center></font>

<div align="center">

<table width="702" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF00FF" height="11">

<tr valign="top">

<td width="152" height="14" bgcolor="#FFFF00" align="center">

 

<form action="dlsd.asp" method="POST" name="dlsd" id="dlsd">

<p ALIGN="center" style="line-height: 150%; margin: 0"><font color="#0000FF">用户:<input type="text" name="yfxm" size="10">

</font>

</p>

<p ALIGN="center" style="line-height: 150%; margin: 0">

<font color="#0000FF">密码:<input type="password" name="gsmm" size="10">

</font></p>

<p ALIGN="center" style="line-height: 150%; margin: 0">

<font color="#0000FF">

<a href="yfzc.asp">注册</a>&nbsp;&nbsp;

<input type="submit" value="登录书店" name="dlsd">

</font></p>

</form> </td>

<td width="102" bgcolor="#00FF00" align="center" height="14"> <form action="clss.asp" method="get" name="ssts" id="ssts">

<p style="line-height: 150%; margin: 0" align="center"><font color="#FF0000">书名/作者/</font>

 

<p style="line-height: 150%; margin: 0" align="center"><font color="#FF0000">

出版社</font>

 

<p style="line-height: 150%; margin: 0" align="center">

<input type="text" name="ssgjz" size=10>

 

<p style="line-height: 150%; margin: 0" align="center">

<input type="submit" value="搜索图书" name="ssts">

</form></td>

<td width="156" bgcolor="#00FF00" align="center" height="14">

<form action="zhcx.asp" method="get" name="zhcx" id="ssts">

<p style="line-height: 150%; margin: 0" align="center"><font color="#FF0000">书&nbsp;

名:<input type="text" name="cxsm" size=8>

</font>

<p style="line-height: 150%; margin: 0" align="center"><font color="#FF0000">

作&nbsp; 者:<input type="text" name="cxzj" size=8>

</font>

<p style="line-height: 150%; margin: 0" align="center"><font color="#FF0000">

出版社:<input type="text" name="ccbs" size=8>

</font>

<p style="line-height: 150%; margin: 0" align="center">

<input type="submit" value="综合查询" name="zhcx">

</form></td>

<td width="96" bgcolor="#00FFFF" align="center" height="14"> <form name="flcx">

<p style="line-height: 150%; margin: 0" align="center"> <font color="#008000"> 分类查询</font></p>

<p style="line-height: 150%; margin: 0" align="center">

<select name="出版社" onChange="MM_jumpMenu('parent',this,1)">

<option selected>出版社</option>

<option value="kxcbs.asp">科学出版社</option>

<option value="gycbs.asp">工业出版社</option>

<option value="dxcbs.asp">大学出版社</option>

<option value="rmcbs.asp">人民出版社</option>

</select>

</p>

<p style="line-height: 150%; margin: 0" align="center">

<select name="图书类别" onChange="MM_jumpMenu('parent',this,1)">

<option selected>图书类别</option>

<option value="xsjs.asp">新书介绍类</option>

<option value="dzjc.asp">大专教材类</option>

<option value="kxjs.asp">科学技术类</option>

<option value="sfkx.asp">社会科学类</option>

<option value="whjy.asp">文化教育类</option>

</select>

</p>

</form></td>

<td width="159" bgcolor="#FFCC00" align="center" height="14">

<form action="xtgl.asp" method="POST" name="xtgl" id="xtgl">

<p ALIGN="center" style="line-height: 150%; margin: 0"><font color="#FF00FF">管理员:<input type="text" name="xtgly" size="10">

</font>

</p>

<p ALIGN="center" style="line-height: 150%; margin: 0"><font color="#FF00FF">密&nbsp;

码:<input type="password" name="glymm" size="10">

</font>

</p>

<p ALIGN="center" style="line-height: 150%; margin: 0">

<font color="#FF00FF">

<a href="dlgl.asp">登录管理</a>

<input type="submit" value="登录管理" name="dlgl">

</font> </p>

</form></td>

</tr>

</table>

</div>