Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create me a PHP web application using the following instructions and with the given properties. Instructions / Overview: You will create a web application that

Create me a PHP web application using the following instructions and with the given properties.
Instructions/Overview:
You will create a web application that supports HTTPS communication, provides login authority levels for administrators and technicians, provides functionality based on the type of login, displays information contained in a database, and allows users to add additional records to the database. To begin, use phpMyAdmin to create the database in the cis367_wk5final.sql Download cis367_wk5final.sql file. I HAVE PROVIDED THE TEXT OF THE SQL FILE FOR REFERENCE Note that for connecting to the database, you will find the correct User ID and word in the provided SQL file. Detailed requirements for the application are listed below.
Specific Requirements:
Project/folder name is YourLastName_final
Web application is written using the MVC (Model, View, Controller) architecture (or MVC+...MVC + utilities)
Web application is written using object-oriented PHP programming, including (at a minimum) classes for:
Database
Connection & Information
Table object(s)(i.e., classes to represent the tables in the database)
Table controller(s)
Table interaction (queries)
Utilities
Validation controls
Text file controls
Image file controls
All classes and functions (if you have functions in a file but not in a class) are encapsulated using appropriate namespaces
Web application includes user interface pages as follows:
All pages titled "Your Name Final Practical"
All pages use descriptive title headers
All pages include a logout button
All pages include an ability to navigate to that user type's home page
Pages include:
Login
Administrator functions (page(s) to support the following):
Only available if the user is logged in with admin privileges (LevelNo is 1)
User Management
Display all users (all fields displayed except password)
Add user (validate all fields appropriately)
Update user (validate all fields appropriately)
Delete User
Image file management
List available images
Upload image file
Files stored in application working directory/images
Resize uploaded images to be displayable with max size of 200x200 pixels
Files stored in application working directory/images/200
Display an uploaded image - original and resized
Delete an image (the upload and the resized version)
Technician functions (page(s) to support the following):
Only available if the user is logged in with tech privileges (LevelNo is 2)
Incident Management
Display a list of available incident text files
Files stored in application working directory/incidents
Add incident text file
Update incident text file
Display incident text file contents (non-editable)
Database Connection Status
View all connection information for the database
View a summary status of connection success or failure
Web application provides validation for user account input (add/update) fields
Determine appropriate rules/formats for the fields
Validate according to your rules
If there are validation errors:
An error message should be displayed next to the field with the error describing the expected input
The information should be retained in the entry fields
The information should not be saved to the database
Final layout is at your discretion/creative imagination, as long as it meets all the requirements above. SQL FILE: -- Database: 'cis367_wk3final'
DROP DATABASE IF EXISTS cis367_wk3final;
CREATE DATABASE cis367_wk3final DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE cis367_wk3final;
-- Table structure for table 'users'
DROP TABLE IF EXISTS users;
CREATE TABLE users (
UserNo int(11) AUTO_INCREMENT PRIMARY KEY,
UserId varchar(12) NOT NULL,
Password varchar(20) NOT NULL,
FirstName varchar(50) NOT NULL,
LastName varchar(50) NOT NULL,
HireDate date NOT NULL,
EMail varchar(50) NOT NULL,
Extension int(5) NOT NULL,
UserLevelNo int(1)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- Data for table 'users'
INSERT INTO users (UserId, Password, FirstName, LastName, HireDate, EMail, Extension, UserLevelNo) VALUES
('LS11775','Pw1$', 'Sybil', 'Ludington', '1761-04-05', 'rode2@revere.com', '11775',2),
('LR01010','Pw1$', 'Rasmus', 'Lerdorf', '1968-11-22', 'creator@php.com', '01010',1),
('JP28426','Pw1$', 'Percy', 'Julian', '1899-04-11','pj@nas.org', '28426',2),
('BR21212','Pw1$', 'Roy G.', 'Biv', '1899-04-11', 'rainbow@colors.org', '21212',2),
('WE11919','Pw1$', 'Edith', 'Wilson', '1872-10-15', 'temp_pres@whitehouse.gov', '11919',1);
-- Table structure for table 'user_levels'
DROP TABLE IF EXISTS user_levels;
CREATE TABLE user_levels (
UserLevelNo int(1) AUTO_INCREMENT PRIMARY KEY,
LevelName varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Example of how the UI may appear - you may choose a different layout/structure:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions