You are on page 1of 3

PHP PROGRAMMING TEST

Salesmart
2021

Prerequisites
- Docker
- Framework CI v3+
- Database mysql:5.7+ (support type json format)
- Web Service php:5.6-apache+ *

Deployment
- Using docker-compose
- Prepare env php:5.6-apache, mysql:5.7, CI and initial created table

Must Include
- Include CSRF
- Prevert Sql Injection
- Validation user input & Controller validation (the more detailed validation and make more
secure is added value)

Schema Table Database


- m_user
o stsrc char(1) //A=Active D=Deactive
o user_create varchar(200)
o date_create datetime
o user_change varchar(200)
o date_change datetime
o email varchar(200) (PK)
o password varchar(200)
o gender char(1)
o dob date
- m_product_tag
o stsrc char(1) //A=Active D=Deactive
o user_create varchar(200)
o date_create datetime
o user_change varchar(200)
o date_change datetime
o product_tag_id varchar(200) (PK)
o product_tag_name varchar(200)
- m_product
o stsrc char(1) //A=Active D=Deactive
o user_create varchar(200)
o date_create datetime
o user_change varchar(200)
o date_change datetime
o product_id int (PK and AutoIncrement)
o product_name varchar(200)
o product_tag json (format json include id & Name)
o product_image varchar(200)

List Module
- Login View(Default main view)
o Email
o Password
o DOB
o Gender
o Submit
o link to redirect Registration View
- Registration View
o Email
o Password
o DOB
o Gender
o Submit
o link to redirect Login View
- Home
o View User Info
 Email
 DOB
 Gender
o Action Change Password
 Old Password
 New Passord
 Reconfirm Password
 Submit
o Action Edit
 Email (disable)
 DOB
 Gender
 Submit
- Create Action CRUD Master Product Tag
o Action Add Button
o List View (Only Show Active Data)
o Table List include pagging
 Product Tag Id
 Product Tag name
 Description
 Action (Edit, Delete)
o Action Add/Edit
 Product Tag Id (Only Editable if Add function)
 Product Tag name
 Description
 Submit
o Action Delete (update field stsrc into D)
- Create Action CURD Master Product
o List View (Only Show Active Data)
o Filter
 Product tag id (multi select) filter data must contain/or selected item if more
than 1
 Search
o Action Add Button
o Table List include pagging
 Product Id (text)
 Product Name (text)
 Product Tag (design like flow label)
 Description (text)
 Image (show image)
 Action (Edit, Delete)
o Action Add/Edit
 Product Id (Only Editable if Add function)
 Product Name
 Product Tag (multi select)
 Image (pick gallery)
 Submit
o Action Delete (update field stsrc into D)

You might also like