<% 'Option Explicit 'ON ERROR RESUME NEXT %> <% '叛断此用户是否已经打开COOKIES if Not IsCookiesOpen then response.redirect "nocookie.htm" end if %> <% dim rs_user,rs_today,rs_lar,rs_newboy,rs_newgirl,rs_board,rs_links,rs_boy,rs_girl,rs_online,rs_hs,rs,rsQuestion,rsAnswer,star_girl,star_boy,rs_article dim sql,records,today_records,today_pics,rs_pic,rs_photoboy,rs_photogirl,rs_bb,rs_birthday,rs_count,online_count,articlecount,rs_vote,vote_count dim i,j,k,pics,birnum dim conn,connpic,articleconn,DBPath if isempty(session("u_id")) or session("u_id")="" then session("u_id")=1 end if Set conn = Server.CreateObject("ADODB.Connection") DBPath = Server.MapPath("isi/xlist.asp") conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath Set connpic = Server.CreateObject("ADODB.Connection") DBPath = Server.MapPath("isi/ximg.asp") connpic.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath Dim us_id us_id=session("u_id") %> 龙川在线-龙川交友网
 
 
 
 
--情缘首页 | 缘友靓照 | 同城约会 | 贺卡传情 | 情感随笔 | 热门投票
<%if isempty(us_id) or us_id=1 then '没注册的用户 %>
主打栏目
型男索女
网友列表
缘友靓照
高级搜索
征友信息
同城约会
贺卡传情
情感随笔
热门投票
即时寻呼
谈情说爱
<%else '注册的用户 %>
<% end if %>
<%if isempty(us_id) or us_id=1 then '没注册的用户 %>
会员登陆
用 户:
密 码:
记住密码  忘记密码

  
<% end if %>
便捷搜索网友
 
性别: 男 女
姓名:
网名:

高级搜索   

最热门的投票
<% Dim str sql = "Select Top 1 id,Topic,count From t_Vote Where ParentID=0 Order By count DESC" Set rsQuestion = Server.CreateObject("ADODB.RecordSet") Set rsAnswer= Server.CreateObject("ADODB.RecordSet") rsQuestion.Open sql,conn,1,1 If Not rsQuestion.EOF Then str="" str=str&"" str=str&"" str=str&"
" & rsQuestion("Topic") & "
" sql = "SELECT * FROM t_Vote Where ParentID="& rsQuestion("ID") rsAnswer.Open sql,conn,1,1 While Not rsAnswer.Eof str=str&" "&rsAnswer("Topic")&"
" rsAnswer.MoveNext Wend str=str&"
共 " & rsQuestion("count") & " 人参与投票
" str=str&"
" Else str="

目前还没有任何投票" End If Response.write str ' rsAnswer.close rsQuestion.close set rsAnswer=nothing set rsQuestion=nothing %>
星座与运程
<% connstrz="DBQ="+server.mappath("book/story.asp")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};" set conn3=server.createobject("ADODB.CONNECTION") conn3.open connstrz sql="select top 8 articleid,title from learning where typeid=10 order by articleid desc" Set rsz= Server.CreateObject("ADODB.Recordset") rsz.open sql,conn3,1,1 if rsz.eof then response.write "" else do while not rsz.eof %> <% rsz.movenext loop end if rsz.close %>
还没有文章
·)" title="<%=rsz("title")%>" class="a06"><%=strvalue(rsz("title"),19)%>
More...
血型与爱情
<% sql="select top 8 articleid,title from learning where typeid=9 order by articleid desc" Set rsz= Server.CreateObject("ADODB.Recordset") rsz.open sql,conn3,1,1 if rsz.eof then response.write "" else do while not rsz.eof %> <% rsz.movenext loop end if rsz.close %>
还没有文章
·)" title="<%=rsz("title")%>" class="a06"><%=strvalue(rsz("title"),19)%>
More...
友情站点链接
<% Set rs_links = Server.CreateObject("ADODB.Recordset") sql="select top 8 sitename,siteurl from links order by id asc" rs_links.open sql,conn,1,1 if rs_links.eof and rs_links.bof then%> 暂时没有链接 <%else%> <% do while not rs_links.eof %> <% rs_links.movenext loop %>
" target="_blank"><%=rs_links("sitename")%>
<% end if rs_links.close set rs_links=nothing %>


更多今日亮点
<% '取得人气最高的女主角 Set rs_girl = Server.CreateObject("ADODB.Recordset") sql="select top 1 user_id,netname,age,home from larchives where sex like '" & "女" & "' and photo > 0 order by renqi desc" rs_girl.open sql,conn,1,1 if rs_girl.eof and rs_girl.bof then%>

没有,暂时空缺! <%else Set rs_pic = Server.CreateObject("ADODB.Recordset") sql="select id from pic where user_id=" & rs_girl("user_id") & " and index = true" rs_pic.open sql,connpic,1,1 if rs_pic.eof and rs_pic.bof then pics=1 else pics=rs_pic("id") end if %>
">查看详细资料
<%=rs_girl("netname")%>
年龄:<%=rs_girl("age")%>
城市:<%=rs_girl("home")%>
<%rs_girl.close:set rs_girl=nothing%> <%end if%>

<% '取得人气最高的男主角 Set rs_boy = Server.CreateObject("ADODB.Recordset") sql="select top 1 user_id,netname,age,home from larchives where sex like '" & "男" & "' and photo > 0 order by renqi desc" rs_boy.open sql,conn,1,1 if rs_boy.eof and rs_boy.bof then%>

没有,暂时空缺! <%else Set rs_pic = Server.CreateObject("ADODB.Recordset") sql="select id from pic where user_id=" & rs_boy("user_id") & " and index = true" rs_pic.open sql,connpic,1,1 if rs_pic.eof and rs_pic.bof then pics=1 else pics=rs_pic("id") end if %>
">查看详细资料
<%=rs_boy("netname")%>
年龄:<%=rs_boy("age")%>
城市:<%=rs_boy("home")%>
<% rs_boy.close:set rs_boy=nothing end if%>

<% '取得人气最高的索女 Set star_girl = Server.CreateObject("ADODB.Recordset") sql="select top 1 user_id,netname,age,home from larchives where shenqing=true and sex='女' and photo>0 Order by piaoshu desc" star_girl.open sql,conn,1,1 if star_girl.eof and star_girl.bof then%>

没有,暂时空缺! <%else Set rs_pic = Server.CreateObject("ADODB.Recordset") sql="select id from pic where user_id=" & star_girl("user_id") & " and index = true" rs_pic.open sql,connpic,1,1 if rs_pic.eof and rs_pic.bof then pics=1 else pics=rs_pic("id") end if %>
">查看详细资料
<%=star_girl("netname")%>
年龄:<%=star_girl("age")%>
城市:<%=star_girl("home")%>
<%star_girl.close:set star_girl=nothing%> <%end if%>

<% '取得人气最高的型男 Set star_boy = Server.CreateObject("ADODB.Recordset") sql="select top 1 user_id,netname,age,home from larchives where shenqing=true and sex='男' and photo>0 Order by piaoshu desc" star_boy.open sql,conn,1,1 if star_boy.eof and star_boy.bof then%>

没有,暂时空缺! <%else Set rs_pic = Server.CreateObject("ADODB.Recordset") sql="select id from pic where user_id=" & star_boy("user_id") & " and index = true" rs_pic.open sql,connpic,1,1 if rs_pic.eof and rs_pic.bof then pics=1 else pics=rs_pic("id") end if %>
">查看详细资料
<%=star_boy("netname")%>
年龄:<%=star_boy("age")%>
城市:<%=star_boy("home")%>
<% rs_pic.close:set rs_pic=nothing star_boy.close:set star_boy=nothing end if%>

同城约会
缘友靓照
型男索女
推荐朋友
社区帮助
最新动态
最新加入的会员
男 士
<%Set rs_newboy = Server.CreateObject("ADODB.Recordset") rs_newboy.open "select top 15 user_id,netname,age,home from larchives where sex='男' order by lar_id desc",conn,1,1 do while not rs_newboy.eof%> " title="年龄:<%=rs_newboy("age")%>
所在地:<%=rs_newboy("home")%>" class="a03"><%=rs_newboy("netname")%>
<%rs_newboy.movenext%> <%loop%> <%rs_newboy.close%>
女 士
<%Set rs_newgirl = Server.CreateObject("ADODB.Recordset") rs_newgirl.open "select top 15 user_id,netname,age,home from larchives where sex='女' order by lar_id desc",conn,1,1 do while not rs_newgirl.eof%> " title="年龄:<%=rs_newgirl("age")%>
所在地:<%=rs_newgirl("home")%>" class="a03"><%=rs_newgirl("netname")%>
<%rs_newgirl.movenext%> <%loop%> <%rs_newgirl.close%>
最新上传照片的会员
男 士
<% Set rs_photoboy = Server.CreateObject("ADODB.Recordset") sql="select user_id from pic where index=True order by id desc" rs_photoboy.open sql,connpic,1,1 i=0 Set rs_bb = Server.CreateObject("ADODB.Recordset") do while not(rs_photoboy.eof) and (i<15) sql="select netname,age,home from larchives where sex='男' and user_id=" & rs_photoboy("user_id") rs_bb.open sql,conn,1,1 if rs_bb.recordcount<>0 then i=i+1%> " title="年龄:<%=rs_bb("age")%>
所在地:<%=rs_bb("home")%>" class="a03"><%=rs_bb("netname")%>
<% end if%> <%rs_photoboy.movenext%> <%rs_bb.close%> <%loop%> <%rs_photoboy.close%>
女 士
<% Set rs_photogirl = Server.CreateObject("ADODB.Recordset") sql="select user_id from pic where index=true order by id desc" rs_photogirl.open sql,connpic,1,1 i=0 Set rs_bb = Server.CreateObject("ADODB.Recordset") do while not(rs_photogirl.eof) and (i<15) sql="select netname,age,home from larchives where sex='女' and user_id=" & rs_photogirl("user_id") rs_bb.open sql,conn,1,1 if rs_bb.recordcount<>0 then i=i+1%> " title="年龄:<%=rs_bb("age")%>
所在地:<%=rs_bb("home")%>" class="a03"><%=rs_bb("netname")%>
<% end if%> <%rs_photogirl.movenext%> <%rs_bb.close%> <%loop%> <%rs_photogirl.close%>
最新征友信息
<% '取得寻友启事 Set rs_board = Server.CreateObject("ADODB.Recordset") rs_board.open "select top 8 * from callboard order by id desc",conn,1,1 if rs_board.recordcount=0 then%> <%else%> <%i=0%> <%do while not(rs_board.eof) and i<8 %> <%i=i+1%> <%rs_board.movenext%> <%loop%> <%end if%> <%rs_board.close set rs_board=nothing %>
 没有
"><%=strvalue(RmHtml(rs_board("board")),30)%> " title="点击查看详细资料" class="a03"><%=rs_board("name")%> <%=GetDate(rs_board("date"))%>
红色恋人统计信息
<% '取得入会人数 Set rs_user = Server.CreateObject("ADODB.Recordset") rs_user.open "user_reg",conn,1,1 records=rs_user.recordcount rs_user.close set rs_user=nothing '取得当天入会人数 Set rs_today = Server.CreateObject("ADODB.Recordset") rs_today.open "select user_id from user_reg where date=#" & cdate(date) & "#" ,conn,1,1 today_records=rs_today.recordcount rs_today.close set rs_today=nothing '取得投票数 Set rs_vote = Server.CreateObject("ADODB.Recordset") rs_vote.open "select ID from t_Vote where ParentID=0" ,conn,1,1 vote_count=rs_vote.recordcount rs_vote.close set rs_vote=nothing '取得今日生日 Set rs_birthday = Server.CreateObject("ADODB.Recordset") rs_birthday.open "select user_id,netname,sex,age,home from larchives where britherday like '%" & DatePart("m",date) & "-" & DatePart("d",date) & "'" ,conn,1,1 birnum=rs_birthday.recordcount '取得当天上传图片 Set rs_count = Server.CreateObject("ADODB.Recordset") rs_count.open "select id from pic where [date] > #" & cdate(date) & "#" ,connpic,1,1 today_pics=rs_count.recordcount rs_count.close set rs_count=nothing connpic.close set connpic=nothing Set articleconn = Server.CreateObject("ADODB.Connection") DBPath = Server.MapPath("article/txt97.asp") articleconn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath Set rs_article = Server.CreateObject("ADODB.Recordset") rs_article.open "select articleid from learning",articleconn,1,1 articlecount=rs_article.recordcount rs_article.close set rs_article=nothing articleconn.close set articleconn=nothing %>
共有<%=records%>位会员
共有<%=articlecount%>篇情感随笔
共有<%=vote_count%>组投票调查
今日有<%=today_records%>位会员加入
今日上载相片<%=today_pics%>张
今天生日的网友<%=birnum%>位
目前在线 <%=application("online")%> 人 <% '取得当前在线用户 Set rs_online = Server.CreateObject("ADODB.Recordset") rs_online.open "select online.user_id,larchives.netname,larchives.sex,larchives.age,larchives.home from online,larchives where online.user_id = larchives.user_id",conn,1,1 online_count=rs_online.recordcount %>
其中会员 <%=online_count%> 位,会员名单:
<%if online_count=0 then%> 暂时没有 <%else do while not(rs_online.eof) if rs_online("sex")="男" then%> " title="年龄:<%=rs_online("age")%>
所在地:<%=rs_online("home")%>" class="a03"><%=rs_online("netname")%>
<%else%> " title="年龄:<%=rs_online("age")%>
所在地:<%=rs_online("home")%>" class="a04"><%=rs_online("netname")%>
<%end if rs_online.movenext loop end if rs_online.close set rs_online=nothing %>
今天生日的会员
<%if birnum=0 then%> 没有 <%else do while not(rs_birthday.eof)%> <%if rs_birthday("sex")="男" then%> " class="a03" title="年龄:<%=rs_birthday("age")%>
所在地:<%=rs_birthday("home")%>"><%=rs_birthday("netname")%>
<%else%> " class="a04" title="年龄:<%=rs_birthday("age")%>
所在地:<%=rs_birthday("home")%>"><%=rs_birthday("netname")%>
<%end if%> <%rs_birthday.movenext loop end if rs_birthday.close set rs_birthday=nothing %>
会员人气TOP12
<% '取得人气最高的网友(12位) Set rs_lar = Server.CreateObject("ADODB.Recordset") rs_lar.open "select top 12 * from larchives order by renqi desc",conn,1,1 %> <%i=0%> <%do while not(rs_lar.eof) if i mod 2 =0 then %> <% else %> <% end if i=i+1 rs_lar.movenext loop rs_lar.close%>
 名 字 性别 照片 人气
 " title="年龄:<%=rs_lar("age")%>
所在地:<%=rs_lar("home")%>" class="a03"><%=rs_lar("netname")%>
<%=rs_lar("sex")%> <%if rs_lar("photo")>0 then%> √ <%else%>   <%end if%> <%=rs_lar("renqi")%>
 " title="年龄:<%=rs_lar("age")%>
所在地:<%=rs_lar("home")%>" class="a03"><%=rs_lar("netname")%>
<%=rs_lar("sex")%> <%if rs_lar("photo")>0 then%> √ <%else%>   <%end if%> <%=rs_lar("renqi")%>
精品文章 
<% dim conn2,rs2 set conn2=server.createobject("adodb.connection") DBPath = Server.MapPath("article/txt97.asp") conn2.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath sql="SELECT top 7 articleid,title,name,user_id,dateandtime FROM learning ORDER BY hits DESC" set rs2=server.createobject("adodb.recordset") rs2.open sql,conn2,1,1 if rs2.eof and rs2.bof then response.write "

还 没 有 任 何 文 章

" else i=0 do while not rs2.eof and i<7 %> ·)" title="标题:<%=rs2("title")%>
作者:<%=rs2("name")%>
发表于<%=rs2("dateandtime")%>" class="a06"><%=strvalue(rs2("title"),28)%>
<%=GetDate(rs2("dateandtime"))%>
<%i=i+1 rs2.movenext loop end if rs2.close %>
最新发表 
<% sql="SELECT top 7 articleid,title,name,user_id,dateandtime FROM learning ORDER BY articleid DESC" set rs2=server.createobject("adodb.recordset") rs2.open sql,conn2,1,1 if rs2.eof and rs2.bof then response.write "

还 没 有 任 何 文 章

" else do while not rs2.eof%> ·)" title="标题:<%=rs2("title")%>
作者:<%=rs2("name")%>
发表于<%=rs2("dateandtime")%>" class="a06"><%=strvalue(rs2("title"),28)%>
<%=GetDate(rs2("dateandtime"))%>
<% rs2.movenext loop end if rs2.close conn2.close set rs2=nothing set conn2=nothing %>
情感频道 
<% sql="SELECT top 7 articleid,title,dateandtime FROM learning where typeid=1 ORDER BY hits DESC" set rsz=server.createobject("adodb.recordset") rsz.open sql,conn3,1,1 if rsz.eof and rsz.bof then response.write "

还 没 有 任 何 文 章

" else do while not rsz.eof%> ·)" title="<%=rsz("title")%>" class="a06"><%=strvalue(rsz("title"),28)%>  <%=GetDate(rsz("dateandtime"))%>
<% rsz.movenext loop end if rsz.close %>
爱的心曲 
<% sql="SELECT top 7 articleid,title,dateandtime FROM learning where typeid=12 ORDER BY articleid DESC" set rsz=server.createobject("adodb.recordset") rsz.open sql,conn3,1,1 if rsz.eof and rsz.bof then response.write "

还 没 有 任 何 文 章

" else do while not rsz.eof%> ·)" title="<%=rsz("title")%>" class="a06"><%=strvalue(rsz("title"),28)%>  <%=GetDate(rsz("dateandtime"))%>
<% rsz.movenext loop end if rsz.close conn3.close set rsz=nothing set conn3=nothing %>
4更多的心动约会
<% Set Rs = Server.CreateObject("ADODB.Recordset") sql = "Select TOP 8 * From meeting Order By id Desc" Rs.Open sql,conn,1,1 i=0 DO While Not Rs.EOF i=i+1 %> <% if i mod 2 =0 then %> <% else %> <% end if %> <% Rs.MoveNext Loop Rs.Close() conn.close set conn=nothing %>
城市 约会人 约会名称 性质 要求
<%=Rs("user_city")%> - <%=Rs("city")%> " target=_blank class="a03"><%=Rs("user_name")%> <% if Rs("user_sex")="男" then %> 先生 <% else %> 小姐 <% end if %> " title="约会日期:<%=FormatDateTime(Rs("from_time"),vbShortDate)%>" class="a03"><%=Rs("topic")%> <%=Rs("meettype")%> <%=Rs("to_sex")%>(<%=Rs("from_age")%> - <%=Rs("to_age")%>岁)
<%=Rs("user_city")%> - <%=Rs("city")%> " target=_blank class="a03"><%=Rs("user_name")%> <% if Rs("user_sex")="男" then %> 先生 <% else %> 小姐 <% end if %> " title="约会日期:<%=FormatDateTime(Rs("from_time"),vbShortDate)%>" class="a03"><%=Rs("topic")%> <%=Rs("meettype")%> <%=Rs("to_sex")%>(<%=Rs("from_age")%> - <%=Rs("to_age")%>岁)
 
 
 
   
 
首页|广告联系|本站声明|注册帮助|友情链接|发布网站|访客留言
 
CopyRight www.lonpa.com © 1999-2004 All Rights Reserved.  
 
<% function strlen(str) dim p_len,xx p_len=0 strlen=0 if trim(str)<>"" then p_len=len(trim(str)) for xx=1 to p_len if asc(mid(str,xx,1))<0 then strlen=int(strlen) + 2 else strlen=int(strlen) + 1 end if next end if end function function strvalue(str,lennum) dim p_num dim i,x if strlen(str)<=lennum then strvalue=str else p_num=0 x=0 do while not p_num > lennum-2 x=x+1 if asc(mid(str,x,1))<0 then p_num=int(p_num) + 2 else p_num=int(p_num) + 1 end if strvalue=left(trim(str),x)&"..." loop end if end function function RmHtml(fString) fString = Replace(fString, CHR(13), " ") fString = Replace(fString, CHR(10) & CHR(10), " ") fString = Replace(fString, CHR(10), " ") fString = Replace(fString, "
", " ") fString = Replace(fString, "
", " ") fString = Replace(fString, "
", " ") fString = Replace(fString, "
", " ") fString = Replace(fString, "

", " ") fString = Replace(fString, "

", " ") fString = replace(fString, ">", ">") fString = replace(fString, "<", "<") RmHtml=fString End Function %>