<!--头部Star-->
<!--#include file="head.asp"-->
<!--头部End-->
<!--中间Star-->
<%
call aspsql()
%>
<%
set rs=conn.execute("select * from book_setup")
maxlength=clng(rs("maxlength"))
view=cstr(rs("view"))
mailyes=clng(rs("mailyes"))
randomize
yzm=int(8999*rnd()+1000)
%>
<SCRIPT language=javascript>
<!--
function left_menu(meval)
{
  var left_n=eval(meval);
  if (left_n.style.display=="none")
  { eval(meval+".style.display='';"); }
  else
  { eval(meval+".style.display='none';"); }
}
-->
</SCRIPT>
<script language="JavaScript">
function checkform(){
<%
response.write "if (document.book.yzm.value.length==0){"
%>
		alert("出错了，您没有填写验证码。");
		document.book.yzm.focus();
		return false;
	}
<%
response.write "if (document.book.yzm.value!="&yzm&"){"
%>
		alert("出错了，您填写的验证码不正确。");
		document.book.yzm.focus();
		return false;
	}
	if (document.book.UserName.value.length==0){
		alert("出错了，您没有填写用户名。");
		document.book.UserName.focus();
		return false;
	}
	if (document.book.UserName.value.length<2||document.book.UserName.value.length>16){
		alert("出错了，您填写的用户名不符合要求。");
		document.book.UserName.focus();
		return false;
	}
	if (document.book.Comments.value.length==0){
		alert("出错了，您没有填写留言内容。");
		document.book.Comments.focus();
		return false;
	}
<%
response.write "if (document.book.Comments.value.length>"&maxlength&"){"
%>
		alert("出错了，您的留言太长了。");
		document.book.Comments.focus();
		return false;
	}
	return true;
}	
</script>

<%
if request("send")="ok" then

	username=trim(request.form("username"))
	usermail=trim(request.form("usermail"))

    if mailyes=0 then		'邮箱为必填时检查邮箱是否合法

	if Instr(usermail,".")<=0 or Instr(usermail,"@")<=0 or len(usermail)<10 or len(usermail)>100 then
	response.write "<script language='javascript'>"
	response.write "alert('出错了，您输入的电子邮件地址格式不正确，请检查后重新输入！');"
	response.write "location.href='javascript:history.go(-1)';"							
	response.write "</script>"	
	response.end
	end if

    end if

	set rs=Server.CreateObject("ADODB.RecordSet")
	sql="select * from book where online='1' order by Postdate desc"
	rs.open sql,conn,1,3

			rs.Addnew
			rs("username")=Request("username")
			rs("comments")=Request("comments")
			rs("usermail")=Request("usermail")
			rs("face")=Request("face")
			rs("pic")=Request("pic")
			rs("url")=Request("url")
			rs("qq")=Request("qq")
			rs("online")=view
			rs("IP")=Request.serverVariables("REMOTE_ADDR")
			rs.Update
			session("book_error")=session("book_error")+1
		rs.close
		set rs=nothing
	response.write "<script language='javascript'>"
	if view="0" then
	response.write "alert('留言提交成功，留言须经管理员审核才能发布。');"
	else
	response.write "alert('留言提交成功，单击“确定”返回留言列表！');"
	end if
	response.write "location.href='book.asp';"	
	response.write "</script>"
	response.end

end if
%>
<TABLE cellSpacing=0 cellPadding=0 width=1004 border=0>
  <TBODY>
  <TR>
    <TD vAlign=top align=middle width=180>
      <TABLE cellSpacing=0 cellPadding=0 width=183 border=0>
        <TBODY>
        <TR>
          <TD width=163> <td height="18"></td></TD>
          <TD width=10></TD></TR>
        <TR>
          <TD align=right height=24><SAMP class=TitleFont>公司概况</SAMP> <IMG height=9 src="hf_images/icon_1.jpg" width=13 align=middle></TD>
          <TD>　</TD></TR>
        <TR>
          <TD align=right colSpan=2><IMG height=1 src="hf_images/line.jpg" width=169></TD></TR>
        <TR>
          <TD align=right height=24><A href="about.asp?id=11" IsShowProcessBar=True>公司简介 </A><IMG height=9 src="hf_images/icon_1.jpg" width=13 align=middle></TD>
          <TD>　</TD></TR>
        <TR>
          <TD align=right colSpan=2><IMG height=1 src="hf_images/line.jpg" width=169></TD></TR>
        <TR>
          <TD align=right height=24><A href="about.asp?id=12" IsShowProcessBar=True>组织机构 </A><IMG height=9 src="hf_images/icon_1.jpg" width=13 align=middle></TD>
          <TD></TD></TR>
        <TR>
          <TD align=right colSpan=2><IMG height=1 src="hf_images/line.jpg" width=169></TD></TR>
        <TR>
          <TD align=right height=24><A 
            href="about.asp?id=13" IsShowProcessBar=True>设备展示</A> <IMG height=9 src="hf_images/icon_1.jpg" width=13 align=middle></TD>
          <TD></TD></TR>
        <TR>
          <TD align=right colSpan=2><IMG height=1 src="hf_images/line.jpg" width=169></TD></TR>
        <TR>
          <TD align=right height=24><A href="about.asp?id=14" IsShowProcessBar=True>生产流程 </A><IMG height=9 src="hf_images/icon_1.jpg" width=13 align=middle></TD>
          <TD></TD>
		 </TR>
        <TR>
          <TD align=right colSpan=2><IMG height=1 src="hf_images/line.jpg" width=169></TD></TR>
		          <TR>
          <TD align=right height=24><A href="about.asp?id=15" IsShowProcessBar=True>联系我们 </A><IMG height=9 src="hf_images/icon_1.jpg" width=13 align=middle></TD>
          <TD></TD>
		 </TR>
        <TR>
          <TD align=right colSpan=2><IMG height=1 src="hf_images/line.jpg" width=169></TD></TR>
	</TBODY></TABLE></TD>
    <TD vAlign=top width=705>
      <TABLE cellSpacing=0 cellPadding=0 width=705 border=0>
        <TBODY>
        <TR>
          <TD width=495>　</TD>
          <TD vAlign=top width=210><IMG height=12 src="hf_images/icon_3.jpg" width=14 align=absMiddle><a href=main.asp IsShowProcessBar=True>Home</a>>公司概况 ><%=title%></TD></TR>
        <TR>
          <TD height=24><IMG height=21 src="hf_images/icon_2.jpg" width=19 align=absMiddle><IMG height=23 src="hf_images/inner_GYWM.jpg" 
            width=70 align=absMiddle></TD>
          <TD height=24>　</TD></TR>
        <TR>
          <TD align=middle colSpan=2><IMG height=2 src="hf_images/line_2.jpg" width=677></TD></TR>
        <TR>
          <TD colSpan=2>　</TD></TR>
        <TR>
          <TD align=middle colSpan=2><TABLE cellSpacing=0 cellPadding=0 width=658 border=0>
              <TBODY>
              <TR>
                <TD vAlign=top height=24>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top width=646 background=hf_images/linebg.gif 
                      height=24>
                        <TABLE height=32 cellSpacing=0 cellPadding=0 align=left 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD align=left width=8><IMG height=30 src="hf_images/kuan_L.jpg" width=8></TD>
                            <TD class=line_T bgColor=#ffffff>
                              <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                <TD width="6%"><IMG height=28 src="hf_images/Kuan_R_R.jpg" width=10></TD>
                                <TD class=whitelink vAlign=center align=middle 
                                width="77%" 
                                background=hf_images/Kuan_R_BG.jpg><A class=whitelink href="book_write.asp" IsShowProcessBar="True">签写留言</A></TD>
                                <TD width="17%"><IMG height=28 src="hf_images/Kuan_R_2.jpg" width=26></TD></TR></TBODY></TABLE></TD>
                            <TD width=7><IMG height=30 src="hf_images/kuan_R.jpg" width=7></TD></TR></TBODY></TABLE>
                        <TABLE height=24 cellSpacing=0 cellPadding=0 align=left 
                        border=0>
                          <TBODY>
                          <TR>
                            <TD align=left width=9><IMG height=30 src="hf_images/kuan_L_1.jpg" width=10></TD>
                            <TD class=line_T_1 bgColor=#f8f9fb>
                              <DIV align=center><A href="book.asp" IsShowProcessBar="True">查看留言</A></DIV></TD>
                            <TD class=line_T_1 width=17 bgColor=#f8f9fb><IMG height=17 src="hf_images/icon_4.jpg" 
width=17></TD>
                            <TD width=11><IMG height=30 src="hf_images/kuan_R_1.jpg" width=8></TD></TR></TBODY></TABLE>
                     
                    </TD>
                      <TD vAlign=top width=10>　</TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD class=line_L vAlign=top align=right height=5><IMG height=10 src="hf_images/kuan_RT.jpg" width=10></TD></TR>
              <TR>
                <TD class=line_LR vAlign=top align=middle height=650>
                  <TABLE cellSpacing=0 cellPadding=0 width=640 border=0>
                    <TBODY>
                    <tr>
                  <td width="161" height="738" valign="top" background="hf_images/historyback.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="hf_images/kuly.jpg" width="160" height="146"></td>
                      </tr>
                      <tr>
                        <td bgcolor="#FFFFFF"><img src="hf_images/guestbook.jpg" width="131" height="23"></td>
                      </tr>
                      <tr>
                        <td><img src="hf_images/historyback.jpg" width="160" height="93"></td>
                      </tr>
                      <tr>
                        <td><img src="hf_images/historyback.jpg" width="160" height="93"></td>
                      </tr>
                      <tr>
                        <td><img src="hf_images/historyback.jpg" width="160" height="93"></td>
                      </tr>
                  </table></td>
                  <td align="right" valign="top"><table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">
                    <tr>
                    <tr><td>
<form method="post" name="book" action="book_write.asp" onSubmit="return checkform();">
<table cellSpacing="1" borderColorDark="#ffffff" cellPadding="4" width="468" align="center" bgColor="#000000" borderColorLight="#000000" border="0">
    <tr bgColor="#ebebeb">
    <td   width="20%" align=right>您的姓名：</td>
    <td ><input type=text name="UserName" size="30" maxlength=16  style="BORDER: darkgray 1px solid; FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: verdana ; overflow:auto; height=22;" value="<%=request.cookies("hfvipok")("userid")%>">
      <font color="#FF0000">*</font></td>   
  </tr>
  <tr bgColor="#ebebeb">
    <td   width="20%" align=right>您的邮箱：</td>
    <td ><input type=text name="UserMail" size="30"  maxlength=100  style="BORDER: darkgray 1px solid; FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: verdana ; overflow:auto; height=22;">
      <font color="#FF0000">*</font></td>   
  </tr>
  <tr bgColor="#ebebeb">
    <td   width="20%" align=right>您的网站：</td>
    <td><input type=text value="http://" name="url" size="30"  maxlength=100  style="BORDER: darkgray 1px solid; FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: verdana ; overflow:auto; height=22;"></td>
  </tr>
  <tr bgColor="#ebebeb">
    <td   width="20%" align=right>腾讯QQ：</td>
    <td><input type=text value="" name="QQ" size="30"  maxlength=11  style="BORDER: darkgray 1px solid; FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: verdana ; overflow:auto; height=22;"></td>
  </tr>
  <tr bgColor="#ebebeb">
    <td width="20%" align=right>留言验证码：</td>
    <td>
	<input  maxlength=4 size=6 name="yzm" style="BORDER-RIGHT: darkgray 1px solid; BORDER-TOP: darkgray 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: darkgray 1px solid; COLOR: #666666; BORDER-BOTTOM: darkgray 1px solid; FONT-FAMILY: verdana ; overflow:auto;">
<%
a=int(yzm/1000)
b=int((yzm-a*1000)/100)
c=int((yzm-a*1000-b*100)/10)
d=int(yzm-a*1000-b*100-c*10)
response.write "<img align=top height=15 border=0 src=images/yzm/"&yzm_skin&"/"&a&".gif><img align=top height=15 border=0 src=images/yzm/"&yzm_skin&"/"&b&".gif><img  align=top height=15 border=0 src=images/yzm/"&yzm_skin&"/"&c&".gif><img align=top height=15 border=0 src=images/yzm/"&yzm_skin&"/"&d&".gif>"
%></td>
 </tr>
  <tr bgColor="#ebebeb">
    <td   width="20%" align=right>留言内容：<br><font color=red>（<%=maxlength%>字以内）</font></td>
    <td>
	<textarea name="Comments" rows="7" cols="55"  style="BORDER: darkgray 1px solid; FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: verdana ; overflow:auto;"></textarea></td>
  </tr>
  <tr bgColor="#ebebeb">
    <td width="20%" align=right>表情：</td><td>
	<input type="radio" value="1" name="face" checked><img border=0 src="images/face/face1.gif"> 
	<input type="radio" value="2" name="face"><img border=0 src="images/face/face2.gif">
	<input type="radio" value="3" name="face"><img border=0 src="images/face/face3.gif">
	<input type="radio" value="4" name="face"><img border=0 src="images/face/face4.gif">
	<input type="radio" value="5" name="face"><img border=0 src="images/face/face5.gif">
	<input type="radio" value="8" name="face"><img border=0 src="images/face/face8.gif">
	<input type="radio" value="9" name="face"><img border=0 src="images/face/face9.gif">
	<input type="radio" value="10" name="face"><img border=0 src="images/face/face10.gif">
	<br>
	</td>
  </tr>
  <tr bgColor="#ebebeb">
    <td width="20%" align=right>头像：</td>
    <td>
	<p align="left"><input type="radio" value="1" name="pic" checked><img border=0 src="images/face/pic1.gif" >
	<input type="radio" value="2" name="pic"><img border=0 src="images/face/pic2.gif" >
	<br>
	　</td>
      
  </tr>
  <tr bgColor="#ebebeb">
    <td colSpan="2" height=50 align=center><input type="submit" value="提交留言" name="Submit1" IsShowProcessBar=True> &nbsp;&nbsp;&nbsp;
      <input type="reset" value="重新填写" name="Submit2"><input type=hidden name=send value=ok></td>
  </tr>
  <TR><TD bgcolor=#FFFFFF colspan=2>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  * 请各位网友遵纪守法并注意语言文明。<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  *<A href=guiding1.asp target=_blank><u>《互联网电子公告服务管理规定》</u></a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  *<a href=guiding2.asp target=_blank><u>《全国人大常委会关于维护互联网安全的规定》</u></a>
</TD></TR>

</table>
</form>
<tr><td width="98%" align="center" height="1" background="images/small/bgline.gif"></td></tr>
                    </tr>
                  </table></td>
                </tr> 
					 </TBODY>
					</TABLE>
				</TD>
			</TR>
              <TR>
                <TD vAlign=top height=10>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD width="2%"><IMG height=10 src="hf_images/kuan_LB.jpg" width=10></TD>
                      <TD class=line_B width="95%"><IMG height=10 src="hf_images/spacer.gif" width=640></TD>
                      <TD width="3%"><IMG height=10  src="hf_images/kuan_RB.jpg" width=10></TD>
					</TR>
				    </TBODY>
				   </TABLE>
				  </TD>
				</TR>
				</TBODY>
			</TABLE><BR><BR></TD></TR></TBODY></TABLE></TD>
    <TD vAlign=top align=right width=116><IMG height=342  src="hf_images/hf_right_ad.jpg" width=116></TD></TR></TBODY></TABLE>
<!--中间End-->
<!--底部Star-->
<!--#include file="hf_down.asp"-->
<!--底部End-->