%@LANGUAGE="VBSCRIPT"%> <% '=============================================== ' Personals System 2002 ' ©2002 vSpin.net. www.vspin.net '=============================================== ' All rights reserved. ' Use of this code is covered by the terms and ' conditions in the license agreement. No ' unauthorized duplication or distribution is ' permitted. vSpin.net copyright notices must ' remain in the ASP sections of the code. '=============================================== %> <% dim xxxxm, rsheadUpdatee, rsheadUpdatee_numRows Dim rsdate, rsdate_numRows, rsViewss, rsViewss_numRows, rsNew, rsNew_numRows, rslocav, rslocav_numRows, p_sex, p_relationship, aryFileType, numFileLoopCounter, strFileStatus, callmode, thepath, fs, numFilePresentCheck '------------------------- 'Expired Ad(s) Auto Inactive '------------------------- set rsdate = Server.CreateObject("ADODB.Recordset") rsdate.ActiveConnection = MM_conn_STRING rsdate.Source = "SELECT p_id FROM p_ads WHERE p_expdate < Date ()" rsdate.CursorType = 0 rsdate.CursorLocation = 2 rsdate.LockType = 3 rsdate.Open() rsdate_numRows = 0 Dim repeat2__numRows repeat2__numRows = -1 Dim repeat2__index repeat2__index = 0 rsdate_numRows = rsdate_numRows + repeat2__numRows If Not rsdate.EOF Or Not rsdate.BOF Then While ((repeat2__numRows <> 0) AND (NOT rsdate.EOF)) p_idd = rsdate("p_id") Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open MM_conn_STRING sql1 = "UPDATE p_ads SET p_active=1" & p_active & " WHERE p_id=" & p_idd conn.execute(sql1) repeat2__index=repeat2__index+1 repeat2__numRows=repeat2__numRows-1 rsdate.MoveNext() Wend conn.close set conn = nothing rsdate.close set rsdate = nothing end if '--------------------------- 'End Expired Ads Inactive '-------------------------- set rsViewss = Server.CreateObject("ADODB.Recordset") rsViewss.ActiveConnection = MM_conn_STRING rsViewss.Source = "select p_ads.p_sex, p_ads.p_relationship, p_ads.p_photoapprove, p_ads.p_id, p_ads.p_headline, p_ads.p_age, p_ads.p_city, p_ads.p_views, p_ads.p_expdate,p_locations.* from (p_ads INNER JOIN p_locations on p_ads.p_city = p_locations.p_idl) where p_active=0 ORDER BY p_views DESC" rsViewss.CursorType = 0 rsViewss.CursorLocation = 2 rsViewss.LockType = 3 rsViewss.Open() rsViewss_numRows = 0 set rsNew = Server.CreateObject("ADODB.Recordset") rsNew.ActiveConnection = MM_conn_STRING rsNew.Source = "select p_ads.p_sex, p_ads.p_relationship, p_ads.p_photoapprove, p_ads.p_id, p_ads.p_headline, p_ads.p_age, p_ads.p_city, p_ads.p_views, p_ads.p_expdate,p_locations.* from (p_ads INNER JOIN p_locations on p_ads.p_city = p_locations.p_idl) where p_active=0 ORDER BY p_id DESC" rsNew.CursorType = 0 rsNew.CursorLocation = 2 rsNew.LockType = 3 rsNew.Open() rsNew_numRows = 0 Dim Repeat1__numRows Repeat1__numRows = 10 Dim Repeat1__index Repeat1__index = 0 rsViewss_numRows = rsViewss_numRows + Repeat1__numRows Dim Repeat11__numRows Repeat11__numRows = 10 Dim Repeat11__index Repeat11__index = 0 rsNew_numRows = rsNew_numRows + Repeat11__numRows count_sqry1 = "Select count(*) as 1_count From p_ads where p_sex = 1 AND p_seek BETWEEN 1 AND 2 AND p_active = 0" count_sqry2 = "Select count(*) as 2_count From p_ads where p_sex = 1 AND p_seek BETWEEN 2 AND 3 AND p_active = 0" count_sqry3 = "Select count(*) as 3_count From p_ads where p_sex = 2 AND p_seek BETWEEN 1 AND 2 AND p_active = 0" count_sqry4 = "Select count(*) as 4_count From p_ads where p_sex = 2 AND p_seek BETWEEN 2 AND 3 AND p_active = 0" set counter1=MM_conn_STRING.Execute (count_Sqry1) set counter2=MM_conn_STRING.Execute (count_Sqry2) set counter3=MM_conn_STRING.Execute (count_Sqry3) set counter4=MM_conn_STRING.Execute (count_Sqry4) count_1 = counter1("1_count") count_2 = counter2("2_count") count_3 = counter3("3_count") count_4 = counter4("4_count") %>
|
<% If Not rsSession.EOF Or Not rsSession.BOF Then %><% else %> |
|
|
|||||||||||||
|
|
|
||||||||||||||
|
|||||||||||||||
|
|
|||||||||||||||
|
|
|||||||||||||||
|
|
|||||||||||||||
|
Females
Males (<% = count_2 %>) |
Males
Females (<% = count_3 %>) |
||||||||||||||
|
Females
Females (<% = count_1 %>) |
Males
Males (<% = count_4 %>) |
||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
|
|
Top 10 Most Viewed Ads |
|||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
|
|
Top 10 Newest Ads |
|||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||