% Response.Buffer = True %> <% Dim filesys,sortdata,Connect,sqlnew,sqlnew2,RS,RS2 If Request("MLS") <> "" then sortdata = Request("MLS") 'Open the Houseview Database+++++++++++++++++++++++++++++++++ Set Connect = Server.CreateObject("ADODB.Connection") Connect.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\webroot\localuser\houseview\database\houseview.mdb;" sqlnew = "Select * From Listings Where Listings.MLS = " & sortdata & " " Set RS = Connect.execute(sqlnew) sqlnew2 = "Select * From Agents Where Trim(Agents.RealitorAbb) = '" & Trim(RS.Fields("RealitorAbb")) & "' " Set RS2 = Connect.execute(sqlnew2) 'Open the Houseview Database+++++++++++++++++++++++++++++++++ Dim strmls,strprice,stragent,strLocation,strdesc,strbed,strbath,straddress Dim stragentfirst,stragentlast,strrealitorabb,strrealitordesc,strgrouping,stremail,strbus,strres,strpgr Dim stragentaddress,stragentcity,stragentstate,stragentzip strmls = RS.Fields("MLS") strprice = RS.Fields("price") stragent = RS.Fields("RealitorAbb") strLocation = RS.Fields("Location") straddress = RS.Fields("address") strdesc = RS.Fields("homedesc") strbed = RS.Fields("Bdrm") strbath = RS.Fields("Bthrm") stragentfirst = RS2.Fields("AgentFirst") stragentlast = RS2.Fields("AgentLast") strrealitorabb = RS2.Fields("RealitorAbb") strrealitordesc = RS2.Fields("realitordesc") strgrouping = RS2.Fields("grouping") stremail = RS2.Fields("email") strbus = RS2.Fields("bus") strres = RS2.Fields("res") strpgr = RS2.Fields("pgr") stragentaddress = RS2.Fields("address") stragentcity = RS2.Fields("city") stragentstate = RS2.Fields("state") stragentzip = RS2.Fields("zip") strsplitbilling = RS2.Fields("splitbilling") stramount = Request("Amt") Set filesys = Server.CreateObject("Scripting.FileSystemObject") Dim imagename,picture imagename = sortdata picture = imagename & ".jpg" If Trim(RS2.Fields("splitbilling")) = "Yes" AND Request("Invoice2") <> "yes" Then splittrig = True Else splittrig = False End if End if %>
|
<% Else %>
<%=strrealitordesc%> | <% End if %>
|
|||||||||||||
|
Invoice: <%=Request("ID")%><% If Request("Report") = 2 OR Request("S") = "yes" Then Response.Write("S")%> <%=FormatCurrency(strprice,0,0)%> MLS#: <%=strmls%> <%=straddress%> <%=strLocation%>, MO <%=strbed%> Bed <%=strbath%> Bath Description Of Services: |
|
||||||||||||||
|
|
|||||||||||||||
|
<% If filesys.FileExists(Server.MapPath("/agents/agentpics/" & Trim(strrealitorabb) & ".jpg")) Then %>
|
<%=stragentfirst & " " & stragentlast%> <% If Trim(strbus) <> "" Then %> <%=strbus%> Bus <% End if %> <% If Trim(strpgr) <> "" Then %> <%=strpgr%> Cell <% End if %> <% If Trim(strres) <> "" Then %> <%=strres%> Res <% End if %>
<% If Trim(stremail) <> "" Then %>
|
||||||||||||||
|
|||||||||||||||
|
INVOICE Due Upon Reciept Invoice Prepared: <%=FormatDateTime(Now())%>, Added to Houseview on <%=FormatDateTime(Request("date"))%>
Please send check or money order to: HouseViewonline.com 719 Legion Dr. Jackson, Mo 63755 ![]() You may now pay this invoice by Credit/Debit card! Just Call (573) 243-1977, Fax (573) 243-0029 or complete and return this form with your information. We currently accept Visa/Mastercard or Check by phone. |
|||||||||||||||
| Visa M/C Card#: Exp#: Signature | |||||||||||||||
|
<%=strrealitordesc%> <% If Request("Invoice2") <> "yes" Then %> Attn: <%=stragentfirst & " " & stragentlast%> <% End if %> <%=stragentaddress%> <%=stragentcity%>, <%=stragentstate%> <%=stragentzip%> |