This project provides a quick way for UPS drivers to submit business leads and a central area where center and division managers can then manage and follow up on these business leads.
The UPS driver doesn't need to sign in; all they need is the business lead form in order to submit their business lead.
Center Managers are our general users. They have to create an account and be approved by a Division Manager in order to see any business lead data in their dashboard. Once approved, they can only see business leads submitted for their slic (building).
Division Managers are our admin users. They have to have an account and be approved as an admin (by another admin) in order to see business lead data and approve other users. They will see business leads for multiple slics.
- Garrett Ballreich: https://garrettballreich.greenriverdev.com/328/business-leads/
- Sage Markwardt: http://smarkwardt.greenriverdev.com/328/business-leads/
- Tien Han: https://tienthan.greenriverdev.com/328/business-leads/
- Separates all database/business logic using the MVC pattern.
- Each type of file/logic has been separated into it's own file and folder. Front end HTML are all within the
views
folder, JavaScript within thescripts
folder, CSS with thestyles
folder, database calls within themodel
folder, server-side logic in thecontroller
file, classes within theclasses
file, and all routing within theindex.php
file.
- Each type of file/logic has been separated into it's own file and folder. Front end HTML are all within the
- Routes all URLs and leverages a templating language using the Fat-Free framework.
- All URLs are routed in
index.php
and templating language is being used in all HTML files where data is being rendered from the backend.
- All URLs are routed in
- Has a clearly defined database layer using PDO and prepared statements.
- Database layer is separated into files in the
model
folder (specificallydata-layer.php
,get-all-business-leads.php
, andget-filtered-business-leads.php
) and prepared statements are used for security.
- Database layer is separated into files in the
- Data can be added and viewed.
- New users can be added via the
Sign In
page, and seen in theApproval
page. - Business leads can be added via the
Leads Form
page, and seen in theDashboard
page.
- New users can be added via the
- Has a history of commits from both team members to a Git repository. Commits are clearly commented.
- Uses OOP, and utilizes multiple classes, including at least one inheritance relationship.
controller.php
has numerous examples of multiple classes being used with object oriented programming (OOP).- Multiple classes are used to support users, validation, leads, etc.
- The
Admin
class inherits from theUser
class.
- Contains full Docblocks for all PHP files and follows PEAR standards.
- All PHP files have full Docblocks and follow PEAR standards.
- Has full validation on the server side through PHP.
- Validation code is available in
model/validate.php
and used incontroller.php
to validate form submissions.
- Validation code is available in
- All code is clean, clear, and well-commented. DRY (Don't Repeat Yourself) is practiced.
- Whenever possible, removed duplicated code and separated code out into functions that only perform one action.
- Your submission is professional and shows adequate effort for a final project in a full-stack web development course.
- To our best ability, we have tried to be professional and put in as much effort as possible (especially as we've been working with a client and want this project to succeed).
- email:
[email protected]
- password:
admin
- The files
approveRequest.html
anddeleteRequest.html
are unable to have any additional headers/code at the moment, as they are being used only to handle requests.