<%
OpenConnection1
Set rs=Server.CreateObject("ADODB.Recordset")
Sel="SELECT * FROM Applications WHERE ApplicationID=" & ApplicationID
rs.Open Sel,DB,1,3
If rs.EOF then Response.Redirect("Application_List.asp")%>
| This application was submitted on <%=formatdatetime(rs("datApply"),1)%>. |
| Name: |
<%=rs("txtFname")&" "&rs("txtLname")%> |
| Email: |
" title="Click here to send an email to <%=rs("txtFname")& " " & rs("txtLname")%>" style="{text-decoration:none; color:rgb(0,0,0)}"><%=rs("txtEmail")%> |
<%If trim(rs("txtTitle"))<>"" then%>
| Title: |
<%=rs("txtTitle")%> |
<%End If%>
<%If trim(rs("txtCompany"))<>"" then%>
| Company: |
<%=rs("txtCompany")%> |
<%End If%>
<%If trim(rs("txtAddress"))<>"" Or trim(rs("txtCity"))<>"" Or trim(rs("txtProvince"))<>"" then%>
| Address: |
<%If trim(rs("txtAddress"))<>"" then
Response.Write rs("txtAddress") & " "
End If%>
<%If trim(rs("txtCity"))<>"" then
Response.Write rs("txtCity") & ", " & rs("txtProvince") & " "
End If%>
<%If rs("nCountry")=1 then
txtCountry="Canada"
Else
txtCountry="United States"
End If
Response.Write txtCountry & " " & rs("txtPostal") & " "%>
|
<%End If%>
<%If trim(rs("txtSAddress"))<>"" Or trim(rs("txtSCity"))<>"" Or trim(rs("txtSProvince"))<>"" then%>
| Ship To: |
<%If trim(rs("txtSAddress"))<>"" then
Response.Write rs("txtSAddress") & " "
End If%>
<%If trim(rs("txtSCity"))<>"" then
Response.Write rs("txtSCity") & ", " & rs("txtSProvince") & " "
End If%>
<%If rs("nSCountry")=1 then
txtSCountry="Canada"
Else
txtSCountry="United States"
End If
Response.Write txtSCountry & " " & rs("txtSPostal") & " "%>
|
<%End If%>
<%If trim(rs("txtPhone"))<>"" then%>
| Phone: |
<%=rs("txtPhone")%> |
<%End If%>
<%If trim(rs("txtFax"))<>"" then%>
| Fax: |
<%=rs("txtFax")%> |
<%End If%>
<%If trim(rs("txtURL"))<>"" then%>
| URL: |
" style="{text-decoration:none}"><%=rs("txtURL")%> |
<%End If
If Trim(rs("txtBusiness"))<>"" then%>
| Business: |
<%=rs("txtBusiness")%> |
<%End If
If Trim(rs("nEmployees"))<>"" then%>
| Employees: |
<%=rs("nEmployees")%> |
<%End If
If Trim(rs("txtComments"))<>"" then%>
| Comments: |
<%=DisPrepText(rs("txtComments"))%> |
<%End If
rs("txtViewed")="YES"
rs.Update
rs.Close%>