Homework 5
CS520, Spring 2013


Due: Thursday, May 23

Package all the source files of your project into a zip file as you did in Homework 2 and upload the zip file to CSNS. Note that file uploading will be disabled automatically after 11:59PM of the due date, so please turn in your work on time.

[BVVO]

This assignment builds on top of your work in the previous assignments, so make sure that all the functions from the previous assignments work properly; otherwise you will not receive any credit.

Continue your work in Homework 4 and implement the following features in BVVO.

1. (50pt) Profile Image

Allow lawyers to upload a profile image during registration. The uploaded image is scaled to create an image of 112x149 pixels and an image of 66x88 pixels. Both images are stored in the database. The larger image is displayed on the page where a lawyer's information and the reviews about the lawyer are displayed. The smaller image is used on the search results page. If a lawyer chooses not to upload an profile image, a default image is used.

2. (30pt) Email

After a user enters a review of a lawyer, the lawyer should automatically receive an email notification. The subject of the email should be "You Have Received a New Review on BVVO", and the content of the email should include the name of the user who wrote the review, the time when the review was entered, and a hyperlink to the review. For example:

Subject: You Have Received a New Review on BVVO

Content: Chengyu Sun wrote a review of you at 2:00PM 5/13/2013. You can check out the review at http://www.bvvo.com/review.html?id=2123456.

[About Submission and Grading]

Before submitting your work, commit all the changes to your Subversion repository and create a tag.

To test your project, we will use the following SQL scripts in your zip file to create, populate, and then clear the database:

Please make sure that these scripts are up to date and can be run in their entirety without any errors.