<%
'option explicit
dim startime,conn,connstr,db,rs,rs_s,rs_s1
startime=timer()
db="riwoniang/data.asa"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&"")
conn.Open connstr
%>
<%
dim webname,webemail,dizhi,youbian,dianhua,copyright,webbanner,weblogo,weburl,gonggao
set rs=server.CreateObject("adodb.recordset")
rs.Open "select webname,webemail,dizhi,youbian,dianhua,copyright,gonggao,weblogo,weburl,webbanner from shop_config",conn,1,1
webname=trim(rs("webname"))
webemail=trim(rs("webemail"))
dizhi=trim(rs("dizhi"))
youbian=trim(rs("youbian"))
dianhua=trim(rs("dianhua"))
copyright=trim(rs("copyright"))
weblogo=trim(rs("weblogo"))
webbanner=trim(rs("webbanner"))
weburl=trim(rs("weburl"))
gonggao=trim(rs("gonggao"))
rs.Close
set rs=nothing

Rem 过滤HTML代码
function HTMLEncode(fString)
if not isnull(fString) then
    fString = replace(fString, ">", "&gt;")
    fString = replace(fString, "<", "&lt;")

    fString = Replace(fString, CHR(32), "&nbsp;")
    fString = Replace(fString, CHR(9), "&nbsp;")
    fString = Replace(fString, CHR(34), "&quot;")
    fString = Replace(fString, CHR(39), "&#39;")
    fString = Replace(fString, CHR(13), "")
    fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ")
    fString = Replace(fString, CHR(10), "<BR> ")

    'fString=ChkBadWords(fString)
    HTMLEncode = fString
else
   HTMLEncode=fstring
end if
end function

Rem 过滤SQL非法字符
function checkStr(str)
	if isnull(str) then
		checkStr = ""
		exit function 
	end if
	checkStr=replace(str,"'","''")
end function

Rem 判断数字是否整形
function isInteger(para)
       on error resume next
       dim str
       dim l,i
       if isNUll(para) then 
          isInteger=false
          exit function
       end if
       str=cstr(para)
       if trim(str)="" then
          isInteger=false
          exit function
       end if
       l=len(str)
       for i=1 to l
           if mid(str,i,1)>"9" or mid(str,i,1)<"0" then
              isInteger=false 
              exit function
           end if
       next
       isInteger=true
       if err.number<>0 then err.clear
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>yy770购物--盐城地区首家免费自助网上开店--和百姓网一起赚钱！</title>
<link href="images/css.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="perpare，网上购物，xnshop，xnshop.com，手机，鲜花，网上订购，鄂南购物，游戏卡销售，电话卡，电脑，笔记本，软件，代码，原码，Q币，QQ号码">
</head>

<body leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<table width="140" cellspacing="0" cellpadding="0">
<tr>  
<% 
set rs=server.CreateObject("adodb.recordset") 
rs.open "select Top 20 * from shjia where tj>2 order by adddate desc",conn,1,1 
%> 
<td valign="top"> 
<table width="100%" border="0" align="center"  cellSpacing="0" cellPadding="0"> 
<% 
do while not rs.eof 
%> 
<tr>  
<td height="20">&nbsp;·   
<%response.write "<a href=user/index.asp?id="&rs("shjiaid")&" target=_blank>"     
				if len(trim(rs("name")))>10 then     
				response.write left(trim(rs("name")),8)&".."     
				else     
				response.write trim(rs("name"))     
				end if     
				response.write "</a>"     
				%>     
  <%rs.movenext%>    
</td>    
</tr>    
<%loop    
rs.close    
set rs=nothing%>    
</table>    
   
</table> 
   
</body>   
   
