Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
4836664
side and nav
AshaniLiyanagamage Sep 28, 2021
657729c
side and nav
AshaniLiyanagamage Sep 28, 2021
1dba4da
Add files via upload
AshaniLiyanagamage Sep 28, 2021
d7dce1b
change database name
AshaniLiyanagamage Sep 28, 2021
0e363fe
add image
AshaniLiyanagamage Sep 30, 2021
b2c4c38
connect controller
AshaniLiyanagamage Sep 30, 2021
d97955e
add controller
AshaniLiyanagamage Sep 30, 2021
f64679c
connect database
AshaniLiyanagamage Sep 30, 2021
7864db4
change save photo logic
AshaniLiyanagamage Oct 2, 2021
f520ca5
update
AshaniLiyanagamage Oct 2, 2021
3da8557
manage tasks
AshaniLiyanagamage Oct 2, 2021
6fb88c9
manage tasks
AshaniLiyanagamage Oct 2, 2021
f40d2d2
manage tasks
AshaniLiyanagamage Oct 2, 2021
ba9cae5
change colors
AshaniLiyanagamage Oct 8, 2021
a80542e
update
AshaniLiyanagamage Oct 9, 2021
f5aa391
update
AshaniLiyanagamage Oct 9, 2021
4547f15
update
AshaniLiyanagamage Oct 9, 2021
31ddcda
update
AshaniLiyanagamage Oct 9, 2021
ba098fa
landing page
AshaniLiyanagamage Oct 9, 2021
3f371c8
landing page
AshaniLiyanagamage Oct 9, 2021
c641cce
landing page
AshaniLiyanagamage Oct 9, 2021
ccd895c
landing page
AshaniLiyanagamage Oct 9, 2021
d953965
Update login_style.css
mtbstn24 Oct 11, 2021
a31938b
Add files via upload
AshaniLiyanagamage Oct 12, 2021
439102a
hide msg box
AshaniLiyanagamage Oct 12, 2021
02f49f4
change side bar and table
AshaniLiyanagamage Oct 12, 2021
e665c4c
Add files via upload
AshaniLiyanagamage Oct 12, 2021
94f73da
hide hello msg
AshaniLiyanagamage Oct 12, 2021
d971354
remove display password
AshaniLiyanagamage Oct 12, 2021
be9c656
add button hover
AshaniLiyanagamage Oct 12, 2021
bae3008
Add files via upload
AshaniLiyanagamage Oct 16, 2021
628a833
add nav files
mtbstn24 Oct 16, 2021
3a332ec
updated home files
mtbstn24 Oct 16, 2021
d802a7f
connected to database
AshaniLiyanagamage Oct 16, 2021
f66caba
Merge branch 'main' of https://github.com/AshaniImalsha/Co-WMS
mtbstn24 Oct 17, 2021
109da4b
remove select query
AshaniLiyanagamage Oct 18, 2021
cd10632
change render name
AshaniLiyanagamage Oct 18, 2021
da3037f
change redirect pages
AshaniLiyanagamage Oct 18, 2021
fce9f59
connect user access levels
AshaniLiyanagamage Oct 18, 2021
4b6743d
update
AshaniLiyanagamage Oct 18, 2021
8c8f5e6
update
AshaniLiyanagamage Oct 18, 2021
b0d0d4d
update
AshaniLiyanagamage Oct 18, 2021
ba4d150
update
AshaniLiyanagamage Oct 18, 2021
31f7a8d
update
AshaniLiyanagamage Oct 18, 2021
92567f4
update
AshaniLiyanagamage Oct 18, 2021
3e86466
update
AshaniLiyanagamage Oct 18, 2021
cddb674
Rename landingpage.php to landingpage_Model.php
AshaniLiyanagamage Oct 18, 2021
be53df4
update
AshaniLiyanagamage Oct 18, 2021
887ce89
update
AshaniLiyanagamage Oct 18, 2021
8acf4f1
Merge pull request #1 from AshaniImalsha/main
AshaniLiyanagamage Oct 18, 2021
081378a
connect with database
AshaniLiyanagamage Oct 19, 2021
7a1dba6
add span
AshaniLiyanagamage Oct 19, 2021
0cbc5d8
connect with database
AshaniLiyanagamage Oct 19, 2021
9b487ed
connect with database
AshaniLiyanagamage Oct 19, 2021
9072cb3
Merge branch 'main' into manageTasks
AshaniLiyanagamage Oct 19, 2021
22ec9e5
update
AshaniLiyanagamage Oct 19, 2021
8767166
Merge branch 'manageTasks' of https://github.com/AshaniImalsha/Co-WMS…
AshaniLiyanagamage Oct 19, 2021
60edca1
update
AshaniLiyanagamage Oct 19, 2021
1d7f022
update
AshaniLiyanagamage Oct 19, 2021
3243b43
update
AshaniLiyanagamage Oct 19, 2021
69946e4
update
AshaniLiyanagamage Oct 19, 2021
33aa096
update
AshaniLiyanagamage Oct 19, 2021
02608b9
update
AshaniLiyanagamage Oct 19, 2021
33da3c6
manageEmployeeAdd_style
NavodKamilka Oct 20, 2021
bc45c65
Delete manageEmployeeAdd_style
NavodKamilka Oct 20, 2021
86dd881
update
AshaniLiyanagamage Oct 21, 2021
27a528f
update
AshaniLiyanagamage Oct 21, 2021
2f836eb
update
AshaniLiyanagamage Oct 21, 2021
69b23a3
update
AshaniLiyanagamage Oct 21, 2021
1308f3d
nav-bar file update
mtbstn24 Oct 21, 2021
1784e2f
remove old home files
mtbstn24 Oct 21, 2021
2d11732
added notification
mtbstn24 Oct 21, 2021
8a06fe9
update
AshaniLiyanagamage Oct 21, 2021
7531486
upadte
AshaniLiyanagamage Oct 22, 2021
3dd9b44
Merge pull request #4 from AshaniImalsha/manageTasks
AshaniLiyanagamage Oct 22, 2021
a3ff685
admin files
mtbstn24 Oct 22, 2021
4937a96
admin files
mtbstn24 Oct 22, 2021
a4665bd
Merge branch 'main' of https://github.com/AshaniImalsha/Co-WMS
mtbstn24 Oct 22, 2021
98d8ea4
connect admin page
AshaniLiyanagamage Oct 22, 2021
cdaa0d9
Merge branch 'main' of https://github.com/AshaniImalsha/Co-WMS
AshaniLiyanagamage Oct 22, 2021
1fe9e75
add employee connect with database and email
AshaniLiyanagamage Oct 22, 2021
793fe9e
admin&leave
mtbstn24 Oct 22, 2021
c86fc6f
Merge branch 'main' of https://github.com/AshaniImalsha/Co-WMS
mtbstn24 Oct 22, 2021
72ef109
manageEmployee
NavodKamilka Oct 22, 2021
a65ff20
Add files via upload
AshaniLiyanagamage Oct 22, 2021
59d53b5
manageEmployeeAdd
NavodKamilka Oct 22, 2021
82555cf
manageEmployeeEditDelete
NavodKamilka Oct 22, 2021
e51261b
manageEmployee
NavodKamilka Oct 22, 2021
0a5d90c
manageEmployeeEditDelete
NavodKamilka Oct 22, 2021
98c766b
connect pie chart
AshaniLiyanagamage Oct 22, 2021
ee9f1f4
manageTeam files
NavodKamilka Oct 23, 2021
63ab236
manageTeam_Model files
NavodKamilka Oct 23, 2021
a75ac80
manageTeam_style files
NavodKamilka Oct 23, 2021
8645439
manageTeam files
NavodKamilka Oct 23, 2021
cb10e6f
manageDepartment files
Sudam1998 Oct 23, 2021
5300d03
manageDepartment_Model files
Sudam1998 Oct 23, 2021
afcbe81
manageDepartment_style files
Sudam1998 Oct 23, 2021
54a9001
manageDepartment files
Sudam1998 Oct 23, 2021
595b806
myprogress files
NavodKamilka Oct 23, 2021
6e8043a
myprogress files
NavodKamilka Oct 23, 2021
8e42f69
Add files via upload
NavodKamilka Oct 23, 2021
1e31c65
myprogress files
NavodKamilka Oct 23, 2021
54fdc31
myprogress files
Sudam1998 Oct 23, 2021
3fb3e93
myprogress model files
Sudam1998 Oct 23, 2021
244ab0d
myprogress style files
Sudam1998 Oct 23, 2021
737700b
myprogress view files
Sudam1998 Oct 23, 2021
dd4a625
manageEmployee style files
NavodKamilka Oct 24, 2021
967df52
update
AshaniLiyanagamage Oct 24, 2021
6009f5a
employeeWorkProgress
NavodKamilka Oct 25, 2021
d15f40e
employeeWorkProgress_Model
NavodKamilka Oct 25, 2021
876012a
employeeWorkProgress_style
NavodKamilka Oct 25, 2021
8b8df92
employeeWorkProgress
NavodKamilka Oct 25, 2021
6e787c6
forgot/reset password
Sudam1998 Oct 25, 2021
0a48369
forgot/reset password
Sudam1998 Oct 25, 2021
c7c08a4
forgot/reset password_style
Sudam1998 Oct 25, 2021
ad36114
forgot/reset password
Sudam1998 Oct 25, 2021
7c2f39f
update
mtbstn24 Oct 25, 2021
f453a3a
update
AshaniLiyanagamage Oct 26, 2021
8d0e40b
view update
mtbstn24 Oct 27, 2021
6ed2f44
style update
mtbstn24 Oct 27, 2021
38dfc4b
model update
mtbstn24 Oct 27, 2021
c3bce96
controller update
mtbstn24 Oct 27, 2021
ef27a67
restore change
mtbstn24 Oct 27, 2021
6a6d855
connect forgot password
AshaniLiyanagamage Oct 27, 2021
6a8dc09
connect forgot password
AshaniLiyanagamage Oct 27, 2021
ea3581e
Add files via upload
AshaniLiyanagamage Oct 27, 2021
b35af74
Add files via upload
AshaniLiyanagamage Oct 27, 2021
cbbd4de
wrong path
AshaniLiyanagamage Oct 27, 2021
53501bb
wrong path
AshaniLiyanagamage Oct 27, 2021
2adc263
wrong path
AshaniLiyanagamage Oct 27, 2021
e91d748
wrong path
AshaniLiyanagamage Oct 27, 2021
ffafbde
wrong path
AshaniLiyanagamage Oct 27, 2021
e339902
wrong path
AshaniLiyanagamage Oct 27, 2021
bdc8e64
wrong path
AshaniLiyanagamage Oct 27, 2021
bddf633
Add files via upload
AshaniLiyanagamage Oct 27, 2021
a50b351
update
AshaniLiyanagamage Oct 27, 2021
2acbdf2
font add
mtbstn24 Oct 28, 2021
e7fc11d
navigation edit
mtbstn24 Oct 28, 2021
6597144
update
AshaniLiyanagamage Oct 28, 2021
b84fd7a
manageEmployeeAdd
NavodKamilka Oct 28, 2021
1b68f1e
manageEmployeeAdd_style
NavodKamilka Oct 28, 2021
001b4aa
update navbar
mtbstn24 Oct 28, 2021
1989ced
controller edit
mtbstn24 Oct 28, 2021
ccdd411
model edit
mtbstn24 Oct 28, 2021
a34bf6e
leave style edit
mtbstn24 Oct 28, 2021
3a217bb
view edit
mtbstn24 Oct 28, 2021
9e34841
7 files added
Sudam1998 Oct 28, 2021
3ddbc92
7 style files updated
Sudam1998 Oct 28, 2021
f4e00bf
updated
NavodKamilka Oct 28, 2021
36d75a3
updated
NavodKamilka Oct 28, 2021
5eba60f
update
AshaniLiyanagamage Oct 28, 2021
e5b11cb
update
mtbstn24 Oct 29, 2021
25ed479
update
AshaniLiyanagamage Oct 29, 2021
c1ad76c
Merge branch 'main' of https://github.com/CS41-UCSC/Co-WMS
AshaniLiyanagamage Oct 29, 2021
3a97536
update
NavodKamilka Oct 29, 2021
4599069
update
NavodKamilka Oct 29, 2021
efe4270
update
AshaniLiyanagamage Oct 29, 2021
f238379
Merge branch 'main' of https://github.com/CS41-UCSC/Co-WMS
AshaniLiyanagamage Oct 29, 2021
950b438
dptadd edit
mtbstn24 Oct 29, 2021
72891c8
link edit
mtbstn24 Oct 29, 2021
2610432
update
AshaniLiyanagamage Oct 30, 2021
cc2461a
update
NavodKamilka Oct 30, 2021
5e30a91
manageTeamAdd_style update
NavodKamilka Oct 30, 2021
7ceb2ac
Add image
NavodKamilka Oct 30, 2021
6ae48e7
update
Sudam1998 Oct 30, 2021
734daea
controller update
mtbstn24 Oct 30, 2021
270a9e7
Merge branch 'main' of https://github.com/CS41-UCSC/Co-WMS
mtbstn24 Oct 30, 2021
46e667d
updated
Sudam1998 Oct 30, 2021
efdf3d0
updated
Sudam1998 Oct 31, 2021
24833bf
updated
Sudam1998 Oct 31, 2021
2505549
added two images
Sudam1998 Oct 31, 2021
309394c
change forgot password input fields
AshaniLiyanagamage Oct 31, 2021
7a8ff1f
change forgot password query
AshaniLiyanagamage Oct 31, 2021
0f0f300
myprogressAccepted update
NavodKamilka Oct 31, 2021
24c69c5
myprogressAccepted_style update
NavodKamilka Oct 31, 2021
2f6289d
updated
Sudam1998 Oct 31, 2021
9f59425
updated
Sudam1998 Oct 31, 2021
f626f1e
update
AshaniLiyanagamage Oct 31, 2021
4fb7780
update
NavodKamilka Nov 1, 2021
61dccb1
update
NavodKamilka Nov 1, 2021
564668d
update
NavodKamilka Nov 1, 2021
49b9775
update
NavodKamilka Nov 1, 2021
7875468
updated
Sudam1998 Nov 1, 2021
187a54b
updated
Sudam1998 Nov 1, 2021
c4af4ec
update
AshaniLiyanagamage Nov 1, 2021
54ba4e9
report update
mtbstn24 Nov 1, 2021
2177d3a
leave update
mtbstn24 Nov 1, 2021
1eee4d3
changes
mtbstn24 Nov 1, 2021
8ee21b6
update
NavodKamilka Nov 1, 2021
45b8aaf
leaveModel edit
mtbstn24 Nov 1, 2021
fa40fc5
Merge branch 'main' of https://github.com/CS41-UCSC/Co-WMS
mtbstn24 Nov 1, 2021
95b2bb4
update
NavodKamilka Nov 1, 2021
f8ce8ca
update
NavodKamilka Nov 1, 2021
fcb9490
update
NavodKamilka Nov 2, 2021
dd3154d
update
NavodKamilka Nov 2, 2021
5ab315a
Update
NavodKamilka Nov 2, 2021
e77dcb2
update
AshaniLiyanagamage Nov 2, 2021
92673b5
updated
Sudam1998 Nov 2, 2021
331f63f
update
AshaniLiyanagamage Nov 2, 2021
29dd05f
updated
Sudam1998 Nov 2, 2021
711edbf
Merge branch 'main' of https://github.com/CS41-UCSC/Co-WMS
AshaniLiyanagamage Nov 2, 2021
78a164f
updated
Sudam1998 Nov 2, 2021
92ff994
updated
Sudam1998 Nov 2, 2021
d5844be
updated
Sudam1998 Nov 2, 2021
09d4fef
update
AshaniLiyanagamage Nov 2, 2021
3314134
Merge branch 'main' of https://github.com/CS41-UCSC/Co-WMS
AshaniLiyanagamage Nov 2, 2021
503ac78
Update README.md
mtbstn24 Mar 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Asserts/Forgot_password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/abnavod.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/close.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/image1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/image2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/image3.jfif
Binary file not shown.
Binary file added Asserts/image4.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/image5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/image6.jfif
Binary file not shown.
Binary file added Asserts/image7.jfif
Binary file not shown.
Binary file added Asserts/images.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/images.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/reset_password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Asserts/viewmem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# CO-WMS-new
# CO-WMS-new

# Project Description
## An Employee Workflow Managment System
-2nd Year undergraduates of UCSC (University of Colombo School of Computing), SriLanka - Group CS-41

### An Introduction
**_Co-WMS_**, an Employee Workflow Management System is the project that our group is currently developing as the 2nd Year Group Project.
Project Timeline => May 2021 - March 2022

### Main 3 Business Processes Considered
1. Working hours management
2. Task management
3. Leave management
2 changes: 1 addition & 1 deletion config/DatabaseConf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_NAME', 'CO-WMS-test');
define('DB_NAME', 'cowms');
define('DB_PASSWORD', 'root');
23 changes: 23 additions & 0 deletions controllers/Department.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

include_once('models/Department_Model.php');

class Department extends Controller{


function __construct()
{
parent::__construct();
}

function getDepartments(){

$models = new Department_Model();
$res = $models->getDepartments();
return $res;

}


}

24 changes: 24 additions & 0 deletions controllers/Team.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

include_once('models/Team_Model.php');

class Team extends Controller{


function __construct()
{
parent::__construct();
session_start();
}

function getTeams(){

$models = new Team_Model();
$res = $models->getTeams();
return $res;

}


}

95 changes: 95 additions & 0 deletions controllers/admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?php

class admin extends Controller{

function __construct()
{
parent::__construct();
session_start();
}

function index(){

}

function adminHome(){
if (isset($_POST['search_btn'])){
if(!(empty($_POST['empId']))){
$this->view->emp=$this->model->searchdata($_POST['empId']);
}
else{
echo "<script>alert('Empty Fields');</script>";
$this->view->emp=$this->model->getdata();
}
}else if (isset($_POST['search_all'])){
$this->view->emp=$this->model->getdata();
}else{
$this->view->emp=$this->model->getdata();
}
$this->view->render('adminHome');
}

function manageAccess(){
$this->view->emp=$this->model->searchdata($_GET['empID']);
$this->view->res1=$this->model->getaccessdata($_GET['empID']);

if (isset($_POST['submit_btn'])){

if (isset($_POST["admin"])){
$admin = true;
}else{
$admin = false;
}

if (isset($_POST["profile"])){
$profile = true;
}else{
$profile = false;
}

if (isset($_POST["login"])){
$login = true;
}else{
$login = false;
}

if (isset($_POST["member"])){
$member = true;
}else{
$member = false;
}

if (isset($_POST["leader"])){
$leader = true;
}else{
$leader = false;
}

if (isset($_POST["manager"])){
$manager = true;
}else{
$manager = false;
}

if (isset($_POST["hr"])){
$hr = true;
}else{
$hr = false;
}

if(count($this->view->res1)>0){
$this->view->res=$this->model->updatedata($_GET['empID'],$profile,$login,$admin,$member,$leader,$manager,$hr);
echo "<script>alert('Updated Successfully');</script>";
}
else{
$this->view->res=$this->model->insertdata($_GET['empID'],$profile,$login,$admin,$member,$leader,$manager,$hr);
echo "<script>alert('Inserted Successfully');</script>";
}

$this->view->res1=$this->model->getaccessdata($_GET['empID']);
}
$this->view->render('manageAccess');
}
}

?>
24 changes: 24 additions & 0 deletions controllers/adminHome.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

class adminHome extends Controller{

function __construct()
{
parent::__construct();
session_start();
}

function index(){
if (isset($_POST['search_btn'])){
$this->view->emp=$this->model->searchdata($_POST['empId']);
}else if (isset($_POST['search_all'])){
$this->view->emp=$this->model->getdata();
}else{
$this->view->emp=$this->model->getdata();
}
$this->view->render('adminHome');
}

}

?>
30 changes: 30 additions & 0 deletions controllers/assignTasksMember.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

class assignTasksMember extends Controller{


function __construct()
{
parent::__construct();
session_start();
}

function index(){

$this->view->users = $this->model->getData($_SESSION['teamID']);

$this->view->render('assignTasksMember');

}

function load($teamId){

$_SESSION['teamID'] = $teamId;

header('location: http://localhost/CO-WMS/assignTasksMember');


}


}
23 changes: 23 additions & 0 deletions controllers/assignTasksTeam.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

class assignTasksTeam extends Controller{

function __construct()
{
parent::__construct();
session_start();

}


function index(){

$this->view->users = $this->model->getData($_SESSION['login_user']);
$this->view->render('assignTasksTeam');

}

function load(){

}
}
28 changes: 28 additions & 0 deletions controllers/deptManageTask.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

class deptManageTask extends Controller{

function __construct()
{
parent::__construct();
session_start();
}

function index(){

$this->view->task = $this->model->getData($_SESSION['login_user']);

$this->view->render('deptManageTask');

}

function addTask(){

$this->model->insertData();

header('location: http://localhost/CO-WMS/deptManageTask');

}

}

21 changes: 21 additions & 0 deletions controllers/employeeWorkProgress.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

class employeeWorkProgress extends Controller{

public $msg;

function __construct()
{
parent::__construct();
session_start();
}

function index(){

// $this->view->users = $this->model->getData();
$this->view->render('employeeWorkProgress');


}

}
21 changes: 21 additions & 0 deletions controllers/forgotPassword.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

class forgotPassword extends Controller{

public $msg;

function __construct()
{
parent::__construct();
session_start();
}

function index(){

// $this->view->users = $this->model->getData();
$this->view->render('forgotPassword');


}

}
17 changes: 17 additions & 0 deletions controllers/home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

class home extends Controller{

function __construct()
{
parent::__construct();
session_start();
}

function index(){
$this->view->render('home');
}

}

?>
22 changes: 0 additions & 22 deletions controllers/homepage.php

This file was deleted.

28 changes: 28 additions & 0 deletions controllers/landingpage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

class landingpage extends Controller{

function __construct()
{
parent::__construct();
session_start();
}

function index(){

if(empty($_SESSION['login_user'])){
echo '<script>
alert("Session Not Start");
window.location.href="login";
</script>';
}

$this->view->data = $this->model->loadData();
$this->view->hours = $this->model->loadHours();

$this->view->render('landingpage');

}

}

Loading