<%@LANGUAGE="VBSCRIPT"%> <% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="" MM_authFailedURL="login.asp" MM_grantAccess=false If Session("MM_Username") <> "" Then If (true Or CStr(Session("MM_UserAuthorization"))="") Or _ (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then MM_grantAccess = true End If End If If Not MM_grantAccess Then MM_qsChar = "?" If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&" MM_referrer = Request.ServerVariables("URL") if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString() MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer) Response.Redirect(MM_authFailedURL) End If %> <% ' *** Edit Operations: declare variables MM_editAction = CStr(Request("URL")) If (Request.QueryString <> "") Then MM_editAction = MM_editAction & "?" & Request.QueryString End If ' boolean to abort record edit MM_abortEdit = false ' query string to execute MM_editQuery = "" %> <% ' *** Delete Record: declare variables if (CStr(Request("MM_delete")) <> "" And CStr(Request("MM_recordId")) <> "") Then MM_editConnection = MM_conRemax_STRING MM_editTable = "homes" MM_editColumn = "HomeID" MM_recordId = "" + Request.Form("MM_recordId") + "" MM_editRedirectUrl = "okaypage.asp" ' append the query string to the redirect URL If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString Else MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString End If End If End If %> <% ' *** Delete Record: construct a sql delete statement and execute it If (CStr(Request("MM_delete")) <> "" And CStr(Request("MM_recordId")) <> "") Then ' create the sql delete statement MM_editQuery = "delete from " & MM_editTable & " where " & MM_editColumn & " = " & MM_recordId If (Not MM_abortEdit) Then ' execute the delete Set MM_editCmd = Server.CreateObject("ADODB.Command") MM_editCmd.ActiveConnection = MM_editConnection MM_editCmd.CommandText = MM_editQuery MM_editCmd.Execute MM_editCmd.ActiveConnection.Close If (MM_editRedirectUrl <> "") Then Response.Redirect(MM_editRedirectUrl) End If End If End If %> <% Dim combo__HomePick combo__HomePick = "1" if (Request.QueryString("HomeID") <> "") then combo__HomePick = Request.QueryString("HomeID") %> <% set combo = Server.CreateObject("ADODB.Recordset") combo.ActiveConnection = MM_conRemax_STRING combo.Source = "SELECT agents.AgentName, agents.AgentSurname, homes.* FROM agents, homes WHERE agents.AgentID = homes.AgentID and homes.HomeID = " + Replace(combo__HomePick, "'", "''") + "" combo.CursorType = 0 combo.CursorLocation = 2 combo.LockType = 3 combo.Open() combo_numRows = 0 %> <% Dim combo_2ndagent__HomePick combo_2ndagent__HomePick = "1" if (Request.QueryString("HomeID") <> "") then combo_2ndagent__HomePick = Request.QueryString("HomeID") %> <% set combo_2ndagent = Server.CreateObject("ADODB.Recordset") combo_2ndagent.ActiveConnection = MM_conRemax_STRING combo_2ndagent.Source = "SELECT agents.AgentName, agents.AgentSurname FROM agents, homes WHERE agents.AgentID = homes.AgentID2 and homes.HomeID = " + Replace(combo_2ndagent__HomePick, "'", "''") + "" combo_2ndagent.CursorType = 0 combo_2ndagent.CursorLocation = 2 combo_2ndagent.LockType = 3 combo_2ndagent.Open() combo_2ndagent_numRows = 0 %> Remax - Admin Tool

Home Information - Delete A Home

Area
<%=(combo.Fields.Item("Area").Value)%>
Agent
<%=(combo.Fields.Item("AgentName").Value)%> <%=(combo.Fields.Item("AgentSurname").Value)%> Category <%=(combo.Fields.Item("HomeCategory").Value)%>
Agent 2nd
<% If Not combo_2ndagent.EOF Or Not combo_2ndagent.BOF Then %> <%=(combo_2ndagent.Fields.Item("AgentName").Value)%> <%=(combo_2ndagent.Fields.Item("AgentSurname").Value)%> <% End If ' end Not combo_2ndagent.EOF Or NOT combo_2ndagent.BOF %> Home Owner: <%=(combo.Fields.Item("HomeOwner").Value)%>
Home Address:
<%=(combo.Fields.Item("HomeAddress").Value)%> Home Status: <%=(combo.Fields.Item("RemaxNumber").Value)%>
Home City:
<%=(combo.Fields.Item("HomeCity").Value)%> MLS #: <%=(combo.Fields.Item("MLSNumber").Value)%>
Home Province:
<%=(combo.Fields.Item("HomeProvince").Value)%> Home Price: <%=(combo.Fields.Item("HomePrice").Value)%>
Home Postal:
<%=(combo.Fields.Item("HomePostal").Value)%> Home Taxes: <%=(combo.Fields.Item("HomeTaxes").Value)%>
Expiry Date:
<%=(combo.Fields.Item("ExpiryDate").Value)%>
Home Type:
<%=(combo.Fields.Item("HomeType").Value)%> Lot Size: <%=(combo.Fields.Item("LotSize").Value)%>
Home Style:
<%=(combo.Fields.Item("HomeStyle").Value)%> Heating: <%=(combo.Fields.Item("Heating").Value)%>
Bedrooms:
<%=(combo.Fields.Item("Bedrooms").Value)%> Exterior: <%=(combo.Fields.Item("Exterior").Value)%>
Bathrooms:
<%=(combo.Fields.Item("Bathrooms").Value)%> Driveway:
Basement:

<%=(combo.Fields.Item("Basement").Value)%>

Garage:
Main Pic:
<%=(combo.Fields.Item("MainPic").Value)%> Pic 4: <%=(combo.Fields.Item("Pic4").Value)%>
Pic 1:
<%=(combo.Fields.Item("Pic1").Value)%> Pic 5: <%=(combo.Fields.Item("Pic5").Value)%>
Pic 2:
<%=(combo.Fields.Item("Pic2").Value)%> Pic 6: <%=(combo.Fields.Item("Pic6").Value)%>
Pic 3:
<%=(combo.Fields.Item("Pic3").Value)%> Video Tour: <%=(combo.Fields.Item("VideoTour").Value)%>
Brochure:
<%=(combo.Fields.Item("FeatureBrochure").Value)%>
Map It URL:
<%=(combo.Fields.Item("Mapit").Value)%>
Floor Plan 1:
<%=(combo.Fields.Item("FloorPlan1").Value)%>
Floor Plan 3:
<%=(combo.Fields.Item("FloorPlan3").Value)%>
Floor Plan 2:
<%=(combo.Fields.Item("FloorPlan2").Value)%>
Floor Plan 4:
<%=(combo.Fields.Item("FloorPlan4").Value)%>
Features:
<%=(combo.Fields.Item("Features").Value)%>
Open House Information
Date:
<%=(combo.Fields.Item("OPDate").Value)%>
Time:
<%=(combo.Fields.Item("OPTime").Value)%> <%=(combo.Fields.Item("OPTime2").Value)%>

">

 

 

 

<% combo.Close() %> <% combo_2ndagent.Close() %>