20230121
Role, Employee, Department, Degree, Semester, Subject, Faculty Edit Completed
@ -132,4 +132,4 @@ $autoload['language'] = array();
|
|||||||
|
|
|
|
||||||
| $autoload['model'] = array('first_model' => 'first');
|
| $autoload['model'] = array('first_model' => 'first');
|
||||||
*/
|
*/
|
||||||
$autoload['model'] = array();
|
$autoload['model'] = array('');
|
||||||
|
@ -52,6 +52,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
$route['default_controller'] = 'welcome';
|
$route['default_controller'] = 'welcome';
|
||||||
$route['404_override'] = '';
|
$route['404_override'] = '';
|
||||||
$route['translate_uri_dashes'] = FALSE;
|
$route['translate_uri_dashes'] = FALSE;
|
||||||
|
$route['login'] = 'welcome/login';
|
||||||
$route['dashboard'] = 'welcome/dashboard';
|
$route['dashboard'] = 'welcome/dashboard';
|
||||||
$route['logout'] = 'welcome/logout';
|
$route['logout'] = 'welcome/logout';
|
||||||
|
|
||||||
@ -65,47 +66,42 @@ $route['delete_role'] = 'role/deleterole';
|
|||||||
//emplayee//
|
//emplayee//
|
||||||
$route['employee'] = 'employee/employee_list';
|
$route['employee'] = 'employee/employee_list';
|
||||||
$route['add-employee'] = 'employee/add_employee';
|
$route['add-employee'] = 'employee/add_employee';
|
||||||
$route['edit_employees/(:num)'] = 'employee/editemployee/$1';
|
$route['view-employee/(:num)'] = 'employee/viewEmployee/$1';
|
||||||
$route['deleted_employee'] = 'employee/deleted_employee';
|
$route['edit-employee/(:num)'] = 'employee/editEmployee/$1';
|
||||||
|
|
||||||
|
|
||||||
//Department//
|
//Department//
|
||||||
$route['department'] = 'department/department_list';
|
$route['department'] = 'department/department_list';
|
||||||
$route['add_department'] = 'department/add_department';
|
$route['add_department'] = 'department/add_department';
|
||||||
$route['edit_department/(:num)'] = 'department/edit_department/$1';
|
$route['edit-department/(:num)'] = 'department/editDepartment/$1';
|
||||||
$route['deleted_department'] = 'department/deleted_department';
|
|
||||||
|
|
||||||
//Degree//
|
//Degree//
|
||||||
$route['degree'] = 'degree/degree_list';
|
$route['degree'] = 'degree/degree_list';
|
||||||
$route['add_degree'] = 'degree/add_degree';
|
$route['add_degree'] = 'degree/add_degree';
|
||||||
$route['edit_degree/(:num)'] = 'department/edit_department/$1';
|
$route['edit-degree/(:num)'] = 'degree/editDegree/$1';
|
||||||
$route['deleted_department'] = 'department/deleted_department';
|
|
||||||
|
|
||||||
|
|
||||||
//Semester//
|
//Semester//
|
||||||
$route['semester'] = 'semester/semester_list';
|
$route['semester'] = 'semester/semester_list';
|
||||||
$route['add_semester'] = 'semester/add_semester';
|
$route['add-semester'] = 'semester/add_semester';
|
||||||
$route['edit_semester'] = 'semester/edit_semester';
|
$route['edit-semester/(:num)'] = 'semester/editSemester/$1';
|
||||||
$route['deleted_semester'] = 'semester/deleted_semester';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//subject//
|
//subject//
|
||||||
$route['subject'] = 'subject/subject_list';
|
$route['subject'] = 'subject/subject_list';
|
||||||
$route['add_subject'] = 'subject/add_subject';
|
$route['add-subject'] = 'subject/add_subject';
|
||||||
$route['edit_subject/(:num)'] = 'subject/edit_subject/$1';
|
$route['view-subject/(:num)'] = 'subject/viewSubject/$1';
|
||||||
$route['deleted_subject'] = 'subject/deleted_subject';
|
$route['edit-subject/(:num)'] = 'subject/editSubject/$1';
|
||||||
|
|
||||||
|
|
||||||
//faculty//
|
//faculty//
|
||||||
$route['faculty'] = 'faculty/faculty_list';
|
$route['faculty'] = 'faculty/faculty_list';
|
||||||
$route['add_faculty'] = 'faculty/add_faculty';
|
$route['add_faculty'] = 'faculty/add_faculty';
|
||||||
$route['edit_faculty/(:num)'] = 'faculty/edit_faculty/$1';
|
$route['view-faculty/(:num)'] = 'faculty/viewFaculty/$1';
|
||||||
$route['deleted_faculty'] = 'faculty/deleted_faculty';
|
$route['edit-faculty/(:num)'] = 'faculty/editFaculty/$1';
|
||||||
|
|
||||||
|
|
||||||
//student//
|
//student//
|
||||||
$route['student'] = 'student/student_list';
|
$route['student'] = 'student/student_list';
|
||||||
$route['add_student'] = 'student/add_student';
|
$route['add_student'] = 'student/add_student';
|
||||||
|
$route['view-student/(:num)'] = 'student/viewStudent/$1';
|
||||||
$route['edit_student/(:num)'] = 'student/edit_student/$1';
|
$route['edit_student/(:num)'] = 'student/edit_student/$1';
|
||||||
$route['deleted_student'] = 'student/deleted_student';
|
$route['deleted_student'] = 'student/deleted_student';
|
||||||
|
|
||||||
@ -113,5 +109,6 @@ $route['deleted_student'] = 'student/deleted_student';
|
|||||||
//project//
|
//project//
|
||||||
$route['project'] = 'project/project_list';
|
$route['project'] = 'project/project_list';
|
||||||
$route['add_project'] = 'project/add_project';
|
$route['add_project'] = 'project/add_project';
|
||||||
|
$route['view-project/(:num)'] = 'project/viewProject/$1';
|
||||||
$route['edit_project/(:num)'] = 'project/edit_project/$1';
|
$route['edit_project/(:num)'] = 'project/edit_project/$1';
|
||||||
$route['deleted_project'] = 'project/deleted_project';
|
$route['deleted_project'] = 'project/deleted_project';
|
@ -28,15 +28,14 @@ class Degree extends CI_Controller {
|
|||||||
*/
|
*/
|
||||||
public function degree_list()
|
public function degree_list()
|
||||||
{
|
{
|
||||||
if($this->session->userdata('id')==""){redirect('');}
|
|
||||||
$data['deg']=$this->Degree_model->deg_list();
|
$data['deg']=$this->Degree_model->deg_list();
|
||||||
|
$data['dep']=$this->Degree_model->get_dep();
|
||||||
$this->load->view('degree/degree_list',$data);
|
$this->load->view('degree/degree_list',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function add_degree()
|
function add_degree()
|
||||||
{
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
$data['dep']=$this->Degree_model->get_dep();
|
$data['dep']=$this->Degree_model->get_dep();
|
||||||
$this->load->view('degree/add_degree',$data);
|
$this->load->view('degree/add_degree',$data);
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
@ -68,32 +67,36 @@ class Degree extends CI_Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getDegree()
|
||||||
function edit_department($id)
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
|
$id=$_POST['id'];
|
||||||
|
$tableName="degree";
|
||||||
|
$select=array('id','name','departmentId');
|
||||||
|
$where=array('id'=>$id);
|
||||||
|
$degree=$this->Commonsql_model->selectTable($tableName,$where,$select);
|
||||||
|
if($degree->num_rows()>0){
|
||||||
|
$list1=$degree->row();
|
||||||
|
$id=$list1->id;
|
||||||
|
$name=$list1->name;
|
||||||
|
$departmentId=$list1->departmentId;
|
||||||
|
}
|
||||||
|
echo $id.'-'.$name.'-'.$departmentId;
|
||||||
|
}
|
||||||
|
function editDegree($id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$data['dep']=$this->Department_model->get_dep($id);
|
|
||||||
//echo $this->db->last_query();exit;
|
|
||||||
$this->load->view('department/edit_department',$data);
|
|
||||||
|
|
||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$name=$this->input->post('name');
|
$degName=$this->input->post('degreeName');
|
||||||
$code=$this->input->post('code');
|
$depId=$this->input->post('depId');
|
||||||
$year=$this->input->post('year');
|
|
||||||
$image=$this->input->post('image');
|
|
||||||
//$primaryid=$this->input->post('hiddendepid');
|
|
||||||
|
|
||||||
$table="department";
|
$table="degree";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$id);
|
||||||
$values=array('name'=>$name,
|
$values=array('name'=>$degName,
|
||||||
'code'=>$code,
|
'departmentId'=>$depId,
|
||||||
'year'=>$year,
|
'upadatedOn'=>date('Y-m-d'),
|
||||||
'image'=>$image,
|
'updatedBy'=>1);
|
||||||
'updatedOn'=>date('Y-m-d'),
|
|
||||||
'updatedBy'=>1,
|
|
||||||
'status'=>1);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
@ -101,12 +104,12 @@ class Degree extends CI_Controller {
|
|||||||
|
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully Updated');
|
$this->session->set_userdata('suc','successfully Updated');
|
||||||
redirect('department');
|
redirect('degree');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('err','Please try again');
|
$this->session->set_userdata('err','Please try again');
|
||||||
redirect('department');
|
redirect('degree');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -114,27 +117,28 @@ class Degree extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function deleted_department()
|
function deleteDegree()
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$id=$this->input->post('hiddenpass');
|
|
||||||
//echo $id ; exit;
|
$degreeId=$this->input->post('degreeId');
|
||||||
$table="department";
|
//echo $degreeId;exit;
|
||||||
$where=array("id"=>$id);
|
$table="degree";
|
||||||
|
$where=array("id"=>$degreeId);
|
||||||
$values=array('status'=>0);
|
$values=array('status'=>0);
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully deleted');
|
$this->session->set_userdata('suc','successfully deleted');
|
||||||
redirect('department');
|
redirect('degree');
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('err','Please try again');
|
$this->session->set_userdata('err','Please try again');
|
||||||
redirect('department');
|
redirect('degree');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@ class Department extends CI_Controller {
|
|||||||
*/
|
*/
|
||||||
public function department_list()
|
public function department_list()
|
||||||
{
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
$data['dep']=$this->Department_model->dep_list();
|
$data['dep']=$this->Department_model->dep_list();
|
||||||
$this->load->view('department/department_list',$data);
|
$this->load->view('department/department_list',$data);
|
||||||
}
|
}
|
||||||
@ -36,20 +37,37 @@ class Department extends CI_Controller {
|
|||||||
|
|
||||||
function add_department()
|
function add_department()
|
||||||
{
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
$this->load->view('department/add_department');
|
$this->load->view('department/add_department');
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
$code=$this->input->post('code');
|
$code=$this->input->post('code');
|
||||||
$year=$this->input->post('year');
|
$year=$this->input->post('year');
|
||||||
$image=$this->input->post('image');
|
|
||||||
|
if (!is_dir('uploads/department')) {
|
||||||
|
mkdir('./uploads/department', 0777, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(file_exists($_FILES['depImage']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['depImage']['tmp_name'];
|
||||||
|
$user_img=str_replace(' ', '_', $_FILES["depImage"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($user_img, PATHINFO_EXTENSION);
|
||||||
|
$user_img=date('ymdhis').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/department/';
|
||||||
|
$targetFile=$targetPath.$user_img;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
$table="department";
|
$table="department";
|
||||||
|
|
||||||
$values=array('name'=>$name,
|
$values=array('name'=>$name,
|
||||||
'code'=>$code,
|
'code'=>$code,
|
||||||
'year'=>$year,
|
'year'=>$year,
|
||||||
'image'=>$image,
|
'image'=>$user_img,
|
||||||
'createdOn'=>date('Y-m-d'),
|
'createdOn'=>date('Y-m-d'),
|
||||||
'createdBy'=>1,
|
'createdBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
@ -70,28 +88,38 @@ class Department extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function edit_department($id)
|
function editDepartment($id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$data['dep']=$this->Department_model->get_dep($id);
|
|
||||||
//echo $this->db->last_query();exit;
|
|
||||||
$this->load->view('department/edit_department',$data);
|
|
||||||
|
|
||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
$code=$this->input->post('code');
|
$code=$this->input->post('code');
|
||||||
$year=$this->input->post('year');
|
$year=$this->input->post('year');
|
||||||
$image=$this->input->post('image');
|
$image=$this->input->post('image');
|
||||||
|
$hiddenImage=$this->input->post('hiddenImage');
|
||||||
//$primaryid=$this->input->post('hiddendepid');
|
//$primaryid=$this->input->post('hiddendepid');
|
||||||
|
if($image=="")
|
||||||
|
{
|
||||||
|
$newImage=$hiddenImage;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(file_exists($_FILES['image']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['image']['tmp_name'];
|
||||||
|
$newImage=str_replace(' ', '_', $_FILES["image"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($newImage, PATHINFO_EXTENSION);
|
||||||
|
$newImage=date('ymdhis').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/department/';
|
||||||
|
$targetFile=$targetPath.$newImage;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
$table="department";
|
$table="department";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$id);
|
||||||
$values=array('name'=>$name,
|
$values=array('name'=>$name,
|
||||||
'code'=>$code,
|
'code'=>$code,
|
||||||
'year'=>$year,
|
'year'=>$year,
|
||||||
'image'=>$image,
|
'image'=>$newImage,
|
||||||
'updatedOn'=>date('Y-m-d'),
|
'updatedOn'=>date('Y-m-d'),
|
||||||
'updatedBy'=>1,
|
'updatedBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
@ -111,18 +139,20 @@ class Department extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$data['dep']=$this->Department_model->get_dep($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$this->load->view('department/edit_department',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function deleted_department()
|
function deleteDepartment()
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$id=$this->input->post('hiddenpass');
|
$departmentId=$this->input->post('departmentId');
|
||||||
//echo $id ; exit;
|
//echo $id ; exit;
|
||||||
$table="department";
|
$table="department";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$departmentId);
|
||||||
$values=array('status'=>0);
|
$values=array('status'=>0);
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
|
@ -13,28 +13,53 @@ public function __construct()
|
|||||||
|
|
||||||
public function employee_list()
|
public function employee_list()
|
||||||
{
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
|
|
||||||
$data['emp']=$this->Employee_model->list_emp();
|
$data['emp']=$this->Employee_model->list_emp();
|
||||||
|
|
||||||
$this->load->view('employee/list',$data);
|
$this->load->view('employee/list',$data);
|
||||||
}
|
}
|
||||||
|
public function viewEmployee($id)
|
||||||
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
|
|
||||||
|
$data['viewEmployee']=$this->Employee_model->viewEmployee($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$this->load->view('employee/viewemployee',$data);
|
||||||
|
}
|
||||||
function add_employee()
|
function add_employee()
|
||||||
{
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
|
|
||||||
$data['role']=$this->Employee_model->list_role();
|
$data['role']=$this->Employee_model->list_role();
|
||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
|
//echo "dsdsd";exit;
|
||||||
$employeename=$this->input->post('employeename');
|
$employeename=$this->input->post('employeename');
|
||||||
$mobileNumber=$this->input->post('mobileNumber');
|
$mobileNumber=$this->input->post('mobileNumber');
|
||||||
$roleId=$this->input->post('roleId');
|
$roleId=$this->input->post('roleId');
|
||||||
$address=$this->input->post('address');
|
$address=$this->input->post('address');
|
||||||
$email=$this->input->post('email');
|
$email=$this->input->post('email');
|
||||||
$code=$this->input->post('code');
|
$code=$this->input->post('code');
|
||||||
$img=$this->input->post('img');
|
|
||||||
$user=$this->input->post('User');
|
$user=$this->input->post('User');
|
||||||
$password=$this->input->post('Password');
|
$password=$this->input->post('Password');
|
||||||
|
|
||||||
|
if (!is_dir('uploads/employee')) {
|
||||||
|
mkdir('./uploads/employee', 0777, TRUE);
|
||||||
|
|
||||||
|
}
|
||||||
|
if(file_exists($_FILES['employeeImg']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['employeeImg']['tmp_name'];
|
||||||
|
$eImage=str_replace(' ', '_', $_FILES["employeeImg"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($eImage, PATHINFO_EXTENSION);
|
||||||
|
$eImage=date('ymdhi').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/employee/';
|
||||||
|
$targetFile=$targetPath.$eImage;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
$table="employee";
|
$table="employee";
|
||||||
$values=array('name'=>$employeename,
|
$values=array('name'=>$employeename,
|
||||||
'mobileNumber'=>$mobileNumber,
|
'mobileNumber'=>$mobileNumber,
|
||||||
@ -42,13 +67,14 @@ public function __construct()
|
|||||||
'address'=>$address,
|
'address'=>$address,
|
||||||
'email'=>$email,
|
'email'=>$email,
|
||||||
'pincode'=>$code,
|
'pincode'=>$code,
|
||||||
'image'=>$img,
|
'image'=>$eImage,
|
||||||
'username'=>$user,
|
'username'=>$user,
|
||||||
'password'=>$password,
|
'password'=>md5($password),
|
||||||
'createdOn'=>date('Y-m-d'),
|
'createdOn'=>date('Y-m-d'),
|
||||||
'createdBy'=>1,
|
'createdBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully added');
|
$this->session->set_userdata('suc','successfully added');
|
||||||
@ -64,42 +90,62 @@ public function __construct()
|
|||||||
}
|
}
|
||||||
$this->load->view('employee/add',$data);
|
$this->load->view('employee/add',$data);
|
||||||
}
|
}
|
||||||
function editemployee($empid)
|
function editEmployee($empid)
|
||||||
{
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$employeename=$this->input->post('employeename');
|
$employeename=$this->input->post('employeename');
|
||||||
|
$roleId=$this->input->post('roleId');
|
||||||
$mobileNumber=$this->input->post('mobileNumber');
|
$mobileNumber=$this->input->post('mobileNumber');
|
||||||
$address=$this->input->post('address');
|
$address=$this->input->post('address');
|
||||||
$email=$this->input->post('email');
|
$email=$this->input->post('email');
|
||||||
$code=$this->input->post('code');
|
$code=$this->input->post('code');
|
||||||
$img=$this->input->post('img');
|
$image=$this->input->post('image');
|
||||||
$user=$this->input->post('User');
|
$hiddenImage=$this->input->post('hiddenImage');
|
||||||
$password=$this->input->post('Password');
|
$username=$this->input->post('username');
|
||||||
$hiddenpass=$this->input->post('hiddenpass');
|
$password=$this->input->post('password');
|
||||||
|
$hiddenPassword=$this->input->post('hiddenPassword');
|
||||||
if($password=="")
|
if($password=="")
|
||||||
{
|
{
|
||||||
$newpassword=$hiddenpass;
|
$newpassword=$hiddenPassword;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$newpassword=md5($password);
|
$newpassword=md5($password);
|
||||||
}
|
}
|
||||||
|
if($image==""){
|
||||||
|
$newImage=$hiddenImage;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(file_exists($_FILES['image']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['image']['tmp_name'];
|
||||||
|
$newImage=str_replace(' ', '_', $_FILES["image"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($newImage, PATHINFO_EXTENSION);
|
||||||
|
$newImage=date('ymdhi').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/employee/';
|
||||||
|
$targetFile=$targetPath.$newImage;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
$table="employee";
|
$table="employee";
|
||||||
$where=array("id"=>$empid);
|
$where=array("id"=>$empid);
|
||||||
$values=array('name'=>$employeename,
|
$values=array('name'=>$employeename,
|
||||||
|
'roleId'=>$roleId,
|
||||||
'mobileNumber'=>$mobileNumber,
|
'mobileNumber'=>$mobileNumber,
|
||||||
'address'=>$address,
|
'address'=>$address,
|
||||||
'email'=>$email,
|
'email'=>$email,
|
||||||
'pincode'=>$code,
|
'pincode'=>$code,
|
||||||
'username'=>$user,
|
'username'=>$username,
|
||||||
'image'=>$img,
|
'image'=>$newImage,
|
||||||
'password'=>$newpassword,
|
'password'=>$newpassword,
|
||||||
'updatedOn'=>date('Y-m-d'),
|
'updatedOn'=>date('Y-m-d'),
|
||||||
'updatedBy'=>1,
|
'updatedBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully Updated');
|
$this->session->set_userdata('suc','successfully Updated');
|
||||||
@ -113,24 +159,24 @@ public function __construct()
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//echo "sdsd";exit;
|
$data['role']=$this->Employee_model->list_role();
|
||||||
$data['emp']=$this->Employee_model->get_emp($empid);
|
$data['emp']=$this->Employee_model->viewEmployee($empid);
|
||||||
//echo $this->db->last_query();exit;
|
$this->load->view('employee/edit',$data);
|
||||||
$this->load->view('add_emplayee/edit',$data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleted_employee()
|
function deleteEmployee()
|
||||||
{
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$empid=$this->input->post('hiddenid');
|
//echo "test";exit;
|
||||||
|
$employeeId=$this->input->post('employeeId');
|
||||||
|
//echo $employeeId;exit;
|
||||||
$table="employee";
|
$table="employee";
|
||||||
$where=array("id"=>$empid);
|
$where=array("id"=>$employeeId);
|
||||||
$values=array(
|
$values=array('status'=>0);
|
||||||
'status'=>0);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
|
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully deleted');
|
$this->session->set_userdata('suc','successfully deleted');
|
||||||
|
@ -32,7 +32,14 @@ class Faculty extends CI_Controller {
|
|||||||
$this->load->view('faculty/faculty_list',$data);
|
$this->load->view('faculty/faculty_list',$data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public function viewFaculty($id)
|
||||||
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
|
|
||||||
|
$data['viewFaculty']=$this->Faculty_model->viewFaculty($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$this->load->view('faculty/view_faculty',$data);
|
||||||
|
}
|
||||||
|
|
||||||
function add_faculty()
|
function add_faculty()
|
||||||
{
|
{
|
||||||
@ -41,23 +48,43 @@ class Faculty extends CI_Controller {
|
|||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$faculty=$this->input->post('code');
|
$faculty=$this->input->post('facultyId');
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
$email=$this->input->post('email');
|
$email=$this->input->post('email');
|
||||||
//$dob=$this->input->post('dob');
|
$date=$this->input->post('date');
|
||||||
$gender=$this->input->post('gender');
|
$gender=$this->input->post('gender');
|
||||||
$number=$this->input->post('mobile');
|
$number=$this->input->post('mobileNumber');
|
||||||
$address=$this->input->post('address');
|
$address=$this->input->post('address');
|
||||||
$desi=$this->input->post('designation');
|
$desi=$this->input->post('designation');
|
||||||
$f_img=$this->input->post('image');
|
$f_img=$this->input->post('image');
|
||||||
|
|
||||||
|
//echo $date.'-------'.$dateofbirth;exit;
|
||||||
|
//$banner_image=$this->input->post('banner_image');
|
||||||
|
|
||||||
|
|
||||||
|
if (!is_dir('uploads/faculty')) {
|
||||||
|
mkdir('./uploads/faculty', 0777, TRUE);
|
||||||
|
|
||||||
|
}
|
||||||
|
if(file_exists($_FILES['image']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['image']['tmp_name'];
|
||||||
|
$f_img=str_replace(' ', '_', $_FILES["image"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($f_img, PATHINFO_EXTENSION);
|
||||||
|
$f_img=date('ymdhi').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/faculty/';
|
||||||
|
$targetFile=$targetPath.$f_img;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
$table="faculty";
|
$table="faculty";
|
||||||
$values=array('code'=>$faculty,
|
$values=array('facultyId'=>$faculty,
|
||||||
'name'=>$name,
|
'name'=>$name,
|
||||||
'email'=>$email,
|
'email'=>$email,
|
||||||
//'dob'=>$dob,
|
'dob'=>$date,
|
||||||
'gender'=>$gender,
|
'gender'=>$gender,
|
||||||
'mobile'=>$number,
|
'mobileNumber'=>$number,
|
||||||
'address'=>$address,
|
'address'=>$address,
|
||||||
'designation'=>$desi,
|
'designation'=>$desi,
|
||||||
'image'=>$f_img,
|
'image'=>$f_img,
|
||||||
@ -81,7 +108,7 @@ class Faculty extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function edit_faculty($id)
|
function editFaculty($id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$data['fac']=$this->Faculty_model->get_fac($id);
|
$data['fac']=$this->Faculty_model->get_fac($id);
|
||||||
@ -89,33 +116,48 @@ class Faculty extends CI_Controller {
|
|||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$faculty=$this->input->post('code');
|
$facultyId=$this->input->post('facultyId');
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
$email=$this->input->post('email');
|
$email=$this->input->post('email');
|
||||||
//$dob=$this->input->post('dob');
|
|
||||||
$gender=$this->input->post('gender');
|
$gender=$this->input->post('gender');
|
||||||
$number=$this->input->post('number');
|
$number=$this->input->post('mobileNumber');
|
||||||
|
$dob=$this->input->post('dob');
|
||||||
$address=$this->input->post('address');
|
$address=$this->input->post('address');
|
||||||
$desi=$this->input->post('designation');
|
$desi=$this->input->post('designation');
|
||||||
$f_img=$this->input->post('image');
|
$image=$this->input->post('image');
|
||||||
|
$hiddenImage=$this->input->post('hiddenImage');
|
||||||
|
|
||||||
|
if($image==""){$newImage=$hiddenImage;}
|
||||||
|
|
||||||
|
if(file_exists($_FILES['image']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['image']['tmp_name'];
|
||||||
|
$newImage=str_replace(' ', '_', $_FILES["image"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($newImage, PATHINFO_EXTENSION);
|
||||||
|
$newImage=date('ymdhi').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/faculty/';
|
||||||
|
$targetFile=$targetPath.$newImage;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$table="faculty";
|
$table="faculty";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$id);
|
||||||
$values=array('code'=>$faculty,
|
$values=array('facultyId'=>$facultyId,
|
||||||
'name'=>$name,
|
'name'=>$name,
|
||||||
'email'=>$email,
|
'email'=>$email,
|
||||||
//'dob'=>$dob,
|
'dob'=>$dob,
|
||||||
'gender'=>$gender,
|
'gender'=>$gender,
|
||||||
'mobile'=>$number,
|
'mobileNumber'=>$number,
|
||||||
'address'=>$address,
|
'address'=>$address,
|
||||||
'designation'=>$desi,
|
'designation'=>$desi,
|
||||||
'image'=>$f_img,
|
'image'=>$newImage,
|
||||||
'updatedOn'=>date('Y-m-d'),
|
'updatedOn'=>date('Y-m-d'),
|
||||||
'updatedBy'=>1,
|
'updatedBy'=>1);
|
||||||
'status'=>1);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
|
//echo $this->last_query();exit;
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully Updated');
|
$this->session->set_userdata('suc','successfully Updated');
|
||||||
@ -135,16 +177,15 @@ class Faculty extends CI_Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleted_faculty()
|
function deleteFaculty()
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$id=$this->input->post('hiddenpass');
|
$facultyId=$this->input->post('facultyId');
|
||||||
|
|
||||||
$table="faculty";
|
$table="faculty";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$facultyId);
|
||||||
$values=array(
|
$values=array('status'=>0);
|
||||||
'status'=>0);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
if($result)
|
if($result)
|
||||||
|
@ -31,62 +31,120 @@ class Project extends CI_Controller {
|
|||||||
$data['pro']=$this->Project_model->list_pro();
|
$data['pro']=$this->Project_model->list_pro();
|
||||||
$this->load->view('project/project_list',$data);
|
$this->load->view('project/project_list',$data);
|
||||||
}
|
}
|
||||||
|
public function viewProject($id)
|
||||||
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
|
|
||||||
|
$data['viewProject']=$this->Project_model->viewProject($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$this->load->view('project/view_project',$data);
|
||||||
|
}
|
||||||
function add_project()
|
function add_project()
|
||||||
{
|
{
|
||||||
$data['dep']=$this->Project_model->get_dep();
|
$data['dep']=$this->Project_model->get_dep();
|
||||||
$data['stu']=$this->Project_model->get_stu();
|
$data['stu']=$this->Project_model->get_stu();
|
||||||
$data['fac']=$this->Project_model->get_fac();
|
|
||||||
$data['sub']=$this->Project_model->get_sub();
|
$data['sub']=$this->Project_model->get_sub();
|
||||||
$this->load->view('project/add_project',$data);
|
$data['semester']=$this->Project_model->get_semester();
|
||||||
|
|
||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
|
|
||||||
$name=$this->input->post('projectName');
|
$name=$this->input->post('projectName');
|
||||||
$date=$this->input->post('date');
|
$date=$this->input->post('date');
|
||||||
|
//$pDate= implode("-", array_reverse(explode("-", $date)));
|
||||||
$student=$this->input->post('student');
|
$student=$this->input->post('student');
|
||||||
$semester=$this->input->post('semester');
|
$code=$this->input->post('code');
|
||||||
|
$semesterId=$this->input->post('semesterId');
|
||||||
$subject=$this->input->post('subject');
|
$subject=$this->input->post('subject');
|
||||||
//$gender=$this->input->post('gender');
|
|
||||||
$department=$this->input->post('department');
|
$department=$this->input->post('department');
|
||||||
$description=$this->input->post('description');
|
$description=$this->input->post('description');
|
||||||
$faculty=$this->input->post('faculty');
|
|
||||||
$drivelink=$this->input->post('drivelink');
|
$drivelink=$this->input->post('drivelink');
|
||||||
$video=$this->input->post('vedio');
|
$video=$this->input->post('vedio');
|
||||||
$image=$this->input->post('image');
|
|
||||||
|
|
||||||
|
if (!is_dir('uploads/project')) {
|
||||||
|
mkdir('./uploads/project', 0777, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(file_exists($_FILES['titleImage']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['titleImage']['tmp_name'];
|
||||||
|
$user_img=str_replace(' ', '_', $_FILES["titleImage"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($user_img, PATHINFO_EXTENSION);
|
||||||
|
$user_img='title'.date('ymdhis').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/project/';
|
||||||
|
$targetFile=$targetPath.$user_img;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
$table="project";
|
$table="project";
|
||||||
$values=array('projectName'=>$name,
|
$values=array('projectName'=>$name,
|
||||||
'date'=>$date,
|
'date'=>$date,
|
||||||
'student'=>$student,
|
'studentId'=>$student,
|
||||||
'semester'=>$semester,
|
'semesterId'=>$semesterId,
|
||||||
'department'=>$department,
|
'departmentId'=>$department,
|
||||||
'subject'=>$subject,
|
'subjectId'=>$subject,
|
||||||
//'gender'=>$gender,
|
'code'=>$code,
|
||||||
|
'image'=>$user_img,
|
||||||
'description'=>$description,
|
'description'=>$description,
|
||||||
'faculty'=>$faculty,
|
//'faculty'=>$faculty,
|
||||||
'drivelink'=>$drivelink,
|
'drivelink'=>$drivelink,
|
||||||
'vedio'=>$video,
|
'vedio'=>$video,
|
||||||
'image'=>$image,
|
|
||||||
'createdOn'=>date('Y-m-d'),
|
'createdOn'=>date('Y-m-d'),
|
||||||
'createdBy'=>1,
|
'createdBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||||
|
|
||||||
|
$projectId=$this->db->insert_id();
|
||||||
|
//Image table insert
|
||||||
|
$title = $this->input->post('title');
|
||||||
|
|
||||||
|
foreach($title as $key=>$value)
|
||||||
|
{
|
||||||
|
if($_FILES['profileimage']['tmp_name'])
|
||||||
|
{
|
||||||
|
if (!is_dir('uploads/project')) {
|
||||||
|
mkdir('./uploads/project', 0777, TRUE);
|
||||||
|
}
|
||||||
|
$temp_vehicle_doc=$_FILES['profileimage']['tmp_name'][$key];
|
||||||
|
$projectImage=str_replace(' ', '_', $_FILES["profileimage"]["name"][$key]);
|
||||||
|
$extension1 = pathinfo($projectImage, PATHINFO_EXTENSION);
|
||||||
|
$pImage=$projectId.'.'.$projectImage;
|
||||||
|
$document='uploads/project/'.$pImage;
|
||||||
|
|
||||||
|
$targetPath = './uploads/project/';
|
||||||
|
$targetFile=$targetPath.$pImage;
|
||||||
|
|
||||||
|
|
||||||
|
if(move_uploaded_file($temp_vehicle_doc, $targetFile))
|
||||||
|
{
|
||||||
|
$tablename='projectdetail';
|
||||||
|
$data=array('projectId'=>$projectId,
|
||||||
|
'title'=>$title[$key],
|
||||||
|
'image'=>$pImage,
|
||||||
|
'status'=>1);
|
||||||
|
|
||||||
|
$product=$this->Commonsql_model->insert_table($tablename,$data);
|
||||||
|
//echo $this->db->last_query();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//exit;
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully added');
|
$this->session->set_userdata('suc','successfully added');
|
||||||
redirect('project');
|
redirect('project');
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('err','Please try again');
|
$this->session->set_userdata('err','Please try again');
|
||||||
redirect('project');
|
redirect('project');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$this->load->view('project/add_project',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -105,7 +163,7 @@ class Project extends CI_Controller {
|
|||||||
//$gender=$this->input->post('gender');
|
//$gender=$this->input->post('gender');
|
||||||
$department=$this->input->post('department');
|
$department=$this->input->post('department');
|
||||||
$description=$this->input->post('description');
|
$description=$this->input->post('description');
|
||||||
$faculty=$this->input->post('faculty');
|
//$faculty=$this->input->post('faculty');
|
||||||
$drivelink=$this->input->post('drivelink');
|
$drivelink=$this->input->post('drivelink');
|
||||||
$video=$this->input->post('vedio');
|
$video=$this->input->post('vedio');
|
||||||
$image=$this->input->post('image');
|
$image=$this->input->post('image');
|
||||||
@ -115,13 +173,13 @@ class Project extends CI_Controller {
|
|||||||
$where=array("id"=>$id);
|
$where=array("id"=>$id);
|
||||||
$values=array('projectName'=>$name,
|
$values=array('projectName'=>$name,
|
||||||
'date'=>$date,
|
'date'=>$date,
|
||||||
'student'=>$student,
|
'studentId'=>$student,
|
||||||
'semester'=>$semester,
|
'semesterId'=>$semester,
|
||||||
'subject'=>$subject,
|
'subjectId'=>$subject,
|
||||||
'department'=>$department,
|
'departmentId'=>$department,
|
||||||
// 'gender'=>$gender,
|
// 'gender'=>$gender,
|
||||||
'description'=>$description,
|
'description'=>$description,
|
||||||
'faculty'=>$faculty,
|
//'faculty'=>$faculty,
|
||||||
'drivelink'=>$drivelink,
|
'drivelink'=>$drivelink,
|
||||||
'vedio'=>$video,
|
'vedio'=>$video,
|
||||||
'image'=>$image,
|
'image'=>$image,
|
||||||
@ -146,19 +204,25 @@ class Project extends CI_Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleted_project()
|
function deleteProject()
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$id=$this->input->post('hiddenpass');
|
$projectId=$this->input->post('projectId');
|
||||||
|
|
||||||
$table="project";
|
$table="project";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$projectId);
|
||||||
$values=array(
|
$values=array('status'=>0);
|
||||||
'status'=>0);
|
|
||||||
|
$dTable="projectdetail";
|
||||||
|
$dWhere=array("projectId"=>$projectId);
|
||||||
|
$dValue=array('status'=>0);
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
if($result)
|
|
||||||
|
$dResult=$this->Commonsql_model->updateTable($dTable,$dWhere,$dValue);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
if($result && $dResult)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully deleted');
|
$this->session->set_userdata('suc','successfully deleted');
|
||||||
redirect('project');
|
redirect('project');
|
||||||
|
@ -12,13 +12,13 @@ public function __construct()
|
|||||||
|
|
||||||
public function listrole()
|
public function listrole()
|
||||||
{
|
{
|
||||||
//if($this->session->userdata('id')==""){redirect('');}
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
$data['rol']=$this->Role_model->list_rol();
|
$data['rol']=$this->Role_model->list_rol();
|
||||||
$this->load->view('roles/role_list',$data);
|
$this->load->view('roles/role_list',$data);
|
||||||
}
|
}
|
||||||
function addrole()
|
function addrole()
|
||||||
{
|
{
|
||||||
//if($this->session->userdata('id')==""){redirect('');}
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$role=$this->input->post('rolename');
|
$role=$this->input->post('rolename');
|
||||||
|
@ -28,28 +28,39 @@ class Semester extends CI_Controller {
|
|||||||
*/
|
*/
|
||||||
public function semester_list()
|
public function semester_list()
|
||||||
{
|
{
|
||||||
$data['sem']=$this->Semester_model->list_sem();
|
$data['semester']=$this->Semester_model->list_semester();
|
||||||
$this->load->view('semester/semester_list',$data);
|
$this->load->view('semester/semester_list',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function add_semester()
|
function add_semester()
|
||||||
{
|
{
|
||||||
|
$data['subject']=$this->Semester_model->listSubject();
|
||||||
|
$data['department']=$this->Semester_model->listDepartment();
|
||||||
|
$data['degree']=$this->Semester_model->listDegree();
|
||||||
|
|
||||||
//$this->load->view('semester/add_semester');
|
//$this->load->view('semester/add_semester');
|
||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
|
$year=$this->input->post('year');
|
||||||
|
$subjectId=$this->input->post('subjectId');
|
||||||
|
$departmentId=$this->input->post('departmentId');
|
||||||
|
$degreeId=$this->input->post('degreeId');
|
||||||
|
///echo $departmentId;
|
||||||
|
//echo $degreeId;
|
||||||
$table="semester";
|
$table="semester";
|
||||||
$values=array('name'=>$name,
|
$values=array('name'=>$name,
|
||||||
|
'year'=>$year,
|
||||||
|
'subjectId'=>$subjectId,
|
||||||
|
'departmentId'=>$departmentId,
|
||||||
|
'degreeId'=>$degreeId,
|
||||||
'createdOn'=>date('Y-m-d'),
|
'createdOn'=>date('Y-m-d'),
|
||||||
'createdBy'=>1,
|
'createdBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
$result=$this->Commonsql_model->insert_table($table,$values);
|
$result=$this->Commonsql_model->insert_table($table,$values);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully added');
|
$this->session->set_userdata('suc','successfully added');
|
||||||
@ -63,27 +74,32 @@ class Semester extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$this->load->view('semester/add_semester',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function edit_semester()
|
function editSemester($id)
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
$id=$this->input->post('hiddendepid');
|
$year=$this->input->post('year');
|
||||||
|
$subjectId=$this->input->post('subjectId');
|
||||||
|
$departmentId=$this->input->post('departmentId');
|
||||||
|
$degreeId=$this->input->post('degreeId');
|
||||||
|
|
||||||
$table="semester";
|
$table="semester";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$id);
|
||||||
$values=array( 'name'=>$name,
|
$values=array( 'name'=>$name,
|
||||||
|
'year'=>$year,
|
||||||
|
'subjectId'=>$subjectId,
|
||||||
|
'departmentId'=>$departmentId,
|
||||||
|
'degreeId'=>$degreeId,
|
||||||
'updatedOn'=>date('Y-m-d'),
|
'updatedOn'=>date('Y-m-d'),
|
||||||
'updatedby'=>1,
|
'updatedby'=>1);
|
||||||
'status'=>1);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
if($result)
|
if($result)
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('suc','successfully Updated');
|
$this->session->set_userdata('suc','successfully Updated');
|
||||||
@ -97,22 +113,22 @@ class Semester extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//echo "sdsd";exit;
|
$data['subject']=$this->Semester_model->listSubject();
|
||||||
|
$data['department']=$this->Semester_model->listDepartment();
|
||||||
//echo $this->db->last_query();exit;
|
$data['degree']=$this->Semester_model->listDegree();
|
||||||
|
$data['getData']=$this->Semester_model->getSemester($id);
|
||||||
|
$this->load->view('semester/edit_semester',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleted_semester()
|
function deleteSemester()
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$id=$this->input->post('hiddengffgdtpid');
|
$semesterId=$this->input->post('semesterId');
|
||||||
|
|
||||||
$table="semester";
|
$table="semester";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$semesterId);
|
||||||
$values=array(
|
$values=array('status'=>0);
|
||||||
'status'=>0);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
if($result)
|
if($result)
|
||||||
|
@ -29,10 +29,17 @@ class Student extends CI_Controller {
|
|||||||
public function Student_list()
|
public function Student_list()
|
||||||
{
|
{
|
||||||
$data['stu']=$this->Student_model->list_stu();
|
$data['stu']=$this->Student_model->list_stu();
|
||||||
$this->load->view('student/Student_list',$data);
|
$this->load->view('student/student_list',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function viewStudent($id)
|
||||||
|
{
|
||||||
|
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()
|
function add_student()
|
||||||
{
|
{
|
||||||
$data['dep']=$this->Student_model->get_dep();
|
$data['dep']=$this->Student_model->get_dep();
|
||||||
@ -42,19 +49,42 @@ class Student extends CI_Controller {
|
|||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
$number=$this->input->post('number');
|
$email=$this->input->post('email');
|
||||||
|
$number=$this->input->post('mobileNumber');
|
||||||
$address=$this->input->post('address');
|
$address=$this->input->post('address');
|
||||||
$department=$this->input->post('department');
|
$department=$this->input->post('department');
|
||||||
|
$student=$this->input->post('student');
|
||||||
$gender=$this->input->post('gender');
|
$gender=$this->input->post('gender');
|
||||||
$s_img=$this->input->post('image');
|
$s_img=$this->input->post('image');
|
||||||
|
$date=$this->input->post('date');
|
||||||
|
//$dob= implode("-", array_reverse(explode("-", $date)));
|
||||||
|
if (!is_dir('uploads/student')) {
|
||||||
|
mkdir('./uploads/student', 0777, TRUE);
|
||||||
|
|
||||||
|
}
|
||||||
|
if(file_exists($_FILES['image']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['image']['tmp_name'];
|
||||||
|
$s_img=str_replace(' ', '_', $_FILES["image"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($s_img, PATHINFO_EXTENSION);
|
||||||
|
$s_img=date('ymdhi').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/student/';
|
||||||
|
$targetFile=$targetPath.$s_img;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$table="student";
|
$table="student";
|
||||||
$values=array('name'=>$name,
|
$values=array('name'=>$name,
|
||||||
'number'=>$number,
|
'mobileNumber'=>$number,
|
||||||
|
'email'=>$email,
|
||||||
'address'=>$address,
|
'address'=>$address,
|
||||||
'department'=>$department,
|
'department'=>$department,
|
||||||
|
'studentId'=>$student,
|
||||||
'gender'=>$gender,
|
'gender'=>$gender,
|
||||||
'image'=>$s_img,
|
'image'=>$s_img,
|
||||||
|
'dob'=>$date,
|
||||||
'createdOn'=>date('Y-m-d'),
|
'createdOn'=>date('Y-m-d'),
|
||||||
'createdBy'=>1,
|
'createdBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
@ -84,9 +114,10 @@ class Student extends CI_Controller {
|
|||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$name=$this->input->post('name');
|
$name=$this->input->post('name');
|
||||||
$number=$this->input->post('number');
|
$number=$this->input->post('mobileNumber');
|
||||||
$address=$this->input->post('address');
|
$address=$this->input->post('address');
|
||||||
$department=$this->input->post('department');
|
$department=$this->input->post('department');
|
||||||
|
$student=$this->input->post('student');
|
||||||
$gender=$this->input->post('gender');
|
$gender=$this->input->post('gender');
|
||||||
$s_img=$this->input->post('image');
|
$s_img=$this->input->post('image');
|
||||||
|
|
||||||
@ -94,7 +125,8 @@ class Student extends CI_Controller {
|
|||||||
$table="student";
|
$table="student";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$id);
|
||||||
$values=array('name'=>$name,
|
$values=array('name'=>$name,
|
||||||
'number'=>$number,
|
'mobileNumber'=>$number,
|
||||||
|
'studentId'=>$student,
|
||||||
'address'=>$address,
|
'address'=>$address,
|
||||||
'department'=>$department,
|
'department'=>$department,
|
||||||
'gender'=>$gender,
|
'gender'=>$gender,
|
||||||
@ -123,16 +155,15 @@ class Student extends CI_Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleted_student()
|
function deleteStudent()
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$id=$this->input->post('hiddenpass');
|
$studentId=$this->input->post('studentId');
|
||||||
|
|
||||||
$table="student";
|
$table="student";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$studentId);
|
||||||
$values=array(
|
$values=array('status'=>0);
|
||||||
'status'=>0);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
if($result)
|
if($result)
|
||||||
|
@ -28,27 +28,60 @@ class Subject extends CI_Controller {
|
|||||||
*/
|
*/
|
||||||
public function subject_list()
|
public function subject_list()
|
||||||
{
|
{
|
||||||
$data['sub']=$this->Subject_model->list_sub();
|
$data['subject']=$this->Subject_model->list_subject();
|
||||||
$this->load->view('subject/subject_list',$data);
|
$this->load->view('subject/subject_list',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function viewSubject($id)
|
||||||
|
{
|
||||||
|
if($this->session->userdata('id')==""){redirect('');}
|
||||||
|
|
||||||
|
$data['viewSubject']=$this->Subject_model->viewSubject($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$this->load->view('subject/view_subject',$data);
|
||||||
|
}
|
||||||
|
|
||||||
function add_subject()
|
function add_subject()
|
||||||
{
|
{
|
||||||
|
$data['degree']=$this->Subject_model->degreeList();
|
||||||
|
$data['faculty']=$this->Subject_model->facultyList();
|
||||||
|
|
||||||
$this->load->view('subject/add_subject');
|
|
||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$code=$this->input->post('code');
|
$code=$this->input->post('subjectCode');
|
||||||
$sub=$this->input->post('subject');
|
$subject=$this->input->post('subject');
|
||||||
$dep=$this->input->post('department');
|
$degree=$this->input->post('degree');
|
||||||
$semester=$this->input->post('semester');
|
//$target['tar'] = $this->input->post('tar');
|
||||||
|
$faculty=$this->input->post('faculty');
|
||||||
|
$description=$this->input->post('description');
|
||||||
|
|
||||||
|
$faculties = implode(",", (array)$faculty);
|
||||||
|
//echo $faculties;exit;
|
||||||
|
if (!is_dir('uploads/subject')) {
|
||||||
|
mkdir('./uploads/subject', 0777, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(file_exists($_FILES['profileImage']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['profileImage']['tmp_name'];
|
||||||
|
$user_img=str_replace(' ', '_', $_FILES["profileImage"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($user_img, PATHINFO_EXTENSION);
|
||||||
|
$user_img=date('ymdhis').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/subject/';
|
||||||
|
$targetFile=$targetPath.$user_img;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$table="subject";
|
$table="subject";
|
||||||
$values=array('code'=>$code,
|
$values=array('code'=>$code,
|
||||||
'subject'=>$sub,
|
'name'=>$subject,
|
||||||
'department'=>$dep,
|
'degreeId'=>$degree,
|
||||||
'semester'=>$semester,
|
'facultyId'=>$faculties,
|
||||||
|
'image'=>$user_img,
|
||||||
|
'description'=>$description,
|
||||||
'createdOn'=>date('Y-m-d'),
|
'createdOn'=>date('Y-m-d'),
|
||||||
'createdBy'=>1,
|
'createdBy'=>1,
|
||||||
'status'=>1);
|
'status'=>1);
|
||||||
@ -66,34 +99,59 @@ function add_subject()
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$this->load->view('subject/add_subject',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function edit_subject($id)
|
function editSubject($id)
|
||||||
{
|
{
|
||||||
|
|
||||||
$data['sub']=$this->Subject_model->get_sub($id);
|
$data['sub']=$this->Subject_model->get_sub($id);
|
||||||
//echo $this->db->last_query();exit;
|
$data['degree']=$this->Subject_model->degreeList();
|
||||||
$this->load->view('subject/edit_subject',$data);
|
$data['faculty']=$this->Subject_model->facultyList();
|
||||||
|
|
||||||
|
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
|
|
||||||
$code=$this->input->post('code');
|
$code=$this->input->post('code');
|
||||||
$sub=$this->input->post('subject');
|
$sub=$this->input->post('subject');
|
||||||
$dep=$this->input->post('department');
|
$degreeId=$this->input->post('degree');
|
||||||
$semester=$this->input->post('semester');
|
$semester=$this->input->post('semester');
|
||||||
|
$faculty=$this->input->post('faculty');
|
||||||
|
$description=$this->input->post('description');
|
||||||
|
$image=$this->input->post('image');
|
||||||
|
$hiddenImage=$this->input->post('hiddenImage');
|
||||||
|
|
||||||
|
//print_r ($faculty);
|
||||||
|
$faculties = implode(",", (array)$faculty);
|
||||||
|
//echo $faculties;exit;
|
||||||
|
|
||||||
|
if($image==""){$newImage=$hiddenImage;}
|
||||||
|
|
||||||
|
|
||||||
|
if(file_exists($_FILES['image']['tmp_name']))
|
||||||
|
{
|
||||||
|
$temp_user_img=$_FILES['image']['tmp_name'];
|
||||||
|
$newImage=str_replace(' ', '_', $_FILES["image"]["name"]);
|
||||||
|
$allowed = array('png,jpeg,jpg');
|
||||||
|
$extension1 = pathinfo($newImage, PATHINFO_EXTENSION);
|
||||||
|
$newImage=date('ymdhis').'.'.$extension1;
|
||||||
|
$targetPath='./uploads/subject/';
|
||||||
|
$targetFile=$targetPath.$newImage;
|
||||||
|
move_uploaded_file($temp_user_img, $targetFile);
|
||||||
|
}
|
||||||
|
|
||||||
$table="subject";
|
$table="subject";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$id);
|
||||||
$values=array('code'=>$code,
|
$values=array('code'=>$code,
|
||||||
'subject'=>$sub,
|
'name'=>$sub,
|
||||||
'department'=>$dep,
|
'degreeId'=>$degreeId,
|
||||||
'semester'=>$semester,
|
'facultyId'=>$faculties,
|
||||||
|
'description'=>$description,
|
||||||
|
'image'=>$newImage,
|
||||||
'updatedOn'=>date('Y-m-d'),
|
'updatedOn'=>date('Y-m-d'),
|
||||||
'updatedBy'=>1,
|
'updatedBy'=>1);
|
||||||
'status'=>1);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
@ -111,20 +169,21 @@ function add_subject()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->load->view('subject/edit_subject',$data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function deleted_subject()
|
function deleteSubject()
|
||||||
{
|
{
|
||||||
if($this->input->post('submit'))
|
if($this->input->post('submit'))
|
||||||
{
|
{
|
||||||
$id=$this->input->post('hiddenpass');
|
$subjectId=$this->input->post('subjectId');
|
||||||
|
|
||||||
$table="subject";
|
$table="subject";
|
||||||
$where=array("id"=>$id);
|
$where=array("id"=>$subjectId);
|
||||||
$values=array(
|
$values=array('status'=>0);
|
||||||
'status'=>0);
|
|
||||||
|
|
||||||
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
$result=$this->Commonsql_model->updateTable($table,$where,$values);
|
||||||
if($result)
|
if($result)
|
||||||
|
@ -7,6 +7,7 @@ class Welcome extends CI_Controller {
|
|||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->load->model('Common_model');
|
$this->load->model('Common_model');
|
||||||
|
$this->load->model('Project_model');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
@ -17,32 +18,35 @@ class Welcome extends CI_Controller {
|
|||||||
public function dashboard()
|
public function dashboard()
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->load->view('dashboard');
|
$data['project']=$this->Project_model->totalProjects();
|
||||||
|
$data['student']=$this->Project_model->totalStudents();
|
||||||
|
$data['subject']=$this->Project_model->totalSubject();
|
||||||
|
$data['faculty']=$this->Project_model->totalFaculties();
|
||||||
|
$data['projectList']=$this->Project_model->recentlyAddedProject();
|
||||||
|
$this->load->view('dashboard',$data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function admin_login()
|
public function login()
|
||||||
{
|
{
|
||||||
|
//echo "dsds";exit;
|
||||||
$username=$this->input->post('username');
|
$username=$this->input->post('username');
|
||||||
$password=$this->input->post('password');
|
$password=$this->input->post('password');
|
||||||
|
|
||||||
$check=$this->Common_model->get_login_detail($username,$password);
|
$check=$this->Common_model->get_login_detail($username,$password);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
if($check->num_rows()>0)
|
if($check->num_rows()>0)
|
||||||
{
|
{
|
||||||
$ch =$check->row();
|
$ch =$check->row();
|
||||||
$this->session->set_userdata('username',$ch->username);
|
$this->session->set_userdata('username',$ch->username);
|
||||||
$this->session->set_userdata('id',$ch->id);
|
$this->session->set_userdata('id',$ch->id);
|
||||||
$this->session->set_userdata('suc',' Successfully Logged in..!');
|
$this->session->set_userdata('suc',' Successfully Logged in..!');
|
||||||
if($usertype!=2){
|
redirect('dashboard');
|
||||||
redirect('dashboard');}
|
|
||||||
else{
|
|
||||||
redirect('dashboard');}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->session->set_userdata('err','The username or password is incorrect.');
|
$this->session->set_userdata('err','The username or password is incorrect.');
|
||||||
redirect('dashboard');
|
redirect('');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ class Common_model extends CI_Model {
|
|||||||
public function get_login_detail($username,$password)
|
public function get_login_detail($username,$password)
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
$this->db->from('user');
|
$this->db->from('employee');
|
||||||
$this->db->where('username',$username);
|
$this->db->where('username',$username);
|
||||||
$this->db->where(array('password'=>md5($password),'status'=>1));
|
$this->db->where(array('password'=>md5($password),'status'=>1));
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
|
@ -10,9 +10,10 @@ class Degree_model extends CI_Model {
|
|||||||
|
|
||||||
function deg_list()
|
function deg_list()
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('deg.*,d.id as departmentId,d.name as departmentName');
|
||||||
$this->db->from('degree');
|
$this->db->from('degree as deg');
|
||||||
$this->db->where(array('status'=>1));
|
$this->db->join('department as d','d.id=deg.departmentId','INNER');
|
||||||
|
$this->db->where(array('deg.status'=>1));
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
return $query;
|
return $query;
|
||||||
|
@ -24,6 +24,16 @@ class Employee_model extends CI_Model {
|
|||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
function viewEmployee($id)
|
||||||
|
{
|
||||||
|
$this->db->select('e.*,r.id as roleId,r.name as roleName');
|
||||||
|
$this->db->from('employee as e');
|
||||||
|
$this->db->join('role as r','r.id=e.roleId','INNER');
|
||||||
|
$this->db->where(array('e.status'=>1,'e.id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
function get_emp($id)
|
function get_emp($id)
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
|
@ -28,4 +28,14 @@ class Faculty_model extends CI_Model {
|
|||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function viewFaculty($id)
|
||||||
|
{
|
||||||
|
$this->db->select('*');
|
||||||
|
$this->db->from('faculty');
|
||||||
|
$this->db->where(array('status'=>1,'id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,12 +10,12 @@ class Project_model extends CI_Model {
|
|||||||
|
|
||||||
function list_pro()
|
function list_pro()
|
||||||
{
|
{
|
||||||
$this->db->select('p.*,d.name as deptname,s.name as studentName,f.name as facultyName');
|
$this->db->select('p.*,d.name as depName,s.name as studentName,sem.name as semName,sub.name as subName');
|
||||||
$this->db->from('project as p');
|
$this->db->from('project as p');
|
||||||
$this->db->join('department as d','d.id=p.department','left' );
|
$this->db->join('student as s','s.id=p.studentId','INNER');
|
||||||
$this->db->join('student as s','s.id=p.student','left' );
|
$this->db->join('semester as sem','sem.id=p.semesterId','INNER');
|
||||||
$this->db->join('faculty as f','f.id=p.faculty','left' );
|
$this->db->join('department as d','d.id=p.departmentId','INNER');
|
||||||
//$this->db->join('subject as b','b.id=p.subject','left' );
|
$this->db->join('subject as sub','sub.id=p.subjectId','INNER');
|
||||||
$this->db->where(array('p.status'=>1));
|
$this->db->where(array('p.status'=>1));
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
@ -62,12 +62,88 @@ class Project_model extends CI_Model {
|
|||||||
}
|
}
|
||||||
function get_sub()
|
function get_sub()
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('id,name');
|
||||||
$this->db->from('subject');
|
$this->db->from('subject');
|
||||||
$this->db->where(array('status'=>1));
|
$this->db->where(array('status'=>1));
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
function get_semester()
|
||||||
|
{
|
||||||
|
$this->db->select('id,name');
|
||||||
|
$this->db->from('semester');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function viewProject($id)
|
||||||
|
{
|
||||||
|
$this->db->select('p.projectName,p.date as pDate,p.studentId,p.code,p.description,p.image,
|
||||||
|
p.vedio,p.driveLink,s.name as studentName,sem.name as semName,d.name as depName,sub.name as subName');
|
||||||
|
$this->db->from('project as p');
|
||||||
|
$this->db->join('student as s','s.id=p.studentId','INNER');
|
||||||
|
$this->db->join('semester as sem','sem.id=p.semesterId','INNER');
|
||||||
|
$this->db->join('department as d','d.id=p.departmentId','INNER');
|
||||||
|
$this->db->join('subject as sub','sub.id=p.subjectId','INNER');
|
||||||
|
$this->db->where(array('p.status'=>1,'p.id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function recentlyAddedProject()
|
||||||
|
{
|
||||||
|
$this->db->select('p.*,d.name as depName,s.name as studentName,sem.name as semName,sub.name as subName');
|
||||||
|
$this->db->from('project as p');
|
||||||
|
$this->db->order_by("p.id", "desc");
|
||||||
|
$this->db->limit(10);
|
||||||
|
$this->db->join('student as s','s.id=p.studentId','INNER');
|
||||||
|
$this->db->join('semester as sem','sem.id=p.semesterId','INNER');
|
||||||
|
$this->db->join('department as d','d.id=p.departmentId','INNER');
|
||||||
|
$this->db->join('subject as sub','sub.id=p.subjectId','INNER');
|
||||||
|
$this->db->where(array('p.status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function totalProjects()
|
||||||
|
{
|
||||||
|
//orders
|
||||||
|
$this->db->select('count(id) as tProjects');
|
||||||
|
$this->db->from('project');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$result = $this->db->get();
|
||||||
|
//echo $this->db->last_query(); exit;
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
function totalStudents()
|
||||||
|
{
|
||||||
|
//orders
|
||||||
|
$this->db->select('count(id) as tStudents');
|
||||||
|
$this->db->from('student');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$result = $this->db->get();
|
||||||
|
//echo $this->db->last_query(); exit;
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
function totalSubject()
|
||||||
|
{
|
||||||
|
//orders
|
||||||
|
$this->db->select('count(id) as tSubjects');
|
||||||
|
$this->db->from('subject');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$result = $this->db->get();
|
||||||
|
//echo $this->db->last_query(); exit;
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
function totalFaculties()
|
||||||
|
{
|
||||||
|
//orders
|
||||||
|
$this->db->select('count(id) as tFaculties');
|
||||||
|
$this->db->from('faculty');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$result = $this->db->get();
|
||||||
|
//echo $this->db->last_query(); exit;
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,17 +8,47 @@ class Semester_model extends CI_Model {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
function list_sem()
|
function list_semester()
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('s.id,s.name,s.year,sub.id as subId,sub.name as subName,dep.id as depId,dep.name as depName,deg.id as degId,deg.name as degName');
|
||||||
$this->db->from('Semester');
|
$this->db->from('Semester as s');
|
||||||
|
$this->db->join('subject as sub','sub.id=s.subjectId','INNER');
|
||||||
|
$this->db->join('department as dep','dep.id=s.departmentId','INNER');
|
||||||
|
$this->db->join('degree as deg','deg.id=s.degreeId','INNER');
|
||||||
|
$this->db->where(array('s.status'=>1,));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//'sub.status'=>1,'dep.status'=>1,'deg.status'=>1
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function listSubject()
|
||||||
|
{
|
||||||
|
$this->db->select('id,name');
|
||||||
|
$this->db->from('subject');
|
||||||
$this->db->where(array('status'=>1));
|
$this->db->where(array('status'=>1));
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
function listDepartment()
|
||||||
function get_sem($id)
|
{
|
||||||
|
$this->db->select('id,name');
|
||||||
|
$this->db->from('department');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
} function listDegree()
|
||||||
|
{
|
||||||
|
$this->db->select('id,name');
|
||||||
|
$this->db->from('degree');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function getSemester($id)
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
$this->db->from('semester');
|
$this->db->from('semester');
|
||||||
|
@ -37,6 +37,16 @@ class Student_model extends CI_Model {
|
|||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
return $query;
|
return $query;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function viewStudent($id)
|
||||||
|
{
|
||||||
|
$this->db->select('s.*,d.name as depName');
|
||||||
|
$this->db->from('student as s');
|
||||||
|
$this->db->join('department as d','d.id=s.department','INNER');
|
||||||
|
$this->db->where(array('s.status'=>1,'s.id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -7,16 +7,33 @@ class Subject_model extends CI_Model {
|
|||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
function degreeList()
|
||||||
function list_sub()
|
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('id, name');
|
||||||
$this->db->from('subject');
|
$this->db->from('degree');
|
||||||
$this->db->where(array('status'=>1));
|
$this->db->where(array('status'=>1));
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
function facultyList()
|
||||||
|
{
|
||||||
|
$this->db->select('id,name');
|
||||||
|
$this->db->from('faculty');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function list_subject()
|
||||||
|
{
|
||||||
|
$this->db->select('s.id ,s.name,s.code,d.name as depName');
|
||||||
|
$this->db->from('subject as s');
|
||||||
|
$this->db->join('degree as d','d.id=s.degreeId','INNER');
|
||||||
|
$this->db->where(array('s.status'=>1,'d.status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
function get_sub($id)
|
function get_sub($id)
|
||||||
{
|
{
|
||||||
@ -27,5 +44,24 @@ class Subject_model extends CI_Model {
|
|||||||
//echo $this->db->last_query();exit;
|
//echo $this->db->last_query();exit;
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
function viewSubject($id)
|
||||||
|
{
|
||||||
|
$this->db->select('sub.*,deg.name as degName,f.id as facId,f.name as facName');
|
||||||
|
$this->db->from('subject as sub');
|
||||||
|
$this->db->join('degree as deg','deg.id=sub.degreeId','INNER');
|
||||||
|
$this->db->join('faculty as f','f.id=sub.facultyId','INNER');
|
||||||
|
$this->db->where(array('sub.status'=>1,'sub.id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function get_faculty($id)
|
||||||
|
{
|
||||||
|
$this->db->select('*');
|
||||||
|
$this->db->from('faculty');
|
||||||
|
$this->db->where(array('id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,9 +25,15 @@
|
|||||||
<div class="col-xl-3 col-md-6 col-12">
|
<div class="col-xl-3 col-md-6 col-12">
|
||||||
<div class="info-box bg-blue">
|
<div class="info-box bg-blue">
|
||||||
<span class="info-box-icon push-bottom"><i class="material-icons">group</i></span>
|
<span class="info-box-icon push-bottom"><i class="material-icons">group</i></span>
|
||||||
|
<?php
|
||||||
|
if(isset($project) && $project->num_rows()>0){
|
||||||
|
$b=$project->row();
|
||||||
|
$tProjects=$b->tProjects;
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="info-box-content">
|
<div class="info-box-content">
|
||||||
<span class="info-box-text">Total Students</span>
|
<span class="info-box-text">Total Project</span>
|
||||||
<span class="info-box-number">450</span>
|
<span class="info-box-number"><?=$tProjects;?></span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.info-box-content -->
|
<!-- /.info-box-content -->
|
||||||
@ -38,9 +44,15 @@
|
|||||||
<div class="col-xl-3 col-md-6 col-12">
|
<div class="col-xl-3 col-md-6 col-12">
|
||||||
<div class="info-box bg-orange">
|
<div class="info-box bg-orange">
|
||||||
<span class="info-box-icon push-bottom"><i class="material-icons">person</i></span>
|
<span class="info-box-icon push-bottom"><i class="material-icons">person</i></span>
|
||||||
|
<?php
|
||||||
|
if(isset($student) && $student->num_rows()>0){
|
||||||
|
$b=$student->row();
|
||||||
|
$tStudents=$b->tStudents;
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="info-box-content">
|
<div class="info-box-content">
|
||||||
<span class="info-box-text">Total Faculties</span>
|
<span class="info-box-text">Total Students</span>
|
||||||
<span class="info-box-number">90</span>
|
<span class="info-box-number"><?=$tStudents;?></span>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.info-box-content -->
|
<!-- /.info-box-content -->
|
||||||
</div>
|
</div>
|
||||||
@ -50,9 +62,16 @@
|
|||||||
<div class="col-xl-3 col-md-6 col-12">
|
<div class="col-xl-3 col-md-6 col-12">
|
||||||
<div class="info-box bg-purple">
|
<div class="info-box bg-purple">
|
||||||
<span class="info-box-icon push-bottom"><i class="material-icons">local_library</i></span>
|
<span class="info-box-icon push-bottom"><i class="material-icons">local_library</i></span>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if(isset($subject) && $subject->num_rows()>0){
|
||||||
|
$b=$subject->row();
|
||||||
|
$tSubjects=$b->tSubjects;
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="info-box-content">
|
<div class="info-box-content">
|
||||||
<span class="info-box-text">Total Subjects</span>
|
<span class="info-box-text">Total Subjects</span>
|
||||||
<span class="info-box-number">52</span>
|
<span class="info-box-number"><?=$tSubjects;?></span>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.info-box-content -->
|
<!-- /.info-box-content -->
|
||||||
</div>
|
</div>
|
||||||
@ -62,9 +81,15 @@
|
|||||||
<div class="col-xl-3 col-md-6 col-12">
|
<div class="col-xl-3 col-md-6 col-12">
|
||||||
<div class="info-box bg-success">
|
<div class="info-box bg-success">
|
||||||
<span class="info-box-icon push-bottom"><i class="material-icons">school</i></span>
|
<span class="info-box-icon push-bottom"><i class="material-icons">school</i></span>
|
||||||
|
<?php
|
||||||
|
if(isset($faculty) && $faculty->num_rows()>0){
|
||||||
|
$b=$faculty->row();
|
||||||
|
$tFaculties=$b->tFaculties;
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="info-box-content">
|
<div class="info-box-content">
|
||||||
<span class="info-box-text">Total Courses</span>
|
<span class="info-box-text">Total Faculties</span>
|
||||||
<span class="info-box-number">5</span>
|
<span class="info-box-number"><?=$tFaculties;?></span>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.info-box-content -->
|
<!-- /.info-box-content -->
|
||||||
</div>
|
</div>
|
||||||
@ -74,28 +99,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end widget -->
|
<!-- end widget -->
|
||||||
<!-- chart start -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="card card-box">
|
|
||||||
<div class="card-head">
|
|
||||||
<header>Projects</header>
|
|
||||||
<div class="tools">
|
|
||||||
<a class="fa fa-repeat btn-color box-refresh" href="javascript:;"></a>
|
|
||||||
<a class="t-collapse btn-color fa fa-chevron-down" href="javascript:;"></a>
|
|
||||||
<a class="t-close btn-color fa fa-times" href="javascript:;"></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card-body no-padding height-9">
|
|
||||||
<div class="row">
|
|
||||||
<canvas id="chartjs_line"></canvas>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- Chart end -->
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 col-sm-12">
|
<div class="col-md-12 col-sm-12">
|
||||||
<div class="card card-box">
|
<div class="card card-box">
|
||||||
@ -136,141 +140,49 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th> S.No </th>
|
<th> S.No </th>
|
||||||
<th> Date </th>
|
<th> Date </th>
|
||||||
<th>Project Name</th>
|
<th> Project Code </th>
|
||||||
|
<th> Student </th>
|
||||||
|
<th> Semester </th>
|
||||||
<th> Subject </th>
|
<th> Subject </th>
|
||||||
<th>Student Name</th>
|
<th> Department </th>
|
||||||
<th>Actions </th>
|
<th> Action </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<?php if(isset($projectList) && $projectList->num_rows()>0)
|
||||||
|
{
|
||||||
|
$i=1;
|
||||||
|
foreach($projectList->result() as $p)
|
||||||
|
{
|
||||||
|
$id=$p->id;
|
||||||
|
$date=$p->date;
|
||||||
|
$name=$p->projectName;
|
||||||
|
$code=$p->code;
|
||||||
|
$studentName=$p->studentName;
|
||||||
|
$semName=$p->semName;
|
||||||
|
$subName=$p->subName;
|
||||||
|
$depName=$p->depName;
|
||||||
|
//$faculty=$p->facultyName;
|
||||||
|
$image=$p->image;
|
||||||
|
?>
|
||||||
<tr class="odd gradeX">
|
<tr class="odd gradeX">
|
||||||
<td>
|
<td><?=$i;?></td>
|
||||||
1
|
<td><?=$date;?></td>
|
||||||
</td>
|
<td><?=$code;?></td>
|
||||||
<td class=""> 12/05/2016 </td>
|
<td><?=$studentName;?></td>
|
||||||
<td>
|
<td><?=$semName;?></td>
|
||||||
Test 1
|
<td><?=$subName;?></td>
|
||||||
</td>
|
<td><?=$depName;?></td>
|
||||||
<td class=""> English </td>
|
|
||||||
<td>
|
|
||||||
<a href="mailto:shuxer@gmail.com"> Dr.Rajesh </a>
|
|
||||||
</td>
|
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
<a href="<?=base_url();?>view-project/<?=$id;?>" class="btn btn-info btn-xs">
|
||||||
aria-expanded="false"> View
|
View <i class="fa fa-eye"></i>
|
||||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
</a>
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="odd gradeX">
|
<?php $i++;}}?>
|
||||||
<td>
|
|
||||||
2
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class=""> 12/05/2016 </td>
|
|
||||||
<td class=""> Test 2 </td>
|
|
||||||
<td class=""> English </td>
|
|
||||||
<td>
|
|
||||||
<a href="mailto:looper90@gmail.com"> Dr.Sarah Smith </a>
|
|
||||||
</td>
|
|
||||||
<td class="center">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
|
||||||
aria-expanded="false"> View
|
|
||||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="odd gradeX">
|
|
||||||
<td>
|
|
||||||
3
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class=""> 12/05/2016 </td>
|
|
||||||
<td class=""> Test 3</td>
|
|
||||||
|
|
||||||
<td class=""> English </td>
|
|
||||||
<td>
|
|
||||||
<a href="mailto:userwow@yahoo.com"> Dr.Rajesh </a>
|
|
||||||
</td>
|
|
||||||
<td class="center">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
|
||||||
aria-expanded="false"> View
|
|
||||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="odd gradeX">
|
|
||||||
<td>
|
|
||||||
4
|
|
||||||
</td>
|
|
||||||
<td class=""> 12/05/2016 </td>
|
|
||||||
|
|
||||||
<td class=""> Test 3 </td>
|
|
||||||
<td class=""> English </td>
|
|
||||||
<td>
|
|
||||||
<a href="mailto:doctormail@gmail.com"> Dr.Megha Trivedi </a>
|
|
||||||
</td>
|
|
||||||
<td class="center">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
|
||||||
aria-expanded="false"> View
|
|
||||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="odd gradeX">
|
|
||||||
<td>
|
|
||||||
5
|
|
||||||
</td>
|
|
||||||
<td class=""> 12/05/2016 </td>
|
|
||||||
<td class=""> Test 4 </td>
|
|
||||||
|
|
||||||
<td class=""> English </td>
|
|
||||||
<td>
|
|
||||||
<a href="mailto:doctormail@gmail.com"> Dr.Sarah Smith </a>
|
|
||||||
</td>
|
|
||||||
<td class="center">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
|
||||||
aria-expanded="false"> View
|
|
||||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="odd gradeX ">
|
|
||||||
<td>
|
|
||||||
6
|
|
||||||
</td>
|
|
||||||
<td class=""> 12/05/2016 </td>
|
|
||||||
|
|
||||||
<td class=""> Test 5 </td>
|
|
||||||
<td class=""> English </td>
|
|
||||||
<td>
|
|
||||||
<a href="mailto:doctormail@gmail.com"> Dr.Megha Trivedi </a>
|
|
||||||
</td>
|
|
||||||
<td class="center">
|
|
||||||
<div class="btn-group">
|
|
||||||
<button class="btn btn-xs btn-info dropdown-toggle no-margin" type="button" data-toggle="dropdown"
|
|
||||||
aria-expanded="false"> View
|
|
||||||
<i class="fa fa-eye" aria-hidden="true" ></i>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<!-- start sidebar menu -->
|
<!-- start sidebar menu -->
|
||||||
@ -26,14 +28,14 @@
|
|||||||
<header>Degree</header>
|
<header>Degree</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>add_degree" method="post">
|
<form class="form-horizontal" action="<?=base_url();?>add_degree" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Department
|
<label class="control-label col-md-3">Department
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="depId">
|
<select class="form-control select2" name="depId" data-validation="required">
|
||||||
<option value="" selected="selected" id="departentId" >Select</option>
|
<option value="" selected="selected" id="departentId" >Select</option>
|
||||||
<?php
|
<?php
|
||||||
if(isset($dep) && $dep->num_rows()>0)
|
if(isset($dep) && $dep->num_rows()>0)
|
||||||
@ -53,7 +55,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="name" type="text" placeholder="Enter Degree Name" class="form-control input-height" /> </div>
|
<input name="name" type="text" data-validation="required" placeholder="Enter Degree Name" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -76,7 +78,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
||||||
|
|
||||||
|
@ -28,8 +28,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add_degree">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_degree">add <i class="fa fa-plus"></i></a> </button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i></button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -52,27 +54,28 @@
|
|||||||
foreach($deg->result() as $d)
|
foreach($deg->result() as $d)
|
||||||
{
|
{
|
||||||
$id=$d->id;
|
$id=$d->id;
|
||||||
$depId=$d->departmentId;
|
|
||||||
$name=$d->name;
|
$name=$d->name;
|
||||||
|
$departmentId=$d->departmentId;
|
||||||
|
$departmentName=$d->departmentName;
|
||||||
?>
|
?>
|
||||||
<tr class="odd gradeX">
|
<tr class="odd gradeX">
|
||||||
<td><?=$i;?></td>
|
<td><?=$i;?></td>
|
||||||
<td><?=$depId;?></td>
|
<td><?=$departmentName;?></td>
|
||||||
<td><?=$name;?></td>
|
<td><?=$name;?></td>
|
||||||
<td>
|
<td>
|
||||||
|
<a href="javascript:;" data-id="<?=$id;?>" class="editDegreeClass btn btn-primary btn-xs">
|
||||||
<a href="<?=base_url();?>edit_degree/<?=$id;?>" class="btn btn-primary btn-xs">
|
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
<a data-id="<?=$id;?>" class="degreeClass btn btn-danger btn-xs">
|
||||||
<i class="fa fa-trash-o"></i>
|
<i class="fa fa-trash-o"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$i++;
|
$i++;
|
||||||
} }?>
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -84,8 +87,66 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title" id="exampleModalLabel">Edit Degree</h4>
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<form action="<?=base_url();?>Degree/editDegree/<?=$id;?>" method="post">
|
||||||
|
<div class="form-body">
|
||||||
|
|
||||||
|
<div class="form-group row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label class="control-label">Degree Name
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<input type="text" id="degName" value="" data-validation="required" name="degreeName" placeholder="Enter Degree Name" class="form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label class="control-label">Department
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<select class="form-control select2" id="departmenttId" name="depId" data-validation="required">
|
||||||
|
<option value="" selected="selected">Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($dep) && $dep->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($dep->result() as $department)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$department->id;?>"><?=$department->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-actions">
|
||||||
|
<div class="row">
|
||||||
|
<div class="offset-md-3 col-md-9">
|
||||||
|
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- end page content -->
|
<!-- end page content -->
|
||||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
<div class="modal fade" id="deleteRole" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -96,13 +157,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>deleted_department" method="post">
|
<form action="<?=base_url();?>Degree/deleteDegree" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
|
|
||||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
<input type="hidden" name="degreeId" value="<?=$id;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@ -126,11 +187,33 @@
|
|||||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
|
<script type="text/javascript" src="<?=base_url();?>assets/jquery.cookie.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(".editsemesterclass").click(function(){
|
var base_path=$('body').attr('data-path');
|
||||||
$('#editmediumModel').modal('show');
|
$(".degreeClass").click(function(){
|
||||||
|
$('#deleteRole').modal('show');
|
||||||
var id=$(this).attr('data-id');
|
var id=$(this).attr('data-id');
|
||||||
//alert(id);
|
//alert(id);
|
||||||
$('#hiddenid').val(id);
|
$('#hiddenid').val(id);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
var base_path=$('body').attr('data-path');
|
||||||
|
$(".editDegreeClass").click(function(){
|
||||||
|
$('#editModal').modal('show');
|
||||||
|
var id=$(this).attr('data-id');
|
||||||
|
var url22=base_path+"Degree/getDegree";
|
||||||
|
$.post(url22,{id:id,csrf_test_name:$.cookie('csrf_cookie_name')},function(result){
|
||||||
|
|
||||||
|
var fields=result.split("-");
|
||||||
|
var id = fields[0];
|
||||||
|
var name = fields[1];
|
||||||
|
var departmentValue = fields[2];
|
||||||
|
//alert (name)
|
||||||
|
$('#degName').val(name);
|
||||||
|
$("select#departmenttId").val(departmentValue)
|
||||||
|
//$("#departmenttId option : selected").val(departmentValue)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@ -63,14 +63,14 @@
|
|||||||
<header>Department</header>
|
<header>Department</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>add_department" method="post">
|
<form action="<?=base_url();?>add_department" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Name
|
<label class="control-label col-md-3">Name
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" name="name" data-required="1" placeholder="Enter Your Name" class="form-control input-height">
|
<input type="text" name="name" data-validation="required" placeholder="Enter Your Name" class="form-control input-height">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -79,22 +79,20 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="code" type="text" placeholder="Enter Your Code" class="form-control input-height" /> </div>
|
<input name="code" type="text" data-validation="required" placeholder="Enter Your Code" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Total Year
|
<label class="control-label col-md-3">Total Year
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="year" type="text" placeholder="Enter Your Year" class="form-control input-height" /> </div>
|
<input name="year" type="text" data-validation="required" placeholder="Enter Your Year" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Images
|
<label class="control-label col-md-3">Images
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5 compose-editor">
|
<div class="col-md-5 compose-editor">
|
||||||
<input type="file" name="image" placeholder="Enter img" class="form-control default" >
|
<input type="file" name="depImage" data-validation="required" placeholder="Enter img" class="form-control default" >
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -106,6 +104,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -118,6 +119,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(".departmentclass").click(function(){
|
$(".departmentclass").click(function(){
|
||||||
$('#Model').modal('show');
|
$('#Model').modal('show');
|
||||||
|
@ -28,8 +28,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add_department">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_department">add <i class="fa fa-plus"></i></a> </button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i> </button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -42,6 +44,7 @@
|
|||||||
<th> Name </th>
|
<th> Name </th>
|
||||||
<th> Code </th>
|
<th> Code </th>
|
||||||
<th> Total Year </th>
|
<th> Total Year </th>
|
||||||
|
<th> Image</th>
|
||||||
<th> Action </th>
|
<th> Action </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -63,11 +66,10 @@
|
|||||||
<td><?=$name;?></td>
|
<td><?=$name;?></td>
|
||||||
<td><?=$code;?></td>
|
<td><?=$code;?></td>
|
||||||
<td><?=$year;?></td>
|
<td><?=$year;?></td>
|
||||||
|
<td><img src="<?=base_url();?>uploads/department/<?=$image;?>" style="width:75px;height:75px;"/></td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<a href="<?=base_url();?>edit_department/<?=$id;?>" class="btn btn-primary btn-xs">
|
<a href="<?=base_url();?>edit-department/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
||||||
@ -91,7 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end page content -->
|
<!-- end page content -->
|
||||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
<div class="modal fade" id="deleteRole" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -102,13 +104,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>delete_department" method="post">
|
<form action="<?=base_url();?>Department/deleteDepartment" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
|
|
||||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
<input type="hidden" name="departmentId" value="<?=$id;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@ -134,7 +136,7 @@
|
|||||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(".editsemesterclass").click(function(){
|
$(".editsemesterclass").click(function(){
|
||||||
$('#editmediumModel').modal('show');
|
$('#deleteRole').modal('show');
|
||||||
var id=$(this).attr('data-id');
|
var id=$(this).attr('data-id');
|
||||||
//alert(id);
|
//alert(id);
|
||||||
$('#hiddenid').val(id);
|
$('#hiddenid').val(id);
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/department">Department</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
<li class="active">Edit Department</li>
|
<li class="active">Edit Department</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
@ -61,7 +63,7 @@
|
|||||||
<header>Edit department</header>
|
<header>Edit department</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>edit_department/<?=$id;?>" method="post" >
|
<form action="<?=base_url();?>edit-department/<?=$id;?>" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Name
|
<label class="control-label col-md-3">Name
|
||||||
@ -93,10 +95,17 @@
|
|||||||
<label class="control-label col-md-3">Image
|
<label class="control-label col-md-3">Image
|
||||||
</label>
|
</label>
|
||||||
<div class="compose-editor">
|
<div class="compose-editor">
|
||||||
<input name="image" value="<?=$image;?>" type="file" class="form-control" >
|
<input name="image" value="" type="file" class="form-control" >
|
||||||
|
<input name="hiddenImage" value="<?=$image;?>" type="hidden" class="form-control" >
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
</label>
|
||||||
|
<div class="compose-editor">
|
||||||
|
<img src="<?=base_url();?>/uploads/department/<?=$image;?>" style="width:75px;height:75px;"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="offset-md-3 col-md-9">
|
<div class="offset-md-3 col-md-9">
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<!--select2-->
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<!-- start sidebar menu -->
|
<!-- start sidebar menu -->
|
||||||
@ -14,7 +17,9 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
<li class="active">Employee</li>
|
<li> <a class="parent-item" href="<?=base_url();?>/employee">Employee</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">Add Employee</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,7 +31,7 @@
|
|||||||
<header>Employee</header>
|
<header>Employee</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>add_employee" method="post">
|
<form action="<?=base_url();?>add-employee" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Name
|
<label class="control-label col-md-3">Name
|
||||||
@ -41,7 +46,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="roleId" data-validation="required">
|
<select class="form-control select2" name="roleId" data-validation="required">
|
||||||
<option value="" selected="selected" id="departentId" >Select</option>
|
<option value="" selected="selected" id="departentId" >Select</option>
|
||||||
<?php
|
<?php
|
||||||
if(isset($role) && $role->num_rows()>0)
|
if(isset($role) && $role->num_rows()>0)
|
||||||
@ -115,7 +120,7 @@
|
|||||||
<label class="control-label col-md-3">Profile Image
|
<label class="control-label col-md-3">Profile Image
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5 compose-editor">
|
<div class="col-md-5 compose-editor">
|
||||||
<input name="img" type="file" data-validation="required" placeholder="Enter Your Image"class="form-control default">
|
<input name="employeeImg" type="file" data-validation="required" placeholder="Enter Your Image"class="form-control default">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -140,4 +145,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -1,5 +1,8 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.input-group .input-group-addon {
|
.input-group .input-group-addon {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
@ -37,6 +40,8 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/employee">Employee</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
<li class="active">Edit Employee</li>
|
<li class="active">Edit Employee</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
@ -49,12 +54,14 @@
|
|||||||
$eid=$e->id;
|
$eid=$e->id;
|
||||||
$name=$e->name;
|
$name=$e->name;
|
||||||
$mobileNumber=$e->mobileNumber;
|
$mobileNumber=$e->mobileNumber;
|
||||||
|
$address=$e->address;
|
||||||
$email=$e->email;
|
$email=$e->email;
|
||||||
$image =$e->image;
|
$image =$e->image;
|
||||||
$address=$e->address;
|
|
||||||
$pincode=$e->pincode;
|
$pincode=$e->pincode;
|
||||||
$username=$e->username;
|
$username=$e->username;
|
||||||
$password=$e->password;
|
$password=$e->password;
|
||||||
|
$roleId=$e->roleId;
|
||||||
|
$roleName=$e->roleName;
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -64,14 +71,34 @@
|
|||||||
<header>Edit Employee</header>
|
<header>Edit Employee</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>edit_employees/<?=$eid;?>" method="post" >
|
<form action="<?=base_url();?>edit-employee/<?=$eid;?>" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Name
|
<label class="control-label col-md-3">Name
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" value="<?=$name;?>" name="employeename" data-required="1" placeholder="Enter patient name" class="form-control input-height">
|
<input type="text" value="<?=$name;?>" name="employeename" data-validation="required" placeholder="Enter patient name" class="form-control input-height">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Role
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="roleId" data-validation="required">
|
||||||
|
<option value="" selected="selected" id="departentId" >Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($role) && $role->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($role->result() as $roles)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$roles->id;?>" <?php if($roles->id==$roleId){ echo "selected";}?>><?=$roles->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -79,14 +106,14 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" name="mobileNumber" value="<?=$mobileNumber;?>" data-required="1" placeholder="Enter mobile number" class="form-control input-height" /> </div>
|
<input type="text" name="mobileNumber" value="<?=$mobileNumber;?>" data-validation="required" placeholder="Enter mobile number" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Address
|
<label class="control-label col-md-3">Address
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<textarea name="address" placeholder="address" class="form-control-textarea" rows="5"><?=$address;?></textarea>
|
<textarea name="address" data-validation="required" placeholder="address" class="form-control-textarea" rows="5"><?=$address;?></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -96,10 +123,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon">
|
<input type="email" data-validation="required" value="<?=$email;?>" class="form-control input-height" name="email" placeholder="Enter Email Address">
|
||||||
<i class="fa fa-envelope"></i>
|
|
||||||
</span>
|
|
||||||
<input type="email" value="<?=$email;?>" class="form-control input-height" name="email" placeholder="Enter Email Address">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -108,16 +132,25 @@
|
|||||||
<label class="control-label col-md-3">Profile Image
|
<label class="control-label col-md-3">Profile Image
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5 compose-editor">
|
<div class="col-md-5 compose-editor">
|
||||||
<input name="img" type="file" placeholder="Enter Your Image"class="form-control default" multiple>
|
<input name="image" type="file" placeholder="Enter Your Image"class="form-control default" multiple>
|
||||||
</div>
|
<input type="hidden" name="hiddenImage" value="<?=$image;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<img src="<?=base_url();?>/uploads/employee/<?=$image;?>" style="width:75px;height:75px;" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Pincode.
|
<label class="control-label col-md-3">Pincode.
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="code" value="<?=$pincode;?>" type="text" placeholder="Enter Code" class="form-control error" />
|
<input name="code" value="<?=$pincode;?>" data-validation="required" type="text" placeholder="Enter Code" class="form-control error" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -125,15 +158,15 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="User" value="<?=$username;?>" type="text" placeholder="Enter mobile number" class="form-control input-height" /> </div>
|
<input name="username" data-validation="required" value="<?=$username;?>" type="text" placeholder="Enter Username" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Password.
|
<label class="control-label col-md-3">Password.
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="Password" type="text" placeholder="Enter Password" class="form-control input-height" /> </div>
|
<input name="password" type="password" placeholder="Enter Password" class="form-control input-height" /> </div>
|
||||||
<input type="hidden" name="hiddenpass" value="<?=$password;?>">
|
<input type="hidden" name="hiddenPassword" value="<?=$password;?>">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@ -156,3 +189,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -28,8 +28,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add-employee">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add-employee">add <i class="fa fa-plus"></i></a> </button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i> </button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -68,8 +70,10 @@
|
|||||||
|
|
||||||
<td><?=$address;?></td>
|
<td><?=$address;?></td>
|
||||||
<td>
|
<td>
|
||||||
|
<a href="<?=base_url();?>view-employee/<?=$eid;?>" class="btn btn-success btn-xs">
|
||||||
<a href="<?=base_url();?>edit_employees/<?=$eid;?>" class="btn btn-primary btn-xs">
|
<i class="fa fa-eye"></i>
|
||||||
|
</a>
|
||||||
|
<a href="<?=base_url();?>edit-employee/<?=$eid;?>" class="btn btn-primary btn-xs">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="<?=$eid;?>" class="editemployeeclass btn btn-danger btn-xs">
|
<a data-id="<?=$eid;?>" class="editemployeeclass btn btn-danger btn-xs">
|
||||||
@ -105,13 +109,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>deleted_employee" method="post">
|
<form action="<?=base_url();?>Employee/deleteEmployee" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
|
|
||||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
<input type="hidden" name="employeeId" value="<?=$eid;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
103
admin/application/views/employee/viewemployee.php
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
<!-- data tables -->
|
||||||
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<!-- start page container -->
|
||||||
|
<div class="page-container">
|
||||||
|
<!-- start sidebar menu -->
|
||||||
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
|
<!-- start page content -->
|
||||||
|
<div class="page-content-wrapper">
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-bar col-md-9" style="margin:0px auto;padding:0">
|
||||||
|
<div class="page-title-breadcrumb">
|
||||||
|
<div class=" pull-left">
|
||||||
|
<div class="page-title">Employee View</div>
|
||||||
|
</div>
|
||||||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/employee">Employee</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">View Employee</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php $this->load->view('includes/msg');?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-9" style="margin:0px auto;">
|
||||||
|
<?php
|
||||||
|
if(isset($viewEmployee)&& $viewEmployee->num_rows()>0)
|
||||||
|
{
|
||||||
|
$view=$viewEmployee->row();
|
||||||
|
|
||||||
|
$name=$view->name;
|
||||||
|
$roleName=$view->roleName;
|
||||||
|
$mobileNumber=$view->mobileNumber;
|
||||||
|
$address=$view->address;
|
||||||
|
$email=$view->email;
|
||||||
|
$image=$view->image;
|
||||||
|
$pincode=$view->pincode;
|
||||||
|
$username=$view->username;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- BEGIN PROFILE SIDEBAR -->
|
||||||
|
<div class="card card-topline-aqua">
|
||||||
|
<div class="card-body no-padding height-9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="profile-userpic">
|
||||||
|
<img src="<?=base_url();?>uploads/employee/<?=$image;?>" class="img-responsive" alt=""> </div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-usertitle">
|
||||||
|
<div class="profile-usertitle-name"><?=$name;?></div>
|
||||||
|
<div class="profile-usertitle-job"> <?=$roleName;?> </div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Mobile Number</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$mobileNumber;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Address</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$address;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Email</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$email;?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6"> <strong>Pincode</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$pincode;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6"> <strong>Username</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$username;?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END SIDEBAR USER TITLE -->
|
||||||
|
<!-- SIDEBAR BUTTONS -->
|
||||||
|
|
||||||
|
<!-- END SIDEBAR BUTTONS -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END PROFILE CONTENT -->
|
||||||
|
<!-- END BEGIN PROFILE SIDEBAR -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<!-- data tables -->
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
|
|
@ -1,5 +1,8 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
|
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<!-- start sidebar menu -->
|
<!-- start sidebar menu -->
|
||||||
<?php $this->load->view('includes/sidebar');?>
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
@ -14,7 +17,9 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
<li class="active">Faculty</li>
|
<li> <a class="parent-item" href="<?=base_url();?>/faculty">Faculty</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">Add Faculty</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,14 +31,14 @@
|
|||||||
<header>Faculty</header>
|
<header>Faculty</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>add_faculty" method="post">
|
<form action="<?=base_url();?>add_faculty" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Faculty Id
|
<label class="control-label col-md-3">Faculty
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" name="code" data-required="1" placeholder="Enter Your Id" class="form-control input-height">
|
<input type="text" name="facultyId" data-required="1" placeholder="Enter Your Id" class="form-control input-height" data-validation="required"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -41,7 +46,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="name" type="text" placeholder="Enter Your Name" class="form-control input-height" /> </div>
|
<input name="name" type="text" placeholder="Enter Your Name" class="form-control input-height" data-validation="required" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Email
|
<label class="control-label col-md-3">Email
|
||||||
@ -59,7 +64,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="mobile" type="text" placeholder="Enter Your Mobile Number" class="form-control input-height" /> </div>
|
<input name="mobileNumber" type="text" placeholder="Enter Your Mobile Number" class="form-control input-height" data-validation="required"/> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Date Of Birth
|
<label class="control-label col-md-3">Date Of Birth
|
||||||
@ -67,7 +72,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<div class="input-append date" id="dp3">
|
<div class="input-append date" id="dp3">
|
||||||
<input type="date" name="date" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required">
|
<input type="date" name="date" data-required="1" data-validation="required" class="form-control input-height formDatePicker valid">
|
||||||
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
|
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -77,10 +82,10 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="gender">
|
<select class="form-control select2" name="gender" data-validation="required">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<option value="Category 1">Male</option>
|
<option value="1">Male</option>
|
||||||
<option value="Category 2">Female</option>
|
<option value="2">Female</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -89,7 +94,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<textarea name="address" placeholder="address" class="form-control" rows="5"></textarea>
|
<textarea name="address" placeholder="address" class="form-control" rows="5" data-validation="required"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -97,13 +102,13 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="designation" type="text" placeholder="Enter Your Designation" class="form-control input-height" /> </div>
|
<input name="designation" type="text" placeholder="Enter Your Designation" data-validation="required" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Profile Image
|
<label class="control-label col-md-3">Profile Image
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5 compose-editor">
|
<div class="col-md-5 compose-editor">
|
||||||
<input name="image" type="file" class="form-control default" multiple>
|
<input name="image" type="file" class="form-control default" data-validation="required" multiple>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -131,3 +136,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -1,4 +1,6 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
<!--<style>
|
<!--<style>
|
||||||
.input-group .input-group-addon {
|
.input-group .input-group-addon {
|
||||||
@ -47,16 +49,16 @@
|
|||||||
{
|
{
|
||||||
$f=$fac->row();
|
$f=$fac->row();
|
||||||
$id=$f->id;
|
$id=$f->id;
|
||||||
$faculty=$f->code;
|
$facultyId=$f->facultyId;
|
||||||
$name=$f->name;
|
$name=$f->name;
|
||||||
$email=$f->email;
|
$email=$f->email;
|
||||||
$number=$f->mobile;
|
|
||||||
$dob=$f->dob;
|
$dob=$f->dob;
|
||||||
$gender=$f->gender;
|
|
||||||
$address=$f->address;
|
$address=$f->address;
|
||||||
$desi=$f->designation;
|
$gender=$f->gender;
|
||||||
$f_img=$f->image;
|
$mobileNumber=$f->mobileNumber;
|
||||||
|
$designation=$f->designation;
|
||||||
|
$image=$f->image;
|
||||||
|
if($gender==1){$genType="Male";}else{$genType="Female";}
|
||||||
} ?>
|
} ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 col-sm-12">
|
<div class="col-md-12 col-sm-12">
|
||||||
@ -65,14 +67,14 @@
|
|||||||
<header>Edit Faculty</header>
|
<header>Edit Faculty</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>edit_faculty/<?=$id;?>" method="post" >
|
<form action="<?=base_url();?>edit-faculty/<?=$id;?>" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Faculty
|
<label class="control-label col-md-3">Faculty Id
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" value="<?=$faculty;?>" name="code" data-required="1" placeholder="Enter name" class="form-control input-height">
|
<input type="text" value="<?=$facultyId;?>" name="facultyId" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -89,9 +91,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span style="border-radius: 0;border-color: #d2d6de;background-color: #fff; border: 1px solid #d2d6de;padding: 6px 12px; "class="input-group-addon">
|
|
||||||
<i class="fa fa-envelope"></i>
|
|
||||||
</span>
|
|
||||||
<input type="email" value="<?=$email;?>"class="form-control input-height" name="email" placeholder="Email Address" data-validation="required">
|
<input type="email" value="<?=$email;?>"class="form-control input-height" name="email" placeholder="Email Address" data-validation="required">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -101,7 +101,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="number" value="<?=$number;?>" type="text" placeholder="Enter Staff" class="form-control error" />
|
<input name="mobileNumber" value="<?=$mobileNumber;?>" type="text" placeholder="Enter Staff" class="form-control error" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -109,7 +109,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="designation" value="<?=$desi;?>" type="text" placeholder="Enter Staff" class="form-control error" />
|
<input name="designation" value="<?=$designation;?>" type="text" placeholder="Enter Staff" class="form-control error" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -128,10 +128,10 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="gender">
|
<select class="form-control select2" name="gender">
|
||||||
<option value="">Select...</option>
|
<option value="<?=$gender;?>"><?=$genType;?></option>
|
||||||
<option value="Category 1">Male</option>
|
<option value="1">Male</option>
|
||||||
<option value="Category 2">Female</option>
|
<option value="2">Female</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -140,7 +140,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<textarea name="address" value="<?=$address;?>" placeholder="address" class="form-control-textarea" rows="5"></textarea>
|
<textarea name="address" placeholder="address" class="form-control-textarea"><?=$address;?></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -148,7 +148,15 @@
|
|||||||
<label class="control-label col-md-3">Profile Img
|
<label class="control-label col-md-3">Profile Img
|
||||||
</label>
|
</label>
|
||||||
<div class="compose-editor">
|
<div class="compose-editor">
|
||||||
<input type="file" name="image" value="<?=$f_img;?>" placeholder="Enter img" class="form-control error">
|
<input type="file" name="image" placeholder="Enter img" class="form-control error">
|
||||||
|
<input type="hidden" value="<?=$image;?>" name="hiddenImage" >
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<img src="<?=base_url()?>uploads/faculty/<?=$image;?>" style="width:75px;height:75px;" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@ -171,3 +179,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -28,8 +28,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add_faculty">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_faculty">add <i class="fa fa-plus"></i></a> </button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i> </button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -39,7 +41,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> S.No</th>
|
<th> S.No</th>
|
||||||
<th> ID </th>
|
<th> Faculty </th>
|
||||||
<th> Name </th>
|
<th> Name </th>
|
||||||
<th> Email</th>
|
<th> Email</th>
|
||||||
<th> Designation </th>
|
<th> Designation </th>
|
||||||
@ -54,29 +56,30 @@
|
|||||||
foreach($fac->result() as $f)
|
foreach($fac->result() as $f)
|
||||||
{
|
{
|
||||||
$id=$f->id;
|
$id=$f->id;
|
||||||
$faculty=$f->code;
|
$faculty=$f->facultyId;
|
||||||
$name=$f->name;
|
$name=$f->name;
|
||||||
$email=$f->email;
|
$email=$f->email;
|
||||||
//$number=$f->number;
|
$number=$f->mobileNumber;
|
||||||
//$dob=$f->dob;
|
$dob=$f->dob;
|
||||||
//$gender=$f->gender;
|
$gender=$f->gender;
|
||||||
//$address=$f->address;
|
$address=$f->address;
|
||||||
$desi=$f->designation;
|
$desi=$f->designation;
|
||||||
//$f_img=$f->f_img;
|
$image=$f->image;
|
||||||
?>
|
?>
|
||||||
<tr class="odd gradeX">
|
<tr class="odd gradeX">
|
||||||
<td><?=$i;?></td>
|
<td><?=$i;?></td>
|
||||||
<td><?=$faculty;?></td>
|
<td><?=$faculty;?></td>
|
||||||
<td><?=$name;?></td>
|
<td><?=$name;?></td>
|
||||||
<td><?=$email;?></td>
|
<td><?=$email;?></td>
|
||||||
|
|
||||||
<td><?=$desi;?></td>
|
<td><?=$desi;?></td>
|
||||||
<td>
|
<td>
|
||||||
|
<a href="<?=base_url();?>view-faculty/<?=$id;?>" class="btn btn-success btn-xs">
|
||||||
<a href="<?=base_url();?>edit_faculty/<?=$id;?>" class="btn btn-primary btn-xs">
|
<i class="fa fa-eye"></i>
|
||||||
|
</a>
|
||||||
|
<a href="<?=base_url();?>edit-faculty/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
<a data-id="<?=$id;?>" class="deleteFaculty btn btn-danger btn-xs">
|
||||||
<i class="fa fa-trash-o"></i>
|
<i class="fa fa-trash-o"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -97,7 +100,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end page content -->
|
<!-- end page content -->
|
||||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -108,13 +111,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>deleted_faculty" method="post">
|
<form action="<?=base_url();?>Faculty/deleteFaculty" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
|
|
||||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
<input type="hidden" name="facultyId" value="<?=$id;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@ -139,10 +142,8 @@
|
|||||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(".editsemesterclass").click(function(){
|
$(".deleteFaculty").click(function(){
|
||||||
$('#editmediumModel').modal('show');
|
$('#deleteModal').modal('show');
|
||||||
var id=$(this).attr('data-id');
|
|
||||||
//alert(id);
|
|
||||||
$('#hiddenid').val(id);
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
107
admin/application/views/faculty/view_faculty.php
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
<!-- data tables -->
|
||||||
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<!-- start page container -->
|
||||||
|
<div class="page-container">
|
||||||
|
<!-- start sidebar menu -->
|
||||||
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
|
<!-- start page content -->
|
||||||
|
<div class="page-content-wrapper">
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-bar col-md-9" style="margin:0px auto;padding:0">
|
||||||
|
<div class="page-title-breadcrumb">
|
||||||
|
<div class=" pull-left">
|
||||||
|
<div class="page-title">Faculty View</div>
|
||||||
|
</div>
|
||||||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/faculty">Faculty</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">View Faculty</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php $this->load->view('includes/msg');?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-9" style="margin:0px auto;">
|
||||||
|
<?php
|
||||||
|
if(isset($viewFaculty)&& $viewFaculty->num_rows()>0)
|
||||||
|
{
|
||||||
|
$view=$viewFaculty->row();
|
||||||
|
|
||||||
|
$id=$view->id;
|
||||||
|
$facultyId=$view->facultyId;
|
||||||
|
$name=$view->name;
|
||||||
|
$dob=$view->dob;
|
||||||
|
$email=$view->email;
|
||||||
|
$address=$view->address;
|
||||||
|
$gender=$view->gender;
|
||||||
|
$mobileNumber=$view->mobileNumber;
|
||||||
|
$designation=$view->designation;
|
||||||
|
$image=$view->image;
|
||||||
|
if($gender==1){$gen="Male";}else{$gen="Female";}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- BEGIN PROFILE SIDEBAR -->
|
||||||
|
<div class="card card-topline-aqua">
|
||||||
|
<div class="card-body no-padding height-9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="profile-userpic">
|
||||||
|
<img src="<?=base_url();?>uploads/faculty/<?=$image;?>" class="img-responsive" alt=""> </div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-usertitle">
|
||||||
|
<div class="profile-usertitle-name"><?=$name.' - '.$gen;?></div>
|
||||||
|
<div class="profile-usertitle-job"> <?=$facultyId;?> </div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Date of Birth</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$dob;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Mobile Number</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$mobileNumber;?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Email</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$email;?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Address</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$address;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6"> <strong>designation</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$designation;?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END SIDEBAR USER TITLE -->
|
||||||
|
<!-- SIDEBAR BUTTONS -->
|
||||||
|
|
||||||
|
<!-- END SIDEBAR BUTTONS -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END PROFILE CONTENT -->
|
||||||
|
<!-- END BEGIN PROFILE SIDEBAR -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<!-- data tables -->
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
|
|
@ -34,7 +34,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<!-- END HEAD -->
|
<!-- END HEAD -->
|
||||||
|
|
||||||
<body class="page-header-fixed sidemenu-closed-hidelogo page-content-white page-md header-white white-sidebar-color logo-indigo">
|
<body data-path="<?=base_url();?>" class="page-header-fixed sidemenu-closed-hidelogo page-content-white page-md header-white white-sidebar-color logo-indigo">
|
||||||
<div class="page-wrapper">
|
<div class="page-wrapper">
|
||||||
<!-- start header -->
|
<!-- start header -->
|
||||||
<div class="page-header navbar navbar-fixed-top">
|
<div class="page-header navbar navbar-fixed-top">
|
||||||
|
@ -22,6 +22,19 @@
|
|||||||
line-height: 1.42857;
|
line-height: 1.42857;
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
.alert-dismissible .close {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
padding: 0px 15px !important;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.alertClass{
|
||||||
|
width:100%
|
||||||
|
}
|
||||||
|
.alert.alert-danger.alert-dismissible {
|
||||||
|
width: 29% !important;
|
||||||
|
margin: 0px auto !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:06:07 GMT -->
|
<!-- Mirrored from radixtouch.in/templates/admin/redstar/source/light/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Aug 2019 14:06:07 GMT -->
|
||||||
@ -29,8 +42,8 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
||||||
<meta name="description" content="Responsive Admin Template" />
|
<meta name="description" content="McGan's Architecture" />
|
||||||
<meta name="author" content="RedstarHospital" />
|
<meta name="author" content="McGan's Architecture" />
|
||||||
<title>Mcgans</title>
|
<title>Mcgans</title>
|
||||||
<!-- google font -->
|
<!-- google font -->
|
||||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
|
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
|
||||||
@ -46,58 +59,39 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="limiter">
|
<div class="limiter">
|
||||||
|
|
||||||
<div class="container-login100 page-background">
|
<div class="container-login100 page-background">
|
||||||
|
<div class="alertClass">
|
||||||
|
<?php $this->load->view('includes/msg');?>
|
||||||
|
</div>
|
||||||
<div class="wrap-login100">
|
<div class="wrap-login100">
|
||||||
<form class="login100-form validate-form" action="<?=base_url()?>welcome/dashboard" method="post">
|
|
||||||
|
<form class="login100-form validate-form" action="<?=base_url()?>login" method="post">
|
||||||
|
|
||||||
<span class="login100-form-logo">
|
<span class="login100-form-logo">
|
||||||
<img alt="" src="<?=base_url();?>assets/img/login.png">
|
<img alt="" src="<?=base_url();?>assets/img/login.png">
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="login100-form-title p-b-34 p-t-27">
|
<span class="login100-form-title p-b-34 p-t-27">
|
||||||
Log in
|
Sign In
|
||||||
</span>
|
</span>
|
||||||
<div class="wrap-input100 validate-input" data-validate="Enter username">
|
<div class="wrap-input100 validate-input" data-validate="Enter username">
|
||||||
<input class="input100" type="text" name="username" placeholder="Username">
|
<input style="padding:0px;" class="input100" type="text" name="username" placeholder="Username">
|
||||||
<span class="focus-input100" data-placeholder=""></span>
|
<span class="focus-input100" data-placeholder=""></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap-input100 validate-input" data-validate="Enter password">
|
<div class="wrap-input100 validate-input" data-validate="Enter password">
|
||||||
<input class="input100" type="password" name="pass" placeholder="Password">
|
<input style="padding:0px;" class="input100" type="password" name="password" placeholder="Password">
|
||||||
<span class="focus-input100" ></span>
|
<span class="focus-input100" ></span>
|
||||||
</div>
|
</div>
|
||||||
<!--<div class="form-group row">
|
|
||||||
<div class="col-md-5">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-user-circle"></i>
|
|
||||||
</span>
|
|
||||||
<input class="form-control input-height" name="mail" placeholder=""> </div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<div class="col-md-5">
|
|
||||||
<div class="input-group">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-key"></i>
|
|
||||||
</span>
|
|
||||||
<input class="form-control input-height" name="mail" placeholder=""> </div>
|
|
||||||
</div>
|
|
||||||
</div>-->
|
|
||||||
<div class="contact100-form-checkbox">
|
|
||||||
<input class="input-checkbox100" id="ckb1" type="checkbox" name="remember-me" value="1">
|
|
||||||
<label class="label-checkbox100" for="ckb1">
|
|
||||||
Remember me
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="container-login100-form-btn">
|
<div class="container-login100-form-btn">
|
||||||
<button type="submit" class="login100-form-btn">
|
<button type="submit" class="login100-form-btn">
|
||||||
Login
|
Submit
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center p-t-30">
|
|
||||||
<a class="txt1" href="forgot_password.html">
|
|
||||||
Forgot Password?
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<!-- start sidebar menu -->
|
<!-- start sidebar menu -->
|
||||||
<?php $this->load->view('includes/sidebar');?>
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
@ -14,7 +16,9 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
<li class="active">Project</li>
|
<li> <a class="parent-item" href="<?=base_url();?>/project">Project</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">Add Project</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,14 +30,14 @@
|
|||||||
<header>Project</header>
|
<header>Project</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>add_project" method="post">
|
<form action="<?=base_url();?>add_project" method="post" class="form-horizontal" enctype="multipart/form-data" >
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3"> Project Date
|
<label class="control-label col-md-3"> Project Date
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5" >
|
<div class="col-md-5" >
|
||||||
<input type="date" name="date" data-required="1" class="form-control input-height formDatePicker">
|
<input type="date" name="date" data-required="1" data-validation="required" class="form-control input-height formDatePicker">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -41,34 +45,22 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="projectName" type="text" placeholder="Enter Project Name" class="form-control input-height" /> </div>
|
<input name="projectName" type="text" placeholder="Enter Project Name" data-validation="required" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Faculty Name
|
<label class="control-label col-md-3">Code
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="faculty">
|
<input name="code" type="text" placeholder="Enter Project Code" data-validation="required" class="form-control input-height" /> </div>
|
||||||
<option value="" selected="selected" id="faculty_id" >Select</option>
|
</div>
|
||||||
<?php
|
|
||||||
if(isset($fac) && $fac->num_rows()>0)
|
|
||||||
{
|
|
||||||
foreach($fac->result() as $faculty)
|
|
||||||
{
|
|
||||||
?> <option value="<?=$faculty->id;?>"><?=$faculty->name;?></option><?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Student
|
<label class="control-label col-md-3">Student
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" id="sudent_id" name="student">
|
<select class="form-control select2" id="sudent_id" name="student" data-validation="required">
|
||||||
<option value="" selected="selected">Select</option>
|
<option value="" selected="selected">Select</option>
|
||||||
<?php
|
<?php
|
||||||
if(isset($stu) && $stu->num_rows()>0)
|
if(isset($stu) && $stu->num_rows()>0)
|
||||||
@ -88,21 +80,34 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="semester" type="text" placeholder="Enter semester" class="form-control input-height" /> </div>
|
<select class="form-control select2" name="semesterId" data-validation="required">
|
||||||
|
<option value="" selected="selected">Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($semester) && $semester->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($semester->result() as $sem)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$sem->id;?>"><?=$sem->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Subject Code
|
<label class="control-label col-md-3">Subject
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="subject">
|
<select class="form-control select2" name="subject" data-validation="required">
|
||||||
<option value="" selected="selected">Select</option>
|
<option value="" selected="selected">Select</option>
|
||||||
<?php
|
<?php
|
||||||
if(isset($sub) && $sub->num_rows()>0)
|
if(isset($sub) && $sub->num_rows()>0)
|
||||||
{
|
{
|
||||||
foreach($sub->result() as $subject)
|
foreach($sub->result() as $subject)
|
||||||
{
|
{
|
||||||
?> <option value="<?=$subject->id;?>"><?=$subject->code;?></option><?php
|
?> <option value="<?=$subject->id;?>"><?=$subject->name;?></option><?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -115,7 +120,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" id="departmentId" name="department">
|
<select class="form-control select2" id="departmentId" name="department" data-validation="required">
|
||||||
<option value="" selected="selected">Select</option>
|
<option value="" selected="selected">Select</option>
|
||||||
<?php
|
<?php
|
||||||
if(isset($dep) && $dep->num_rows()>0)
|
if(isset($dep) && $dep->num_rows()>0)
|
||||||
@ -131,35 +136,66 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Title Image
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<input name="titleImage" type="file" data-validation="required" class="form-control input-height" /> </div>
|
||||||
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Description
|
<label class="control-label col-md-3">Description
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<textarea name="description" placeholder=" Enter Designation" class="form-control" rows="5"></textarea>
|
<textarea name="description" placeholder=" Enter Designation" data-validation="required" class="form-control" rows="5"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Video
|
<label class="control-label col-md-3">Video
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="vedio" type="text" placeholder="Enter Vedio Link" class="form-control input-height" /> </div>
|
<input name="vedio" type="text" placeholder="Enter Vedio Link" data-validation="required" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Drive Link
|
<label class="control-label col-md-3">Drive Link
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="drivelink" type="text" placeholder="Enter Drive Link" class="form-control input-height" /> </div>
|
<input name="drivelink" type="text" placeholder="Enter Drive Link" data-validation="required" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Project Image
|
<label class="control-label col-md-3">Title & Image
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5 compose-editor">
|
|
||||||
<input name="image" type="file" class="form-control default" multiple>
|
<div class="col-md-2 compose-editor">
|
||||||
|
<input name="title[0]" id="projectTitle_0" type="text" class="form-control default">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2 compose-editor">
|
||||||
|
<input name="profileimage[0]" id="projectImage_0" type="file" class="form-control default">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<div class="add-new-button-blue addMore"><span class="btn btn-primary">Add <i class="fa fa-plus"></i></span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!---Duplicate ---->
|
||||||
|
<input type="hidden" value="0" id="view"/>
|
||||||
|
<div class="form-group duplicate1 row hide" id="imageTemplate" >
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
</label>
|
||||||
|
<div class="col-md-2 compose-editor">
|
||||||
|
<input name="titles[]" id="projectTitle" type="text" class="form-control default">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2 compose-editor">
|
||||||
|
<input name="profileimages[]" id="projectImage" type="file" class="form-control default">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1">
|
||||||
|
<div class="add-new-button-blue removeButton" id="cat_add_id"><span class="btn btn-danger">Remove <i class="fa fa-minus"></i></span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!---Duplicate ---->
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -180,22 +216,41 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
//multiple add more
|
||||||
|
invIndex = 0;
|
||||||
|
$('body').on('click','.addMore', function() {
|
||||||
|
|
||||||
|
invIndex++;
|
||||||
|
var $template = $('#imageTemplate'),
|
||||||
|
$clone = $template
|
||||||
|
.clone(true)
|
||||||
|
.removeClass('hide')
|
||||||
|
.removeAttr('id')
|
||||||
|
.attr('data-book-index', invIndex)
|
||||||
|
.insertBefore($template);
|
||||||
|
|
||||||
|
// Update the name attributes
|
||||||
|
$clone
|
||||||
|
.find('[id="projectTitle"]').attr('id', 'projectTitle_'+invIndex).end()
|
||||||
|
.find('[id="projectImage"]').attr('id', 'projectImage_'+invIndex).end()
|
||||||
|
|
||||||
|
.find('[name="titles[]"]').attr('name', 'title['+invIndex+']').end()
|
||||||
|
.find('[name="profileimages[]"]').attr('name', 'profileimage['+invIndex+']').end()
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
.on('click', '.removeButton', function(){
|
||||||
|
var $row = $(this).parents('.duplicate1'),
|
||||||
|
index = $row.attr('data-book-index');
|
||||||
|
$row.remove();
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
function initializeSelect2(selectElementObj) {
|
|
||||||
selectElementObj.select2({
|
|
||||||
width: "100%",
|
|
||||||
tags: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
$("#faculty").each(function() {
|
|
||||||
initializeSelect2($(this));
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,30 +1,5 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
<!--<style>
|
|
||||||
.input-group .input-group-addon {
|
|
||||||
border-radius: 0;
|
|
||||||
border-color: #d2d6de;
|
|
||||||
background-color: #fff;
|
|
||||||
border: 1px solid #d2d6de;
|
|
||||||
padding: 6px 12px;
|
|
||||||
}
|
|
||||||
.form-control{
|
|
||||||
width: 100%;
|
|
||||||
height: 34px;
|
|
||||||
padding: 6px 12px;
|
|
||||||
background-color: #fff;
|
|
||||||
border: 1px solid #c2cad8;
|
|
||||||
box-shadow: none!important;
|
|
||||||
outline: 0!important;
|
|
||||||
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.42857;
|
|
||||||
color: #555;
|
|
||||||
}
|
|
||||||
.fa{
|
|
||||||
padding-top:8px;
|
|
||||||
}
|
|
||||||
</style>-->
|
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<?php $this->load->view('includes/sidebar');?>
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
<div class="page-content-wrapper">
|
<div class="page-content-wrapper">
|
||||||
@ -49,11 +24,12 @@
|
|||||||
$id=$p->id;
|
$id=$p->id;
|
||||||
$date=$p->date;
|
$date=$p->date;
|
||||||
$name=$p->projectName;
|
$name=$p->projectName;
|
||||||
$faculty=$p->faculty;
|
//$code=$p->faculty;
|
||||||
$student=$p->student;
|
$student=$p->studentId;
|
||||||
$semester=$p->semester;
|
$semester=$p->semesterId;
|
||||||
$subject=$p->subject;
|
$subject=$p->subjectId;
|
||||||
$department=$p->department;
|
$code=$p->code;
|
||||||
|
$department=$p->departmentId;
|
||||||
$description=$p->description;
|
$description=$p->description;
|
||||||
$video=$p->vedio;
|
$video=$p->vedio;
|
||||||
//$drivelink=$p->drivelink;
|
//$drivelink=$p->drivelink;
|
||||||
@ -67,7 +43,7 @@
|
|||||||
<header>Edit Project</header>
|
<header>Edit Project</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>edit_project/<?=$id;?>" method="post" >
|
<form action="<?=base_url();?>edit_project/<?=$id;?>" method="post" class="form-horizontal" >
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Project Date
|
<label class="control-label col-md-3">Project Date
|
||||||
@ -86,11 +62,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Faculty Name
|
<label class="control-label col-md-3">Code
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" value="<?=$faculty;?>" name="faculty" data-required="1" placeholder="Enter Faculty" class="form-control input-height">
|
<input type="code" value="<?=$code;?>" name="code" data-required="1" placeholder="Enter Faculty" class="form-control input-height">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -110,7 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Subject Code
|
<label class="control-label col-md-3">Subject
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
@ -118,14 +94,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Department.
|
<label class="control-label col-md-3">Department
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="department" value="<?=$department;?>" type="text" placeholder="Enter Department" class="form-control input-height" /> </div>
|
<input name="department" value="<?=$department;?>" type="text" placeholder="Enter Department" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Description.
|
<label class="control-label col-md-3">Description
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
|
@ -28,8 +28,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add_project">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_project">add <i class="fa fa-plus"></i></a> </button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i></button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -40,11 +42,11 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th> S.No </th>
|
<th> S.No </th>
|
||||||
<th> Date </th>
|
<th> Date </th>
|
||||||
<th> Project Name </th>
|
<th> Project Code </th>
|
||||||
<th> Student </th>
|
<th> Student </th>
|
||||||
<th> Semester </th>
|
<th> Semester </th>
|
||||||
|
<th> Subject </th>
|
||||||
<th> Department </th>
|
<th> Department </th>
|
||||||
<th> Faculty </th>
|
|
||||||
<th> Action </th>
|
<th> Action </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -58,24 +60,28 @@
|
|||||||
$id=$p->id;
|
$id=$p->id;
|
||||||
$date=$p->date;
|
$date=$p->date;
|
||||||
$name=$p->projectName;
|
$name=$p->projectName;
|
||||||
$student=$p->studentName;
|
$code=$p->code;
|
||||||
$semester=$p->semester;
|
$studentName=$p->studentName;
|
||||||
//$subject=$p->subjectCode;
|
$semName=$p->semName;
|
||||||
$department=$p->deptname;
|
$subName=$p->subName;
|
||||||
$faculty=$p->facultyName;
|
$depName=$p->depName;
|
||||||
|
//$faculty=$p->facultyName;
|
||||||
$image=$p->image;
|
$image=$p->image;
|
||||||
?>
|
?>
|
||||||
<tr class="odd gradeX">
|
<tr class="odd gradeX">
|
||||||
<td><?=$i;?></td>
|
<td><?=$i;?></td>
|
||||||
<td><?=$date;?></td>
|
<td><?=$date;?></td>
|
||||||
<td><?=$name;?></td>
|
<td><?=$code;?></td>
|
||||||
<td><?=$student;?></td>
|
<td><?=$studentName;?></td>
|
||||||
<td><?=$semester;?></td>
|
<td><?=$semName;?></td>
|
||||||
<td><?=$department;?></td>
|
<td><?=$subName;?></td>
|
||||||
<td><?=$faculty;?></td>
|
<td><?=$depName;?></td>
|
||||||
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
<a href="<?=base_url();?>view-project/<?=$id;?>" class="btn btn-success btn-xs">
|
||||||
|
<i class="fa fa-eye"></i>
|
||||||
|
</a>
|
||||||
<a href="<?=base_url();?>edit_project/<?=$id;?>" class="btn btn-primary btn-xs">
|
<a href="<?=base_url();?>edit_project/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -111,13 +117,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>deleted_project" method="post">
|
<form action="<?=base_url();?>project/deleteProject" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
|
|
||||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
<input type="hidden" name="projectId" value="<?=$id;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
116
admin/application/views/project/view_project.php
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
<!-- data tables -->
|
||||||
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<!-- start page container -->
|
||||||
|
<div class="page-container">
|
||||||
|
<!-- start sidebar menu -->
|
||||||
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
|
<!-- start page content -->
|
||||||
|
<div class="page-content-wrapper">
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-bar col-md-9" style="margin:0px auto;padding:0">
|
||||||
|
<div class="page-title-breadcrumb">
|
||||||
|
<div class=" pull-left">
|
||||||
|
<div class="page-title">Project View</div>
|
||||||
|
</div>
|
||||||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/project">Project</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">View Project</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php $this->load->view('includes/msg');?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-9" style="margin:0px auto;">
|
||||||
|
<?php
|
||||||
|
if(isset($viewProject)&& $viewProject->num_rows()>0)
|
||||||
|
{
|
||||||
|
$view=$viewProject->row();
|
||||||
|
|
||||||
|
$studentName=$view->studentName;
|
||||||
|
$semName=$view->semName;
|
||||||
|
$depName=$view->depName;
|
||||||
|
$projectName=$view->projectName;
|
||||||
|
$pDate=$view->pDate;
|
||||||
|
$code=$view->code;
|
||||||
|
$description=$view->description;
|
||||||
|
$image=$view->image;
|
||||||
|
$vedio=$view->vedio;
|
||||||
|
$driveLink=$view->driveLink;
|
||||||
|
$subName=$view->subName;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- BEGIN PROFILE SIDEBAR -->
|
||||||
|
<div class="card card-topline-aqua">
|
||||||
|
<div class="card-body no-padding height-9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="profile-userpic">
|
||||||
|
<img src="<?=base_url();?>uploads/project/<?=$image;?>" class="img-responsive" alt=""> </div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-usertitle">
|
||||||
|
<div class="profile-usertitle-name"><?=$projectName.' - '.$pDate;?></div>
|
||||||
|
<div class="profile-usertitle-job"> <?=$code;?> </div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Student Name</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$studentName;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Semester</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$semName;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Department</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$depName;?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6"> <strong>Subject</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$subName;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6"> <strong>Video</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$vedio;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6"> <strong>Username</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$driveLink;?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-12 col-xs-6"> <strong>Description</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$description;?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- END SIDEBAR USER TITLE -->
|
||||||
|
<!-- SIDEBAR BUTTONS -->
|
||||||
|
|
||||||
|
<!-- END SIDEBAR BUTTONS -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END PROFILE CONTENT -->
|
||||||
|
<!-- END BEGIN PROFILE SIDEBAR -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<!-- data tables -->
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
|
|
135
admin/application/views/semester/add_semester.php
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<!--select2-->
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<div class="page-container">
|
||||||
|
<!-- start sidebar menu -->
|
||||||
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
|
<!-- start page content -->
|
||||||
|
<div class="page-content-wrapper">
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-bar">
|
||||||
|
<div class="page-title-breadcrumb">
|
||||||
|
<div class=" pull-left">
|
||||||
|
<div class="page-title">Add Semester</div>
|
||||||
|
</div>
|
||||||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/semester">Semester</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">Add Semester</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Midium Model -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12 col-sm-12">
|
||||||
|
<div class="card card-box">
|
||||||
|
<div class="card-head">
|
||||||
|
<header>Semester</header>
|
||||||
|
</div>
|
||||||
|
<div class="card-body" id="bar-parent">
|
||||||
|
<form class="form-horizontal" action="<?=base_url();?>add-semester" method="post">
|
||||||
|
<div class="form-body">
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Name
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<input name="name" type="text" data-validation="required" placeholder="Enter Degree Name" class="form-control input-height" /> </div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Year
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<input name="year" type="number" data-validation="required" placeholder="Enter Semester Year" class="form-control input-height" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Subject
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="subjectId" data-validation="required">
|
||||||
|
<option value="" selected="selected" id="subjectId" >Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($subject) && $subject->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($subject->result() as $list)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list->id;?>"><?=$list->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Department
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="departmentId" data-validation="required">
|
||||||
|
<option value="" selected="selected" id="departentId" >Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($department) && $department->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($department->result() as $list1)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list1->id;?>"><?=$list1->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Degree
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="degreeId" data-validation="required">
|
||||||
|
<option value="" selected="selected" id="degreeId" >Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($degree) && $degree->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($degree->result() as $list)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list->id;?>"><?=$list->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-actions">
|
||||||
|
<div class="row">
|
||||||
|
<div class="offset-md-3 col-md-9">
|
||||||
|
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||||
|
<button type="button" class="btn btn-default">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Modal -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
147
admin/application/views/semester/edit_semester.php
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<!--select2-->
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<div class="page-container">
|
||||||
|
<!-- start sidebar menu -->
|
||||||
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
|
<!-- start page content -->
|
||||||
|
<div class="page-content-wrapper">
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-bar">
|
||||||
|
<div class="page-title-breadcrumb">
|
||||||
|
<div class=" pull-left">
|
||||||
|
<div class="page-title">Edit Semester</div>
|
||||||
|
</div>
|
||||||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/semester">Semester</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">Edit Semester</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Midium Model -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12 col-sm-12">
|
||||||
|
<div class="card card-box">
|
||||||
|
<div class="card-head">
|
||||||
|
<header>Edit Semester</header>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
if(isset($getData) && $getData->num_rows()>0)
|
||||||
|
{
|
||||||
|
$e=$getData->row();
|
||||||
|
$id =$e->id;
|
||||||
|
$name=$e->name;
|
||||||
|
$year=$e->year;
|
||||||
|
$subjectId=$e->subjectId;
|
||||||
|
$departmentId=$e->departmentId;
|
||||||
|
$degreeId =$e->degreeId;
|
||||||
|
|
||||||
|
} ?>
|
||||||
|
<div class="card-body" id="bar-parent">
|
||||||
|
<form class="form-horizontal" action="<?=base_url();?>edit-semester/<?=$id;?>" method="post">
|
||||||
|
<div class="form-body">
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Name
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<input name="name" value="<?=$name;?>" type="text" data-validation="required" placeholder="Enter Degree Name" class="form-control input-height" /> </div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Year
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<input name="year" value="<?=$year;?>" type="number" data-validation="required" placeholder="Enter Semester Year" class="form-control input-height" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Subject
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="subjectId" data-validation="required">
|
||||||
|
<option value="" selected="selected" id="subjectId" >Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($subject) && $subject->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($subject->result() as $list)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list->id;?>" <?php if($list->id==$subjectId){ echo "selected";}?>><?=$list->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Department
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="departmentId" data-validation="required">
|
||||||
|
<option value="" selected="selected" id="departentId" >Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($department) && $department->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($department->result() as $list1)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list1->id;?>" <?php if($list1->id==$departmentId){ echo "selected";}?>><?=$list1->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Degree
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="degreeId" data-validation="required">
|
||||||
|
<option value="" selected="selected" id="degreeId" >Select</option>
|
||||||
|
<?php
|
||||||
|
if(isset($degree) && $degree->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($degree->result() as $list)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list->id;?>" <?php if($list->id==$degreeId){ echo "selected";}?>><?=$list->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-actions">
|
||||||
|
<div class="row">
|
||||||
|
<div class="offset-md-3 col-md-9">
|
||||||
|
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
||||||
|
<button type="button" class="btn btn-default">Cancel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Modal -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -22,14 +22,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php $this->load->view('includes/msg');?>
|
<?php $this->load->view('includes/msg');?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8">
|
<div class="col-md-12">
|
||||||
<div class="card card-topline-red">
|
<div class="card card-topline-red">
|
||||||
<div class="card-body ">
|
<div class="card-body ">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add-semester">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel">Add <i class="fa fa-plus"></i></button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i></button></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -40,29 +41,43 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th> S.No</th>
|
<th> S.No</th>
|
||||||
<th> Name</th>
|
<th> Name</th>
|
||||||
|
<th> Year </th>
|
||||||
|
<th> Subject </th>
|
||||||
|
<th> Department </th>
|
||||||
|
<th> Degree </th>
|
||||||
<th> Action </th>
|
<th> Action </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
if(isset($sem) && $sem->num_rows()>0)
|
if(isset($semester) && $semester->num_rows()>0)
|
||||||
{
|
{
|
||||||
$i=1;
|
$i=1;
|
||||||
foreach($sem->result() as $s)
|
foreach($semester->result() as $d)
|
||||||
{
|
{
|
||||||
$id=$s->id;
|
$id=$d->id;
|
||||||
$name=$s->name;
|
$name=$d->name;
|
||||||
|
$year=$d->year;
|
||||||
|
$depId=$d->depId;
|
||||||
|
$depName=$d->depName;
|
||||||
|
$subId=$d->subId;
|
||||||
|
$subName=$d->subName;
|
||||||
|
$degId=$d->degId;
|
||||||
|
$degName=$d->degName;
|
||||||
?>
|
?>
|
||||||
<tr class="odd gradeX">
|
<tr class="odd gradeX">
|
||||||
<td><?=$i;?></td>
|
<td><?=$i;?></td>
|
||||||
<td><?=$name;?></td>
|
<td><?=$name;?></td>
|
||||||
|
<td><?=$year;?></td>
|
||||||
|
<td><?=$depName;?></td>
|
||||||
|
<td><?=$subName;?></td>
|
||||||
|
<td><?=$degName;?></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript:;" data-id="<?=$id;?>" data-name="<?=$name;?>" class="editdepclass btn btn-primary btn-xs ">
|
|
||||||
|
<a href="<?=base_url();?>edit-semester/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
|
<a data-id="<?=$id;?>" class="deleteSemester btn btn-danger btn-xs">
|
||||||
<a href="javascript:;" data-id="<?=$id;?>" class="deletedpeclass btn btn-danger btn-xs">
|
|
||||||
<i class="fa fa-trash-o"></i>
|
<i class="fa fa-trash-o"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -75,116 +90,32 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end page content -->
|
<!-- end page content -->
|
||||||
<!-- Midium Model -->
|
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||||
<div class="modal fade" id="mediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title" id="exampleModalLabel">Add Semester</h4>
|
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>add_semester" method="post">
|
<form action="<?=base_url();?>semester/deleteSemester" method="post">
|
||||||
<div class="form-body">
|
|
||||||
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="control-label col-md-4">Name
|
|
||||||
<span class="required"> * </span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-7">
|
|
||||||
<input type="text" name="name" data-required="1" placeholder="Enter Your Name" class="form-control input-height">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-actions">
|
|
||||||
<div class="row">
|
|
||||||
<div class="offset-md-3 col-md-9">
|
|
||||||
<input type="submit" id="add_department" name="submit" class="btn btn-info m-r-20" value="Submit">
|
|
||||||
<button type="button" class="btn btn-default">Cancel</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- Modal -->
|
|
||||||
|
|
||||||
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
|
||||||
aria-hidden="true">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h4 class="modal-title" id="exampleModalLabel">Edit Semester</h4>
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form action="<?=base_url();?>edit_semester" method="post">
|
|
||||||
<div class="form-body">
|
|
||||||
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="control-label col-md-4">Name
|
|
||||||
<span class="required"> * </span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-7">
|
|
||||||
<input type="text" name="name" data-required="1" id="editdepid" placeholder="Enter Your Name" class="form-control input-height">
|
|
||||||
<input type="hidden" name="hiddendepid" id="hiddendepid">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-actions">
|
|
||||||
<div class="row">
|
|
||||||
<div class="offset-md-3 col-md-9">
|
|
||||||
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
|
|
||||||
<button type="button" class="btn btn-default">Cancel</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal fade" id="delete1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
|
||||||
aria-hidden="true">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h4 class="modal-title" id="exampleModalLabel">deleted Role</h4>
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form action="<?=base_url();?>deleted_semester" method="post">
|
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
<input type="hidden" name="hiddengffgdtpid" id="hiddenid">
|
|
||||||
|
<input type="hidden" name="semesterId" value="<?=$id;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@ -202,28 +133,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
<!-- data tables -->
|
<!-- data tables -->
|
||||||
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||||
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(".editdepclass").click(function(){
|
$(".deleteSemester").click(function(){
|
||||||
$('#editmediumModel').modal('show');
|
$('#deleteModal').modal('show');
|
||||||
var name=$(this).attr('data-name');
|
|
||||||
var code=$(this).attr('data-code');
|
|
||||||
var id=$(this).attr('data-id');
|
|
||||||
$('#editdepid').val(name);
|
|
||||||
$('#editdepcode').val(code);
|
|
||||||
$('#hiddendepid').val(id);
|
|
||||||
});
|
|
||||||
$(".deletedpeclass").click(function(){
|
|
||||||
$('#delete1').modal('show');
|
|
||||||
|
|
||||||
var id=$(this).attr('data-id');
|
|
||||||
//alert(id);
|
|
||||||
$('#hiddenid').val(id);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -1,4 +1,7 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" /><link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<!-- start sidebar menu -->
|
<!-- start sidebar menu -->
|
||||||
@ -14,7 +17,9 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
<li class="active">Student</li>
|
<li> <a class="parent-item" href="<?=base_url();?>/student">Student</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">Add Student</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,14 +31,14 @@
|
|||||||
<header>Student</header>
|
<header>Student</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>add_student" method="post">
|
<form action="<?=base_url();?>add_student" method="post" class="form-horizontal" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3"> Student Id
|
<label class="control-label col-md-3"> Student
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" name="faculty" data-required="1" placeholder="Enter Student Id" class="form-control input-height">
|
<input type="text" name="student" placeholder="Enter Student Id" data-validation="required" class="form-control input-height">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -41,15 +46,21 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="name" type="text" placeholder="Enter Student Name" class="form-control input-height" /> </div>
|
<input name="name" type="text" placeholder="Enter Student Name" data-validation="required" class="form-control input-height" /> </div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Email
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<input name="email" type="email" placeholder="Enter Student Email" data-validation="required" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Mobile No
|
<label class="control-label col-md-3">Mobile No
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="number" type="text" placeholder="Mobile Number" class="form-control input-height" /> </div>
|
<input name="mobileNumber" type="text" placeholder="Mobile Number" data-validation="required" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Date Of Birth
|
<label class="control-label col-md-3">Date Of Birth
|
||||||
@ -67,10 +78,10 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="gender">
|
<select class="form-control select2" data-validation="required" name="gender">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<option value="Male">Male</option>
|
<option value="1">Male</option>
|
||||||
<option value="Female">Female</option>
|
<option value="2">Female</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -79,7 +90,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<textarea name="address" placeholder=" Enter Address" class="form-control" rows="5"></textarea>
|
<textarea name="address" placeholder=" Enter Address" data-validation="required" class="form-control" rows="5"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -87,7 +98,7 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" id="departmentId" name="department">
|
<select class="form-control select2" id="departmentId" data-validation="required" name="department">
|
||||||
<option value="" selected="selected">Select</option>
|
<option value="" selected="selected">Select</option>
|
||||||
<?php
|
<?php
|
||||||
if(isset($dep) && $dep->num_rows()>0)
|
if(isset($dep) && $dep->num_rows()>0)
|
||||||
@ -106,7 +117,7 @@
|
|||||||
<label class="control-label col-md-3">Profile Img
|
<label class="control-label col-md-3">Profile Img
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5 compose-editor">
|
<div class="col-md-5 compose-editor">
|
||||||
<input name="image" type="file" class="form-control default" multiple>
|
<input name="image" type="file" data-validation="required" class="form-control default" multiple>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -134,3 +145,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -48,8 +48,9 @@
|
|||||||
$s=$stu->row();
|
$s=$stu->row();
|
||||||
$id=$s->id;
|
$id=$s->id;
|
||||||
$name=$s->name;
|
$name=$s->name;
|
||||||
$number=$s->number;
|
$number=$s->mobileNumber;
|
||||||
$address=$s->address;
|
$address=$s->address;
|
||||||
|
$student=$s->studentId;
|
||||||
$department=$s->department;
|
$department=$s->department;
|
||||||
$gender=$s->gender;
|
$gender=$s->gender;
|
||||||
$s_img=$s->image;
|
$s_img=$s->image;
|
||||||
@ -71,13 +72,21 @@
|
|||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" value="<?=$name;?>" name="name" data-required="1" placeholder="Enter name" class="form-control input-height">
|
<input type="text" value="<?=$name;?>" name="name" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Student
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<input type="text" value="<?=$student;?>" name="student" data-required="1" placeholder="Enter name" class="form-control input-height">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Mobile.
|
<label class="control-label col-md-3">Mobile.
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="number" value="<?=$number;?>" type="text" placeholder="Enter hod" class="form-control error" />
|
<input name="mobileNumber" value="<?=$number;?>" type="text" placeholder="Enter hod" class="form-control error" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -28,8 +28,11 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add_student">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_student">add <i class="fa fa-plus"></i></a> </button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i>
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -42,6 +45,7 @@
|
|||||||
<th> Name </th>
|
<th> Name </th>
|
||||||
<th> Mobile Number </th>
|
<th> Mobile Number </th>
|
||||||
<th> Department </th>
|
<th> Department </th>
|
||||||
|
<th> Student </th>
|
||||||
<th> Gender </th>
|
<th> Gender </th>
|
||||||
<th> Action </th>
|
<th> Action </th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -55,22 +59,30 @@
|
|||||||
{
|
{
|
||||||
$id=$s->id;
|
$id=$s->id;
|
||||||
$name=$s->name;
|
$name=$s->name;
|
||||||
$number=$s->number;
|
$number=$s->mobileNumber;
|
||||||
$address=$s->address;
|
$address=$s->address;
|
||||||
$department=$s->deptname;
|
$department=$s->deptname;
|
||||||
$gender=$s->gender;
|
$gender=$s->gender;
|
||||||
$s_img=$s->image;
|
if ($gender==1)
|
||||||
|
{$gen="Male";}
|
||||||
|
else {$gen="Female";}
|
||||||
|
$student=$s->studentId;
|
||||||
|
$image=$s->image;
|
||||||
?>
|
?>
|
||||||
<tr class="odd gradeX">
|
<tr class="odd gradeX">
|
||||||
<td><?=$i;?></td>
|
<td><?=$i;?></td>
|
||||||
<td><?=$name;?></td>
|
<td><?=$name;?></td>
|
||||||
<td><?=$number;?></td>
|
<td><?=$number;?></td>
|
||||||
|
|
||||||
<td><?=$department;?></td>
|
<td><?=$department;?></td>
|
||||||
<td><?=$gender;?></td>
|
<td><?=$student;?></td>
|
||||||
|
<td><?=$gen;?></td>
|
||||||
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
|
<a href="<?=base_url();?>view-student/<?=$id;?>" class="btn btn-success btn-xs">
|
||||||
|
<i class="fa fa-eye"></i>
|
||||||
|
</a>
|
||||||
<a href="<?=base_url();?>edit_student/<?=$id;?>" class="btn btn-primary btn-xs">
|
<a href="<?=base_url();?>edit_student/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
@ -106,13 +118,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>deleted_student" method="post">
|
<form action="<?=base_url();?>Student/deleteStudent" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
|
|
||||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
<input type="hidden" name="studentId" value="<?=$id;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
106
admin/application/views/student/view_student.php
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
<!-- data tables -->
|
||||||
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<!-- start page container -->
|
||||||
|
<div class="page-container">
|
||||||
|
<!-- start sidebar menu -->
|
||||||
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
|
<!-- start page content -->
|
||||||
|
<div class="page-content-wrapper">
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-bar col-md-9" style="margin:0px auto;padding:0">
|
||||||
|
<div class="page-title-breadcrumb">
|
||||||
|
<div class=" pull-left">
|
||||||
|
<div class="page-title">Employee View</div>
|
||||||
|
</div>
|
||||||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/employee">Employee</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">View Employee</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php $this->load->view('includes/msg');?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-9" style="margin:0px auto;">
|
||||||
|
<?php
|
||||||
|
if(isset($viewStudent)&& $viewStudent->num_rows()>0)
|
||||||
|
{
|
||||||
|
$view=$viewStudent->row();
|
||||||
|
$depName=$view->depName;
|
||||||
|
$studentId=$view->studentId;
|
||||||
|
$name=$view->name;
|
||||||
|
$gender=$view->gender;
|
||||||
|
$email=$view->email;
|
||||||
|
$address=$view->address;
|
||||||
|
$mobileNumber=$view->mobileNumber;
|
||||||
|
$dob=$view->dob;
|
||||||
|
$image=$view->image;
|
||||||
|
if($gender==1){$gen="Male";}else{$gen="Female";}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- BEGIN PROFILE SIDEBAR -->
|
||||||
|
<div class="card card-topline-aqua">
|
||||||
|
<div class="card-body no-padding height-9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="profile-userpic">
|
||||||
|
<img src="<?=base_url();?>uploads/student/<?=$image;?>" class="img-responsive" alt=""> </div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-usertitle">
|
||||||
|
<div class="profile-usertitle-name"><?=$name;?></div>
|
||||||
|
<div class="profile-usertitle-job"> <?=$studentId;?> </div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Date of birth</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$dob;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Department</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$depName;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Mobile Number</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$mobileNumber;?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Email</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$email;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Address</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$address;?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END SIDEBAR USER TITLE -->
|
||||||
|
<!-- SIDEBAR BUTTONS -->
|
||||||
|
|
||||||
|
<!-- END SIDEBAR BUTTONS -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END PROFILE CONTENT -->
|
||||||
|
<!-- END BEGIN PROFILE SIDEBAR -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<!-- data tables -->
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
|
|
@ -1,5 +1,8 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<!--select2-->
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<!-- start sidebar menu -->
|
<!-- start sidebar menu -->
|
||||||
<?php $this->load->view('includes/sidebar');?>
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
@ -14,7 +17,9 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
<li class="active">Subject</li>
|
<li> <a class="parent-item" href="<?=base_url();?>/subject">Subject</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">Add Subject</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,47 +31,59 @@
|
|||||||
<header>Subject</header>
|
<header>Subject</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>add_subject" method="post">
|
<form class="form-horizontal" action="<?=base_url();?>add-subject" enctype="multipart/form-data" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
|
||||||
<label class="control-label col-md-3">Subject Code
|
|
||||||
<span class="required"> * </span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-5">
|
|
||||||
<input type="text" name="code" data-required="1" placeholder="Enter Subject Code" class="form-control input-height">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Name of the Subject.
|
<label class="control-label col-md-3">Name of the Subject.
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="subject" type="text" placeholder="Enter Subject Name" class="form-control input-height" /> </div>
|
<input name="subject" type="text" data-validation="required" placeholder="Enter Subject Name" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Department
|
<label class="control-label col-md-3">Subject Code
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="department">
|
<input type="text" name="subjectCode" data-validation="required" placeholder="Enter Subject Code" class="form-control input-height">
|
||||||
<option value="">Select...</option>
|
</div>
|
||||||
<option value="BCA">BCA</option>
|
</div>
|
||||||
<option value="MCA">MCA</option>
|
|
||||||
<option value="B.com">B.com</option>
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Degree
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<select class="form-control select2" name="degree" data-validation="required">
|
||||||
|
<option value=""></option>
|
||||||
|
<?php
|
||||||
|
if(isset($degree) && $degree->num_rows()>0)
|
||||||
|
{
|
||||||
|
foreach($degree->result() as $list)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list->id;?>"><?=$list->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Semester
|
<label class="control-label col-md-3">Faculty
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" name="semester">
|
<select id="multiple" name="faculty[]" class="form-control default select2-multiple" multiple data-validation="required">
|
||||||
<option value="">Select...</option>
|
<option value="">Select..</option>
|
||||||
<option value="1">1</option>
|
<?php
|
||||||
<option value="2">2</option>
|
if(isset($faculty) && $faculty->num_rows()>0)
|
||||||
<option value="3">3</option>
|
{
|
||||||
<option value="4">4</option>
|
foreach($faculty->result() as $list1)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list1->id;?>"><?=$list1->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -75,10 +92,16 @@
|
|||||||
<label class="control-label col-md-3">Profile Images
|
<label class="control-label col-md-3">Profile Images
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5 compose-editor">
|
<div class="col-md-5 compose-editor">
|
||||||
<input type="file" name="image" placeholder="Enter img" class="form-control default" >
|
<input type="file" name="profileImage" class="form-control default" data-validation="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Description
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5 compose-editor">
|
||||||
|
<textarea type="file" name="description" placeholder="Enter Subject Description" class="form-control default" ></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
@ -100,7 +123,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -1,4 +1,6 @@
|
|||||||
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2.css" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="<?=base_url();?>assets/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||||
<?php $this->load->view('includes/header');?>
|
<?php $this->load->view('includes/header');?>
|
||||||
<style>
|
<style>
|
||||||
.input-group .input-group-addon {
|
.input-group .input-group-addon {
|
||||||
@ -37,6 +39,8 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/subject">Subject</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
<li class="active">Edit Subject</li>
|
<li class="active">Edit Subject</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
@ -47,11 +51,14 @@
|
|||||||
{
|
{
|
||||||
$s=$sub->row();
|
$s=$sub->row();
|
||||||
$id=$s->id;
|
$id=$s->id;
|
||||||
|
$degreeId=$s->degreeId;
|
||||||
|
$name=$s->name;
|
||||||
$code=$s->code;
|
$code=$s->code;
|
||||||
$sub=$s->subject;
|
$facultyId=$s->facultyId;
|
||||||
$dep=$s->department;
|
$image=$s->image;
|
||||||
$semester=$s->semester;
|
$description=$s->description;
|
||||||
$p_img=$s->image;
|
$facIdd = explode(",", $facultyId);
|
||||||
|
//print_r ($facIdd);
|
||||||
|
|
||||||
} ?>
|
} ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -61,14 +68,14 @@
|
|||||||
<header>Edit Subject</header>
|
<header>Edit Subject</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body" id="bar-parent">
|
<div class="card-body" id="bar-parent">
|
||||||
<form action="<?=base_url();?>edit_subject/<?=$id;?>" method="post" >
|
<form action="<?=base_url();?>edit-subject/<?=$id;?>" method="post" enctype="multipart/form-data">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Code
|
<label class="control-label col-md-3">Code
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input type="text" value="<?=$code;?>" name="code" data-required="1" placeholder="Enter name" class="form-control input-height">
|
<input type="text" value="<?=$code;?>" name="code" data-validation="required" placeholder="Enter name" class="form-control input-height">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
@ -76,33 +83,44 @@
|
|||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<input name="subject" value="<?=$sub;?>" type="text" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div>
|
<input name="subject" value="<?=$name;?>" type="text"data-validation="required" placeholder="Enter subject" class="form-control input-height" /> </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Department
|
<label class="control-label col-md-3">Degree
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" value="<?=$dep;?>" name="department">
|
<select class="form-control select2" name="degree" data-validation="required">
|
||||||
<option value="">Select...</option>
|
<option value=""></option>
|
||||||
<option value="BCA">BCA</option>
|
<?php
|
||||||
<option value="MCA">MCA</option>
|
if(isset($degree) && $degree->num_rows()>0)
|
||||||
<option value="B.com">B.com</option>
|
{
|
||||||
|
foreach($degree->result() as $list)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list->id;?>" <?php if($list->id==$degreeId){echo "selected";}?>><?=$list->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="control-label col-md-3">Semester
|
<label class="control-label col-md-3">Faculty
|
||||||
<span class="required"> * </span>
|
<span class="required"> * </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<select class="form-control input-height" value="<?=$semester;?>" name="semester">
|
<select id="multiple" name="faculty[]" class="form-control default select2-multiple" multiple data-validation="required">
|
||||||
<option value="">Select...</option>
|
<option value="">Select..</option>
|
||||||
<option value="1">1</option>
|
<?php
|
||||||
<option value="2">2</option>
|
if(isset($faculty) && $faculty->num_rows()>0)
|
||||||
<option value="3">3</option>
|
{
|
||||||
<option value="4">4</option>
|
foreach($faculty->result() as $list1)
|
||||||
|
{
|
||||||
|
?> <option value="<?=$list1->id;?>" <?php if (in_array($list1->id, $facIdd)){ echo "selected";}?>><?=$list1->name;?></option><?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -111,10 +129,26 @@
|
|||||||
<label class="control-label col-md-3">Upload Picture
|
<label class="control-label col-md-3">Upload Picture
|
||||||
</label>
|
</label>
|
||||||
<div class="compose-editor">
|
<div class="compose-editor">
|
||||||
<input type="file" name="image" value="<?=$p_img;?>" placeholder="Enter img" class="default" multiple>
|
<input type="file" name="image" placeholder="Enter img" class="default">
|
||||||
|
<input type="hidden" value="<?=$image;?>" name="hiddenImage">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">
|
||||||
|
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<img src="<?=base_url();?>uploads/subject/<?=$image;?>" style="width:75px;height:75px;"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<label class="control-label col-md-3">Description
|
||||||
|
<span class="required"> * </span>
|
||||||
|
</label>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<textarea type="text" name="description" data-validation="required" placeholder="Enter Description" class="form-control input-height"><?=$description;?></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -136,3 +170,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php $this->load->view('includes/footer');?>
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/select2/js/select2-init.js"></script>
|
||||||
|
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
|
@ -16,6 +16,7 @@
|
|||||||
<ol class="breadcrumb page-breadcrumb pull-right">
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="active">Subject</li>
|
<li class="active">Subject</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
@ -28,8 +29,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-6 col-xs-6">
|
<div class="col-md-6 col-sm-6 col-xs-6">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
<a style="color:#fff;"href="<?=base_url();?>add-subject">
|
||||||
<button type="button" class="btn btn-info"
|
<button type="button" class="btn btn-info"
|
||||||
data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_subject">add <i class="fa fa-plus"></i></a> </button>
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i></button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -39,37 +42,34 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th> S.No</th>
|
<th> S.No</th>
|
||||||
<th> Subject code </th>
|
|
||||||
<th> Name of the Subject </th>
|
<th> Name of the Subject </th>
|
||||||
|
<th> Subject code </th>
|
||||||
<th> Department</th>
|
<th> Department</th>
|
||||||
<th> Semester </th>
|
|
||||||
|
|
||||||
<th> Action </th>
|
<th> Action </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
if(isset($sub) && $sub->num_rows()>0)
|
if(isset($subject) && $subject->num_rows()>0)
|
||||||
{
|
{
|
||||||
$i=1;
|
$i=1;
|
||||||
foreach($sub->result() as $s)
|
foreach($subject->result() as $s)
|
||||||
{
|
{
|
||||||
$id=$s->id;
|
$id=$s->id;
|
||||||
$code=$s->code;
|
$code=$s->code;
|
||||||
$sub=$s->subject;
|
$name=$s->name;
|
||||||
$dep=$s->department;
|
$dep=$s->depName;
|
||||||
$semester=$s->semester;
|
|
||||||
$p_img=$s->image;
|
|
||||||
?>
|
?>
|
||||||
<tr class="odd gradeX">
|
<tr class="odd gradeX">
|
||||||
<td><?=$i;?></td>
|
<td><?=$i;?></td>
|
||||||
|
<td><?=$name;?></td>
|
||||||
<td><?=$code;?></td>
|
<td><?=$code;?></td>
|
||||||
<td><?=$sub;?></td>
|
|
||||||
<td><?=$dep;?></td>
|
<td><?=$dep;?></td>
|
||||||
<td><?=$semester;?></td>
|
|
||||||
<td>
|
<td>
|
||||||
|
<a href="<?=base_url();?>view-subject/<?=$id;?>" class="btn btn-success btn-xs">
|
||||||
<a href="<?=base_url();?>edit_subject/<?=$id;?>" class="btn btn-primary btn-xs">
|
<i class="fa fa-eye"></i>
|
||||||
|
</a>
|
||||||
|
<a href="<?=base_url();?>edit-subject/<?=$id;?>" class="btn btn-primary btn-xs">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
|
||||||
@ -80,8 +80,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$i++;
|
$i++;
|
||||||
} }?>
|
} }
|
||||||
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@ -104,13 +104,13 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form action="<?=base_url();?>deleted_subject" method="post">
|
<form action="<?=base_url();?>Subject/deleteSubject" method="post">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
||||||
|
|
||||||
<input type="hidden" name="hiddenpass" id="hiddenid">
|
<input type="hidden" name="subjectId" value="<?=$id;?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
129
admin/application/views/subject/view_subject.php
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
<!-- data tables -->
|
||||||
|
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
||||||
|
<?php $this->load->view('includes/header');?>
|
||||||
|
<?php
|
||||||
|
$CI=& get_instance();
|
||||||
|
|
||||||
|
$CI->load->model('Subject_model');?>
|
||||||
|
<!-- start page container -->
|
||||||
|
<div class="page-container">
|
||||||
|
<!-- start sidebar menu -->
|
||||||
|
<?php $this->load->view('includes/sidebar');?>
|
||||||
|
<!-- start page content -->
|
||||||
|
<div class="page-content-wrapper">
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="page-bar col-md-9" style="margin:0px auto;padding:0">
|
||||||
|
<div class="page-title-breadcrumb">
|
||||||
|
<div class=" pull-left">
|
||||||
|
<div class="page-title">Subject View</div>
|
||||||
|
</div>
|
||||||
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
||||||
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li> <a class="parent-item" href="<?=base_url();?>/subject">Subject</a> <i class="fa fa-angle-right"></i>
|
||||||
|
</li>
|
||||||
|
<li class="active">View Subject</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php $this->load->view('includes/msg');?>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-9" style="margin:0px auto;">
|
||||||
|
<?php
|
||||||
|
if(isset($viewSubject)&& $viewSubject->num_rows()>0)
|
||||||
|
{
|
||||||
|
$view=$viewSubject->row();
|
||||||
|
|
||||||
|
$id=$view->id;
|
||||||
|
$degName=$view->degName;
|
||||||
|
$facultyId=$view->facultyId;
|
||||||
|
$facName=$view->facName;
|
||||||
|
$name=$view->name;
|
||||||
|
$code=$view->code;
|
||||||
|
$image=$view->image;
|
||||||
|
$description=$view->description;
|
||||||
|
$facIdd = explode(",", $facultyId);
|
||||||
|
//print_r ($facIdd);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!-- BEGIN PROFILE SIDEBAR -->
|
||||||
|
<div class="card card-topline-aqua">
|
||||||
|
<div class="card-body no-padding height-9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="profile-userpic">
|
||||||
|
<img src="<?=base_url();?>uploads/subject/<?=$image;?>" class="img-responsive" alt=""> </div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-usertitle">
|
||||||
|
<div class="profile-usertitle-name"><?=$name;?></div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Code</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$code;?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Degree</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$degName;?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-4 col-xs-6 b-r"> <strong>Faculty</strong>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$i=0;
|
||||||
|
foreach($facIdd as $faculty)
|
||||||
|
{
|
||||||
|
$getFac=$CI->Subject_model->get_faculty($faculty);
|
||||||
|
|
||||||
|
if($getFac->num_rows()>0)
|
||||||
|
{
|
||||||
|
$list=$getFac->row();
|
||||||
|
$facName=$list->name;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?=$facName.','?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
?>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12 col-xs-6" style="text-align:justify;"> <strong>Description</strong>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<p class="text-muted"><?=$description;?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END SIDEBAR USER TITLE -->
|
||||||
|
<!-- SIDEBAR BUTTONS -->
|
||||||
|
|
||||||
|
<!-- END SIDEBAR BUTTONS -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- END PROFILE CONTENT -->
|
||||||
|
<!-- END BEGIN PROFILE SIDEBAR -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php $this->load->view('includes/footer');?>
|
||||||
|
<!-- data tables -->
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
|
||||||
|
<script src="<?=base_url();?>/assets/table_data.js"></script>
|
||||||
|
|
2
admin/assets/jquery.cookie.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/*! jquery.cookie v1.4.1 | MIT */
|
||||||
|
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
|
@ -174,7 +174,7 @@ iframe {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 37px 55px 37px 55px;
|
padding: 37px 55px 37px 55px;
|
||||||
background: #EF9A9A;
|
background: #ba2121;
|
||||||
/* //background: -webkit-linear-gradient(top, #007bff, #5992d0); */
|
/* //background: -webkit-linear-gradient(top, #007bff, #5992d0); */
|
||||||
/* // background: -o-linear-gradient(top, #007bff, #5992d0); */
|
/* // background: -o-linear-gradient(top, #007bff, #5992d0); */
|
||||||
/* // background: -moz-linear-gradient(top, #007bff, #5992d0); */
|
/* // background: -moz-linear-gradient(top, #007bff, #5992d0); */
|
||||||
|
BIN
admin/uploads/department/230118083756.jpg
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
admin/uploads/department/230121065959.webp
Normal file
After Width: | Height: | Size: 380 KiB |
BIN
admin/uploads/department/230121070154.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/department/230121070202.webp
Normal file
After Width: | Height: | Size: 380 KiB |
BIN
admin/uploads/department/230121070212.webp
Normal file
After Width: | Height: | Size: 380 KiB |
BIN
admin/uploads/employee/2301191234.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/employee/2301210648.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
admin/uploads/faculty/2301180843.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/faculty/2301180950.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/faculty/2301181230.png
Normal file
After Width: | Height: | Size: 967 KiB |
BIN
admin/uploads/faculty/2301181254.png
Normal file
After Width: | Height: | Size: 967 KiB |
BIN
admin/uploads/faculty/2301201056.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/faculty/2301201103.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/faculty/2301210217.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
admin/uploads/faculty/2301210221.png
Normal file
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 91 KiB |
BIN
admin/uploads/project/1.Super-Bowls-3.webp
Normal file
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 427 KiB |
BIN
admin/uploads/project/2.bbc8a294ddcd8cf7e63926f5c878417c.jpg
Normal file
After Width: | Height: | Size: 316 KiB |
BIN
admin/uploads/project/2.images.jfif
Normal file
After Width: | Height: | Size: 219 KiB |
BIN
admin/uploads/project/2.programmatic-ecosystem.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
admin/uploads/project/research_facilities_02.jpg
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
admin/uploads/project/title230118013642.jpg
Normal file
After Width: | Height: | Size: 427 KiB |
BIN
admin/uploads/project/title230118110509.jpg
Normal file
After Width: | Height: | Size: 427 KiB |
BIN
admin/uploads/student/2301201104.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/student/2301201105.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
admin/uploads/subject/230118084757.jpg
Normal file
After Width: | Height: | Size: 291 KiB |
BIN
admin/uploads/subject/230118122812.png
Normal file
After Width: | Height: | Size: 967 KiB |
BIN
admin/uploads/subject/230118125548.png
Normal file
After Width: | Height: | Size: 967 KiB |
BIN
admin/uploads/subject/230119075335.jpg
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
admin/uploads/subject/230121015027.webp
Normal file
After Width: | Height: | Size: 380 KiB |
@ -54,5 +54,8 @@ $route['404_override'] = '';
|
|||||||
$route['translate_uri_dashes'] = FALSE;
|
$route['translate_uri_dashes'] = FALSE;
|
||||||
$route['index'] = 'welcome';
|
$route['index'] = 'welcome';
|
||||||
$route['subject-list/(:num)'] = 'Welcome/subjectList/$1';
|
$route['subject-list/(:num)'] = 'Welcome/subjectList/$1';
|
||||||
|
$route['subject-detail/(:num)'] = 'Welcome/subjectDetail/$1';
|
||||||
|
$route['project-list/(:num)'] = 'Welcome/projectList/$1';
|
||||||
|
$route['project-detail/(:num)'] = 'Welcome/projectDetail/$1';
|
||||||
|
|
||||||
$route['about'] = 'welcome/about';
|
$route['about'] = 'welcome/about';
|
||||||
|
@ -5,7 +5,7 @@ class Welcome extends CI_Controller {
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->load->model('Subject_model');
|
$this->load->model('WelcomeModel');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -25,16 +25,53 @@ class Welcome extends CI_Controller {
|
|||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$data['dep']=$this->Department_model->dep_list();
|
$data['lastId']=$this->WelcomeModel->getLastId();
|
||||||
|
$data['dep']=$this->WelcomeModel->dep_list();
|
||||||
|
$data['semester']=$this->WelcomeModel->semesterList();
|
||||||
$this->load->view('index',$data);
|
$this->load->view('index',$data);
|
||||||
}
|
}
|
||||||
public function subjectList($id)
|
public function subjectList($id)
|
||||||
{
|
{
|
||||||
$data['subject_list']=$this->Subject_model->subject_list($id);
|
|
||||||
|
$data['lastId']=$this->WelcomeModel->getLastId();
|
||||||
|
$data['dep']=$this->WelcomeModel->dep_list();
|
||||||
|
$data['semester']=$this->WelcomeModel->semesterList();
|
||||||
|
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$data['subject_list']=$this->WelcomeModel->subject_list($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
$this->load->view('subject_list',$data);
|
$this->load->view('subject_list',$data);
|
||||||
}
|
}
|
||||||
|
public function subjectDetail($id)
|
||||||
|
{
|
||||||
|
|
||||||
|
$data['lastId']=$this->WelcomeModel->getLastId();
|
||||||
|
$data['dep']=$this->WelcomeModel->dep_list();
|
||||||
|
$data['semester']=$this->WelcomeModel->semesterList();
|
||||||
|
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$data['subject_Det']=$this->WelcomeModel->subject_Detail($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$this->load->view('subject',$data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function projectDetail($id)
|
||||||
|
{
|
||||||
|
$data['lastId']=$this->WelcomeModel->getLastId();
|
||||||
|
$data['dep']=$this->WelcomeModel->dep_list();
|
||||||
|
$data['semester']=$this->WelcomeModel->semesterList();
|
||||||
|
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$data['projectdetail']=$this->WelcomeModel->projectDetail($id);
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
$this->load->view('project_details',$data);
|
||||||
|
}
|
||||||
public function about()
|
public function about()
|
||||||
{
|
{
|
||||||
|
$data['lastId']=$this->WelcomeModel->getLastId();
|
||||||
|
$data['dep']=$this->WelcomeModel->dep_list();
|
||||||
|
$data['semester']=$this->WelcomeModel->semesterList();
|
||||||
|
|
||||||
$this->load->view('about');
|
$this->load->view('about');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,14 +8,6 @@ class Department_model extends CI_Model {
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
function dep_list()
|
|
||||||
{
|
|
||||||
$this->db->select('*');
|
|
||||||
$this->db->from('department');
|
|
||||||
$this->db->where(array('status'=>1));
|
|
||||||
$query = $this->db->get();
|
|
||||||
//echo $this->db->last_query();exit;
|
|
||||||
return $query;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
119
application/models/WelcomeModel.php
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('BASEPATH'))
|
||||||
|
exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class WelcomeModel extends CI_Model {
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
|
function dep_list()
|
||||||
|
{
|
||||||
|
$this->db->select('*');
|
||||||
|
$this->db->from('department');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function getName($depId)
|
||||||
|
{
|
||||||
|
$this->db->select('name');
|
||||||
|
$this->db->from('department');
|
||||||
|
$this->db->where(array('id'=>$depId));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function semesterList()
|
||||||
|
{
|
||||||
|
$this->db->select('*');
|
||||||
|
$this->db->from('semester');
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function subject_list($id)
|
||||||
|
{
|
||||||
|
$this->db->select('s.code,s.name,s.id,d.name as degName,s.facultyId');
|
||||||
|
$this->db->from('subject as s');
|
||||||
|
$this->db->join('degree as d','d.id=s.degreeId','INNER');
|
||||||
|
$this->db->where(array('s.status'=>1,'degreeId'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function subject_Detail($id)
|
||||||
|
{
|
||||||
|
$this->db->select('id,code,name,facultyId,description');
|
||||||
|
$this->db->from('subject');
|
||||||
|
//$this->db->join('degree as d','d.id=s.degreeId','INNER');
|
||||||
|
$this->db->where(array('status'=>1,'id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function get_faculty($id)
|
||||||
|
{
|
||||||
|
$this->db->select('*');
|
||||||
|
$this->db->from('faculty');
|
||||||
|
$this->db->where(array('id'=>$id));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function getProjectList($subjectId)
|
||||||
|
{
|
||||||
|
$this->db->select('p.id,p.projectName,s.name as studentName,p.image');
|
||||||
|
$this->db->from('project as p');
|
||||||
|
$this->db->join('student as s','s.id=p.studentId','INNER');
|
||||||
|
$this->db->where(array('p.status'=>1,'p.subjectId'=>$subjectId));
|
||||||
|
$query = $this->db->get();
|
||||||
|
///echo $this->db->last_query();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function project_details($subjectId)
|
||||||
|
{
|
||||||
|
$this->db->select('p.id,p.projectName,s.name as studentName');
|
||||||
|
$this->db->from('project as p');
|
||||||
|
$this->db->join('student as s','s.id=p.studentId','INNER');
|
||||||
|
$this->db->where(array('p.status'=>1,'p.subjectId'=>$subjectId));
|
||||||
|
$query = $this->db->get();
|
||||||
|
///echo $this->db->last_query();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function projectDetail($projectId)
|
||||||
|
{
|
||||||
|
$this->db->select('p.id,p.projectName,p.description,s.name as studentName');
|
||||||
|
$this->db->from('project as p');
|
||||||
|
$this->db->join('student as s','s.id=p.studentId','INNER');
|
||||||
|
$this->db->where(array('p.status'=>1,'p.id'=>$projectId));
|
||||||
|
$query = $this->db->get();
|
||||||
|
///echo $this->db->last_query();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
function getGalleryList($projectId)
|
||||||
|
{
|
||||||
|
$this->db->select('id,title,image');
|
||||||
|
$this->db->from('projectdetail');
|
||||||
|
$this->db->where(array('status'=>1,'projectId'=>$projectId));
|
||||||
|
$query = $this->db->get();
|
||||||
|
///echo $this->db->last_query();
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getLastId()
|
||||||
|
{
|
||||||
|
$this->db->select('id,name,year');
|
||||||
|
$this->db->from('semester');
|
||||||
|
$this->db->order_by('id', 'desc');
|
||||||
|
$this->db->limit(1);
|
||||||
|
$this->db->where(array('status'=>1));
|
||||||
|
$query = $this->db->get();
|
||||||
|
//echo $this->db->last_query();exit;
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -326,6 +326,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- content end-->
|
<!-- content end-->
|
||||||
<?php include 'include/footer.php';?>
|
<?php $this->load->view('include/footer.php')?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,334 +0,0 @@
|
|||||||
<?php include 'include/header.php';?>
|
|
||||||
<!--=============== wrapper ===============-->
|
|
||||||
<div id="wrapper">
|
|
||||||
<!-- content-holder -->
|
|
||||||
<div class="content-holder">
|
|
||||||
<!-- content -->
|
|
||||||
<div class="content">
|
|
||||||
<!-- section -->
|
|
||||||
<section class="parallax-section header-section" data-scrollax-parent="true">
|
|
||||||
<div class="bg" data-bg="images/bg/1.jpg" data-scrollax="properties: { translateY: '200px' }"></div>
|
|
||||||
<div class="overlay op1"></div>
|
|
||||||
<div class="container big-container">
|
|
||||||
<div class="section-title">
|
|
||||||
<h3>Our Blog</h3>
|
|
||||||
<div class="separator trsp-separator"></div>
|
|
||||||
<h2>Our Journal </h2>
|
|
||||||
<p>Curabitur bibendum mi sed rhoncus aliquet. Nulla blandit porttitor justo, at posuere sem accumsan nec.</p>
|
|
||||||
<a href="#sec1" class="custom-scroll-link sect-scroll-link"><i class="fa fa-long-arrow-down"></i> <span>scroll down</span></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<!-- section end-->
|
|
||||||
<!-- section -->
|
|
||||||
<section id="sec1">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">
|
|
||||||
<div class="post-container fl-wrap">
|
|
||||||
<!-- post -->
|
|
||||||
<div class="post fl-wrap fw-post">
|
|
||||||
<h2><span>Blog post title</span></h2>
|
|
||||||
<ul class="blog-title-opt">
|
|
||||||
<li><a href="#">12 may 2017</a></li>
|
|
||||||
<li> - </li>
|
|
||||||
<li><a href="#">Interviews </a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
</ul>
|
|
||||||
<!-- blog media -->
|
|
||||||
<div class="blog-media fl-wrap">
|
|
||||||
<div class="single-slider fl-wrap" data-effects="slide">
|
|
||||||
<div class="swiper-container">
|
|
||||||
<div class="swiper-wrapper">
|
|
||||||
<div class="swiper-slide"><img src="images/folio/1.jpg" alt=""></div>
|
|
||||||
<div class="swiper-slide"><img src="images/folio/1.jpg" alt=""></div>
|
|
||||||
<div class="swiper-slide"><img src="images/folio/1.jpg" alt=""></div>
|
|
||||||
</div>
|
|
||||||
<div class="swiper-pagination"></div>
|
|
||||||
<div class="swiper-button-prev"><i class="fa fa-angle-left"></i></div>
|
|
||||||
<div class="swiper-button-next"><i class="fa fa-angle-right"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- blog media end -->
|
|
||||||
<div class="blog-text fl-wrap">
|
|
||||||
<div class="pr-tags fl-wrap">
|
|
||||||
<span>Tags : </span>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">Architecture</a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
<li><a href="#">Photography</a></li>
|
|
||||||
<li><a href="#">House</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<h3><a href="blog-single.html" >Aliquip pertinax <strong>vix ad </strong></a></h3>
|
|
||||||
<p>
|
|
||||||
Vestibulum orci felis, ullamcorper non condimentum non, ultrices ac nunc. Mauris non ligula suscipit, vulputate mi accumsan, dapibus felis. Nullam sed sapien dui. Nulla auctor sit amet sem non porta. Praesent eu massa vel diam laoreet elementum ac sed felis. Donec suscipit ultricies risus sed mollis. Donec volutpat porta risus posuere imperdiet. Sed viverra dolor sed dolor placerat ornare ut . Integer iaculis tellus nulla, quis imperdiet magna venenatis vitae..
|
|
||||||
</p>
|
|
||||||
<a href="blog-single.html" class="btn float-btn flat-btn">Read more </a>
|
|
||||||
<ul class="post-counter">
|
|
||||||
<li><i class="fa fa-eye"></i><span>687</span></li>
|
|
||||||
<li><i class="fa fa-comment-o"></i><span>10</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- post end-->
|
|
||||||
<!-- post -->
|
|
||||||
<div class="post fl-wrap fw-post">
|
|
||||||
<h2><span>Blog post title</span></h2>
|
|
||||||
<ul class="blog-title-opt">
|
|
||||||
<li><a href="#">12 may 2017</a></li>
|
|
||||||
<li> - </li>
|
|
||||||
<li><a href="#">Interviews </a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
</ul>
|
|
||||||
<!-- blog media -->
|
|
||||||
<div class="blog-media fl-wrap">
|
|
||||||
<a href="blog-single.html" ><img src="images/folio/1.jpg" class="respimg" alt=""></a>
|
|
||||||
</div>
|
|
||||||
<!-- blog media end -->
|
|
||||||
<div class="blog-text fl-wrap">
|
|
||||||
<div class="pr-tags fl-wrap">
|
|
||||||
<span>Tags : </span>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">Architecture</a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
<li><a href="#">Photography</a></li>
|
|
||||||
<li><a href="#">House</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<h3><a href="blog-single.html" >Aliquip pertinax <strong>vix ad </strong></a></h3>
|
|
||||||
<p>
|
|
||||||
Vestibulum orci felis, ullamcorper non condimentum non, ultrices ac nunc. Mauris non ligula suscipit, vulputate mi accumsan, dapibus felis. Nullam sed sapien dui. Nulla auctor sit amet sem non porta. Praesent eu massa vel diam laoreet elementum ac sed felis. Donec suscipit ultricies risus sed mollis. Donec volutpat porta risus posuere imperdiet. Sed viverra dolor sed dolor placerat ornare ut . Integer iaculis tellus nulla, quis imperdiet magna venenatis vitae..
|
|
||||||
</p>
|
|
||||||
<a href="blog-single.html" class="btn float-btn flat-btn">Read more </a>
|
|
||||||
<ul class="post-counter">
|
|
||||||
<li><i class="fa fa-eye"></i><span>687</span></li>
|
|
||||||
<li><i class="fa fa-comment-o"></i><span>10</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- post end-->
|
|
||||||
<!-- post -->
|
|
||||||
<div class="post fl-wrap fw-post">
|
|
||||||
<h2><span>Blog post title</span></h2>
|
|
||||||
<ul class="blog-title-opt">
|
|
||||||
<li><a href="#">12 may 2017</a></li>
|
|
||||||
<li> - </li>
|
|
||||||
<li><a href="#">Interviews </a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
</ul>
|
|
||||||
<!-- blog media -->
|
|
||||||
<div class="blog-media fl-wrap">
|
|
||||||
<div class="iframe-holder">
|
|
||||||
<div class="resp-video">
|
|
||||||
<iframe src="https://player.vimeo.com/video/24506451" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- blog media end -->
|
|
||||||
<div class="blog-text fl-wrap">
|
|
||||||
<div class="pr-tags fl-wrap">
|
|
||||||
<span>Tags : </span>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">Architecture</a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
<li><a href="#">Photography</a></li>
|
|
||||||
<li><a href="#">House</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<h3><a href="blog-single.html" >Aliquip pertinax <strong>vix ad </strong></a></h3>
|
|
||||||
<p>
|
|
||||||
Vestibulum orci felis, ullamcorper non condimentum non, ultrices ac nunc. Mauris non ligula suscipit, vulputate mi accumsan, dapibus felis. Nullam sed sapien dui. Nulla auctor sit amet sem non porta. Praesent eu massa vel diam laoreet elementum ac sed felis. Donec suscipit ultricies risus sed mollis. Donec volutpat porta risus posuere imperdiet. Sed viverra dolor sed dolor placerat ornare ut . Integer iaculis tellus nulla, quis imperdiet magna venenatis vitae..
|
|
||||||
</p>
|
|
||||||
<a href="blog-single.html" class="btn float-btn flat-btn">Read more </a>
|
|
||||||
<ul class="post-counter">
|
|
||||||
<li><i class="fa fa-eye"></i><span>687</span></li>
|
|
||||||
<li><i class="fa fa-comment-o"></i><span>10</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- post end-->
|
|
||||||
<!-- post -->
|
|
||||||
<div class="post fl-wrap fw-post">
|
|
||||||
<h2><span>Blog post title</span></h2>
|
|
||||||
<ul class="blog-title-opt">
|
|
||||||
<li><a href="#">12 may 2017</a></li>
|
|
||||||
<li> - </li>
|
|
||||||
<li><a href="#">Interviews </a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
</ul>
|
|
||||||
<!-- blog media -->
|
|
||||||
<div class="blog-media fl-wrap">
|
|
||||||
<a href="blog-single.html" ><img src="images/folio/1.jpg" class="respimg" alt=""></a>
|
|
||||||
</div>
|
|
||||||
<!-- blog media end -->
|
|
||||||
<div class="blog-text fl-wrap">
|
|
||||||
<div class="pr-tags fl-wrap">
|
|
||||||
<span>Tags : </span>
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">Architecture</a></li>
|
|
||||||
<li><a href="#">Design</a></li>
|
|
||||||
<li><a href="#">Photography</a></li>
|
|
||||||
<li><a href="#">House</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<h3><a href="blog-single.html" >Aliquip pertinax <strong>vix ad </strong></a></h3>
|
|
||||||
<p>
|
|
||||||
Vestibulum orci felis, ullamcorper non condimentum non, ultrices ac nunc. Mauris non ligula suscipit, vulputate mi accumsan, dapibus felis. Nullam sed sapien dui. Nulla auctor sit amet sem non porta. Praesent eu massa vel diam laoreet elementum ac sed felis. Donec suscipit ultricies risus sed mollis. Donec volutpat porta risus posuere imperdiet. Sed viverra dolor sed dolor placerat ornare ut . Integer iaculis tellus nulla, quis imperdiet magna venenatis vitae..
|
|
||||||
</p>
|
|
||||||
<a href="blog-single.html" class="btn float-btn flat-btn">Read more </a>
|
|
||||||
<ul class="post-counter">
|
|
||||||
<li><i class="fa fa-eye"></i><span>687</span></li>
|
|
||||||
<li><i class="fa fa-comment-o"></i><span>10</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- post end-->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- blog-sidebar -->
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="blog-sidebar fl-wrap fixed-bar">
|
|
||||||
<!-- widget-wrap -->
|
|
||||||
<div class="widget-wrap fl-wrap">
|
|
||||||
<h4 class="widget-title"><span>01.</span> Search</h4>
|
|
||||||
<div class="widget-container fl-wrap">
|
|
||||||
<div class="searh-holder">
|
|
||||||
<form action="#" class="searh-inner fl-wrap">
|
|
||||||
<input name="se" id="se" type="text" class="search" placeholder="Search.." value="Search..." />
|
|
||||||
<button class="search-submit" id="submit_btn"><i class="fa fa-search transition"></i> </button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- widget-wrap end -->
|
|
||||||
<!-- widget-wrap -->
|
|
||||||
<div class="widget-wrap fl-wrap">
|
|
||||||
<h4 class="widget-title"><span>02.</span> About Author</h4>
|
|
||||||
<div class="widget-container fl-wrap">
|
|
||||||
<div class="about-widget fl-wrap">
|
|
||||||
<img src="images/team/1.jpg" alt="">
|
|
||||||
<p>Etiam in nulla arcu, ut vehicula velit. Vivamus dapibus rutrum mi ut aliquam. In hac habitasse platea dictumst. Integer sagittis neque a tortor tempor in porta sem vulputate.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- widget-wrap end -->
|
|
||||||
<!-- widget-wrap -->
|
|
||||||
<div class="widget-wrap fl-wrap">
|
|
||||||
<h4 class="widget-title"><span>03.</span> Last Posts</h4>
|
|
||||||
<div class="widget-container fl-wrap">
|
|
||||||
<div class="widget-posts fl-wrap">
|
|
||||||
<ul>
|
|
||||||
<li class="clearfix">
|
|
||||||
<a href="#" class="widget-posts-img"><img src="images/folio/1.jpg" class="respimg" alt=""></a>
|
|
||||||
<div class="widget-posts-descr">
|
|
||||||
<a href="#" title="">Vivamus dapibus rutrum</a>
|
|
||||||
<span class="widget-posts-date"> 21 Mar 09.05 </span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="clearfix">
|
|
||||||
<a href="#" class="widget-posts-img"><img src="images/folio/1.jpg" class="respimg" alt=""></a>
|
|
||||||
<div class="widget-posts-descr">
|
|
||||||
<a href="#" title=""> In hac habitasse platea</a>
|
|
||||||
<span class="widget-posts-date"> 7 Mar 18.21 </span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="clearfix">
|
|
||||||
<a href="#" class="widget-posts-img"><img src="images/folio/1.jpg" class="respimg" alt=""></a>
|
|
||||||
<div class="widget-posts-descr">
|
|
||||||
<a href="#" title="">Tortor tempor in porta</a>
|
|
||||||
<span class="widget-posts-date"> 7 Mar 16.42 </span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="clearfix">
|
|
||||||
<a href="#" class="widget-posts-img"><img src="images/folio/1.jpg" class="respimg" alt=""></a>
|
|
||||||
<div class="widget-posts-descr">
|
|
||||||
<a href="#" title="">Praesent aliquet tortor</a>
|
|
||||||
<span class="widget-posts-date"> 2 Mar 14.42 </span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- widget-wrap end -->
|
|
||||||
<!-- widget-wrap -->
|
|
||||||
<div class="widget-wrap fl-wrap">
|
|
||||||
<h4 class="widget-title"><span>04.</span> Tags</h4>
|
|
||||||
<div class="widget-container fl-wrap">
|
|
||||||
<ul class="tagcloud">
|
|
||||||
<li><a href='#' class="transition link">Portfolio</a></li>
|
|
||||||
<li><a href='#' class="transition link">Tag</a></li>
|
|
||||||
<li><a href='#' class="transition link">Demo</a></li>
|
|
||||||
<li><a href='#' class="transition link">Blog</a></li>
|
|
||||||
<li><a href='#' class="transition link">Photography</a></li>
|
|
||||||
<li><a href='#' class="transition link">Web desighn</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- widget-wrap end -->
|
|
||||||
<!-- widget-wrap -->
|
|
||||||
<div class="widget-wrap fl-wrap">
|
|
||||||
<h4 class="widget-title"><span>05.</span>Our Instagram</h4>
|
|
||||||
<div class="widget-container fl-wrap">
|
|
||||||
<div class='jr-insta-thumb'>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="#"><img src="images/instagram/1.jpg" alt=""></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#"><img src="images/instagram/1.jpg" alt=""></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#"><img src="images/instagram/1.jpg" alt=""></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#"><img src="images/instagram/1.jpg" alt=""></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#"><img src="images/instagram/1.jpg" alt=""></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="#"><img src="images/instagram/1.jpg" alt=""></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- widget-wrap end -->
|
|
||||||
<!-- widget-wrap -->
|
|
||||||
<div class="widget-wrap fl-wrap">
|
|
||||||
<h4 class="widget-title"><span>06.</span> Categories</h4>
|
|
||||||
<div class="widget-container fl-wrap">
|
|
||||||
<ul class="cat-item">
|
|
||||||
<li><a href="#">Standard</a> <span>(3)</span></li>
|
|
||||||
<li><a href="#">Video</a> <span>(6) </span></li>
|
|
||||||
<li><a href="#">Gallery</a> <span>(12) </span></li>
|
|
||||||
<li><a href="#">Quotes</a> <span>(4)</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- widget-wrap end -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- blog-sidebar end -->
|
|
||||||
<div class="limit-box fl-wrap"></div>
|
|
||||||
</div>
|
|
||||||
<div class="content-nav blog-nav">
|
|
||||||
<ul>
|
|
||||||
<li><a href="blog.html" class="ln"><i class="fa fa fa-angle-left"></i><span class="tooltip">Prev - Page 1</span></a></li>
|
|
||||||
<li>
|
|
||||||
<a href="#" class="cur-page"><span>Page 02. </span></a>
|
|
||||||
</li>
|
|
||||||
<li><a href="blog.html" class="rn"><i class="fa fa fa-angle-right"></i><span class="tooltip">Next - Page 3 </span></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<!-- section end-->
|
|
||||||
</div>
|
|
||||||
<!-- content end -->
|
|
||||||
<?php include 'include/footer.php';?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,109 +0,0 @@
|
|||||||
<?php include 'include/header.php';?>
|
|
||||||
<!--=============== wrapper ===============-->
|
|
||||||
<div id="wrapper">
|
|
||||||
<!-- content-holder -->
|
|
||||||
<div class="content-holder">
|
|
||||||
<!-- content -->
|
|
||||||
<div class="content">
|
|
||||||
<!-- section -->
|
|
||||||
<section class="parallax-section header-section" data-scrollax-parent="true">
|
|
||||||
<div class="bg" data-bg="images/bg/1.jpg" data-scrollax="properties: { translateY: '200px' }"></div>
|
|
||||||
<div class="overlay"></div>
|
|
||||||
<div class="container big-container">
|
|
||||||
<div class="section-title">
|
|
||||||
<h3>Contact Details</h3>
|
|
||||||
<div class="separator trsp-separator"></div>
|
|
||||||
<h2>Get In Touch <br> with us</h2>
|
|
||||||
<p>Curabitur bibendum mi sed rhoncus aliquet. Nulla blandit porttitor justo, at posuere sem accumsan nec.</p>
|
|
||||||
<a href="#sec1" class="custom-scroll-link sect-scroll-link"><i class="fa fa-long-arrow-down"></i> <span>scroll down</span></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<!-- section end-->
|
|
||||||
<!-- section -->
|
|
||||||
<section >
|
|
||||||
<div class="container">
|
|
||||||
<div class="contact-details-wrap fl-wrap" id="sec1">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="small-sec-title">
|
|
||||||
<h3>Contact details :</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-9">
|
|
||||||
<div class="contact-details fl-wrap">
|
|
||||||
<div class="row border-dec">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h4><span>01.</span>Office in New York</h4>
|
|
||||||
<ul>
|
|
||||||
<li><span>Mail :</span><a href="#" target="_blank">yourmail@domain.com</a></li>
|
|
||||||
<li><span>Adress :</span><a href="#" target="_blank">USA 27TH Brooklyn NY</a></li>
|
|
||||||
<li><span>Phone :</span><a href="#">+7(111)123456789</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h4><span>02.</span>Work Hours</h4>
|
|
||||||
<ul>
|
|
||||||
<li><span>Monday - Friday : </span> 08h.00 - 17h.30</li>
|
|
||||||
<li><span>Saturday: </span> 08h.00 - 12h.00 </li>
|
|
||||||
<li><span>Sunday :</span> Off work </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="map-box">
|
|
||||||
<div id="map-canvas"></div>
|
|
||||||
</div>
|
|
||||||
<div class="contact-details-wrap fl-wrap">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<div class="small-sec-title">
|
|
||||||
<h3>Get in Touch : </h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-9">
|
|
||||||
<!-- contact form -->
|
|
||||||
<div class="contact-form-holder fl-wrap">
|
|
||||||
<div id="contact-form">
|
|
||||||
<div id="message"></div>
|
|
||||||
<form method="post" action="php/contact.php" name="contactform" id="contactform">
|
|
||||||
<input name="name" type="text" id="name" onClick="this.select()" value="Name" >
|
|
||||||
<input name="email" type="text" id="email" onClick="this.select()" value="E-mail" >
|
|
||||||
<input type="text" name="phone" id="phone" onClick="this.select()" value="Phone" />
|
|
||||||
<textarea name="comments" id="comments" onClick="this.select()" >Message</textarea>
|
|
||||||
<div class="verify-wrap">
|
|
||||||
<span class="verify-text"> How many gnomes were in the story about the "Snow-white" ?</span>
|
|
||||||
<input name="verify" type="text" id="verify" onClick="this.select()" value="0" >
|
|
||||||
</div>
|
|
||||||
<button type="submit" id="submit" data-top-bottom="transform: translateY(-50px);" data-bottom-top="transform: translateY(50px);"><span>Send Message </span></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- contact form end-->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- partcile-dec -->
|
|
||||||
<div class="partcile-dec" data-parcount="200"></div>
|
|
||||||
<!-- partcile-dec end-->
|
|
||||||
</section>
|
|
||||||
<!-- section end-->
|
|
||||||
<!-- social-wrap -->
|
|
||||||
<div class="social-wrap fl-wrap">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#" target="_blank" ><i class="fa fa-facebook"></i></a></li>
|
|
||||||
<li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li>
|
|
||||||
<li><a href="#" target="_blank" ><i class="fa fa-instagram"></i></a></li>
|
|
||||||
<li><a href="#" target="_blank" ><i class="fa fa-pinterest"></i></a></li>
|
|
||||||
<li><a href="#" target="_blank" ><i class="fa fa-tumblr"></i></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!-- social-wrap end-->
|
|
||||||
</div>
|
|
||||||
<?php include 'include/footer.php';?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
8
application/views/errors/cli/error_404.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
echo "\nERROR: ",
|
||||||
|
$heading,
|
||||||
|
"\n\n",
|
||||||
|
$message,
|
||||||
|
"\n\n";
|
8
application/views/errors/cli/error_db.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
echo "\nDatabase error: ",
|
||||||
|
$heading,
|
||||||
|
"\n\n",
|
||||||
|
$message,
|
||||||
|
"\n\n";
|
21
application/views/errors/cli/error_exception.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||||
|
|
||||||
|
An uncaught Exception was encountered
|
||||||
|
|
||||||
|
Type: <?php echo get_class($exception), "\n"; ?>
|
||||||
|
Message: <?php echo $message, "\n"; ?>
|
||||||
|
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||||
|
Line Number: <?php echo $exception->getLine(); ?>
|
||||||
|
|
||||||
|
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||||
|
|
||||||
|
Backtrace:
|
||||||
|
<?php foreach ($exception->getTrace() as $error): ?>
|
||||||
|
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||||
|
File: <?php echo $error['file'], "\n"; ?>
|
||||||
|
Line: <?php echo $error['line'], "\n"; ?>
|
||||||
|
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||||
|
<?php endif ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
|
||||||
|
<?php endif ?>
|
8
application/views/errors/cli/error_general.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
echo "\nERROR: ",
|
||||||
|
$heading,
|
||||||
|
"\n\n",
|
||||||
|
$message,
|
||||||
|
"\n\n";
|
21
application/views/errors/cli/error_php.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||||
|
|
||||||
|
A PHP Error was encountered
|
||||||
|
|
||||||
|
Severity: <?php echo $severity, "\n"; ?>
|
||||||
|
Message: <?php echo $message, "\n"; ?>
|
||||||
|
Filename: <?php echo $filepath, "\n"; ?>
|
||||||
|
Line Number: <?php echo $line; ?>
|
||||||
|
|
||||||
|
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||||
|
|
||||||
|
Backtrace:
|
||||||
|
<?php foreach (debug_backtrace() as $error): ?>
|
||||||
|
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||||
|
File: <?php echo $error['file'], "\n"; ?>
|
||||||
|
Line: <?php echo $error['line'], "\n"; ?>
|
||||||
|
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||||
|
<?php endif ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
|
||||||
|
<?php endif ?>
|
11
application/views/errors/cli/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>403 Forbidden</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>Directory access is forbidden.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
64
application/views/errors/html/error_404.php
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
?><!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>404 Page Not Found</title>
|
||||||
|
<style type="text/css">
|
||||||
|
|
||||||
|
::selection { background-color: #E13300; color: white; }
|
||||||
|
::-moz-selection { background-color: #E13300; color: white; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 40px;
|
||||||
|
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||||
|
color: #4F5155;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #003399;
|
||||||
|
background-color: transparent;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #444;
|
||||||
|
background-color: transparent;
|
||||||
|
border-bottom: 1px solid #D0D0D0;
|
||||||
|
font-size: 19px;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0 0 14px 0;
|
||||||
|
padding: 14px 15px 10px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||||
|
font-size: 12px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
border: 1px solid #D0D0D0;
|
||||||
|
color: #002166;
|
||||||
|
display: block;
|
||||||
|
margin: 14px 0 14px 0;
|
||||||
|
padding: 12px 10px 12px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
margin: 10px;
|
||||||
|
border: 1px solid #D0D0D0;
|
||||||
|
box-shadow: 0 0 8px #D0D0D0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 12px 15px 12px 15px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<h1><?php echo $heading; ?></h1>
|
||||||
|
<?php echo $message; ?>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
64
application/views/errors/html/error_db.php
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
?><!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Database Error</title>
|
||||||
|
<style type="text/css">
|
||||||
|
|
||||||
|
::selection { background-color: #E13300; color: white; }
|
||||||
|
::-moz-selection { background-color: #E13300; color: white; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 40px;
|
||||||
|
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||||
|
color: #4F5155;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #003399;
|
||||||
|
background-color: transparent;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #444;
|
||||||
|
background-color: transparent;
|
||||||
|
border-bottom: 1px solid #D0D0D0;
|
||||||
|
font-size: 19px;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0 0 14px 0;
|
||||||
|
padding: 14px 15px 10px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||||
|
font-size: 12px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
border: 1px solid #D0D0D0;
|
||||||
|
color: #002166;
|
||||||
|
display: block;
|
||||||
|
margin: 14px 0 14px 0;
|
||||||
|
padding: 12px 10px 12px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
margin: 10px;
|
||||||
|
border: 1px solid #D0D0D0;
|
||||||
|
box-shadow: 0 0 8px #D0D0D0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 12px 15px 12px 15px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<h1><?php echo $heading; ?></h1>
|
||||||
|
<?php echo $message; ?>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
32
application/views/errors/html/error_exception.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||||
|
|
||||||
|
<h4>An uncaught Exception was encountered</h4>
|
||||||
|
|
||||||
|
<p>Type: <?php echo get_class($exception); ?></p>
|
||||||
|
<p>Message: <?php echo $message; ?></p>
|
||||||
|
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||||
|
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||||
|
|
||||||
|
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||||
|
|
||||||
|
<p>Backtrace:</p>
|
||||||
|
<?php foreach ($exception->getTrace() as $error): ?>
|
||||||
|
|
||||||
|
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||||
|
|
||||||
|
<p style="margin-left:10px">
|
||||||
|
File: <?php echo $error['file']; ?><br />
|
||||||
|
Line: <?php echo $error['line']; ?><br />
|
||||||
|
Function: <?php echo $error['function']; ?>
|
||||||
|
</p>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php endforeach ?>
|
||||||
|
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
|
</div>
|