<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<!--#include file="inc/const.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>红嫂视屏交友网</title>
<meta name="keywords" content="情感,在线,新新,照片,动感影片,诗歌,爱情,纯洁,心连心">
<meta name="description" content="红嫂视屏交友情缘 情感在线">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
}
-->
</style>
 <script language="javascript" src="js/area1.js"></script>
 <script language="javascript">
 function chklog(){
if(document.frmlog.userid.value.length==0){
 alert("请填写您的登陆帐号！");
 document.frmlog.userid.focus();
 return false;
}
if(document.frmlog.userpass.value.length==0){
 alert("请填写您的登陆密码！");
 document.frmlog.userpass.focus();
 return false;
}
return true;
}
 </script>
</head>
<body>
<%
if request("ad")="ly" then

if request("nr")<>"" then
set rs=server.CreateObject("adodb.recordset")
sql="select top 1 * from ly"
rs.open sql,conn,1,3

rs.addnew

rs("xm")=trim(request("xm"))
rs("lx")=trim(request("lx"))
rs("nr")=trim(request("nr"))
rs("uid")=trim(request("uid"))
rs.update

rs.close
set rs=nothing

  BackInfo(request.ServerVariables("HTTP_REFERER"))
response.end


end if
end if 
dim prov,city,mudi
prov=replacebadchar(request("sheng"))
city=replacebadchar(request("shi"))
mudi=replacebadchar(request("mudi"))
if prov="" then prov=0
if city="" then city=0
%>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top" bgcolor="#FFFFFF"><div align="left">
      <table width="950" border="0" cellpadding="0" cellspacing="0">
        <tr>
         <td width="231" align="center" valign="top" >
		 <%set rs1=conn.execute("select * from dj where id= "&int(request("fl")))
		 if not rs1.eof then%>
		 
		 <table width="231" border="0" cellpadding="0" cellspacing="0" bordercolor="#f2f2f2">
              <tr>
                <td align="center" valign="top"><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" >
                    <TBODY>
                      <TR>
                        <TD align=center width="1%"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                        <TD width="13%" align=center background="image/tiao_4.gif"><table width="69" height="25" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center" class="pgd"><%=rs1("fl")%></td>
                          </tr>
                        </table></TD>
                        <TD height="20" align="center" valign="bottom" background="image/tiao_4.gif">      <div align="right"><a href="dj1.asp?fl=<%=rs1("id")%>" style="text-decoration:none"><font color="#4193DD">more..</font></a></div></TD>
                        <TD width="1%" align="center"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                      </TR>
                    </TBODY>
                </TABLE></td>
              </tr>

              <tr>
                <td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#EeEeEe">
                  <tr>
                    <td height="260" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                     
					 <%set dj=conn.execute("select top 20 id,mc from sj where fl="&int(request("fl")))
do while not dj.eof%>
<tr>
                        <td height="22" style="padding-left:8px"><a href="showsj.asp?fl=<%=rs1("id")%>&id=<%=dj("id")%>" style="text-decoration:none"><font color="#4193DD"><%=dj("mc")%></font></a></td>
                      </tr>
<%dj.movenext
					  loop
					  dj.close
					  set dj=nothing%>
					  
                    </table></td>
                  </tr>
                </table></td>
              </tr>

            </table>
          <table width="1" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>
</td>
		   <%end if%>
		         <td width="11" align="center" valign="top" ></TD>        <td width="231" align="center" valign="top" ><table width="691" border="0" cellpadding="0" cellspacing="0" bordercolor="#f2f2f2">
                     <tr>
                       <td align="center" valign="top"><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" >
                           <TBODY>
                             <TR>
                               <TD align=center width="1%"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                               <TD width="13%" align=center background="image/tiao_4.gif"><table width="69" height="25" border="0" cellpadding="0" cellspacing="0">
                                   <tr>
                                     <td align="center" class="pgd">商家信息</td>
                                   </tr>
                               </table></TD>
                               <TD height="20" align="center" valign="bottom" background="image/tiao_4.gif"><div align="right">more..</div></TD>
                               <TD width="1%" align="center"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                             </TR>
                           </TBODY>
                       </TABLE></td>
                     </tr>
                     <tr>
                       <td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#EeEeEe">
                           <tr>
                             <td  valign="top"><table width="100%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#fafafa">
                                 <%set rs=conn.execute("select top 1 * from sj where id="&int(request("id")))%>
                                 <tr>
                                   <td width="117" height="22" style="padding-left:8px"><div align="right">商家名称：</div></td>
                                   <td width="329" style="padding-left:8px"><%=rs("mc")%></td>
                                   <td width="215" rowspan="6" style="padding-left:8px"><div align="center"><img src="uppic/photo/<%=rs("tp")%>" width="178" height="198" ></div></td>
                                 </tr>
                                 <tr>
                                   <td height="22" style="padding-left:8px"><div align="right">电话：</div></td>
                                   <td style="padding-left:8px"><%=rs("dh")%></td>
                                 </tr>
                                 <tr>
                                   <td height="22" style="padding-left:8px"><div align="right">手机：</div></td>
                                   <td style="padding-left:8px"><%=rs("sj")%></td>
                                 </tr>
                                 <tr>
                                   <td height="22" style="padding-left:8px"><div align="right">地址：</div></td>
                                   <td style="padding-left:8px"><%=rs("dz")%></td>
                                 </tr>
                                 <tr>
                                   <td height="22" style="padding-left:8px"><div align="right">网址：</div></td>
                                   <td style="padding-left:8px"><a href="<%=rs("mc")%>" target="_blank"><%=rs("wz")%></a></td>
                                 </tr>
                                 <tr>
                                   <td height="22" style="padding-left:8px"><div align="right">加入时间：</div></td>
                                   <td style="padding-left:8px"><%=rs("jr")%></td>
                                 </tr>
                                 <tr>
                                   <td style="padding-left:8px"><div align="right">商家介绍：</div></td>
                                   <td height="22" colspan="2" style="padding-left:8px"><%=rs("js")%></td>
                                 </tr>
                               <!--  <tr>
                                   <td style="padding-left:8px">&nbsp;</td>
                                   <td style="padding-left:8px">&nbsp;</td>
                                   <td height="22" style="padding-left:8px">&nbsp;</td>
                                 </tr> -->
                                 <tr>
                                   <td height="22" colspan="3" style="padding-left:8px">
                            
                                     <table width="90%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#fafafa">
									 <form name="form1" method="post" action="?uid=<%=int(rs("uid"))%>"  onSubmit="return check()">
                                       <tr>
                                         <td height="30" colspan="2"><strong>&nbsp;&nbsp;给商家留言</strong></td>
                                       </tr>
                                       <tr>
                                         <td width="22%"><div align="right">姓名：</div></td>
                                         <td width="78%"><label>
                                           <input name="xm" type="text" class="st" id="xm">
                                         </label></td>
                                       </tr>
                                       <tr>
                                         <td><div align="right">联系方式：</div></td>
                                         <td><label>
                                           <input name="lx" type="text" class="st" id="lx">
                                         </label></td>
                                       </tr>
                                       <tr>
                                         <td><div align="right">留言内容：</div></td>
                                         <td><label>
                                           <textarea name="nr" cols="35" rows="5" class="st" id="nr"></textarea>
                                         </label></td>
                                       </tr>
                                       <tr>
                                         <td>&nbsp;</td>
                                         <td><label>
                                           <input name="Submit" type="submit" class="st1" value="提交">
                                           <input name="ad" type="hidden" id="ad" value="ly">
                                         </label></td>
                                       </tr>              </form>   
                                     </table>
                                                     </td>
                                 </tr>
                
                             </table></td>
                           </tr>
                       </table></td>
                     </tr>
                   </table></td>
		   
		   <script language="javascript"><!--
function check(){   
  if(document.form1.xm.value.length==0)
  {
    alert("请填写姓名！");
	document.form1.xm.focus();
	return false;
  }

  
    if(document.form1.lx.value=="")
  {
    alert("请填写联系方式！");
	document.form1.lx.focus();
	return false;
  }
  
    if(document.form1.nr.value.length==0)
  {
    alert("留言内容不能为空！");
	document.form1.nr.focus();
	return false;
  }

  
  
  return true;
}
//-->
</script>
		   
		   
		   
		   
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td height="1" valign="top"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="root.asp"--></td>
  </tr>
</table>
</body>
</html>
<%
 conn.close
 set conn=nothing
%>
