Dashboard
PHP:
8.3.33
OS:
Linux
User:
ajstan55
/
/
home3
/
ajstan55
/
public_html
/
mechanicreviews.org
/
old_site
π€ Upload
π New File
π New Folder
Close
Editing: Copy of ListOfReviews.asp
<% if request("submitted") = "True" then Set objCDOMessage = Server.CreateObject("CDONTS.NewMail") 'This create's the Mail Object objCDOMessage.From = Request("YourEmail") ' the address listed as "From" objCDOMessage.To = Request("FriendEmail") ' the address listed as "To" objCDOMessage.bcc = "webmaster@mechanic-review.com" ' the address listed as "To" objCDOMessage.Subject = "Mechanic Reviews" ' specify the subject header objCDOMessage.Body = "Check out this site http://www.mechanic-review.com Visitors can view and post reviews of local auto mechanics." objCDOMessage.Send set objCDOMessage = nothing Session("Emailed") = True end if %> <!--#include file="includes/adovbs.inc"--> <? include 'Includes/Header.php'; ?> <? include 'Includes/RightAds.php'; ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><img border="0" src="images/left1.gif" width="245" height="42"></td> <td><img border="0" src="images/left2.gif" width="245" height="42"></td> </tr> <tr> <td background="images/fon_left.gif" colspan="1" style="padding-left: 26; padding-right: 18" valign="top"> <br><b>Reviews for <%=Request("State")%>.</b><br><br><br> </td> <td style="padding-left: 18; padding-right: 26" background="images/fon_r1.gif" valign="top"> <br><br> </td> </tr> </table> <table cellpadding="0" height="325" cellspacing="0"><tr> <td valign="top" colspan="2" style="padding-left: 26; padding-right: 18" valign="top"> <% if Session("Emailed") = True then %> <br> <% SQL = "Select * From MechanicReviews WHERE Shop_State='" & Request("State") & "' Order By Shop_Name" %> <!--#include file="Includes/DBConnection.php"--> <table border="0" width="430"><tr bgcolor="#FF9000"><td><font size="2" color="white"><b>Shop Name & Address</b></font> </td><td width="80"><b><font color="white">Review Score</font></b></td></tr> <% RecordSet.Move int(Request("RecordPosition")), adBookmarkFirst Do until Recordset.EOF or RecordCount => 20 RecordCount = RecordCount + 1 dim row if row = "bgcolor=#FFF8E6" then row = "" else row = "bgcolor=#FFF8E6" end if %> <tr <%=row%>><td><a href="ReviewDetails.php?Shop_Id=<%=Recordset("AutoNumber")%>"><b><%=Recordset("Shop_Name")%></b></a><br><%=Recordset("Shop_City")%> <%=Recordset("Shop_Address1")%></td> <% if Recordset("Shop_Reviewer_Rating") = "Poor" then%> <td align="center"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"></td></tr> <% end if %> <% if Recordset("Shop_Reviewer_Rating") = "Fair" then%> <td align="center"><img src="images/star.gif"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"></td></tr> <% end if %> <% if Recordset("Shop_Reviewer_Rating") = "Good" then%> <td align="center"><img src="images/star.gif"><img src="images/star.gif"><img src="images/star.gif"><img src="images/Graystar.jpg"><img src="images/Graystar.jpg"></td></tr> <% end if %> <% if Recordset("Shop_Reviewer_Rating") = "Excellent" then%> <td align="center"><img src="images/star.gif"><img src="images/star.gif"><img src="images/star.gif"><img src="images/star.gif"><img src="images/star.gif"></td></tr> <% end if %> <% Recordset.Movenext Loop %> </table> <br> <br> <% if Recordset.EOF then else %> <b><font size="3"><a href="ListofReviews.php?State=<%=Request("State")%>&RecordPosition=<%=Int(Request("RecordPosition")) + 20%>">Next 20 Reviews ></font></a></b> <%end if%> <br><br> <% else %> <br><br> In order to further continue to success of this website please supply your e-mail address and an e-mail of a friend that would find this site usefull. <br><br> <Form action="ListofReviews.php"> Your E-mail: <input type="text" name="YourEmail"><br> Freinds E-mail: <input type="text" name="FriendEmail"><br><br> <input type="hidden" name="submitted" value="True"> <input type="hidden" name="State" value="<%=request("State")%>"> <input type="submit" value="Send"> </form> <% end if %> <br> <Table border="1" cellpadding="2" width="100%" cellspacing="0" bordercolor="#F98D00"> <tr> <td bgcolor="#F98D00" align="center"> <a href="Contestants.php"><b><font size="3" color="White">Cool Car Contest</font></b> </a> </td> </tr> <tr> <td align="center"> <a href="Contestants.php"> <img border="0" src="images/im1.jpg" width="193" height="84"></a> <a href="Contestants.php"><font color="Black" style="text-decoration:none"><br>Starting Saturday October 27'th Mechanic-Review.com will be hosting a cool car contest. Visitors will be able to submit images and descriptions of their cars and vote for their favorite vehicle in order to compete for prizes. The contest will end December 1'st at 10:00 PM. Prizes will include $50 Gift Certificate to AutoZone or $50 in Cash Money.</a></font> </td> </tr> </table> </td> </tr> </table> <table cellpadding="0" height="380" cellspacing="20"> <tr><td valign="top"> </td> </tr> </table> <? include 'Includes/Footer.php'; ?>
Save
Cancel