问答题

认真阅读以下关于静态网页制作和动态网页编程的技术说明,根据要求回答问题1~问题6。
【说明】
一、静态网页制作
某电子商务公司用ASP实现了一个用于手机销售信息查询的网页,主页文件名为“index.html”,其文档内容如下。
[index.html文档内容]
<html>
<head>
<title>易搜手机资讯广场</title>
</head>
<frameset cols='198, *' 'border=0'>
<frame name='side' src='side.html' scrolling='No'>
<frameset rows='96, *' 'border=0'>
<frame name='top' src='top.html' scrolling='No'>
<frame name='main' src='main.asp' scrolling='Auto'>
</frameset>
</frameset>
<body>
</body>
</html>
二、动态网页编程
图6-9是用户按品牌型号进行查询时的网页(main.asp)在IE浏览器上运行后的效果图。表6-9是手机信息数据库表结构。

其中,Brand字段下共有两种数据:moto、nokia,分别代表摩托罗拉、诺基亚。
【main.asp文档的内容】
<html>
<head>
<title>易搜手机资讯广场</title>
</head>
<body bgcolor='ffffff' background='bg1.gif' text='000000'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<left>
<!-以下为实现按手机型号搜索功能的部分-->
<from name='form1' method='post' action='main_search.asp'>
<div align='left'>
<table width='400' border='0'>
<tr>
<td align='right' width='120'>请输入<font color='ff0000'>型号</font>关键字:</td>
<td align='left' width='40'>
<input name='Searchtxt' type='text' id='Searchtxt'></td>
<td colspan='2' align='left'>
<input type='submit' name='Submit' value='搜索'></td>
</tr>
</table>
</div>
</form>
</left>
</table>
<!-以下为浏览手机信息部分功能>
<table>
<center>
<%dim searchtext searchtext=Request.Form. ('Mobel')
exec='select * from mod order by Type ASC'
set conn=server.createobject ('adodb.connection')
dbpath=server.mappath ('mod.mdb')
conn.open 'PROVIDER=Microsoft.jet.OLEDB.4.0;data source='&dbpath
set rs=server.createobject ('adodb.recordset')
rs.open exec, conn, 1, 3
<!-省略关于分页功能的代码>
%>
<div align='right'>
<table border='1' width='100%'>
<tr>
<th width='20%'><font color='996633' size='2'>品牌</font></th>
<th width='20%'><font color='996633' size='2'>型号</font></th>
<th width='20%'><font color='996633' size='2'>参考价格</fonr></th>
<th width='40%'><font color='996633' size='2'>功能描述</font></th>
</tr>
</table><br>
<% do while NOT rs.EOF and rowcount>0%>
<div align='right'>
<table border='1' width='100%'>
<tr>
<td align='center' width='20%'><font size='2'><%=rs (Brand) %></font></td>
<td align='center' width='20%'><a herf='<%=rs ('type') %>.asp'><

A.html”,其文档内容如下。
B.html文档内容]
C.html'
D.html'
E.asp'
F.asp)在IE浏览器上运行后的效果图。表6-9是手机信息数据库表结构。
G.shangxueba.cn/images/ct_crpnmxm_crpnmxfuzae1_00434(20096).jpg'
H.asp文档的内容】
I.gif'
J.asp'>
K.Form.
L.createobject
M.connection')
N.mappath
O.mdb')
P.open
Q.jet.OLEDB.4.0;data
R.createobject
S.recordset')
T.open
U.EOF
V.asp'><
微信扫码免费搜题