20230111
This commit is contained in:
dotwingssoftware 2023-01-11 12:47:57 +05:30
parent d5a0e0987c
commit e71c4c7872
30 changed files with 611 additions and 1024 deletions

View File

@ -53,6 +53,7 @@ $route['default_controller'] = 'welcome';
$route['404_override'] = ''; $route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE; $route['translate_uri_dashes'] = FALSE;
$route['dashboard'] = 'welcome/dashboard'; $route['dashboard'] = 'welcome/dashboard';
$route['logout'] = 'welcome/logout';
//Role// //Role//
$route['roles'] = 'role/listrole'; $route['roles'] = 'role/listrole';
@ -63,16 +64,22 @@ $route['delete_role'] = 'role/deleterole';
//emplayee// //emplayee//
$route['employee'] = 'employee/employee_list'; $route['employee'] = 'employee/employee_list';
$route['add'] = 'employee/add_list'; $route['add-employee'] = 'employee/add_employee';
$route['add_employee'] = 'employee/add_employee';
$route['edit_employees/(:num)'] = 'employee/editemployee/$1'; $route['edit_employees/(:num)'] = 'employee/editemployee/$1';
$route['deleted_employee'] = 'employee/deleted_employee'; $route['deleted_employee'] = 'employee/deleted_employee';
//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'] = 'department/edit_department'; $route['edit_department/(:num)'] = 'department/edit_department/$1';
$route['delete_department'] = 'department/delete_department'; $route['deleted_department'] = 'department/deleted_department';
//Degree//
$route['degree'] = 'degree/degree_list';
$route['add_degree'] = 'degree/add_degree';
$route['edit_degree/(:num)'] = 'department/edit_department/$1';
$route['deleted_department'] = 'department/deleted_department';
//Semester// //Semester//
$route['semester'] = 'semester/semester_list'; $route['semester'] = 'semester/semester_list';

View File

@ -1,27 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dashboard extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function add()
{
$this->load->view('welcome/dashboarde');
}
}

View File

@ -0,0 +1,142 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Degree extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('Degree_model');
$this->load->model('Commonsql_model');
}
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function degree_list()
{
if($this->session->userdata('id')==""){redirect('');}
$data['deg']=$this->Degree_model->deg_list();
$this->load->view('degree/degree_list',$data);
}
function add_degree()
{
$data['dep']=$this->Degree_model->get_dep();
$this->load->view('degree/add_degree',$data);
if($this->input->post('submit'))
{
$name=$this->input->post('name');
$depId=$this->input->post('depId');
$table="degree";
$values=array('name'=>$name,
'departmentId'=>$depId,
'createdOn'=>date('Y-m-d'),
'createdBy'=>1,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
if($result)
{
$this->session->set_userdata('suc','successfully added');
redirect('degree');
}
else
{
$this->session->set_userdata('err','Please try again');
redirect('degree');
}
}
}
function edit_department($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'))
{
$name=$this->input->post('name');
$code=$this->input->post('code');
$year=$this->input->post('year');
$image=$this->input->post('image');
//$primaryid=$this->input->post('hiddendepid');
$table="department";
$where=array("id"=>$id);
$values=array('name'=>$name,
'code'=>$code,
'year'=>$year,
'image'=>$image,
'updatedOn'=>date('Y-m-d'),
'updatedBy'=>1,
'status'=>1);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
//echo $this->db->last_query();exit;
if($result)
{
$this->session->set_userdata('suc','successfully Updated');
redirect('department');
}
else
{
$this->session->set_userdata('err','Please try again');
redirect('department');
}
}
}
function deleted_department()
{
if($this->input->post('submit'))
{
$id=$this->input->post('hiddenpass');
//echo $id ; exit;
$table="department";
$where=array("id"=>$id);
$values=array('status'=>0);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
{
$this->session->set_userdata('suc','successfully deleted');
redirect('department');
}
else
{
$this->session->set_userdata('err','Please try again');
redirect('department');
}
}
}
}

View File

@ -36,20 +36,21 @@ class Department extends CI_Controller {
function add_department() function add_department()
{ {
$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');
$table="department"; $table="department";
$values=array('name'=>$name, $values=array('name'=>$name,
'code'=>$code, 'code'=>$code,
'year'=>$year, 'year'=>$year,
//'created_on'=>date('Y-m-d'), 'image'=>$image,
'createdOn'=>date('Y-m-d'),
'createdBy'=>1, 'createdBy'=>1,
'status'=>1); 'status'=>1);
@ -69,22 +70,29 @@ class Department extends CI_Controller {
} }
function edit_department() function edit_department($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');
$primaryid=$this->input->post('hiddendepid'); $image=$this->input->post('image');
//$primaryid=$this->input->post('hiddendepid');
$table="department"; $table="department";
$where=array("dep_id"=>$primaryid); $where=array("id"=>$id);
$values=array('name'=>$name, $values=array('name'=>$name,
'code'=>$code, 'code'=>$code,
'year'=>$year, 'year'=>$year,
//'updated_on'=>date('Y-m-d'), 'image'=>$image,
'updatedOn'=>date('Y-m-d'),
'updatedBy'=>1, 'updatedBy'=>1,
'status'=>1); 'status'=>1);
@ -101,23 +109,21 @@ class Department extends CI_Controller {
$this->session->set_userdata('err','Please try again'); $this->session->set_userdata('err','Please try again');
redirect('department'); redirect('department');
} }
//echo $this->db->last_query();exit;
} }
//$this->load->view('department/department_list',$data);
} }
function delete_department() function deleted_department()
{ {
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$id=$this->input->post('hiddenpass');
$primaryid=$this->input->post('hiddengffgdtpid'); //echo $id ; exit;
//echo $primaryid ; exit;
$table="department"; $table="department";
$where=array("dep_id"=>$primaryid); $where=array("id"=>$id);
$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)

View File

@ -9,29 +9,24 @@ public function __construct()
$this->load->model('Commonsql_model'); $this->load->model('Commonsql_model');
} }
public function listrole()
{
$this->load->view('roles/role_list');
}
public function employee_list() public function employee_list()
{ {
$data['emp']=$this->Employee_model->list_emp(); $data['emp']=$this->Employee_model->list_emp();
$this->load->view('employee/employee',$data); $this->load->view('employee/list',$data);
}
public function add_list()
{
$this->load->view('add_emplayee/add');
} }
function add_employee() function add_employee()
{ {
$data['role']=$this->Employee_model->list_role();
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$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');
$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');
@ -43,6 +38,7 @@ public function __construct()
$table="employee"; $table="employee";
$values=array('name'=>$employeename, $values=array('name'=>$employeename,
'mobileNumber'=>$mobileNumber, 'mobileNumber'=>$mobileNumber,
'roleId'=>$roleId,
'address'=>$address, 'address'=>$address,
'email'=>$email, 'email'=>$email,
'pincode'=>$code, 'pincode'=>$code,
@ -54,18 +50,19 @@ public function __construct()
'status'=>1); 'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values); $result=$this->Commonsql_model->insert_table($table,$values);
if($result) if($result)
{ {
$this->session->set_userdata('suc','successfully added'); $this->session->set_userdata('suc','successfully added');
redirect('employee'); redirect('employee');
} }
else else
{ {
$this->session->set_userdata('err','Please try again'); $this->session->set_userdata('err','Please try again');
redirect('employee'); redirect('employee');
} }
} }
$this->load->view('employee/add',$data);
} }
function editemployee($empid) function editemployee($empid)
{ {
@ -126,7 +123,7 @@ public function __construct()
{ {
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$empid=$this->input->post('hiddenpass'); $empid=$this->input->post('hiddenid');
$table="employee"; $table="employee";
$where=array("id"=>$empid); $where=array("id"=>$empid);

View File

@ -38,6 +38,7 @@ class Project extends CI_Controller {
$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['fac']=$this->Project_model->get_fac();
$data['sub']=$this->Project_model->get_sub();
$this->load->view('project/add_project',$data); $this->load->view('project/add_project',$data);
@ -47,12 +48,13 @@ class Project extends CI_Controller {
$date=$this->input->post('date'); $date=$this->input->post('date');
$student=$this->input->post('student'); $student=$this->input->post('student');
$semester=$this->input->post('semester'); $semester=$this->input->post('semester');
$gender=$this->input->post('gender'); $subject=$this->input->post('subject');
//$gender=$this->input->post('gender');
$department=$this->input->post('department'); $department=$this->input->post('department');
$designation=$this->input->post('designation'); $description=$this->input->post('description');
$faculty=$this->input->post('faculty'); $faculty=$this->input->post('faculty');
$drivelink=$this->input->post('drive'); $drivelink=$this->input->post('drivelink');
$vedio=$this->input->post('vedio'); $video=$this->input->post('vedio');
$image=$this->input->post('image'); $image=$this->input->post('image');
$table="project"; $table="project";
@ -61,11 +63,12 @@ class Project extends CI_Controller {
'student'=>$student, 'student'=>$student,
'semester'=>$semester, 'semester'=>$semester,
'department'=>$department, 'department'=>$department,
'gender'=>$gender, 'subject'=>$subject,
'designation'=>$designation, //'gender'=>$gender,
'description'=>$description,
'faculty'=>$faculty, 'faculty'=>$faculty,
'drivelink'=>$drivelink, 'drivelink'=>$drivelink,
'vedio'=>$vedio, 'vedio'=>$video,
'image'=>$image, 'image'=>$image,
'createdOn'=>date('Y-m-d'), 'createdOn'=>date('Y-m-d'),
'createdBy'=>1, 'createdBy'=>1,
@ -98,12 +101,13 @@ class Project extends CI_Controller {
$date=$this->input->post('date'); $date=$this->input->post('date');
$student=$this->input->post('student'); $student=$this->input->post('student');
$semester=$this->input->post('semester'); $semester=$this->input->post('semester');
$gender=$this->input->post('gender'); $subject=$this->input->post('subject');
//$gender=$this->input->post('gender');
$department=$this->input->post('department'); $department=$this->input->post('department');
$designation=$this->input->post('designation'); $description=$this->input->post('description');
$faculty=$this->input->post('faculty'); $faculty=$this->input->post('faculty');
$drivelink=$this->input->post('drive'); $drivelink=$this->input->post('drivelink');
$vedio=$this->input->post('vedio'); $video=$this->input->post('vedio');
$image=$this->input->post('image'); $image=$this->input->post('image');
@ -113,12 +117,13 @@ class Project extends CI_Controller {
'date'=>$date, 'date'=>$date,
'student'=>$student, 'student'=>$student,
'semester'=>$semester, 'semester'=>$semester,
'subject'=>$subject,
'department'=>$department, 'department'=>$department,
'gender'=>$gender, // 'gender'=>$gender,
'designation'=>$designation, 'description'=>$description,
'faculty'=>$faculty, 'faculty'=>$faculty,
'drivelink'=>$drivelink, 'drivelink'=>$drivelink,
'vedio'=>$vedio, 'vedio'=>$video,
'image'=>$image, 'image'=>$image,
'updatedOn'=>date('Y-m-d'), 'updatedOn'=>date('Y-m-d'),
'updatedBy'=>1, 'updatedBy'=>1,

View File

@ -12,11 +12,13 @@ public function __construct()
public function listrole() public function listrole()
{ {
//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->input->post('submit')) if($this->input->post('submit'))
{ {
$role=$this->input->post('rolename'); $role=$this->input->post('rolename');
@ -44,6 +46,7 @@ public function __construct()
} }
function editrole() function editrole()
{ {
//if($this->session->userdata('id')==""){redirect('');}
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$rolename=$this->input->post('rolename'); $rolename=$this->input->post('rolename');
@ -74,6 +77,7 @@ public function __construct()
} }
function deleterole() function deleterole()
{ {
//if($this->session->userdata('id')==""){redirect('');}
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
@ -99,15 +103,5 @@ public function __construct()
} }
} }
//profile start//
public function profile_list()
{
//$data['rol']=$this->Role_model->list_rol();
$this->load->view('profile');
}
} }

View File

@ -2,63 +2,58 @@
defined('BASEPATH') OR exit('No direct script access allowed'); defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends CI_Controller { class Welcome extends CI_Controller {
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$this->load->model('Common_model'); $this->load->model('Common_model');
} }
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function index() public function index()
{ {
$this->load->view('login'); $this->load->view('login');
} }
public function dashboard() public function dashboard()
{ {
$this->load->view('dashboard'); $this->load->view('dashboard');
} }
public function admin_login() public function admin_login()
{ {
$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);
if($check->num_rows()>0) if($check->num_rows()>0)
{ {
$ch =$check->row();
$ch =$check->row(); $this->session->set_userdata('username',$ch->username);
//$usertype=$ch->user_type; $this->session->set_userdata('id',$ch->id);
//$this->session->set_userdata('user_type',$ch->user_type); $this->session->set_userdata('suc',' Successfully Logged in..!');
$this->session->set_userdata('username',$ch->username); if($usertype!=2){
$this->session->set_userdata('id',$ch->id); redirect('dashboard');}
$this->session->set_userdata('suc',' Successfully Logged in..!'); else{
if($usertype!=2){ redirect('dashboard');}
redirect('dashboard');} }
else{ else
redirect('dashboard');} {
} $this->session->set_userdata('err','The username or password is incorrect.');
else redirect('dashboard');
{ }
$this->session->set_userdata('err','The username or password is incorrect.');
redirect('dashboard');
}
} }
public function logout()
{
$admin_id=$this->session->userdata('id');
$data = array('id' => '', 'username' => '');
$this->session->unset_userdata($data);
$this->session->sess_destroy();
redirect('');
}
} }

View File

@ -0,0 +1,41 @@
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Degree_model extends CI_Model {
public function __construct() {
parent::__construct();
}
function deg_list()
{
$this->db->select('*');
$this->db->from('degree');
$this->db->where(array('status'=>1));
$query = $this->db->get();
//echo $this->db->last_query();exit;
return $query;
}
function get_deg($id)
{
$this->db->select('*');
$this->db->from('degree');
$this->db->where(array('status'=>1,'id'=>$id));
$query = $this->db->get();
//echo $this->db->last_query();exit;
return $query;
}
function get_dep()
{
$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;
}
}

View File

@ -17,5 +17,15 @@ class Department_model extends CI_Model {
//echo $this->db->last_query();exit; //echo $this->db->last_query();exit;
return $query; return $query;
} }
function get_dep($id)
{
$this->db->select('*');
$this->db->from('department');
$this->db->where(array('status'=>1,'id'=>$id));
$query = $this->db->get();
//echo $this->db->last_query();exit;
return $query;
}
} }

View File

@ -7,7 +7,14 @@ class Employee_model extends CI_Model {
public function __construct() { public function __construct() {
parent::__construct(); parent::__construct();
} }
function list_role()
{
$this->db->select('id,name');
$this->db->from('role');
$this->db->where(array('status'=>1));
$query = $this->db->get();
return $query;
}
function list_emp() function list_emp()
{ {
$this->db->select('*'); $this->db->select('*');

View File

@ -15,6 +15,7 @@ class Project_model extends CI_Model {
$this->db->join('department as d','d.id=p.department','left' ); $this->db->join('department as d','d.id=p.department','left' );
$this->db->join('student as s','s.id=p.student','left' ); $this->db->join('student as s','s.id=p.student','left' );
$this->db->join('faculty as f','f.id=p.faculty','left' ); $this->db->join('faculty as f','f.id=p.faculty','left' );
//$this->db->join('subject as b','b.id=p.subject','left' );
$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;
@ -59,5 +60,14 @@ class Project_model extends CI_Model {
//echo $this->db->last_query();exit; //echo $this->db->last_query();exit;
return $query; return $query;
} }
function get_sub()
{
$this->db->select('*');
$this->db->from('subject');
$this->db->where(array('status'=>1));
$query = $this->db->get();
//echo $this->db->last_query();exit;
return $query;
}
} }

View File

@ -9,12 +9,12 @@
<div class="page-bar"> <div class="page-bar">
<div class="page-title-breadcrumb"> <div class="page-title-breadcrumb">
<div class=" pull-left"> <div class=" pull-left">
<div class="page-title">Add Semester</div> <div class="page-title">Add Degree</div>
</div> </div>
<ol class="breadcrumb page-breadcrumb pull-right"> <ol class="breadcrumb page-breadcrumb pull-right">
<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i> <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
</li> </li>
<li class="active">Semester</li> <li class="active">Degree</li>
</ol> </ol>
</div> </div>
</div> </div>
@ -23,33 +23,38 @@
<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">
<div class="card-head"> <div class="card-head">
<header>Semester</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_semester" method="post"> <form action="<?=base_url();?>add_degree" method="post">
<div class="form-body"> <div class="form-body">
<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 input-height" name="depId">
<option value="" selected="selected" id="departentId" >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-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">
<input type="text" name="name" data-required="1" placeholder="Enter name" class="form-control input-height">
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Hod.
<span class="required"> * </span>
</label>
<div class="col-md-5"> <div class="col-md-5">
<input name="hod" type="text" placeholder="Enter hod" class="form-control input-height" /> </div> <input name="name" type="text" placeholder="Enter Degree Name" class="form-control input-height" /> </div>
</div> </div>
<div class="form-group row">
<label class="control-label col-md-3">Staff
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input name="staff" type="text" placeholder="Enter staff" class="form-control input-height" /> </div>
</div>
</div> </div>
</div> </div>
<div class="form-actions"> <div class="form-actions">

View File

@ -11,12 +11,12 @@
<div class="page-bar"> <div class="page-bar">
<div class="page-title-breadcrumb"> <div class="page-title-breadcrumb">
<div class=" pull-left"> <div class=" pull-left">
<div class="page-title">Semester List</div> <div class="page-title">Degree List</div>
</div> </div>
<ol class="breadcrumb page-breadcrumb pull-right"> <ol class="breadcrumb page-breadcrumb pull-right">
<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i> <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
</li> </li>
<li class="active">Semester</li> <li class="active">Degree</li>
</ol> </ol>
</div> </div>
</div> </div>
@ -29,7 +29,7 @@
<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">
<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_semester">add <i class="fa fa-plus"></i></a> </button> data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_degree">add <i class="fa fa-plus"></i></a> </button>
</div> </div>
</div> </div>
@ -39,28 +39,29 @@
<thead> <thead>
<tr> <tr>
<th> S.No</th> <th> S.No</th>
<th> Department</th>
<th> Name </th> <th> Name </th>
<th> Action </th> <th> Action </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
if(isset($sem) && $sem->num_rows()>0) if(isset($deg) && $deg->num_rows()>0)
{ {
$i=1; $i=1;
foreach($sem->result() as $s) foreach($deg->result() as $d)
{ {
$id=$s->id; $id=$d->id;
$name=$s->name; $depId=$d->departmentId;
$name=$d->name;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
<td><?=$i;?></td> <td><?=$i;?></td>
<td><?=$depId;?></td>
<td><?=$name;?></td> <td><?=$name;?></td>
<td> <td>
<a href="<?=base_url();?>edit_semester/<?=$id;?>" class="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="editsemesterclass btn btn-danger btn-xs">
@ -95,7 +96,7 @@
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form action="<?=base_url();?>deleted_semester" method="post"> <form action="<?=base_url();?>deleted_department" method="post">
<div class="form-body"> <div class="form-body">
<div class="form-group row"> <div class="form-group row">

View File

@ -70,32 +70,35 @@
<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="EnterYour Name" class="form-control input-height"> <input type="text" name="name" data-required="1" placeholder="Enter Your Name" class="form-control input-height">
</div> </div>
</div> </div>
<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 name="code" type="text" placeholder="Enter Your Code" class="form-control input-height" /> </div> <input name="code" type="text" 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">No of 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 id="totalYears" name="totalyears" type="text" placeholder="Enter No of year" class="form-control input-height" /> </div> <input name="year" type="text" placeholder="Enter Your Year" class="form-control input-height" /> </div>
</div> </div>
<!----Multiple Rows--> <div class="form-group row">
<div id="multipleRow"> <label class="control-label col-md-3">Images
</label>
<div class="col-md-5 compose-editor">
<input type="file" name="image" placeholder="Enter img" class="form-control default" >
</div>
</div> </div>
<!----Multiple Rows--> </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">
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit"> <input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
@ -103,9 +106,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</form> </form>
</div> </div>
</div> </div>
@ -118,21 +118,56 @@
</div> </div>
</div> </div>
<?php $this->load->view('includes/footer');?> <?php $this->load->view('includes/footer');?>
<script>
<script> $(".departmentclass").click(function(){
$('#totalYears').keyup(function(e) { $('#Model').modal('show');
var rows_count = parseInt($(this).val()); var id=$(this).attr('data-id');
//var div_count = Math.ceil(rows_count/10); //alert(id);
resultHtml = '<div id="" class="form-group row"><label class="control-label col-md-3"><span class="required"></span></label><div class="col-md-2"><input name="totalyears" value="" readonly type="text" placeholder="Year" class="form-control input-height idCount" /></div><div class="col-md-1"><div class="form-check checkbox-xl"><input class="form-check-input oddCheck" style="width:30px;height:30px;margin-top:7px;" type="checkbox" id="checkbox-3"/><label class="form-check-label" style="margin-left:25px;margin-top:10px;">Odd</label></div></div><div class="col-md-2"><div class="form-check checkbox-xl"><input class="form-check-input evenCheck" style="width:30px;height:30px;margin-top:7px;" type="checkbox" id="checkbox-3"/><label class="form-check-label" style="margin-left:25px;margin-top:10px;">Even</label></div></div></div>'; $('#hiddenid').val(id);
var sTableData = ''; });
var value = ''; </script>
for(iRow=2;iRow<=rows_count;iRow++) <script type="text/javascript">
{ $(document).ready(function() {
sTableData = sTableData + resultHtml;
} var myPara = document.getElementById("example4");
sTableData = sTableData + resultHtml;
$('#txtNum').on('keyup', function(e) {
// console.log("work")
//var #txtNum = (e.numrows ? e.numrows : e.which);
var myPara = document.getElementById("example4");
//console.log(myPara);
$('#numrows').append(myPara);
//console.log(#numrows);
//var rowcount = $('#numrows tr').length;
//console.log(rowcount);
// $('#numrows').html(rowcount);
// $('#numrows').html($(this).val());
// $(this).focus().select();
// rowcount++;
$('#multipleRow').html(sTableData); });
}); });
</script> </script>
<script>
function myFunction() {
var input, filter, table, tr, td, i, txtValue;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("myTable");
tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[0];
if (td) {
txtValue = td.textContent || td.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script>

View File

@ -41,21 +41,22 @@
<th> S.No</th> <th> S.No</th>
<th> Name </th> <th> Name </th>
<th> Code </th> <th> Code </th>
<th> No Of The Year </th> <th> Total Year </th>
<th> Action </th> <th> Action </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
if(isset($sem) && $sem->num_rows()>0) if(isset($dep) && $dep->num_rows()>0)
{ {
$i=1; $i=1;
foreach($sem->result() as $s) foreach($dep->result() as $s)
{ {
$id=$s->id; $id=$s->id;
$name=$s->name; $name=$s->name;
$code=$s->code; $code=$s->code;
$year=$s->year; $year=$s->year;
$image=$s->image;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
<td><?=$i;?></td> <td><?=$i;?></td>
@ -101,7 +102,7 @@
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form action="<?=base_url();?>deleted_department" method="post"> <form action="<?=base_url();?>delete_department" method="post">
<div class="form-body"> <div class="form-body">
<div class="form-group row"> <div class="form-group row">

View File

@ -32,59 +32,71 @@
<div class="page-bar"> <div class="page-bar">
<div class="page-title-breadcrumb"> <div class="page-title-breadcrumb">
<div class=" pull-left"> <div class=" pull-left">
<div class="page-title">Edit Semester</div> <div class="page-title">Edit Department</div>
</div> </div>
<ol class="breadcrumb page-breadcrumb pull-right"> <ol class="breadcrumb page-breadcrumb pull-right">
<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i> <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
</li> </li>
<li class="active">Edit Semester</li> <li class="active">Edit Department</li>
</ol> </ol>
</div> </div>
</div> </div>
<!-- Midium Model --> <!-- Midium Model -->
<?php <?php
if(isset($sem) && $sem->num_rows()>0) if(isset($dep) && $dep->num_rows()>0)
{ {
$s=$sem->row(); $d=$dep->row();
$id=$s->id; $id=$d->id;
$name=$s->name; $name=$d->name;
$hod=$s->hod; $code=$d->code;
$staff=$s->staff; $year=$d->year;
$image=$d->image;
} ?> } ?>
<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">
<div class="card-head"> <div class="card-head">
<header>Edit Semester</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_semester/<?=$id;?>" method="post" > <form action="<?=base_url();?>edit_department/<?=$id;?>" 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">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="name" data-required="1" placeholder="Enter name" class="form-control input-height"> <input type="text" value="<?=$name;?>" name="name" data-required="1" placeholder="Enter Subject Name" class="form-control input-height">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Hod. <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 name="hod" value="<?=$hod;?>" type="text" placeholder="Enter hod" class="form-control error" /> <input name="code" value="<?=$code;?>" type="text" placeholder="Enter Subject Code" class="form-control error" />
</div> </div>
</div> </div>
<div class="form-group row">
<label class="control-label col-md-3">Staff.
<div class="form-group row">
<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="staff" value="<?=$staff;?>" type="text" placeholder="Enter Staff" class="form-control error" /> <input name="year" value="<?=$year;?>" type="text" placeholder="Enter Yaer" class="form-control input-height" /> </div>
</div>
</div> </div>
<div class="form-group row">
<label class="control-label col-md-3">Image
</label>
<div class="compose-editor">
<input name="image" value="<?=$image;?>" type="file" class="form-control" >
</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">

View File

@ -1,310 +0,0 @@
<!-- 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">
<div class="page-title-breadcrumb">
<div class=" pull-left">
<div class="page-title">Department List</div>
</div>
<ol class="breadcrumb page-breadcrumb pull-right">
<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=base_url();?>/dashboard">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
</li>
<li class="active">Department</li>
</ol>
</div>
</div>
<?php $this->load->view('includes/msg');?>
<div class="row">
<div class="col-md-8">
<div class="card card-topline-red">
<div class="card-body ">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-6">
<div class="btn-group">
<button type="button" class="btn btn-info"
data-toggle="modal" data-target="#mediumModel">Add <i class="fa fa-plus"></i></button>
</div>
</div>
</div>
<div class="table-scrollable">
<table class="table table-hover table-checkable order-column full-width" id="example4" >
<thead>
<tr>
<th> S.No </th>
<th> Name </th>
<th> Code </th>
<th> Action </th>
</tr>
</thead>
<tbody>
<?php
if(isset($dep) && $dep->num_rows()>0)
{
$i=1;
foreach($dep->result() as $r)
{
//$id=$r->id;
$dep_id=$r->dep_id;
$depname=$r->name;
$depcode=$r->code;
//echo $dep_id; exit;
?>
<tr class="odd gradeX">
<td><?=$i;?></td>
<td><?=$depname;?></td>
<td><?=$depcode;?></td>
<td>
<a href="javascript:;" data-id="<?=$dep_id;?>" data-name="<?=$depname;?>" data-code="<?=$depcode;?>"class="editdepclass btn btn-primary btn-xs ">
<i class="fa fa-pencil"></i>
</a>
<a href="javascript:;" data-id="<?=$dep_id;?>" class="deletedpeclass btn btn-danger btn-xs ">
<i class="fa fa-trash-o"></i>
</a>
</td>
</tr>
<?php $i=$i+1;} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end page content -->
<!-- Midium Model -->
<div class="modal fade" id="mediumModel" 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">Add Department</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="<?=base_url();?>add_department" 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="depname" data-required="1" placeholder="Enter name" class="form-control input-height">
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-4">Code
<span class="required"> * </span>
</label>
<div class="col-md-7">
<input type="text" name="depcode" data-required="1" placeholder="Enter code" class="form-control input-height">
</div>
</div>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover table-checkable order-column" id="example4">
<thead>
<tr>
<th>
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
<input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes" />
<span></span>
</label>
</th>
<th>Add</th>
<th>
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
<input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes" />
<span></span>
</label>
</th>
<th>evan</th>
</tr>
</thead>
<tbody>
<tr class="odd gradeX">
<td>
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
<input type="checkbox" class="checkboxes" value="1" />
<span></span>
</label>
</td>
<td>Add</td>
<td>
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
<input type="checkbox" class="checkboxes" value="1" />
<span></span>
</label>
</td>
<td>Event</td>
</tr>
<tr class="odd gradeX">
<td>
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
<input type="checkbox" class="checkboxes" value="1" />
<span></span>
</label>
</td>
<td>Add</td>
<td>
<label class="rt-chkbox rt-chkbox-single rt-chkbox-outline">
<input type="checkbox" class="checkboxes" value="1" />
<span></span>
</label>
</td>
<td>Event</td>
</tr>
</tbody>
</table>
</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 Department</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="<?=base_url();?>edit_department" 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="depname" data-required="1" id="editdepid" placeholder="Enter name" class="form-control input-height">
<input type="hidden" >
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-4">Code
<span class="required"> * </span>
</label>
<div class="col-md-7">
<input type="text" name="depcode" data-required="1" id="editdepcode" placeholder="Enter code" 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">delete Role</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="<?=base_url();?>delete_department" method="post">
<div class="form-body">
<div class="form-group row">
<p style="margin-left: 19px;">Do You Wante Delete?</p>
<input type="hidden" name="hiddengffgdtpid" id="hiddenid">
</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="Yes">
<button type="button" class="btn btn-default">No</button>
</div>
</div>
</div>
</div>
</form>
</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>
<script>
$(".editdepclass").click(function(){
$('#editmediumModel').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>

View File

@ -33,7 +33,27 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input type="text" name="employeename" data-required="1" placeholder="Enter name" class="form-control input-height"> <input type="text" name="employeename" data-validation="required" placeholder="Enter 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 input-height" 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;?>"><?=$roles->name;?></option><?php
}
}
?>
</select>
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
@ -41,7 +61,7 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="mobileNumber" type="text" data-required="1" placeholder="Enter Mobile Number" class="form-control input-height" /> <input name="mobileNumber" type="text" data-validation="required" placeholder="Enter Mobile Number" class="form-control input-height" />
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
@ -49,7 +69,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" data-validation="required" placeholder="Enter address" class="form-control" rows="5"></textarea>
</div> </div>
</div> </div>
@ -59,28 +79,18 @@
</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> <input type="email" data-validation="required" class="form-control input-height" name="email" placeholder="Email Address">
</span>
<input type="email" class="form-control input-height" name="email" placeholder="Email Address" data-validation="required">
</div> </div>
</div> </div>
</div> </div>
<!--<div class="form-group row">
<label class="control-label col-md-3">Profile.
</label>
<div class="col-md-5">
<input name="img" type="text" placeholder="Enter img" class="form-control input-height" />
</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" type="text" placeholder="Enter code" class="form-control input-height" /> <input name="code" type="text" data-validation="required" placeholder="Enter code" class="form-control input-height" />
</div> </div>
</div> </div>
@ -90,14 +100,14 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="User" type="text" placeholder="Enter username" class="form-control input-height" /> </div> <input name="User" type="text" data-validation="required" placeholder="Enter username" class="form-control" /> </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="text" data-validation="required" placeholder="Enter Password" class="form-control" /> </div>
</div> </div>
@ -105,7 +115,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" placeholder="Enter Your Image"class="form-control default" multiple> <input name="img" type="file" data-validation="required" placeholder="Enter Your Image"class="form-control default">
</div> </div>
</div> </div>
</div> </div>
@ -113,7 +123,7 @@
<div class="row"> <div class="row">
<div class="offset-md-3 col-md-9"> <div class="offset-md-3 col-md-9">
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit"> <input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
<button type="button" class="btn btn-default">Cancel</button> <button type="button" class="btn btn-default" data-dismiss="">Cancel</button>
</div> </div>
</div> </div>
</div> </div>
@ -129,6 +139,5 @@
</div> </div>
</div> </div>
<?php $this->load->view('includes/footer');?>
<script src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
<?php $this->load->view('includes/footer');?>

View File

@ -140,7 +140,7 @@
<div class="row"> <div class="row">
<div class="offset-md-3 col-md-9"> <div class="offset-md-3 col-md-9">
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit"> <input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
<button type="button" class="btn btn-default">Cancel</button> <button type="button" class="btn btn-default" data-dismiss="">Cancel</button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -29,7 +29,7 @@
<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">
<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">add <i class="fa fa-plus"></i></a> </button> data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add-employee">add <i class="fa fa-plus"></i></a> </button>
</div> </div>
</div> </div>

View File

@ -47,16 +47,7 @@
<ul class="nav navbar-nav navbar-left in"> <ul class="nav navbar-nav navbar-left in">
<li><a href="#" class="menu-toggler sidebar-toggler"><i class="icon-menu"></i></a></li> <li><a href="#" class="menu-toggler sidebar-toggler"><i class="icon-menu"></i></a></li>
</ul> </ul>
<form class="search-form-opened" action="#" method="GET">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search..." name="query">
<span class="input-group-btn">
<a href="javascript:;" class="btn submit">
<i class="icon-magnifier"></i>
</a>
</span>
</div>
</form>
<!-- start mobile menu --> <!-- start mobile menu -->
<a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
<span></span> <span></span>
@ -68,7 +59,7 @@
<!-- start language menu --> <!-- start language menu -->
<!-- end language menu --> <!-- end language menu -->
<!-- start notification dropdown --> <!-- start notification dropdown
<li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar"> <li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<i class="fa fa-bell-o"></i> <i class="fa fa-bell-o"></i>
@ -134,8 +125,9 @@
</li> </li>
</ul> </ul>
</li> </li>
-->
<!-- end notification dropdown --> <!-- end notification dropdown -->
<!-- start message dropdown --> <!-- start message dropdown
<li class="dropdown dropdown-extended dropdown-inbox" id="header_inbox_bar"> <li class="dropdown dropdown-extended dropdown-inbox" id="header_inbox_bar">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<i class="fa fa-envelope-o"></i> <i class="fa fa-envelope-o"></i>
@ -210,6 +202,7 @@
</li> </li>
</ul> </ul>
</li> </li>
-->
<!-- end message dropdown --> <!-- end message dropdown -->
<!-- start manage user dropdown --> <!-- start manage user dropdown -->
<li class="dropdown dropdown-user"> <li class="dropdown dropdown-user">
@ -228,24 +221,9 @@
<a href="<?=base_url();?>profile"> <a href="<?=base_url();?>profile">
<i class="icon-user"></i> Profile </a> <i class="icon-user"></i> Profile </a>
</li> </li>
<li> <li>
<a href="#"> <a href="<?=base_url();?>logout">
<i class="icon-settings"></i> Settings
</a>
</li>
<li>
<a href="#">
<i class="icon-directions"></i> Help
</a>
</li>
<li class="divider"> </li>
<li>
<a href="lock_screen.html">
<i class="icon-lock"></i> Lock
</a>
</li>
<li>
<a href="login.html">
<i class="icon-logout"></i> Log Out </a> <i class="icon-logout"></i> Log Out </a>
</li> </li>
</ul> </ul>

View File

@ -58,6 +58,12 @@
<i class="material-icons">gamepad</i> <i class="material-icons">gamepad</i>
<span class="title">Department / Course</span></a> <span class="title">Department / Course</span></a>
</li>
<li class="nav-item ">
<a href="<?=base_url();?>degree" class="nav-link nav-toggle">
<i class="material-icons"> school</i>
<span class="title">Degree</span></a>
</li> </li>
<li class="nav-item "> <li class="nav-item ">
<a href="<?=base_url();?>semester" class="nav-link nav-toggle"> <a href="<?=base_url();?>semester" class="nav-link nav-toggle">

View File

@ -48,8 +48,8 @@
<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"> <select class="form-control input-height" name="faculty">
<option value="" selected="selected">Select</option> <option value="" selected="selected" id="faculty_id" >Select</option>
<?php <?php
if(isset($fac) && $fac->num_rows()>0) if(isset($fac) && $fac->num_rows()>0)
{ {
@ -68,7 +68,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="student"> <select class="form-control input-height" id="sudent_id" name="student">
<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)
@ -90,26 +90,25 @@
<div class="col-md-5"> <div class="col-md-5">
<input name="semester" type="text" placeholder="Enter semester" class="form-control input-height" /> </div> <input name="semester" type="text" placeholder="Enter semester" 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">Subject Code
<label class="control-label col-md-3">Gender
<span class="required"> * </span>
</label>
<div class="col-md-5">
<select class="form-control input-height" name="gender">
<option value="">Select...</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Designation
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<textarea name="designation" placeholder=" Enter Designation" class="form-control" rows="5"></textarea> <select class="form-control input-height" name="subject">
</div> <option value="" selected="selected">Select</option>
<?php
if(isset($sub) && $sub->num_rows()>0)
{
foreach($sub->result() as $subject)
{
?> <option value="<?=$subject->id;?>"><?=$subject->code;?></option><?php
}
}
?>
</select>
</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.
@ -132,8 +131,16 @@
</div> </div>
</div> </div>
</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 name="description" placeholder=" Enter Designation" class="form-control" rows="5"></textarea>
</div>
</div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Vedio <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">
@ -144,10 +151,10 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="drive" type="text" placeholder="Enter Drive Link" class="form-control input-height" /> </div> <input name="drivelink" type="text" placeholder="Enter Drive Link" 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 Img <label class="control-label col-md-3">Project 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" multiple>
@ -176,4 +183,19 @@
<?php $this->load->view('includes/footer');?> <?php $this->load->view('includes/footer');?>
<script>
$(document).ready(function() {
function initializeSelect2(selectElementObj) {
selectElementObj.select2({
width: "100%",
tags: true
});
}
$("#faculty").each(function() {
initializeSelect2($(this));
});
});
</script>

View File

@ -49,10 +49,14 @@
$id=$p->id; $id=$p->id;
$date=$p->date; $date=$p->date;
$name=$p->projectName; $name=$p->projectName;
$faculty=$p->faculty;
$student=$p->student; $student=$p->student;
$semester=$p->semester; $semester=$p->semester;
$subject=$p->subject;
$department=$p->department; $department=$p->department;
$faculty=$p->faculty; $description=$p->description;
$video=$p->vedio;
//$drivelink=$p->drivelink;
$image=$p->image; $image=$p->image;
} ?> } ?>
@ -66,11 +70,11 @@
<form action="<?=base_url();?>edit_project/<?=$id;?>" method="post" > <form action="<?=base_url();?>edit_project/<?=$id;?>" 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">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="text" value="<?=$date;?>" name="date" data-required="1" placeholder="Enter name" class="form-control input-height"> <input type="date" value="<?=$date;?>" name="date" data-required="1" placeholder="Enter Date" class="form-control input-height">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
@ -78,7 +82,15 @@
<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="projectName" data-required="1" placeholder="Enter name" class="form-control input-height"> <input type="text" value="<?=$name;?>" name="projectName" data-required="1" placeholder="Enter Name" class="form-control input-height">
</div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Faculty Name
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input type="text" value="<?=$faculty;?>" name="faculty" 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">
@ -86,7 +98,7 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="student" value="<?=$student;?>" type="text" placeholder="Enter hod" class="form-control error" /> <input name="student" value="<?=$student;?>" type="text" placeholder="Enter Student" class="form-control error" />
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
@ -94,15 +106,15 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="semester" value="<?=$semester;?>" type="text" placeholder="Enter hod" class="form-control error" /> <input name="semester" value="<?=$semester;?>" type="text" placeholder="Enter Semester" class="form-control error" />
</div> </div>
</div> </div>
<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">Subject Code
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="faculty" value="<?=$faculty;?>" type="text" placeholder="Enter hod" class="form-control error" /> <input name="semester" value="<?=$subject;?>" type="text" placeholder="Enter Subject" class="form-control error" />
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
@ -110,22 +122,25 @@
<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 hod" 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">Gender <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">
<select class="form-control input-height" name="gender"> <input name="description" value="<?=$description;?>" type="text" placeholder="Enter Description" class="form-control input-height" /> </div>
<option value="">Select...</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Profile Img <label class="control-label col-md-3">Video
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input name="vedio" value="<?=$video;?>" type="text" placeholder="Enter Drive Link" class="form-control input-height" /> </div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">Project 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="<?=$image;?>" type="file" class="form-control" >

View File

@ -60,6 +60,7 @@
$name=$p->projectName; $name=$p->projectName;
$student=$p->studentName; $student=$p->studentName;
$semester=$p->semester; $semester=$p->semester;
//$subject=$p->subjectCode;
$department=$p->deptname; $department=$p->deptname;
$faculty=$p->facultyName; $faculty=$p->facultyName;
$image=$p->image; $image=$p->image;

View File

@ -100,20 +100,18 @@
<form action="<?=base_url();?>add_role" method="post"> <form action="<?=base_url();?>add_role" method="post">
<div class="form-body"> <div class="form-body">
<div class="form-group row"> <div class="form-group">
<label class="control-label col-md-4">Name <label class="control-label">Name<span class="required"> * </span></label>
<span class="required"> * </span>
</label> <input type="text" name="rolename" data-validation="required" placeholder="Enter name" class="form-control input-height">
<div class="col-md-7">
<input type="text" name="rolename" data-required="1" placeholder="Enter name" class="form-control input-height">
</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">
<input type="submit" id="add_role" name="submit" class="btn btn-info m-r-20" value="Submit"> <input type="submit" id="add_role" name="submit" class="btn btn-info m-r-20" value="Submit">
<button type="button" class="btn btn-default">Cancel</button> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div> </div>
</div> </div>
</div> </div>
@ -141,11 +139,12 @@
<div class="form-body"> <div class="form-body">
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-4">Role Name
<div class="col-md-12">
<label class="control-label">Role Name
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-7"> <input type="text" data-validation="required" name="rolename" id="editroleid" placeholder="Enter name" class="form-control input-height">
<input type="text" name="rolename" data-required="1" id="editroleid" placeholder="Enter name" class="form-control input-height">
<input type="hidden" name="hiddenroleid" id="hiddenroleid"> <input type="hidden" name="hiddenroleid" id="hiddenroleid">
</div> </div>
</div> </div>
@ -154,7 +153,7 @@
<div class="row"> <div class="row">
<div class="offset-md-3 col-md-9"> <div class="offset-md-3 col-md-9">
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit"> <input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
<button type="button" class="btn btn-default">Cancel</button> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div> </div>
</div> </div>
</div> </div>
@ -180,7 +179,7 @@
<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 want to delete?</p>
<input type="hidden" name="hiddengffgdtpid" id="hiddenid"> <input type="hidden" name="hiddengffgdtpid" id="hiddenid">
</div> </div>
@ -188,7 +187,7 @@
<div class="row"> <div class="row">
<div class="offset-md-3 col-md-9"> <div class="offset-md-3 col-md-9">
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes"> <input type="submit" name="submit" class="btn btn-info m-r-20" value="Yes">
<button type="button" class="btn btn-default">No</button> <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
</div> </div>
</div> </div>
</div> </div>
@ -204,6 +203,7 @@
<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 src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
<script> <script>
$(".editroleclass").click(function(){ $(".editroleclass").click(function(){
$('#editmediumModel').modal('show'); $('#editmediumModel').modal('show');

File diff suppressed because one or more lines are too long

View File

@ -1,388 +0,0 @@
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 06, 2023 at 08:39 AM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 7.4.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `mcgans`
--
-- --------------------------------------------------------
--
-- Table structure for table `department`
--
CREATE TABLE `department` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`code` varchar(100) NOT NULL,
`createdBy` int(11) NOT NULL,
`updatedBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`updatedOn` date NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `department`
--
INSERT INTO `department` (`id`, `name`, `code`, `createdBy`, `updatedBy`, `createdOn`, `updatedOn`, `status`) VALUES
(4, 'suji', '1', 1, 1, '0000-00-00', '0000-00-00', 0),
(5, 'ram', '2', 1, 0, '0000-00-00', '0000-00-00', 0),
(6, 'suji', '2', 1, 0, '0000-00-00', '0000-00-00', 0),
(7, 'ram', '2', 1, 0, '0000-00-00', '0000-00-00', 0),
(8, 'suji', '1', 1, 0, '0000-00-00', '0000-00-00', 0),
(9, 'suji', '3', 1, 0, '0000-00-00', '0000-00-00', 0),
(10, 'suji', '3', 1, 0, '0000-00-00', '0000-00-00', 0),
(11, 'ram', 'STDO123', 1, 1, '0000-00-00', '0000-00-00', 1),
(12, 'sujid', '10', 1, 1, '0000-00-00', '0000-00-00', 0),
(13, 'ram', '3', 1, 0, '0000-00-00', '0000-00-00', 0),
(14, 'noora', '6', 1, 0, '0000-00-00', '0000-00-00', 0),
(15, '', '', 1, 0, '0000-00-00', '0000-00-00', 0),
(16, '', '', 1, 0, '0000-00-00', '0000-00-00', 0),
(17, 'kala', '10', 1, 1, '0000-00-00', '0000-00-00', 0),
(18, 'kala', '2', 1, 0, '0000-00-00', '0000-00-00', 1),
(19, 'ECE', 'ECE123', 1, 0, '0000-00-00', '0000-00-00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `departmentdetail`
--
CREATE TABLE `departmentdetail` (
`id` int(11) NOT NULL,
`departmentId` int(11) NOT NULL,
`year` int(11) NOT NULL,
`totalSemester` int(11) NOT NULL,
`type` int(11) NOT NULL COMMENT '1="odd",2="even"',
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `employee`
--
CREATE TABLE `employee` (
`id` int(11) NOT NULL,
`roleId` int(11) NOT NULL,
`name` text NOT NULL,
`mobileNumber` int(11) NOT NULL,
`address` text NOT NULL,
`email` text NOT NULL,
`image` text NOT NULL,
`pincode` int(11) NOT NULL,
`username` text NOT NULL,
`password` text NOT NULL,
`createdOn` date NOT NULL,
`updatedOn` date NOT NULL,
`createdBy` int(11) NOT NULL,
`updatedBy` int(11) NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `employee`
--
INSERT INTO `employee` (`id`, `roleId`, `name`, `mobileNumber`, `address`, `email`, `image`, `pincode`, `username`, `password`, `createdOn`, `updatedOn`, `createdBy`, `updatedBy`, `status`) VALUES
(21, 0, 'kala k', 2147483647, 'VKR', 'jeni@gmail.com', '', 114232, 'suji', '1234', '2023-01-02', '2023-01-03', 1, 1, 0),
(22, 0, 'monu', 739876, 'RRR', 'demo1@gmail.com', '', 234567, 'xfgd', '1234', '2023-01-03', '0000-00-00', 1, 0, 0),
(23, 0, 'kala', 2147483647, 'kkk', 'dotwingss@gmail.com', '', 114232, 'fsd', 'sds', '2023-01-03', '2023-01-05', 1, 1, 0),
(24, 0, 'monu', 739876, 'VKR', 'demo1@gmail.com', '0-4.png', 4564567, 'suji', '1234', '2023-01-05', '0000-00-00', 1, 0, 1),
(25, 0, 'monu', 234567890, 'a\\szdxfc', 'sasikala@dotwings.in', '3.jpg', 114232, 'xfgd', '123456', '2023-01-05', '0000-00-00', 1, 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `faculty`
--
CREATE TABLE `faculty` (
`id` int(11) NOT NULL,
`code` varchar(100) NOT NULL,
`name` text NOT NULL,
`email` varchar(100) NOT NULL,
`dob` int(11) NOT NULL,
`address` varchar(100) NOT NULL,
`gender` text NOT NULL,
`mobile` int(11) NOT NULL,
`designation` text NOT NULL,
`image` text NOT NULL,
`createdBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`updatedOn` date NOT NULL,
`updatedBy` int(11) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `faculty`
--
INSERT INTO `faculty` (`id`, `code`, `name`, `email`, `dob`, `address`, `gender`, `mobile`, `designation`, `image`, `createdBy`, `createdOn`, `updatedOn`, `updatedBy`, `status`) VALUES
(1, 'STO1234', 'sasi', 'sasikala@dotwings.in', 0, 'hru', 'Category 1', 0, 'hi welcome', '0-4.png', 1, '2023-01-04', '0000-00-00', 0, 1),
(2, 'STO1234', 'sasi', 'sasikala@dotwings.in', 0, 'vjf', 'Category 2', 0, 'hi welcome', '3.jpg', 1, '2023-01-04', '0000-00-00', 0, 1),
(3, 'STO1236', 'sasikala k', 'demo1@gmail.com', 0, 'hgfx', 'Category 1', 739876, 'Do Want', '3.jpg', 1, '2023-01-04', '0000-00-00', 0, 1),
(4, '', 'sasi', 'sasikala@dotwings.in', 0, '', '', 739876, 'sdfg', '', 1, '2023-01-05', '2023-01-05', 1, 1),
(5, '114232', 'sasi', 'sasikala@dotwings.in', 0, 'sdfg', 'Category 2', 2147483647, 'sdfg', '0-4.png', 1, '2023-01-05', '0000-00-00', 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `role`
--
CREATE TABLE `role` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`status` int(11) NOT NULL,
`createdBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`updatedBy` int(11) NOT NULL,
`updatedOn` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `role`
--
INSERT INTO `role` (`id`, `name`, `status`, `createdBy`, `createdOn`, `updatedBy`, `updatedOn`) VALUES
(1, 'admink', 0, 1, '2022-12-30', 1, '2022-12-30'),
(2, 'admins', 0, 1, '2022-12-30', 1, '2022-12-30'),
(3, 'adminf', 0, 1, '2022-12-30', 1, '2023-01-02'),
(4, 'adminss', 0, 1, '2022-12-30', 1, '2022-12-30'),
(6, 'admins', 0, 1, '2022-12-30', 0, '0000-00-00'),
(7, 'Userf', 0, 1, '2022-12-31', 1, '2023-01-05'),
(8, 'admin', 0, 1, '2023-01-02', 0, '0000-00-00'),
(9, 'admin', 1, 1, '2023-01-02', 1, '2023-01-02'),
(10, 'adminh', 0, 1, '2023-01-02', 1, '2023-01-02'),
(11, 'admink', 0, 1, '2023-01-02', 0, '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `semester`
--
CREATE TABLE `semester` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`createdBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`updatedOn` date NOT NULL,
`updatedBy` int(11) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `semester`
--
INSERT INTO `semester` (`id`, `name`, `createdBy`, `createdOn`, `updatedOn`, `updatedBy`, `status`) VALUES
(1, 'sasi k', 1, '2023-01-02', '0000-00-00', 0, 0),
(3, 'Even', 1, '2023-01-02', '0000-00-00', 0, 0),
(4, 'sasi k', 1, '2023-01-03', '0000-00-00', 0, 0),
(5, 'sasi', 1, '2023-01-03', '0000-00-00', 0, 0),
(6, 'sasi', 1, '2023-01-05', '0000-00-00', 0, 0),
(7, 'E2024', 1, '2023-01-05', '0000-00-00', 0, 1),
(8, 'E2021', 1, '2023-01-05', '0000-00-00', 0, 1),
(9, 'E2022', 1, '2023-01-05', '0000-00-00', 0, 1);
-- --------------------------------------------------------
--
-- Table structure for table `student`
--
CREATE TABLE `student` (
`id` int(11) NOT NULL,
`code` int(11) NOT NULL,
`name` text NOT NULL,
`gender` text NOT NULL,
`Email` varchar(100) NOT NULL,
`address` varchar(120) NOT NULL,
`department` text NOT NULL,
`number` int(11) NOT NULL,
`dob` int(11) NOT NULL,
`image` text NOT NULL,
`updatedOn` date NOT NULL,
`updatedBy` int(11) NOT NULL,
`createdBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `student`
--
INSERT INTO `student` (`id`, `code`, `name`, `gender`, `Email`, `address`, `department`, `number`, `dob`, `image`, `updatedOn`, `updatedBy`, `createdBy`, `createdOn`, `status`) VALUES
(1, 0, 'sasikala ', 'Female', '', 'df', 'B.com', 739876, 0, '', '0000-00-00', 0, 1, '2023-01-05', 1),
(2, 0, 'sasi', 'Male', '', 'afgb', 'BCA', 739876, 0, '3.jpg', '0000-00-00', 0, 1, '2023-01-05', 0),
(3, 0, 'sasi', 'Male', '', 'dfg', 'BCA', 739876, 0, '4-inch-Silenced-Water-Pump-550x413.jpg', '0000-00-00', 0, 1, '2023-01-05', 1);
-- --------------------------------------------------------
--
-- Table structure for table `subject`
--
CREATE TABLE `subject` (
`id` int(11) NOT NULL,
`code` varchar(120) NOT NULL,
`subject` text NOT NULL,
`department` text NOT NULL,
`semester` varchar(120) NOT NULL,
`image` text NOT NULL,
`createdBy` int(11) NOT NULL,
`updatedBy` int(11) NOT NULL,
`createdOn` date NOT NULL,
`updatedOn` date NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `subject`
--
INSERT INTO `subject` (`id`, `code`, `subject`, `department`, `semester`, `image`, `createdBy`, `updatedBy`, `createdOn`, `updatedOn`, `status`) VALUES
(1, 'sasi', 'mail', '', '', '', 1, 0, '2023-01-02', '0000-00-00', 0),
(2, 'sasikala k', 'Tamil', '', '', '', 1, 0, '2023-01-02', '0000-00-00', 0),
(3, 'sasi', 'gh', '', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
(4, 'demo', 'Tamil', '', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
(5, 'sasi', 'gh', '', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
(6, 'sasi k', 'mail', '', '', '', 1, 0, '2023-01-03', '2023-01-03', 0),
(7, '114232', 'mail', 'BCA', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
(8, '114232', 'mail', 'BCA', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
(9, '234567', 'English', 'B.com', '', '', 1, 0, '2023-01-03', '0000-00-00', 0),
(10, '114232', 'English', 'BCA', '1', '', 1, 0, '2023-01-03', '2023-01-05', 1),
(11, '642001', 'English', 'MCA', '2', '', 1, 0, '2023-01-05', '2023-01-05', 1),
(12, '114232', 'mail', 'BCA', '2', '', 1, 0, '2023-01-05', '2023-01-05', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `department`
--
ALTER TABLE `department`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `departmentdetail`
--
ALTER TABLE `departmentdetail`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `employee`
--
ALTER TABLE `employee`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `faculty`
--
ALTER TABLE `faculty`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `role`
--
ALTER TABLE `role`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `semester`
--
ALTER TABLE `semester`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `student`
--
ALTER TABLE `student`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `subject`
--
ALTER TABLE `subject`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `department`
--
ALTER TABLE `department`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `departmentdetail`
--
ALTER TABLE `departmentdetail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `employee`
--
ALTER TABLE `employee`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `faculty`
--
ALTER TABLE `faculty`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `role`
--
ALTER TABLE `role`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `semester`
--
ALTER TABLE `semester`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `student`
--
ALTER TABLE `student`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `subject`
--
ALTER TABLE `subject`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

View File

@ -230,7 +230,7 @@ header.main-header {
} }
.logo-holder { .logo-holder {
float:left; float:left;
padding-top:19px; padding-top:8px;
height:70px; height:70px;
} }
.logo-holder img { .logo-holder img {