diff --git a/admin/application/config/routes.php b/admin/application/config/routes.php
index cdc2cb6..0c32486 100644
--- a/admin/application/config/routes.php
+++ b/admin/application/config/routes.php
@@ -55,6 +55,7 @@ $route['translate_uri_dashes'] = FALSE;
$route['login'] = 'welcome/login';
$route['dashboard'] = 'welcome/dashboard';
$route['logout'] = 'welcome/logout';
+$route['change-password'] = 'welcome/changePassword';
//Role//
$route['roles'] = 'role/listrole';
diff --git a/admin/application/controllers/Degree.php b/admin/application/controllers/Degree.php
index 410da0b..13619f1 100644
--- a/admin/application/controllers/Degree.php
+++ b/admin/application/controllers/Degree.php
@@ -28,6 +28,8 @@ class Degree extends CI_Controller {
*/
public function degree_list()
{
+ if($this->session->userdata('id')==""){redirect('');}
+
$data['deg']=$this->Degree_model->deg_list();
$data['dep']=$this->Degree_model->get_dep();
$this->load->view('degree/degree_list',$data);
@@ -36,6 +38,8 @@ class Degree extends CI_Controller {
function add_degree()
{
if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
$data['dep']=$this->Degree_model->get_dep();
$this->load->view('degree/add_degree',$data);
if($this->input->post('submit'))
@@ -49,7 +53,7 @@ class Degree extends CI_Controller {
$values=array('name'=>$name,
'departmentId'=>$depId,
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
@@ -85,6 +89,8 @@ class Degree extends CI_Controller {
}
function editDegree($id)
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
if($this->input->post('submit'))
{
@@ -96,7 +102,7 @@ class Degree extends CI_Controller {
$values=array('name'=>$degName,
'departmentId'=>$depId,
'upadatedOn'=>date('Y-m-d'),
- 'updatedBy'=>1);
+ 'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
//echo $this->db->last_query();exit;
@@ -119,6 +125,9 @@ class Degree extends CI_Controller {
function deleteDegree()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
@@ -126,7 +135,7 @@ class Degree extends CI_Controller {
//echo $degreeId;exit;
$table="degree";
$where=array("id"=>$degreeId);
- $values=array('status'=>0);
+ $values=array('status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
diff --git a/admin/application/controllers/Department.php b/admin/application/controllers/Department.php
index 72477d9..0a7529b 100644
--- a/admin/application/controllers/Department.php
+++ b/admin/application/controllers/Department.php
@@ -35,9 +35,11 @@ class Department extends CI_Controller {
- function add_department()
+ function add_department()
{
if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
$this->load->view('department/add_department');
if($this->input->post('submit'))
{
@@ -69,7 +71,7 @@ class Department extends CI_Controller {
'year'=>$year,
'image'=>$user_img,
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
@@ -90,6 +92,9 @@ class Department extends CI_Controller {
function editDepartment($id)
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$name=$this->input->post('name');
@@ -121,7 +126,7 @@ class Department extends CI_Controller {
'year'=>$year,
'image'=>$newImage,
'updatedOn'=>date('Y-m-d'),
- 'updatedBy'=>1,
+ 'updatedBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
@@ -147,13 +152,16 @@ class Department extends CI_Controller {
function deleteDepartment()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$departmentId=$this->input->post('departmentId');
//echo $id ; exit;
$table="department";
$where=array("id"=>$departmentId);
- $values=array('status'=>0);
+ $values=array('status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
diff --git a/admin/application/controllers/Employee.php b/admin/application/controllers/Employee.php
index 7c1b6a6..701e873 100644
--- a/admin/application/controllers/Employee.php
+++ b/admin/application/controllers/Employee.php
@@ -9,8 +9,6 @@ public function __construct()
$this->load->model('Commonsql_model');
}
-
-
public function employee_list()
{
if($this->session->userdata('id')==""){redirect('');}
@@ -30,6 +28,7 @@ public function __construct()
function add_employee()
{
if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
$data['role']=$this->Employee_model->list_role();
@@ -41,7 +40,6 @@ public function __construct()
$roleId=$this->input->post('roleId');
$address=$this->input->post('address');
$email=$this->input->post('email');
- $code=$this->input->post('code');
$user=$this->input->post('User');
$password=$this->input->post('Password');
@@ -66,12 +64,11 @@ public function __construct()
'roleId'=>$roleId,
'address'=>$address,
'email'=>$email,
- 'pincode'=>$code,
'image'=>$eImage,
'username'=>$user,
'password'=>md5($password),
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
//echo $this->db->last_query();exit;
@@ -93,6 +90,8 @@ public function __construct()
function editEmployee($empid)
{
if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$employeename=$this->input->post('employeename');
@@ -100,7 +99,6 @@ public function __construct()
$mobileNumber=$this->input->post('mobileNumber');
$address=$this->input->post('address');
$email=$this->input->post('email');
- $code=$this->input->post('code');
$image=$this->input->post('image');
$hiddenImage=$this->input->post('hiddenImage');
$username=$this->input->post('username');
@@ -136,12 +134,11 @@ public function __construct()
'mobileNumber'=>$mobileNumber,
'address'=>$address,
'email'=>$email,
- 'pincode'=>$code,
'username'=>$username,
'image'=>$newImage,
'password'=>$newpassword,
'updatedOn'=>date('Y-m-d'),
- 'updatedBy'=>1,
+ 'updatedBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
@@ -167,6 +164,8 @@ public function __construct()
function deleteEmployee()
{
if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
//echo "test";exit;
@@ -174,7 +173,7 @@ public function __construct()
//echo $employeeId;exit;
$table="employee";
$where=array("id"=>$employeeId);
- $values=array('status'=>0);
+ $values=array('status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
diff --git a/admin/application/controllers/Faculty.php b/admin/application/controllers/Faculty.php
index 75e697e..1f1975e 100644
--- a/admin/application/controllers/Faculty.php
+++ b/admin/application/controllers/Faculty.php
@@ -28,8 +28,10 @@ class Faculty extends CI_Controller {
*/
public function faculty_list()
{
- $data['fac']=$this->Faculty_model->list_fa();
- $this->load->view('faculty/faculty_list',$data);
+ if($this->session->userdata('id')==""){redirect('');}
+
+ $data['fac']=$this->Faculty_model->list_fa();
+ $this->load->view('faculty/faculty_list',$data);
}
public function viewFaculty($id)
@@ -43,6 +45,8 @@ class Faculty extends CI_Controller {
function add_faculty()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
$this->load->view('faculty/add_faculty');
@@ -89,9 +93,26 @@ class Faculty extends CI_Controller {
'designation'=>$desi,
'image'=>$f_img,
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
+ $facultyId=$this->db->insert_id();
+
+ $table="employee";
+ $values=array('roleId'=>3,
+ 'typeId'=>$facultyId,
+ 'name'=>$name,
+ 'email'=>$email,
+ 'mobileNumber'=>$number,
+ 'address'=>$address,
+ 'image'=>$f_img,
+ 'username'=>$name,
+ 'password'=>md5($number),
+ 'createdOn'=>date('Y-m-d'),
+ 'createdBy'=>$currentUser,
+ 'status'=>1);
+
+ $result=$this->Commonsql_model->insert_table($table,$values);
if($result)
{
$this->session->set_userdata('suc','successfully added');
@@ -110,8 +131,11 @@ class Faculty extends CI_Controller {
function editFaculty($id)
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
$data['fac']=$this->Faculty_model->get_fac($id);
+ $data['employee']=$this->Faculty_model->get_employee($id);
$this->load->view('faculty/edit_faculty',$data);
if($this->input->post('submit'))
@@ -126,6 +150,7 @@ class Faculty extends CI_Controller {
$desi=$this->input->post('designation');
$image=$this->input->post('image');
$hiddenImage=$this->input->post('hiddenImage');
+ $employeeId=$this->input->post('employeeId');
if($image==""){$newImage=$hiddenImage;}
@@ -154,10 +179,23 @@ class Faculty extends CI_Controller {
'designation'=>$desi,
'image'=>$newImage,
'updatedOn'=>date('Y-m-d'),
- 'updatedBy'=>1);
+ 'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
- //echo $this->last_query();exit;
+
+ $table="employee";
+ $where=array("id"=>$employeeId);
+ $values=array('name'=>$name,
+ 'email'=>$email,
+ 'mobileNumber'=>$number,
+ 'address'=>$address,
+ 'image'=>$newImage,
+ 'username'=>$name,
+ 'password'=>md5($number),
+ 'createdOn'=>date('Y-m-d'),
+ 'updatedOn'=>date('Y-m-d'),
+ 'updatedBy'=>$currentUser);
+ $result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
{
$this->session->set_userdata('suc','successfully Updated');
@@ -171,21 +209,20 @@ class Faculty extends CI_Controller {
}
}
- //echo "sdsd";exit;
-
- //echo $this->db->last_query();exit;
-
}
function deleteFaculty()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$facultyId=$this->input->post('facultyId');
$table="faculty";
$where=array("id"=>$facultyId);
- $values=array('status'=>0);
+ $values=array('status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
diff --git a/admin/application/controllers/Project.php b/admin/application/controllers/Project.php
index f41ea99..9af02af 100644
--- a/admin/application/controllers/Project.php
+++ b/admin/application/controllers/Project.php
@@ -28,6 +28,8 @@ class Project extends CI_Controller {
*/
public function project_list()
{
+ if($this->session->userdata('id')==""){redirect('');}
+
$data['pro']=$this->Project_model->list_pro();
$this->load->view('project/project_list',$data);
}
@@ -41,6 +43,9 @@ class Project extends CI_Controller {
}
function add_project()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
$data['dep']=$this->Project_model->get_dep();
$data['stu']=$this->Project_model->get_stu();
$data['sub']=$this->Project_model->get_sub();
@@ -93,13 +98,14 @@ class Project extends CI_Controller {
'drivelink'=>$drivelink,
'vedio'=>$video,
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
$projectId=$this->db->insert_id();
//Image table insert
$title = $this->input->post('title');
+ $muldescription = $this->input->post('muldescription');
foreach($title as $key=>$value)
{
@@ -123,6 +129,7 @@ class Project extends CI_Controller {
$tablename='projectdetail';
$data=array('projectId'=>$projectId,
'title'=>$title[$key],
+ 'description'=>$muldescription[$key],
'image'=>$pImage,
'status'=>1);
@@ -149,7 +156,10 @@ class Project extends CI_Controller {
function editProject($id)
- {
+ {
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
$data['dep']=$this->Project_model->get_dep();
$data['stu']=$this->Project_model->get_stu();
$data['sub']=$this->Project_model->get_sub();
@@ -201,16 +211,17 @@ class Project extends CI_Controller {
'drivelink'=>$drivelink,
'vedio'=>$video,
'updatedOn'=>date('Y-m-d'),
- 'updatedBy'=>1);
+ 'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
//Image Multiple
$title = $this->input->post('title');
+ $muldescription = $this->input->post('muldescription');
$profileimage = $this->input->post('profileimage');
$projectDetailId = $this->input->post('projectDetailName');
$oldImage = $this->input->post('profileimageOld');
- //print_r ($projectDetailId);exit;
+ //print_r ($muldescription);exit;
//Update old datas
foreach($title as $key=>$value)
@@ -239,6 +250,7 @@ class Project extends CI_Controller {
}
$tablename='projectdetail';
$data=array('title'=>$title[$key],
+ 'description'=>$muldescription[$key],
'image'=>$newImage);
$where=array('id'=>$projectDetailId[$key]);
$result=$this->Commonsql_model->updateTable($tablename,$where,$data);
@@ -294,6 +306,7 @@ class Project extends CI_Controller {
$tablename='projectdetail';
$data=array('projectId'=>$id,
'title'=>$title[$key],
+ 'description'=>$muldescription[$key],
'image'=>$image,
'status'=>1);
@@ -322,13 +335,16 @@ class Project extends CI_Controller {
function deleteProject()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$projectId=$this->input->post('projectId');
$table="project";
$where=array("id"=>$projectId);
- $values=array('status'=>0);
+ $values=array('status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
$dTable="projectdetail";
diff --git a/admin/application/controllers/Role.php b/admin/application/controllers/Role.php
index 7d1bb96..43ef704 100644
--- a/admin/application/controllers/Role.php
+++ b/admin/application/controllers/Role.php
@@ -19,6 +19,8 @@ public function __construct()
function addrole()
{
if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$role=$this->input->post('rolename');
@@ -27,7 +29,7 @@ public function __construct()
$values=array('name'=>$role,
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
@@ -46,7 +48,9 @@ public function __construct()
}
function editrole()
{
- //if($this->session->userdata('id')==""){redirect('');}
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$rolename=$this->input->post('rolename');
@@ -56,7 +60,7 @@ public function __construct()
$where=array("id"=>$primaryid);
$values=array('name'=>$rolename,
'updatedOn'=>date('Y-m-d'),
- 'updatedBy'=>1,
+ 'updatedBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
@@ -77,7 +81,9 @@ public function __construct()
}
function deleterole()
{
- //if($this->session->userdata('id')==""){redirect('');}
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
@@ -86,7 +92,7 @@ public function __construct()
$table="role";
$where=array("id"=>$primaryid);
$values=array(
- 'status'=>0);
+ 'status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
diff --git a/admin/application/controllers/Semester.php b/admin/application/controllers/Semester.php
index 2a73ce5..d269dc2 100644
--- a/admin/application/controllers/Semester.php
+++ b/admin/application/controllers/Semester.php
@@ -28,6 +28,8 @@ class Semester extends CI_Controller {
*/
public function semester_list()
{
+ if($this->session->userdata('id')==""){redirect('');}
+
$data['semester']=$this->Semester_model->list_semester();
$this->load->view('semester/semester_list',$data);
}
@@ -43,6 +45,9 @@ class Semester extends CI_Controller {
function add_semester()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
$data['subject']=$this->Semester_model->listSubject();
$data['department']=$this->Semester_model->listDepartment();
$data['degree']=$this->Semester_model->listDegree();
@@ -61,7 +66,7 @@ class Semester extends CI_Controller {
$values=array( 'name'=>$name,
'year'=>$year,
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
$semesterId=$this->db->insert_id();
@@ -105,6 +110,9 @@ class Semester extends CI_Controller {
function editSemester($id)
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
$data['subject']=$this->Semester_model->listSubject();
$data['degree']=$this->Semester_model->listDegree();
$data['getData']=$this->Semester_model->getSemester($id);
@@ -122,7 +130,7 @@ class Semester extends CI_Controller {
$values=array( 'name'=>$name,
'year'=>$year,
'updatedOn'=>date('Y-m-d'),
- 'updatedby'=>1);
+ 'updatedby'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
//echo $this->db->last_query();exit;
@@ -210,13 +218,16 @@ class Semester extends CI_Controller {
function deleteSemester()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$semesterId=$this->input->post('semesterId');
$table="semester";
$where=array("id"=>$semesterId);
- $values=array('status'=>0);
+ $values=array('status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
$table="semesterdetail";
diff --git a/admin/application/controllers/Student.php b/admin/application/controllers/Student.php
index f4001c7..08964da 100644
--- a/admin/application/controllers/Student.php
+++ b/admin/application/controllers/Student.php
@@ -28,6 +28,7 @@ class Student extends CI_Controller {
*/
public function Student_list()
{
+ if($this->session->userdata('id')==""){redirect('');}
$data['stu']=$this->Student_model->list_stu();
$this->load->view('student/student_list',$data);
}
@@ -37,13 +38,15 @@ class Student extends CI_Controller {
if($this->session->userdata('id')==""){redirect('');}
$data['viewStudent']=$this->Student_model->viewStudent($id);
- //echo $this->db->last_query();exit;
$this->load->view('student/view_student',$data);
}
function add_student()
{
- $data['dep']=$this->Student_model->get_dep();
- $this->load->view('student/add_student',$data);
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
+ $data['dep']=$this->Student_model->get_dep();
+ $this->load->view('student/add_student',$data);
if($this->input->post('submit'))
@@ -86,7 +89,7 @@ class Student extends CI_Controller {
'image'=>$s_img,
'dob'=>$date,
'createdOn'=>date('Y-m-d'),
- 'createdBy'=>1,
+ 'createdBy'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
if($result)
@@ -107,6 +110,9 @@ class Student extends CI_Controller {
function editStudent($id)
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
$data['dep']=$this->Student_model->get_dep();
$data['stu']=$this->Student_model->get_stu($id);
@@ -146,8 +152,8 @@ class Student extends CI_Controller {
'dob'=>$date,
'gender'=>$gender,
'image'=>$s_img,
- //'update_on'=>date('Y-m-d'),
- // 'update_by'=>1,
+ 'update_on'=>date('Y-m-d'),
+ 'update_by'=>$currentUser,
'status'=>1);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
@@ -170,13 +176,16 @@ class Student extends CI_Controller {
function deleteStudent()
{
+ if($this->session->userdata('id')==""){redirect('');}
+ $currentUser=$this->session->userdata('id');
+
if($this->input->post('submit'))
{
$studentId=$this->input->post('studentId');
$table="student";
$where=array("id"=>$studentId);
- $values=array('status'=>0);
+ $values=array('status'=>0,'updatedOn'=>date('Y-m-d'),'updatedBy'=>$currentUser);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
diff --git a/admin/application/controllers/Subject.php b/admin/application/controllers/Subject.php
index e60b472..39207d7 100644
--- a/admin/application/controllers/Subject.php
+++ b/admin/application/controllers/Subject.php
@@ -26,8 +26,11 @@ class Subject extends CI_Controller {
* map to /index.php/welcome/ =$pincode;?> =$username;?>
-
=$degName;?>
+ Subject_model->get_faculty($faculty); + + if($getFac->num_rows()>0) + { + $list=$getFac->row(); + $facName=$list->name; + } + ?> + =$facName.','?> + +
+
diff --git a/admin/css/theme_style.css b/admin/css/theme_style.css
index f272895..a2b1888 100644
--- a/admin/css/theme_style.css
+++ b/admin/css/theme_style.css
@@ -1559,7 +1559,7 @@ form.search-form-opened .btn.submit {
display: table
}
.page-header-fixed .page-container {
- margin-top: 50px
+ margin-top: 30px
}
.page-full-width.page-header-fixed .page-container {
margin-top: 110px
diff --git a/admin/uploads/department/230123053918.webp b/admin/uploads/department/230123053918.webp
deleted file mode 100644
index da24ae8..0000000
Binary files a/admin/uploads/department/230123053918.webp and /dev/null differ
diff --git a/admin/uploads/faculty/2301230548.webp b/admin/uploads/faculty/2301230548.webp
deleted file mode 100644
index 8f9222d..0000000
Binary files a/admin/uploads/faculty/2301230548.webp and /dev/null differ
diff --git a/admin/uploads/faculty/2301230551.webp b/admin/uploads/faculty/2301230551.webp
deleted file mode 100644
index 4d660ac..0000000
Binary files a/admin/uploads/faculty/2301230551.webp and /dev/null differ
diff --git a/admin/uploads/faculty/2301230553.webp b/admin/uploads/faculty/2301230553.webp
deleted file mode 100644
index 7532c3e..0000000
Binary files a/admin/uploads/faculty/2301230553.webp and /dev/null differ
diff --git a/admin/uploads/faculty/2301230555.webp b/admin/uploads/faculty/2301230555.webp
deleted file mode 100644
index e247e4d..0000000
Binary files a/admin/uploads/faculty/2301230555.webp and /dev/null differ
diff --git a/admin/uploads/faculty/2301230603.webp b/admin/uploads/faculty/2301230603.webp
deleted file mode 100644
index 9155563..0000000
Binary files a/admin/uploads/faculty/2301230603.webp and /dev/null differ
diff --git a/admin/uploads/faculty/2302070807.png b/admin/uploads/faculty/2302070807.png
new file mode 100644
index 0000000..1056972
Binary files /dev/null and b/admin/uploads/faculty/2302070807.png differ
diff --git a/admin/uploads/faculty/2302070809.png b/admin/uploads/faculty/2302070809.png
new file mode 100644
index 0000000..9be1ea5
Binary files /dev/null and b/admin/uploads/faculty/2302070809.png differ
diff --git a/admin/uploads/faculty/2302070811.png b/admin/uploads/faculty/2302070811.png
new file mode 100644
index 0000000..1056972
Binary files /dev/null and b/admin/uploads/faculty/2302070811.png differ
diff --git a/admin/uploads/project/1.1.jpg b/admin/uploads/project/1.1.jpg
deleted file mode 100644
index 2b8c02c..0000000
Binary files a/admin/uploads/project/1.1.jpg and /dev/null differ
diff --git a/admin/uploads/project/1.4.jpg b/admin/uploads/project/1.4.jpg
deleted file mode 100644
index c8135fa..0000000
Binary files a/admin/uploads/project/1.4.jpg and /dev/null differ
diff --git a/admin/uploads/project/1.5.jpg b/admin/uploads/project/1.5.jpg
deleted file mode 100644
index 42fe7d1..0000000
Binary files a/admin/uploads/project/1.5.jpg and /dev/null differ
diff --git a/admin/uploads/project/title230124093956.jpg b/admin/uploads/project/title230124093956.jpg
deleted file mode 100644
index 2b8c02c..0000000
Binary files a/admin/uploads/project/title230124093956.jpg and /dev/null differ
diff --git a/admin/uploads/project/title230124102715.webp b/admin/uploads/project/title230124102715.webp
deleted file mode 100644
index da24ae8..0000000
Binary files a/admin/uploads/project/title230124102715.webp and /dev/null differ
diff --git a/admin/uploads/project/title230124102722.jpg b/admin/uploads/project/title230124102722.jpg
deleted file mode 100644
index 2b8c02c..0000000
Binary files a/admin/uploads/project/title230124102722.jpg and /dev/null differ
diff --git a/admin/uploads/student/2301240937.png b/admin/uploads/student/2301240937.png
deleted file mode 100644
index 9753a2d..0000000
Binary files a/admin/uploads/student/2301240937.png and /dev/null differ
diff --git a/admin/uploads/subject/.1.jpg b/admin/uploads/subject/.1.jpg
deleted file mode 100644
index 2b8c02c..0000000
Binary files a/admin/uploads/subject/.1.jpg and /dev/null differ
diff --git a/admin/uploads/subject/1.1.jpg b/admin/uploads/subject/1.1.jpg
deleted file mode 100644
index 2b8c02c..0000000
Binary files a/admin/uploads/subject/1.1.jpg and /dev/null differ
diff --git a/admin/uploads/subject/1.219983.png b/admin/uploads/subject/1.219983.png
deleted file mode 100644
index 28ebd4c..0000000
Binary files a/admin/uploads/subject/1.219983.png and /dev/null differ
diff --git a/admin/uploads/subject/2.2.jpg b/admin/uploads/subject/2.2.jpg
deleted file mode 100644
index 35f8df3..0000000
Binary files a/admin/uploads/subject/2.2.jpg and /dev/null differ
diff --git a/admin/uploads/subject/230123063921.webp b/admin/uploads/subject/230123063921.webp
deleted file mode 100644
index 8f9222d..0000000
Binary files a/admin/uploads/subject/230123063921.webp and /dev/null differ
diff --git a/admin/uploads/subject/230123064458.webp b/admin/uploads/subject/230123064458.webp
deleted file mode 100644
index 8f9222d..0000000
Binary files a/admin/uploads/subject/230123064458.webp and /dev/null differ
diff --git a/admin/uploads/subject/230123064624.webp b/admin/uploads/subject/230123064624.webp
deleted file mode 100644
index 4d660ac..0000000
Binary files a/admin/uploads/subject/230123064624.webp and /dev/null differ
diff --git a/admin/uploads/subject/230123064720.webp b/admin/uploads/subject/230123064720.webp
deleted file mode 100644
index 7532c3e..0000000
Binary files a/admin/uploads/subject/230123064720.webp and /dev/null differ
diff --git a/admin/uploads/subject/230123064826.webp b/admin/uploads/subject/230123064826.webp
deleted file mode 100644
index e247e4d..0000000
Binary files a/admin/uploads/subject/230123064826.webp and /dev/null differ
diff --git a/admin/uploads/subject/230123064913.webp b/admin/uploads/subject/230123064913.webp
deleted file mode 100644
index 9155563..0000000
Binary files a/admin/uploads/subject/230123064913.webp and /dev/null differ
diff --git a/admin/uploads/subject/230207110552.png b/admin/uploads/subject/230207110552.png
new file mode 100644
index 0000000..1056972
Binary files /dev/null and b/admin/uploads/subject/230207110552.png differ
diff --git a/admin/uploads/subject/3.3.jpg b/admin/uploads/subject/3.3.jpg
deleted file mode 100644
index 15546e9..0000000
Binary files a/admin/uploads/subject/3.3.jpg and /dev/null differ
diff --git a/admin/uploads/subject/3.logo.png b/admin/uploads/subject/3.logo.png
new file mode 100644
index 0000000..d41a50f
Binary files /dev/null and b/admin/uploads/subject/3.logo.png differ
diff --git a/admin/uploads/subject/4.4.jpg b/admin/uploads/subject/4.4.jpg
deleted file mode 100644
index c8135fa..0000000
Binary files a/admin/uploads/subject/4.4.jpg and /dev/null differ
diff --git a/admin/uploads/subject/5.219983.png b/admin/uploads/subject/5.219983.png
deleted file mode 100644
index 28ebd4c..0000000
Binary files a/admin/uploads/subject/5.219983.png and /dev/null differ
diff --git a/admin/uploads/subject/5.5.jpg b/admin/uploads/subject/5.5.jpg
deleted file mode 100644
index 42fe7d1..0000000
Binary files a/admin/uploads/subject/5.5.jpg and /dev/null differ
diff --git a/application/controllers/Welcome.php b/application/controllers/Welcome.php
index de0db99..042fe44 100644
--- a/application/controllers/Welcome.php
+++ b/application/controllers/Welcome.php
@@ -83,5 +83,83 @@ class Welcome extends CI_Controller {
$this->load->view('contact',$data);
}
-
+ function getDepartment()
+ {
+ $defaultId=$_POST['defaultId'];
+ $data=$_POST['data'];
+ $hidd=$_POST['hidd'];
+
+ $this->session->set_userdata('dateYear',$data);
+ $this->session->set_userdata('dataId',$hidd);
+
+ $getDepartment=$this->WelcomeModel->getDepartment($defaultId);
+ //echo $this->db->last_query();
+ if(isset($getDepartment) && $getDepartment->num_rows()>0)
+ {
+ foreach($getDepartment->result() as $list)
+ {
+ $depId=$list->depId;
+ $depName=$list->depName;
+ $depCode=$list->depCode;
+ $depImage=$list->depImage;
+ ?>
+
+ =$depName?>
+