软件水平考试(初级)网络管理员下午(应用技术)模拟试卷26

0
收藏   分享
  • 卷面总分:75分
  • 试卷类型:模拟考试
  • 测试费用:免费
  • 答案解析:是
  • 练习次数:10次
  • 作答时间:150分钟
试卷简介
试卷预览
1

认真阅读以下关于静态网页制作和动态网页编程的技术说明,根据要求回答问题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">

      <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"><