<!--#include file="sc_inc/sc_conn.asp"-->
<!--#include file="sc_inc/sc_function.asp"-->
<html>
<head>
<script language="javascript" src="sc_inc/sc_function.js"></script>
<script language="javascript">
function check(){
if(document.ly.book_yb.value!=""){
if(!isdigits(document.ly.book_yb.value)){
alert("邮政编码应为数字!");
document.ly.book_yb.focus();
return false;
}
if(document.ly.book_yb.value.length!=6){
alert("邮政编码应为6位!");
document.ly.book_yb.focus();
return false;
}
}
if(document.ly.book_cz.value!=""){
if(!isdigits(document.ly.book_cz.value)){
alert("传真应为数字!");
document.ly.book_cz.focus();
return false;
}
}
return true;
}
</script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #F1F0EC;
}
-->
</style>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE10 {
font-size: 12px;
font-weight: bold;
}
-->
</style>
</head>
<body>
<!--网页顶部开始-->
<!--#include file="include/head.asp"-->
<!--网页顶部结束-->
<%
gq_id=saferequest("gq_id",1)
conn.execute "update sc_gqxx set hits=hits+1 where gq_id="&gq_id&""
sql="select * from sc_gqxx where gq_id='"&gq_id&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
%>
<table width="800" height="780" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="600"><table width="600" height="750" border="0" cellpadding="0" cellspacing="0" bgcolor="#faf9f9">
<tr>
<td width="600" height="25" valign="bottom" background="../images/anniu/bg4.gif"> </td>
</tr>
<tr>
<td width="600" height="25" valign="middle"> <span class="STYLE10">当前位置 --- > 产品信息</span></td>
</tr>
<tr>
<td width="600" height="20" bgcolor="#c6c4c4"><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="300" height="20"> 发布日期</td><td width="180"><%= rs("fdatetime") %></td>
<td width="300" height="20"> 有效期:<%= rs("yxq") %>天</td>
</tr>
</table></td>
</tr>
<tr>
<td width="600" height="380"><table width="600" height="380" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="556" height="380" valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="400" height="20" valign="top" bgcolor="#000000">
<table width="600" height="19" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="000000">
<tr>
<td height="20" bgcolor="#dfdddd"><b> 产品名称:<%= rs("gqxxbt") %></b><table border="0"
width="100%" id="table1">
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="400" height="360" valign="top" bgcolor="#faf9f9"><table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#faf9f9">
<tr>
<td height="285" align="center" valign="top" bgcolor="#000000"><table width="598" border="0" cellpadding="0" cellspacing="0" bgcolor="#faf9f9">
<tr>
<td width="592" height="285" valign="top" bgcolor="#faf9f9" style="padding-left:25px;padding-right:25px;padding-top:10px;padding-bottom:10px"><%= rs("gqxxnr") %></td>
</tr>
</table></td>
</tr>
<tr>
<td height="75" valign="top" bgcolor="#000000"><table width="600" border="0" cellpadding="0" cellspacing="1">
<%
if rs("hy_id")<>"" then
sql1="select * from sc_hy where hy_id='"&rs("hy_id")&"'"
else
sql1="select * from sc_gqxx where gq_id="&gq_id&""
end if
set rs1=server.CreateObject("adodb.recordset")
rs1.open sql1,conn,1,1
gsjs=left(rs("gsjs"),500)
%>
<tr>
<td width="100" height="25" bgcolor="#faf9f9"> 公司名称</td>
<td height="25" colspan="5" bgcolor="#faf9f9"><%= rs1("gsmc") %></td>
</tr>
<tr>
<td width="100" height="25" bgcolor="#faf9f9"> 网址</td>
<td height="25" colspan="2" bgcolor="#faf9f9"><%=rs1("wz")%></td>
<td width="100" height="25" bgcolor="#faf9f9"> 电子邮箱</td>
<td height="25" colspan="2" bgcolor="#faf9f9"><%=rs1("email")%></td>
</tr>
<tr>
<td width="100" height="25" bgcolor="#faf9f9"> 联系人</td>
<td width="100" height="25" bgcolor="#faf9f9"><%= rs1("lxr") %></td>
<td width="100" height="25" bgcolor="#faf9f9"> 电话</td>
<td width="100" height="25" bgcolor="#faf9f9"><%= rs1("gddh") %></td>
<td width="100" height="25" bgcolor="#faf9f9"> 传真</td>
<td width="100" height="25" bgcolor="#faf9f9"><%= rs1("cz") %></td>
</tr>
<tr>
<td width="100" height="25" bgcolor="#faf9f9"> 通讯地址</td>
<td height="25" colspan="3" bgcolor="#faf9f9"><%= rs1("gsdz") %></td>
<td height="25" bgcolor="#faf9f9"> 邮政编码</td>
<td height="25" bgcolor="#faf9f9"><%= rs1("yb") %></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="25" bgcolor="#c6c4c4"> 给本公司留言</td>
</tr>
<tr>
<%
hy_id=rs("hy_id")
book_contact=saferequest("book_contact",0)
book_content=saferequest("book_content",0)
book_user=saferequest("book_user",0)
book_address=saferequest("book_address",0)
book_phone=saferequest("book_phone",1)
book_email=saferequest("book_email",0)
book_yb=saferequest("book_yb",1)
book_lxr=saferequest("book_lxr",0)
book_cz=saferequest("book_cz",1)
book_wz=saferequest("book_wz",0)
action=saferequest("action",0)
if action="add" then
sql="insert into sc_ly(book_contact,book_content,book_user,book_address,book_phone,book_hyid,book_table,book_tableid,book_email,book_yb,book_lxr,book_cz,book_wz) values('"&book_contact&"','"&book_content&"','"&book_user&"','"&book_address&"','"&book_phone&"','"&hy_id&"',1,'"&gq_id&"','"&book_email&"','"&book_yb&"','"&book_lxr&"','"&book_cz&"','"&book_wz&"')"
'response.write sql
'response.end
conn.execute sql
response.Write "<script>alert('留言成功!');history.go(-1);</script>"
end if
%>
<form name="ly" id="ly" action="?action=add&gq_id=<%=gq_id%>" method="post" onSubmit="return check()">
<td><table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#dfdddd">
<tr>
<td width="100" height="25" background="#dfdddd"> 标题:</td>
<td width="500" height="25"><input name="book_contact" type="text" size="70" /></td>
</tr>
<tr>
<td width="100" height="150" background="#dfdddd"> 内容:</td>
<td width="450" height="150" align="center" valign="middle"><textarea name="book_content" cols="69" rows="8"></textarea></td>
</tr>
<tr>
<td width="100" height="25"> 公司名称:</td>
<td width="450" height="25"><input name="book_user" type="text" size="70" /></td>
</tr>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#dfdddd">
<tr>
<td width="100" height="25"> 地址:</td>
<td width="250" height="25"><input name="book_address" type="text" size="35" /></td>
<td width="100" height="25"> 邮政编码:</td>
<td width="150" height="25"><input name="book_yb" type="text" size="20" /></td>
</tr>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#dfdddd">
<tr>
<td width="100" height="25"> 联系人:</td>
<td width="250" height="25"><input name="book_lxr" type="text" size="35" /></td>
<td width="100" height="25"> 电话:</td>
<td width="150" height="25"><input name="book_phone" type="text" size="20" /></td>
</tr>
<tr>
<td width="100" height="25"> Email:</td>
<td width="250" height="25"><input name="book_email" type="text" size="35" /></td>
<td width="100" height="25"> 传真:</td>
<td width="150" height="25"><input name="book_cz" type="text" size="20" /></td>
</tr>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#dfdddd">
<tr>
<td width="100" height="25"> 网址:</td>
<td width="500" height="25"><input name="book_wz" type="text" size="70" /></td>
</tr>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="0"
bgcolor="#c6c4c4" height="21">
<tr>
<td width="300" height="21" align="center" valign="middle"><input type="submit" name="Submit" value="提交" /></td>
<td width="300" height="21" align="center" valign="middle"><input type="submit" name="Submit2" value="清空" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
</tr>
</table></td>
<td width="200" valign="top" bgcolor="fff0b5"><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" background="../../images/anniu/bg5.gif" valign="bottom">
<p align="center" class="STYLE8">企业介绍</td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#FFF0b5"></td>
</tr>
<tr>
<td width="200" align="center" valign="top" bgcolor="#FFF0b5"><%= gsjs %></td>
</tr>
<%
rs1.close
set rs1=nothing
rs.close
set rs=nothing
end if %>
</table></td>
</tr>
</table>
<!--网页底部开始-->
<!--#include file="include/end.asp"-->
<!--网页底部结束-->
</body>
</html>