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

📄 book.asp

📁 深圳灯兆公司网站 由五个部分组成: 公司简介、公司产品
💻 ASP
字号:
<%@ LANGUAGE = VBScript CodePage = 936 LCID=2052%>
<!--#include file="conn.asp"-->
<%
act=request("act")
if act="add" then 
   company=request("company")
   name=request("name")
   tel=request("tel")
   fax=request("fax")
   email=request("email")
   title=request("title")
   introduce=request("introduce")
   
   sql="select * from book"
   res.open sql,con,1,3
   res.addnew
   res("company")=company
   res("name")=name
   res("tel")=tel
   res("fax")=fax
   res("email")=email
   res("title")=title
   res("introduce")=introduce
   res.update
   response.write "<script language=javascript>alert('留言成功!');window.location='book.asp';</script>"
   res.close
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=web_name%></title>
<STYLE type=text/css>TABLE {
	FONT-FAMILY: "宋体"; FONT-SIZE: 9pt
}
BODY {
	FONT-FAMILY: "宋体"; FONT-SIZE: 9pt
}
INPUT {
	FONT-FAMILY: "宋体"; FONT-SIZE: 9pt
}
SELECT {
	FONT-FAMILY: "宋体"; FONT-SIZE: 9pt
}
A {
	COLOR: #000000; FONT-SIZE: 9pt; LINE-HEIGHT: 1.2; TEXT-DECORATION: none
}
A:active {
	FONT-SIZE: 9pt; TEXT-DECORATION: none
}
A:hover {
	COLOR: #ff0000; FONT-SIZE: 9pt; TEXT-DECORATION: none
}
.tit {
	FONT-SIZE: 16px; FONT-STYLE: normal; FONT-WEIGHT: bold; TEXT-DECORATION: none
}
BODY {
	background-image: url(img/id02.gif);	
}
TABLE {
	LINE-HEIGHT: 16px
}
</STYLE>
<script language=javascript>

function check()

{

    if(document.myform.name.value==""){
    alert("联系人不能为空!");
    myform.name.focus();
    return false;
    }
    if(document.myform.tel.value==""){
    alert("联系电话不能为空!");
    myform.tel.focus();
    return false;
    }
    if(document.myform.title.value==""){
    alert("主题不能为空");
    myform.title.focus();
    return false;
    }
    if(document.myform.introduce.value==""){
    alert("详细内容不能为空");
    myform.introduce.focus();
    return false;
    }

}

</script>

</head>
<BODY leftMargin=0 topMargin=0>
<table width="759" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <td width=6 bgcolor="#FFFFFF"></td>
    <td width="774" valign="top" bgcolor="#FFFFFF">
	<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="778" height="209">
      <param name="movie" value="1.swf">
      <param name="quality" value="High">
      <embed src="1.swf" quality="High" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="778" height="209"></embed>
    </object>
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="170" valign="top" bgcolor="#FFFFFF">
		  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
            <TBODY>
			  <TR>
                <TD height=1></TD>
              </TR>
              <TR>
                <TD height=20 vAlign=top width=170><IMG height=20 src="img/left_05.gif" width=170></TD>
              </TR>
              <TR>
                <TD height=128 vAlign=top>
                  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                    <TBODY>
                      <TR>
                        <TD bgColor=#ffffff height=128 width=170>
                          <TABLE border=0 cellPadding=0 cellSpacing=0 height=128 
                        width=170>
                            <TBODY>
                              <TR>
                                <TD height=128 vAlign=top width=170><div align="center">
                                      <%
            sql="select * from class"
            res.Open sql,con,1,1 
            if res.eof or res.bof then
               response.write  "分类不存在!<br>"
            else
               do while not res.eof
               Response.Write("&nbsp;&nbsp;&nbsp;")
               Response.Write("<a href=product.asp?Sort_ID="&res("Sort_ID")&">")
               Response.Write(""&res("sort")&"</a><br>")
               res.movenext
               loop
            end if
			res.close
           %>
							      </div></TD>
                              </TR>
                            </TBODY>
                        </TABLE></TD>
                      </TR>
                    </TBODY>
                </TABLE></TD>
              </TR>
              <TR>
                <TD height=20 vAlign=top><IMG height=20 src="img/left_06.gif" width=170></TD>
              </TR>
              <TR>
                <TD height=90 vAlign=top>
                  <TABLE bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 
                  width="100%">
                    <!--DWLayoutTable-->
                    <TBODY>
                      <TR>
                        <TD height=90 width=170>
                          <FORM action="product.asp" method=post name="myform1">
                            <DIV align=center>
                              <CENTER>
                                <TABLE border=0 cellPadding=0 cellSpacing=0 height=87 
                        width="88%">
                                  <!--DWLayoutTable-->
                                  <TBODY>
                                    <TR vAlign=bottom>
                                      <TD align=right height=25 width=63>
                                        <DIV align=center><FONT color=#000000>分类:</FONT></DIV></TD>
                                      <TD width=92>
                                        <DIV align=left>
										<select name="sort_id">
										<option selected value="">选择分类</option>
										<% sql="select * from class"
										   res.open sql,con,1,1
										   do while not res.eof
										%>
										<option value="<%=res("sort_id")%>"><%=res("sort")%></option>
										<% res.movenext
										   loop
										   res.close
										%>
										</select>
										</DIV></TD>
                                    </TR>
                                    <TR vAlign=bottom>
                                      <TD align=right height=31>
                                        <DIV align=center><FONT color=#000000>关键字:</FONT></DIV></TD>
                                      <TD>
                                        <DIV align=left><FONT color=#000000>
                                          <INPUT name=keyword type=text id="keyword" size=12 maxLength=50>
                                      </FONT></DIV></TD>
                                    </TR>
                                    <TR>
                                      <TD align=right></TD>
                                      <TD><input name=B1 type=submit value="搜索"></TD>
                                    </TR>
                                  </TBODY>
                                </TABLE>
                              </CENTER>
                            </DIV>
                        </FORM></TD>
                      </TR>
                    </TBODY>
                </TABLE></TD>
              </TR>
              <TR>
                <TD height=20 vAlign=top> </TD>
              </TR>
            </TBODY>
          </TABLE></td>
          <td width="1" background="img/line_v.gif"></td>
          <td><TABLE bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 
            width="100%">
            <!--DWLayoutTable-->
            <TBODY>
              <TR>
                <TD rowSpan=2 vAlign=top width=10>
                  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                    <!--DWLayoutTable-->
                    <TBODY>
                      <TR>
                        <TD bgColor=#ffffff height=447 
                    width=10> </TD>
                      </TR>
                    </TBODY>
                </TABLE></TD>
                <TD bgColor=#ffffff colSpan=2 height=42 vAlign=top><img src="img/PRODUCTS.gif" width="586" height="42"></TD>
                <TD width=11> </TD>
              </TR>

              <TR>
                <TD height=405 width=9> </TD>
                <TD vAlign=top width=577><TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="90%">
                  <form action="book.asp" method="post" name="myform" onsubmit="return check();">
                    <input type="hidden" name="act" value="add">
                    <TBODY>
                      <TR>
                        <TD width="100%">
                          <DIV align=center>
                            <TABLE align=center border=0 cellPadding=0 cellSpacing=3 
                        height=79 width="100%">
                              <TBODY>
                                <TR>
                                  <TD align=right height=25 width="23%">公司名称:</TD>
                                  <TD height=-6 width="77%"><FONT size=+0>
                                    <INPUT name=company class=smallInput id="company" style="FONT-SIZE: 14px" size=30 maxLength=36>
                                  </FONT></TD>
                                </TR>
                                <TR>
                                  <TD align=right height=25>联系人:</TD>
                                  <TD height=-2 width="77%"><FONT size=+0>
                                    <INPUT name=name 
                              class=smallInput id="name" 
                              style="FONT-SIZE: 14px" size=12 maxLength=30>
                                  </FONT></TD>
                                </TR>
                                <TR>
                                  <TD align=right height=25>联系电话:</TD>
                                  <TD height=-1 width="77%"><FONT size=+0>
                                    <INPUT name=tel 
                              class=smallInput id="tel" 
                              style="FONT-SIZE: 14px" size=24 maxLength=36>
                                  </FONT></TD>
                                </TR>
                                <TR>
                                  <TD align=right height=25>联系传真:</TD>
                                  <TD height=11 width="77%"><FONT size=+0>
                                    <INPUT name=fax 
                              class=smallInput id="fax" 
                              style="FONT-SIZE: 14px" size=18 maxLength=36>
                                  </FONT></TD>
                                </TR>
                                <TR>
                                  <TD align=right height=25>E-mail:</TD>
                                  <TD height=11 width="77%"><FONT size=+0>
                                    <INPUT 
                              class=smallInput maxLength=36 name=Email size=18 
                              style="FONT-SIZE: 14px">
                                  </FONT></TD>
                                </TR>
                                <TR>
                                  <TD align=right height=25 width="23%">反馈主题: </TD>
                                  <TD height=25 width="77%"><INPUT name=Title class=smallInput style="FONT-SIZE: 14px" value="<%if request("title")<>"" then response.write "订购:"&request("title")%>" size=42 maxLength=36></TD>
                                </TR>
                                <TR>
                                  <TD align=right height=1 vAlign=top 
                              width="23%">反馈内容: </TD>
                                  <TD height=1 vAlign=top width="77%"><TEXTAREA name=introduce cols=45 rows=10 class=smallInput id="introduce" style="FONT-SIZE: 14px"></TEXTAREA>
                                  </TD>
                                </TR>
                                <TR>
                                  <TD height=0 vAlign=top width="23%"></TD>
                                  <TD height=0 vAlign=top width="77%"><INPUT name=cmdOk type=submit value=提交留言>
                                      <INPUT name=cmdReset type=reset value=重写>
                                  </TD>

                                </TR>
                              </TBODY>
                            </TABLE>
                        </DIV></TD>
                      </TR>
                    </TBODY>
                  </form>
                </TABLE></TD>
                <TD> </TD>
              </TR>
            </TBODY>
          </TABLE></td>
        </tr>
      </table>
	<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><TBODY><TR><TD height=24 vAlign=top background="img/bottom.gif">
		<img src="img/bottom.gif" width="778" height="72"></TD>
	</TR></TBODY></TABLE>  
    <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
      <TBODY>
        <TR>
          <TD bgColor=#ffffff height=31 width=778><DIV align=center>地址:<%=web_address%>  电话:<%=web_tel%>  传真:<%=web_fax%> E-mail:<%=web_email%></DIV></TD>
        </TR>
      </TBODY>
    </TABLE></td>
	<td width=19 bgcolor="#FFFFFF"></td>
  </tr>
</table>
</body>
</html>
<% con.close
   set con=nothing
%>

⌨️ 快捷键说明

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