<!-- #include file="includes/Connect.asp" -->
<!-- #include file="includes/Scripts_Professionals.asp" -->
<!-- #include file="includes/Banner_Ads.asp" -->
<!-- #include file="includes/Badge_Ads.asp" -->
<html>
<head>
<title>Services/Professionals</title>
<script language="JavaScript">
<!-- #include file="includes/PopUp.js" -->
</script>
</head>
<body topmargin="0" bgcolor="#FFFFFF" link="#7A3F99" vlink="#A66B88" alink="#B7C795">
<!-- #include file="header.asp" -->
<div align="center">
<table border="0" width="739" cellspacing="0" cellpadding="0">
<tr>
<!-- column for badges -->
<td width="145" valign="top" background="common/pg_badge_bg.gif">
<!-- badges -->
<table border="0" cellpadding="0" cellspacing="0" width="145" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%" background="common/pg_badge_hdr_bg.gif" align="center" height="20"><p align="center"><i><font face="Verdana, Tahoma, Arial, Helvetica" size="2" color="#7A3C9A"><%=BadgeAltTag%></font></i></td>
</tr>
<tr>
<td width="100%" align="center" height="155"><p align="center"><%=BadgeString%><br>
<font size="1"> </font></td>
</tr>
<tr>
<td width="100%" background="common/pg_badge_hdr_bg2.gif" align="center" height="20"><p align="center"><i><font face="Verdana, Tahoma, Arial, Helvetica" size="2" color="#7A3C9A"><%=BadgeAltTag2%></font></i></td>
</tr>
<tr>
<td width="100%" align="center" height="155"><p align="center"><%=BadgeString2%><br>
<font size="1"> </font></td>
</tr>
<tr>
<td width="100%" background="common/pg_badge_hdr_bg2.gif" align="center" height="20"><p align="center"><i><font face="Verdana, Tahoma, Arial, Helvetica" size="2" color="#7A3C9A"><%=BadgeAltTag3%></font></i></td>
</tr>
<tr>
<td width="100%" align="center" height="155"><p align="center"><%=BadgeString3%><br>
<font size="1"> </font></td>
</tr>
<tr>
<td width="100%" background="common/pg_badge_hdr_bg2.gif" align="center" height="20"><p align="center"><i><font face="Verdana, Tahoma, Arial, Helvetica" size="2" color="#7A3C9A"><%=BadgeAltTag4%></font></i></td>
</tr>
<tr>
<td width="100%" align="center" height="155"><p align="center"><%=BadgeString4%><br>
<font size="1"> </font></td>
</tr>
<tr>
<td width="100%" align="center"> </td>
</tr>
</table>
<!-- end of badges -->
</td>
<!-- end of column for badges -->
<!-- column for space between badges and banners/categories -->
<td width="14" valign="top"> </td>
<!-- end of column for space -->
<!-- column for page content -->
<td width="580" valign="top">
<!-- content -->
<table border="0" cellpadding="0" cellspacing="0" width="580">
<tr>
<td width="580" colspan="3">
<!-- banners -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="92"><img border="0" src="main/pg_banner_pic.gif"></td>
<td width="487">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="33%" background="common/pg_banner_bg.gif" height="20" align="center"><i><font face="Verdana, Tahoma, Arial, Helvetica" size="2" color="#7A3C9A"><%=AltTag%></font></i></td>
<td width="33%" background="common/pg_banner_bg.gif" height="20" align="center"><i><font face="Verdana, Tahoma, Arial, Helvetica" size="2" color="#7A3C9A"><%=AltTag2%></font></i></td>
<td width="34%" background="common/pg_banner_bg.gif" height="20" align="center"><i><font face="Verdana, Tahoma, Arial, Helvetica" size="2" color="#7A3C9A"><%=AltTag3%></font></i></td>
</tr>
<tr>
<td width="33%" background="common/pg_banner_bg2.gif" height="66" align="center"><%=BannerString%></td>
<td width="33%" background="common/pg_banner_bg2.gif" height="66" align="center"><%=BannerString2%></td>
<td width="34%" background="common/pg_banner_bg2.gif" height="66" align="center"><%=BannerString3%></td>
</tr>
</table>
</td>
<td width="1"><img src="common/pg_banner_end.gif" width="1" height="86" border="0"></td>
</tr>
</table>
<!-- end of banners -->
</td>
</tr>
<tr>
<td width="580" valign="top" colspan="3"><font size="1"> </font></td>
</tr>
<tr>
<td width="580" valign="top" colspan="3">
<!-- category name and category menu -->
<form name="choose_category">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="60%" valign="top"><font size="1"> </font><br><font face="Verdana, Tahoma, Arial, Helvetica" color="#7A3F99" size="4"><i><b><%=CName%></b></i></font></td>
<td width="40%" valign="top" align="right"><p align="right"><font size="1"> <font><br>
<font size="2"><select name="categories" size="1" onchange="if (this.options[this.selectedIndex].value != '') {parent.location.href = this.options[this.selectedIndex].value}">
<option value="#">Choose Another Category</option>
<%
' BEGIN LISTING CATEGORIES **************************************************************************************
CategoryString = ""
Set rsCategories = cnSupport.Execute("SELECT * FROM tblCategories WHERE CategoryName <> 'Distributors' ORDER BY CategoryName")
do while not rsCategories.eof
if CInt(rsCategories("CategoryID")) = CInt(CID) then
CatSel = " selected"
else
CatSel = ""
end if
CatName = rsCategories("CategoryName")
CatName = Replace(CatName," ","_")
CatName = Replace(CatName,"&","and")
CatName = Replace(CatName,"/",",")
CatName = Replace(CatName,"Limos_","Limousines_")
CategoryString = CategoryString & "<option" & CatSel & " value=""professionals.asp?MARKETID=" & MARKETID & "&CID=" & rsCategories("CategoryID") & "&CAT=" & CatName & """>" & rsCategories("CategoryName") & "</option>" & vbcrlf
rsCategories.movenext
loop
rsCategories.close
%>
<%=CategoryString%>
<option value="distributors.asp?MARKETID=<%=MARKETID%>">-------------------</option>
<option value="distributors.asp?MARKETID=<%=MARKETID%>">DISTRIBUTION LOCATIONS</option>
<option value="distributors.asp?MARKETID=<%=MARKETID%>">-------------------</option>
</select>
</font></td>
</tr>
</table>
</form>
<!-- end of category name and menu -->
</td>
</tr>
<tr>
<td width="580" valign="top" colspan="3">
<font size="1"> </font>
</td>
</tr>
<tr>
<td width="420" valign="top">
<!-- Begin Listings -->
<table border="0" width="100%" cellpadding="2">
<%
'ESTABLISH NEW/UPDATE DATES ***********************************************************************************
intInterval = -7
NewDate = DateAdd("D", intInterval, sDate)
'ESTABLISH COUNT ***********************************************************************************************
cntDirectory = 0
cntDirectory2 = 0
'ESTABLISH MATCH VALUE *****************************************************************************************
sMatch = ""
'RETREIVE LISTINGS *********************************************************************************************
SQL="SELECT tblAdvertiser_Locations.*, tblAdvertiser_Locations_Markets.*, tblAdvertiser_Locations_Categories.* "
SQL=SQL & "FROM tblAdvertiser_Locations, tblAdvertiser_Locations_Markets, tblAdvertiser_Locations_Categories "
SQL=SQL & "WHERE tblAdvertiser_Locations_Markets.MarketID = " & MARKETID & " "
SQL=SQL & "AND tblAdvertiser_Locations_Categories.CategoryID = " & CID & " "
SQL=SQL & "AND tblAdvertiser_Locations_Markets.LocationID = tblAdvertiser_Locations_Categories.LocationID "
SQL=SQL & "AND tblAdvertiser_Locations_Categories.LocationID = tblAdvertiser_Locations.LocationID "
SQL=SQL & "ORDER BY tblAdvertiser_Locations.EP DESC, tblAdvertiser_Locations.Name"
Set rsDirectory = cnSupport.Execute(SQL)
do while not rsDirectory.eof
sMatch2 = rsDirectory("Name") & rsDirectory("Address") & rsDirectory("Contact") & rsDirectory("Email")
if sMatch2 <> sMatch then
'BEGIN LOOPING LISTINGS ****************************************************************************************
Set rsDisable = cnSupport.Execute("SELECT * FROM tblAdvertisers WHERE AdvertiserID = " & rsDirectory("AdvertiserID") & " ORDER BY AdvertiserID")
while not rsDisable.eof
sDisabled = rsDisable("Late")
sSTATUS = rsDisable("STATUS")
rsDisable.movenext
Wend
rsDisable.close
if sDisabled <> "Yes" then
if sSTATUS <> "Deactive" then
if rsDirectory("Name") <> "" then
'IF CITY IS ENTERED IN DATABASE, LIST THE CITY NEXT TO THE COMPANY NAME **********************************
if rsDirectory("City") <> "" then
sCity = ", <i>" & rsDirectory("City") & "</i>"
else
sCity = ""
end if
'IF LISTING IS LESS THAN 30 DAYS OLD, DISPLAY A NEW BANNER NEXT TO NAME **********************************
if rsDirectory("LocationDate") >= NewDate then
if rsDirectory("UpdateDate") >= NewDate then
sNew = ""
sUpdate = " <img src='common/icon_updated.gif' border='0' width='62' height='13' alt='UPDATED Listing'>"
else
sUpdate = ""
sNew = " <img src='common/icon_new.gif' border='0' width='62' height='13' alt='JUST Listed'>"
end if
else
sNew = ""
if rsDirectory("UpdateDate") >= NewDate then
sUpdate = " <img src='common/icon_updated.gif' border='0' width='62' height='13' alt='UPDATED Listing'>"
else
sUpdate = ""
end if
end if
if rsDirectory("Slogan") <> "" then
sSlogan = "<br><font face=""Verdana, Tahoma, Arial, Helvetica"" color=""#000000"" size=""2""><i>" & rsDirectory("Slogan") & "</i></font>"
else
sSlogan = ""
end if
if rsDirectory("EP") = 3 then
if cntDirectory = 0 then
%>
<tr>
<td width="100%" valign="middle" colspan="2"><p style="margin-left: 3"><img src="common/hdr_featuredpros.gif" width="155" height="25" border="0"></p>
</td>
</tr>
<%
end if
else
if cntDirectory2 = 0 then
%>
<tr>
<td width="100%" valign="middle" colspan="2"><p style="margin-left: 3"><img src="common/hdr_pros.gif" width="125" height="25" border="0"></p>
</td>
<%
end if
end if
if rsDirectory("EP") = 3 then
strBullet = "blt_vendor_star.gif"
strCellColor = "#FFFFFF"
else
strBullet = "blt_vendor.gif"
if rsDirectory("EP") = 2 then
strCellColor = "#FFFFD7"
else
if rsDirectory("EP") = 1 then
strCellColor = "#ECEDFD"
else
strCellColor = "#DAF2D7"
end if
end if
end if
%>
<tr>
<td width="7%" valign="middle">
<p align="center"><img border="0" src="common/<%=strBullet%>"></td>
<td width="93%" bgcolor="<%=strCellColor%>" valign="top">
<p style="margin-left: 3"><font face="Verdana, Tahoma, Arial, Helvetica" color="#081697" size="2"><A HREF="javascript:void(0)" onclick="N = window.open('popups/profilecnt.asp?MARKETID=<%=MARKETID%>&LID=<%=rsDirectory("LocationID")%>','N','toolbar=1,status=1,menubar=1,resizable=yes,scrollbars=yes,width=620,height=480'); if(!(N.closed)) {N.focus();} TimedDelay = setTimeout('if(!(N.closed)) {N.focus();}', 1500);"><%=rsDirectory("Name")%><%=sCity%></a></font><%=sNew%><%=sUpdate%><%=sSlogan%></p>
</td>
</tr>
<tr>
<td width="100%" colspan="2"><img src="common/blk_vendors.gif" border="0" height="6" width="25"></td>
</tr>
<%
end if
end if
cntDirectory = cntDirectory + 1
if rsDirectory("EP") = 3 then
cntDirectory2 = cntDirectory2
else
cntDirectory2 = cntDirectory2 + 1
end if
end if
sMatch = sMatch2
end if
rsDirectory.MoveNext
Loop
rsDirectory.close
'RETREIVE DISTRIBUTORS *********************************************************************************************
SQL="SELECT tblDistributors.*, tblDistributor_Markets.*, tblDistributor_Categories.* "
SQL=SQL & "FROM tblDistributors, tblDistributor_Markets, tblDistributor_Categories "
SQL=SQL & "WHERE tblDistributor_Markets.MarketID = " & MARKETID & " "
SQL=SQL & "AND tblDistributor_Categories.CategoryID = " & CID & " "
SQL=SQL & "AND tblDistributor_Markets.DistributorID = tblDistributor_Categories.DistributorID "
SQL=SQL & "AND tblDistributor_Categories.DistributorID = tblDistributors.DistributorID "
SQL=SQL & "ORDER BY tblDistributors.Name"
Set rsDirectory = cnSupport.Execute(SQL)
do while not rsDirectory.eof
if rsDirectory("Name") <> "" then
'IF CITY IS ENTERED IN DATABASE, LIST THE CITY NEXT TO THE COMPANY NAME **********************************
if rsDirectory("City") <> "" then
sCity = ", <i>" & rsDirectory("City") & "</i>"
else
sCity = ""
end if
'IF LISTING IS LESS THAN 30 DAYS OLD, DISPLAY A NEW BANNER NEXT TO NAME ***********************************
if rsDirectory("DistributorDate") >= NewDate then
if rsDirectory("UpdateDate") >= NewDate then
sNew = ""
sUpdate = " <img src='common/icon_updated.gif' border='0' width='62' height='13' alt='UPDATED Listing'>"
else
sUpdate = ""
sNew = " <img src='common/icon_new.gif' border='0' width='62' height='13' alt='JUST Listed'>"
end if
else
sNew = ""
if rsDirectory("UpdateDate") >= NewDate then
sUpdate = " <img src='common/icon_updated.gif' border='0' width='62' height='13' alt='UPDATED Listing'>"
else
sUpdate = ""
end if
end if
if rsDirectory("Slogan") <> "" then
sSlogan = "<br><font face=""Verdana, Tahoma, Arial, Helvetica"" color=""#000000"" size=""2""><i>" & rsDirectory("Slogan") & "</i></font>"
else
sSlogan = ""
end if
%>
<tr>
<td width="7%" valign="middle">
<p align="center"><img border="0" src="common/blt_vendor.gif"></td>
<td width="93%" bgcolor="#FFFFFF" valign="top">
<p style="margin-left: 3"><font face="Verdana, Tahoma, Arial, Helvetica" size="2"><A HREF="javascript:void(0)" onclick="N = window.open('popups/distprofilecnt.asp?DbID=<%=rsDirectory("DistributorID")%>','N','toolbar=1,status=1,menubar=1,resizable=yes,scrollbars=yes,width=620,height=480'); if(!(N.closed)) {N.focus();} TimedDelay = setTimeout('if(!(N.closed)) {N.focus();}', 1500);"><%=rsDirectory("Name")%><%=sCity%></a></font><%=sNew%><%=sUpdate%><%=sSlogan%></p>
</td>
</tr>
<tr>
<td width="100%" colspan="2"><img src="common/blk_vendors.gif" border="0" height="6" width="25"></td>
</tr>
<%
cntDirectory = cntDirectory + 1
end if
rsDirectory.movenext
loop
rsDirectory.close
if cntDirectory = 0 then
strCount = "No"
else
strCount = cntDirectory
end if
if cntDirectory = 1 then
strEntries = "listing"
else
strEntries = "listings"
end if
%>
<!-- Record Count -->
<tr>
<td width="100%" colspan="2"><p style="margin-left: 23"><font face="Verdana, Tahoma, Arial, Helvetica" color="#081697" size="2"> <br><i><b><%=strCount%></b> <%=strEntries%> in <%=FName%> for "<%=CName%>"</i></font> </p>
<p style="margin-left: 23"><form><p style="margin-left: 23"><img border="0" src="common/hdr_choosecategory.gif"><br>
<select name="categories" size="1" onchange="if (this.options[this.selectedIndex].value != '') {parent.location.href = this.options[this.selectedIndex].value}">
<option value="#">Choose Another Category</option>
<%=CategoryString%>
<option value="distributors.asp?MARKETID=<%=MARKETID%>">-------------------</option>
<option value="distributors.asp?MARKETID=<%=MARKETID%>">DISTRIBUTION LOCATIONS</option>
<option value="distributors.asp?MARKETID=<%=MARKETID%>">-------------------</option>
</select></p>
</form></td>
</tr>
<!-- End of Count -->
</table>
<!-- End Contents ---->
</td>
<td width="14" valign="top"> </td>
<td width="146" valign="top">
<!-- info boxes -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%"><img border="0" src="common/pg_header_wordfromdoug.gif"></td>
</tr>
<tr>
<td width="100%" background="common/pg_right_bg2.gif"><p style="margin-left: 5; margin-right: 5"><font face="Verdana, Tahoma, Arial, Helvetica" size="2">Coming Soon, so stay tuned...</font></td>
</tr>
<tr>
<td width="100%"><img border="0" src="common/pg_right_bottom2.gif"></td>
</tr>
<tr>
<td width="100%"><font size="1"> </font></td>
</tr>
<tr>
<td width="100%"><img border="0" src="common/pg_header_askdoug.gif"></td>
</tr>
<tr>
<td width="100%" background="common/pg_right_bg2.gif"><p style="margin-left: 5; margin-right: 5"><font face="Verdana, Tahoma, Arial, Helvetica" size="2">Have a question? Email Us at <a href="mailto:admin@mysite.com">admin@mysite.com</a>. If we
publish your email and your reply, we'll omit your name!<br>
</font><font face="Verdana, Tahoma, Arial, Helvetica" size="1"> <br>
</font><font face="Verdana, Tahoma, Arial, Helvetica" size="2">Get the answers to your home and garden questions with "Dear Doug"!</font></td>
</tr>
<tr>
<td width="100%"><img border="0" src="common/pg_right_bottom2.gif"></td>
</tr>
<tr>
<td width="100%"><font size="1"> </font></td>
</tr>
</table>
<!-- end of info boxes -->
</td>
</tr>
<tr>
<td width="420"> </td>
<td width="14"> </td>
<td width="146"> </td>
</tr>
</table>
<!-- end of content -->
</td>
<!-- end of column for page content -->
</tr>
<tr>
<td width="739" colspan="3"><img border="0" src="common/pg_badge_bg_bottom.gif"></td>
</tr>
<tr>
<td width="145"> </td>
<td width="14"> </td>
<td width="580"> </td>
</tr>
</table>
</div>
<!-- #include file="footer.asp" -->
<p align="center"> </p>
</body>
</html>