Answered step by step
Verified Expert Solution
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.
InstructionsOverview:
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 ciswkfinal.sql Download ciswkfinal.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:
Projectfolder name is YourLastNamefinal
Web application is written using the MVC Model View, Controller architecture or MVCMVC utilities
Web application is written using objectoriented PHP programming, including at a minimum classes for:
Database
Connection & Information
Table objectsie classes to represent the tables in the database
Table controllers
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 pages to support the following:
Only available if the user is logged in with admin privileges LevelNo is
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 directoryimages
Resize uploaded images to be displayable with max size of x pixels
Files stored in application working directoryimages
Display an uploaded image original and resized
Delete an image the upload and the resized version
Technician functions pages to support the following:
Only available if the user is logged in with tech privileges LevelNo is
Incident Management
Display a list of available incident text files
Files stored in application working directoryincidents
Add incident text file
Update incident text file
Display incident text file contents noneditable
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 addupdate fields
Determine appropriate rulesformats 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 discretioncreative imagination, as long as it meets all the requirements above. SQL FILE: Database: 'ciswkfinal'
DROP DATABASE IF EXISTS ciswkfinal;
CREATE DATABASE ciswkfinal DEFAULT CHARACTER SET utfmb COLLATE utfmbgeneralci;
USE ciswkfinal;
Table structure for table 'users'
DROP TABLE IF EXISTS users;
CREATE TABLE users
UserNo int AUTOINCREMENT PRIMARY KEY,
UserId varchar NOT NULL,
Password varchar NOT NULL,
FirstName varchar NOT NULL,
LastName varchar NOT NULL,
HireDate date NOT NULL,
EMail varchar NOT NULL,
Extension int NOT NULL,
UserLevelNo int
ENGINEInnoDB DEFAULT CHARSETutfmb;
Data for table 'users'
INSERT INTO users UserId Password, FirstName, LastName, HireDate, EMail, Extension, UserLevelNo VALUES
LSPw$ 'Sybil', 'Ludington', 'rode@revere.com',
LRPw$ 'Rasmus', 'Lerdorf', 'creator@phpcom',
JPPw$ 'Percy', 'Julian', pj@nas.org',
BRPw$ 'Roy G 'Biv', 'rainbow@colors.org',
WEPw$ 'Edith', 'Wilson', 'temppres@whitehouse.gov', ;
Table structure for table 'userlevels'
DROP TABLE IF EXISTS userlevels;
CREATE TABLE userlevels
UserLevelNo int AUTOINCREMENT PRIMARY KEY,
LevelName varchar NOT NULL
ENGINEInnoDB DEFAULT CHARSETutfmb;
Example of how the UI may appear you may choose a different layoutstructure:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started