<% if (isNull(request.cookies("ckyUserID"))) or (request.cookies("ckyUserID")="") then response.redirect "index.asp" end if %> <!--#include file="title.htm"--> - Contact Detail <% lngTab = request.QueryString("lngTab") if lngTab > 0 then response.write "" else response.write "" end if %>
<% CID = request.QueryString("CID") response.Write "" if CID > 0 then if lngTab=1 then response.Write "" x = swapIt(x) response.write "" response.write "" s = "SELECT tblContact.strName AS theContact, " & _ "tblTitle.strDescription AS theTitle, " & _ "tblDesignation.strDescription AS theDesignation, " & _ "tblPublication.strName AS thePublication, " & _ "tblPublication.strSwitchboard, " & _ "tblShow.strName AS theShow, " & _ "tblContact.strTel, " & _ "tblContact.strTelAlternate, " & _ "tblPublication.strFax, " & _ "tblContact.strFaxAlternate, " & _ "tblContact.strCell, " & _ "tblContact.strEmail, " & _ "tblContact.strEmailAlternate, " & _ "tblContact.strCarReg, " & _ "tblContact.strDateEdited, " & _ "tblContact.strPAName, " & _ "tblContact.strPATel, " & _ "tblContact.strPAEmail, " & _ "tblContact.memNotes, " & _ "tblContact.memInterests " & _ "FROM tblContact INNER JOIN tblPublication ON tblContact.refPublicationID = tblPublication.PublicationID INNER JOIN " & _ "tblTitle ON tblContact.refTitleID = tblTitle.TitleID INNER JOIN tblDesignation ON tblContact.refDesignationID = tblDesignation.DesignationID " & _ "LEFT JOIN tblShow ON tblContact.refShowID = tblShow.ShowID " & _ "WHERE (((tblContact.ContactID)=" & CID & "))" set rst = cn.execute(s) if not rst.eof then x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" ' x = swapIt(x) response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" 'if (isnull(rst("memNotes"))) or (rst("memNotes")="") then ' notes = "" 'else notes = rst("memNotes") ' notes = replace(notes, vbCr, "
") 'notes = replace(notes, vbLf, "
") 'end if response.write "" x = swapIt(x) response.write "" response.write "" x = swapIt(x) response.write "" response.write "" x = swapIt(x) response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" else response.write "" end if rst.close elseif lngTab = 2 then response.write "
Journalist" response.write "Publication
 
Title:" & rst("theTitle") & "Switchboard:" & rst("strSwitchboard") & "
Name:" & rst("theContact") & "Phone:" & rst("strTel") & "
Designation:" & rst("theDesignation") & "Alternate Phone:" & rst("strTelAlternate") & "
Publication:" & rst("thePublication") & "Cell:" & rst("strCell") & "
Show/Section:" & rst("theShow") & "Fax:" & rst("strFax") & "
Beat:" s = "SELECT tblBeat.strDescription, tblContactBeat.refContactID " & _ "FROM tblBeat INNER JOIN tblContactBeat ON tblBeat.BeatID = tblContactBeat.refBeatID " & _ "WHERE (((tblContactBeat.refContactID)=" & CID & ")) " & _ "ORDER BY tblBeat.strDescription" set rstBeat = cn.execute(s) while not rstBeat.eof response.write "" rstBeat.movenext wend rstBeat.close response.write "
" & rstBeat("strDescription") & "
Direct Fax:" & rst("strFaxAlternate") & "
Email:" & rst("strEmail") & "
Alternate Email:" & rst("strEmailAlternate") & "
Notes:" & notes & "
PA Name:" & rst("strPAName") & "
PA Tel:" & rst("strPATel") & "
PA Email:" & rst("strPAEmail") & "
Car Reg:" & rst("strCarReg") & "
Distribution List:" s = "SELECT tblDistributionList.strDescription, tblContactDistributionList.refContactID " & _ "FROM tblDistributionList INNER JOIN tblContactDistributionList ON tblDistributionList.DistributionListID = tblContactDistributionList.refDistributionListID " & _ "WHERE (((tblContactDistributionList.refContactID)=" & CID & ")) " & _ "ORDER BY tblDistributionList.strDescription" set rstDistributionList = cn.execute(s) while not rstDistributionList.eof response.write "" rstDistributionList.movenext wend rstDistributionList.close response.write "
" & rstDistributionList("strDescription") & "
Date Card Updated: " & rst("strDateEdited") & "
Contact details not found
" x = swapIt(x) response.write "" response.write "" s = "SELECT tblContact.ContactID, " & _ "tblShow.strName AS theShow, " & _ "tblShow.strAppearing, " & _ "tblShow.strDeadline, " & _ "tblShow.strDetails, " & _ "tblShow.lngReach AS theShowReach, " & _ "tblShow.strHost, " & _ "tblPublication.strName AS thePublication, " & _ "tblPublication.strLSM, " & _ "tblPublication.strAge, " & _ "tblPublication.strURL, " & _ "tblPublication.strPost, " & _ "tblPublication.strLogin, " & _ "tblPublication.strPhys, " & _ "tblSuburb.strDescription AS theSuburb, " & _ "tblCity.strDescription AS theCity, " & _ "tblPublication.strFootprint, " & _ "tblPublication.strCopyNewsdesk, " & _ "tblPublication.strDirections, " & _ "tblPublication.strCirculation, " & _ "tblPublication.strSwitchboard, " & _ "tblPublication.strFax, " & _ "tblPublication.strDescription as thePubDesc, " & _ "tblCategory.strDescription AS theCategory, " & _ "tblLanguage.strDescription AS theLanguage, " & _ "tblPublication.lngReach AS thePubReach " & _ "FROM (((((tblContact INNER JOIN tblPublication ON tblContact.refPublicationID = tblPublication.PublicationID) " & _ "INNER JOIN tblCategory ON tblPublication.refCategoryID = tblCategory.CategoryID) " & _ "INNER JOIN tblLanguage ON tblPublication.refLanguageID = tblLanguage.LanguageID) " & _ "INNER JOIN tblSuburb ON tblPublication.refPhysSuburbID = tblSuburb.SuburbID) " & _ "INNER JOIN tblCity ON tblPublication.refPhysCityID = tblCity.CityID) " & _ "LEFT JOIN tblShow ON tblContact.refShowID = tblShow.ShowID " & _ "WHERE (((tblContact.ContactID)=" & CID & "))" set rst = cn.execute(s) if not rst.eof then x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" x = swapIt(x) response.write "" response.write "" response.write "" response.write "" response.write "" else response.write "" end if rst.close else 'lngTab = 0 -> Printer friendly response.Write "
Journalist" response.write "Publication
 
Publication:" & rst("thePublication") & "Description:" & rst("thePubDesc") & "
Category:" & rst("theCategory") & "Switchboard:" & rst("strSwitchboard") & "
Language:" & rst("theLanguage") & "Fax:" & rst("strFax") & "
AMPS Reach:" & rst("thePubReach") & "Circulation:" & rst("strCirculation") & "
  Website:" & rst("strURL") & "
Website Login:" & rst("strLogin") & "
Postal Address:" & rst("strPost") & "
LSM:" & rst("strLSM") & "
Age:" & rst("strAge") & "
Courier Address:" & rst("strPhys") & "
Show/Section:" & rst("theShow") & "Suburb:" & rst("theSuburb") & "
Airing/Appearing:" & rst("strAppearing") & "City:" & rst("theCity") & "
Show Details:" & rst("strDetails") & "
Reach:" & rst("theShowReach") & "
Producer:" & rst("strDeadline") & "Directions:" & rst("strDirections") & "
Footprint:" & rst("strFootprint") & "
Host:" & rst("strHost") & "
Newsdesk email:" & rst("strCopyNewsdesk") & "
Publication details not found
" response.write "" response.write "" s = "SELECT tblContact.strName AS theContact, " & _ "tblTitle.strDescription AS theTitle, " & _ "tblDesignation.strDescription AS theDesignation, " & _ "tblPublication.strName AS thePublication, " & _ "tblContact.strSwitchboard, " & _ "tblContact.strTel, " & _ "tblContact.strTelAlternate, " & _ "tblContact.strFax, " & _ "tblContact.strCell, " & _ "tblContact.strEmail, " & _ "tblContact.strEmailAlternate, " & _ "tblContact.strCarReg, " & _ "tblContact.strDateEdited, " & _ "tblContact.strPAName, " & _ "tblContact.strPATel, " & _ "tblContact.strPAEmail, " & _ "tblContact.memNotes, " & _ "tblContact.memInterests " & _ "FROM tblContact INNER JOIN tblPublication ON tblContact.refPublicationID = tblPublication.PublicationID INNER JOIN " & _ "tblTitle ON tblContact.refTitleID = tblTitle.TitleID INNER JOIN tblDesignation ON tblContact.refDesignationID = tblDesignation.DesignationID " & _ "WHERE (((tblContact.ContactID)=" & CID & "))" set rst = cn.execute(s) if not rst.eof then response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" 'if (isnull(rst("memNotes"))) or (rst("memNotes") = "") then ' notes = "" ' else notes = rst("memNotes") ' notes = replace(notes, vbCr, "
") ' notes = replace(notes, vbLf, "
") ' end if response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" else response.write "" end if rst.close response.Write "
Journalist
 
Title:" & rst("theTitle") & "Switchboard:" & rst("strSwitchboard") & "
Name:" & rst("theContact") & "Phone:" & rst("strTel") & "
Designation:" & rst("theDesignation") & "Alternate Phone:" & rst("strTelAlternate") & "
Publication:" & rst("thePublication") & "Cell:" & rst("strCell") & "
Beat:" s = "SELECT tblBeat.strDescription, tblContactBeat.refContactID " & _ "FROM tblBeat INNER JOIN tblContactBeat ON tblBeat.BeatID = tblContactBeat.refBeatID " & _ "WHERE (((tblContactBeat.refContactID)=" & CID & ")) " & _ "ORDER BY tblBeat.strDescription" set rstBeat = cn.execute(s) while not rstBeat.eof response.write "" rstBeat.movenext wend rstBeat.close response.write "
" & rstBeat("strDescription") & "
Fax:" & rst("strFax") & "
Email:" & rst("strEmail") & "
Alternate Email:" & rst("strEmailAlternate") & "
Notes:" & notes & "
PA Name:" & rst("strPAName") & "
PA Tel:" & rst("strPATel") & "
PA Email:" & rst("strPAEmail") & "
Car Reg:" & rst("strCarReg") & "
Distribution List:" s = "SELECT tblDistributionList.strDescription, tblContactDistributionList.refContactID " & _ "FROM tblDistributionList INNER JOIN tblContactDistributionList ON tblDistributionList.DistributionListID = tblContactDistributionList.refDistributionListID " & _ "WHERE (((tblContactDistributionList.refContactID)=" & CID & ")) " & _ "ORDER BY tblDistributionList.strDescription" set rstDistributionList = cn.execute(s) while not rstDistributionList.eof response.write "" rstDistributionList.movenext wend rstDistributionList.close response.write "
" & rstDistributionList("strDescription") & "
Date Card Updated: " & rst("strDateEdited") & "
Contact details not found

" response.write "" response.write "" s = "SELECT tblContact.ContactID, " & _ "tblShow.strName AS theShow, " & _ "tblShow.strAppearing, " & _ "tblShow.strDeadline, " & _ "tblShow.lngReach AS theShowReach, " & _ "tblShow.strHost, " & _ "tblShow.strDetails, " & _ "tblPublication.strName AS thePublication, " & _ "tblPublication.strLSM, " & _ "tblPublication.strAge, " & _ "tblPublication.strURL, " & _ "tblPublication.strPost, " & _ "tblPublication.strLogin, " & _ "tblPublication.strPhys, " & _ "tblSuburb.strDescription AS theSuburb, " & _ "tblCity.strDescription AS theCity, " & _ "tblPublication.strFootprint, " & _ "tblPublication.strCopyNewsdesk, " & _ "tblPublication.strDirections, " & _ "tblPublication.strCirculation, " & _ "tblPublication.strSwitchboard, " & _ "tblPublication.strFax, " & _ "tblPublication.strDescription as thePubDesc, " & _ "tblCategory.strDescription AS theCategory, " & _ "tblLanguage.strDescription AS theLanguage, " & _ "tblPublication.lngReach AS thePubReach " & _ "FROM (((((tblContact INNER JOIN tblPublication ON tblContact.refPublicationID = tblPublication.PublicationID) " & _ "INNER JOIN tblCategory ON tblPublication.refCategoryID = tblCategory.CategoryID) " & _ "INNER JOIN tblLanguage ON tblPublication.refLanguageID = tblLanguage.LanguageID) " & _ "INNER JOIN tblSuburb ON tblPublication.refPhysSuburbID = tblSuburb.SuburbID) " & _ "INNER JOIN tblCity ON tblPublication.refPhysCityID = tblCity.CityID) " & _ "LEFT JOIN tblShow ON tblContact.refShowID = tblShow.ShowID " & _ "WHERE (((tblContact.ContactID)=" & CID & "))" set rst = cn.execute(s) if not rst.eof then response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" response.write "" else response.write "" end if rst.close end if response.write "" response.Write "
Publication
 
Publication:" & rst("thePublication") & "Description" & rst("thePubDesc") & "
Category:" & rst("theCategory") & "Switchboard:" & rst("strSwitchboard") & "
Language:" & rst("theLanguage") & "Fax:" & rst("strFax") & "
AMPS Reach:" & rst("thePubReach") & "Circulation:" & rst("strCirculation") & "
Show/Sect Deadline:" & rst("strDeadline") & "Website:" & rst("strURL") & "
Website Login:" & rst("strLogin") & "
Postal Address:" & rst("strPost") & "
LSM:" & rst("strLSM") & "
Age:" & rst("strAge") & "
Courier Address:" & rst("strPhys") & "
Show/Section:" & rst("theShow") & "Suburb:" & rst("theSuburb") & "
Airing/Appearing:" & rst("strAppearing") & "City:" & rst("theCity") & "
Show Details:" & rst("strDetails") & "
Reach:" & rst("theShowReach") & "
Directions:" & rst("strDirections") & "
Footprint:" & rst("strFootprint") & "
Host:" & rst("strHost") & "
Newsdesk email:" & rst("strCopyNewsdesk") & "
Publication details not found
Contact details not found.
" end if %>