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['translate_uri_dashes'] = FALSE;
$route['dashboard'] = 'welcome/dashboard';
$route['logout'] = 'welcome/logout';
//Role//
$route['roles'] = 'role/listrole';
@ -63,16 +64,22 @@ $route['delete_role'] = 'role/deleterole';
//emplayee//
$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['deleted_employee'] = 'employee/deleted_employee';
//Department//
$route['department'] = 'department/department_list';
$route['add_department'] = 'department/add_department';
$route['edit_department'] = 'department/edit_department';
$route['delete_department'] = 'department/delete_department';
$route['edit_department/(:num)'] = 'department/edit_department/$1';
$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//
$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()
{
$this->load->view('department/add_department');
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');
$table="department";
$values=array('name'=>$name,
'code'=>$code,
'year'=>$year,
//'created_on'=>date('Y-m-d'),
'image'=>$image,
'createdOn'=>date('Y-m-d'),
'createdBy'=>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'))
{
$name=$this->input->post('name');
$code=$this->input->post('code');
$year=$this->input->post('year');
$primaryid=$this->input->post('hiddendepid');
$image=$this->input->post('image');
//$primaryid=$this->input->post('hiddendepid');
$table="department";
$where=array("dep_id"=>$primaryid);
$where=array("id"=>$id);
$values=array('name'=>$name,
'code'=>$code,
'year'=>$year,
//'updated_on'=>date('Y-m-d'),
'image'=>$image,
'updatedOn'=>date('Y-m-d'),
'updatedBy'=>1,
'status'=>1);
@ -101,23 +109,21 @@ class Department extends CI_Controller {
$this->session->set_userdata('err','Please try again');
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'))
{
$primaryid=$this->input->post('hiddengffgdtpid');
//echo $primaryid ; exit;
$id=$this->input->post('hiddenpass');
//echo $id ; exit;
$table="department";
$where=array("dep_id"=>$primaryid);
$values=array(
'status'=>0);
$where=array("id"=>$id);
$values=array('status'=>0);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)

View File

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

View File

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

View File

@ -12,11 +12,13 @@ public function __construct()
public function listrole()
{
//if($this->session->userdata('id')==""){redirect('');}
$data['rol']=$this->Role_model->list_rol();
$this->load->view('roles/role_list',$data);
}
function addrole()
{
//if($this->session->userdata('id')==""){redirect('');}
if($this->input->post('submit'))
{
$role=$this->input->post('rolename');
@ -44,6 +46,7 @@ public function __construct()
}
function editrole()
{
//if($this->session->userdata('id')==""){redirect('');}
if($this->input->post('submit'))
{
$rolename=$this->input->post('rolename');
@ -74,6 +77,7 @@ public function __construct()
}
function deleterole()
{
//if($this->session->userdata('id')==""){redirect('');}
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');
class Welcome extends CI_Controller {
public function __construct()
{
parent::__construct();
$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()
{
$this->load->view('login');
}
public function dashboard()
{
$this->load->view('dashboard');
}
public function admin_login()
{
$username=$this->input->post('username');
$password=$this->input->post('password');
$check=$this->Common_model->get_login_detail($username,$password);
if($check->num_rows()>0)
{
$ch =$check->row();
//$usertype=$ch->user_type;
//$this->session->set_userdata('user_type',$ch->user_type);
$this->session->set_userdata('username',$ch->username);
$this->session->set_userdata('id',$ch->id);
$this->session->set_userdata('suc',' Successfully Logged in..!');
if($usertype!=2){
redirect('dashboard');}
else{
redirect('dashboard');}
}
else
{
$this->session->set_userdata('err','The username or password is incorrect.');
redirect('dashboard');
}
$username=$this->input->post('username');
$password=$this->input->post('password');
$check=$this->Common_model->get_login_detail($username,$password);
if($check->num_rows()>0)
{
$ch =$check->row();
$this->session->set_userdata('username',$ch->username);
$this->session->set_userdata('id',$ch->id);
$this->session->set_userdata('suc',' Successfully Logged in..!');
if($usertype!=2){
redirect('dashboard');}
else{
redirect('dashboard');}
}
else
{
$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;
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() {
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()
{
$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('student as s','s.id=p.student','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));
$query = $this->db->get();
//echo $this->db->last_query();exit;
@ -59,5 +60,14 @@ class Project_model extends CI_Model {
//echo $this->db->last_query();exit;
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-title-breadcrumb">
<div class=" pull-left">
<div class="page-title">Add Semester</div>
<div class="page-title">Add Degree</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">Semester</li>
<li class="active">Degree</li>
</ol>
</div>
</div>
@ -23,33 +23,38 @@
<div class="col-md-12 col-sm-12">
<div class="card card-box">
<div class="card-head">
<header>Semester</header>
<header>Degree</header>
</div>
<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-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">
<label class="control-label col-md-3">Name
<span class="required"> * </span>
</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">
<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 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 class="form-actions">

View File

@ -11,12 +11,12 @@
<div class="page-bar">
<div class="page-title-breadcrumb">
<div class=" pull-left">
<div class="page-title">Semester List</div>
<div class="page-title">Degree 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">Semester</li>
<li class="active">Degree</li>
</ol>
</div>
</div>
@ -29,7 +29,7 @@
<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" ><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>
@ -39,28 +39,29 @@
<thead>
<tr>
<th> S.No</th>
<th> Department</th>
<th> Name </th>
<th> Action </th>
</tr>
</thead>
<tbody>
<?php
if(isset($sem) && $sem->num_rows()>0)
if(isset($deg) && $deg->num_rows()>0)
{
$i=1;
foreach($sem->result() as $s)
foreach($deg->result() as $d)
{
$id=$s->id;
$name=$s->name;
$id=$d->id;
$depId=$d->departmentId;
$name=$d->name;
?>
<tr class="odd gradeX">
<td><?=$i;?></td>
<td><?=$depId;?></td>
<td><?=$name;?></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>
</a>
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
@ -95,7 +96,7 @@
</button>
</div>
<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-group row">

View File

@ -70,32 +70,35 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
<label class="control-label col-md-3">Code
<span class="required">*</span>
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input name="code" type="text" placeholder="Enter Your Code" class="form-control input-height" /> </div>
</div>
<div class="form-group row">
<label class="control-label col-md-3">No of year
<span class="required">*</span>
<label class="control-label col-md-3">Total Year
<span class="required"> * </span>
</label>
<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>
<!----Multiple Rows-->
<div id="multipleRow">
<div class="form-group row">
<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>
<!----Multiple Rows-->
</div>
<div class="form-actions">
</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">
@ -103,9 +106,6 @@
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
@ -118,21 +118,56 @@
</div>
</div>
<?php $this->load->view('includes/footer');?>
<script>
$('#totalYears').keyup(function(e) {
var rows_count = parseInt($(this).val());
//var div_count = Math.ceil(rows_count/10);
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>';
var sTableData = '';
var value = '';
for(iRow=2;iRow<=rows_count;iRow++)
{
sTableData = sTableData + resultHtml;
}
sTableData = sTableData + resultHtml;
<script>
$(".departmentclass").click(function(){
$('#Model').modal('show');
var id=$(this).attr('data-id');
//alert(id);
$('#hiddenid').val(id);
});
</script>
<script type="text/javascript">
$(document).ready(function() {
var myPara = document.getElementById("example4");
$('#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>
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> Name </th>
<th> Code </th>
<th> No Of The Year </th>
<th> Total Year </th>
<th> Action </th>
</tr>
</thead>
<tbody>
<?php
if(isset($sem) && $sem->num_rows()>0)
if(isset($dep) && $dep->num_rows()>0)
{
$i=1;
foreach($sem->result() as $s)
foreach($dep->result() as $s)
{
$id=$s->id;
$name=$s->name;
$code=$s->code;
$year=$s->year;
$image=$s->image;
?>
<tr class="odd gradeX">
<td><?=$i;?></td>
@ -101,7 +102,7 @@
</button>
</div>
<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-group row">

View File

@ -32,59 +32,71 @@
<div class="page-bar">
<div class="page-title-breadcrumb">
<div class=" pull-left">
<div class="page-title">Edit Semester</div>
<div class="page-title">Edit Department</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">Edit Semester</li>
<li class="active">Edit Department</li>
</ol>
</div>
</div>
<!-- Midium Model -->
<?php
if(isset($sem) && $sem->num_rows()>0)
if(isset($dep) && $dep->num_rows()>0)
{
$s=$sem->row();
$id=$s->id;
$name=$s->name;
$hod=$s->hod;
$staff=$s->staff;
$d=$dep->row();
$id=$d->id;
$name=$d->name;
$code=$d->code;
$year=$d->year;
$image=$d->image;
} ?>
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="card card-box">
<div class="card-head">
<header>Edit Semester</header>
<header>Edit department</header>
</div>
<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-group row">
<label class="control-label col-md-3">Name
<span class="required"> * </span>
</label>
<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 class="form-group row">
<label class="control-label col-md-3">Hod.
<label class="control-label col-md-3">Code
<span class="required"> * </span>
</label>
<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 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>
</label>
<div class="col-md-5">
<input name="staff" value="<?=$staff;?>" type="text" placeholder="Enter Staff" class="form-control error" />
</div>
<input name="year" value="<?=$year;?>" type="text" placeholder="Enter Yaer" class="form-control input-height" /> </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="row">
<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>
</label>
<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 class="form-group row">
@ -41,7 +61,7 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
@ -49,7 +69,7 @@
<span class="required"> * </span>
</label>
<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>
@ -59,28 +79,18 @@
</label>
<div class="col-md-5">
<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" class="form-control input-height" name="email" placeholder="Email Address" data-validation="required">
<input type="email" data-validation="required" class="form-control input-height" name="email" placeholder="Email Address">
</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">
<label class="control-label col-md-3">Pincode.
<span class="required"> * </span>
</label>
<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>
@ -90,14 +100,14 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
<label class="control-label col-md-3">Password.
<span class="required"> * </span>
</label>
<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>
@ -105,7 +115,7 @@
<label class="control-label col-md-3">Profile Image
</label>
<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>
@ -113,7 +123,7 @@
<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>
<button type="button" class="btn btn-default" data-dismiss="">Cancel</button>
</div>
</div>
</div>
@ -129,6 +139,5 @@
</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>

View File

@ -140,7 +140,7 @@
<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>
<button type="button" class="btn btn-default" data-dismiss="">Cancel</button>
</div>
</div>
</div>

View File

@ -29,7 +29,7 @@
<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" ><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>

View File

@ -47,16 +47,7 @@
<ul class="nav navbar-nav navbar-left in">
<li><a href="#" class="menu-toggler sidebar-toggler"><i class="icon-menu"></i></a></li>
</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 -->
<a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
<span></span>
@ -68,7 +59,7 @@
<!-- start language menu -->
<!-- end language menu -->
<!-- start notification dropdown -->
<!-- start notification dropdown
<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">
<i class="fa fa-bell-o"></i>
@ -134,8 +125,9 @@
</li>
</ul>
</li>
-->
<!-- end notification dropdown -->
<!-- start message dropdown -->
<!-- start message dropdown
<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">
<i class="fa fa-envelope-o"></i>
@ -210,6 +202,7 @@
</li>
</ul>
</li>
-->
<!-- end message dropdown -->
<!-- start manage user dropdown -->
<li class="dropdown dropdown-user">
@ -228,24 +221,9 @@
<a href="<?=base_url();?>profile">
<i class="icon-user"></i> Profile </a>
</li>
<li>
<a href="#">
<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">
<a href="<?=base_url();?>logout">
<i class="icon-logout"></i> Log Out </a>
</li>
</ul>

View File

@ -58,6 +58,12 @@
<i class="material-icons">gamepad</i>
<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 class="nav-item ">
<a href="<?=base_url();?>semester" class="nav-link nav-toggle">

View File

@ -48,8 +48,8 @@
<span class="required"> * </span>
</label>
<div class="col-md-5">
<select class="form-control input-height" name="faculty">
<option value="" selected="selected">Select</option>
<select class="form-control input-height" name="faculty">
<option value="" selected="selected" id="faculty_id" >Select</option>
<?php
if(isset($fac) && $fac->num_rows()>0)
{
@ -68,7 +68,7 @@
<span class="required"> * </span>
</label>
<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>
<?php
if(isset($stu) && $stu->num_rows()>0)
@ -90,26 +90,25 @@
<div class="col-md-5">
<input name="semester" type="text" placeholder="Enter semester" class="form-control input-height" /> </div>
</div>
<div class="form-group row">
<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
<div class="form-group row">
<label class="control-label col-md-3">Subject Code
<span class="required"> * </span>
</label>
<div class="col-md-5">
<textarea name="designation" placeholder=" Enter Designation" class="form-control" rows="5"></textarea>
</div>
<select class="form-control input-height" name="subject">
<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 class="form-group row">
<label class="control-label col-md-3">Department.
@ -132,8 +131,16 @@
</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">
<label class="control-label col-md-3">Vedio
<label class="control-label col-md-3">Video
<span class="required"> * </span>
</label>
<div class="col-md-5">
@ -144,10 +151,10 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
<label class="control-label col-md-3">Profile Img
<label class="control-label col-md-3">Project Image
</label>
<div class="col-md-5 compose-editor">
<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;
$date=$p->date;
$name=$p->projectName;
$faculty=$p->faculty;
$student=$p->student;
$semester=$p->semester;
$subject=$p->subject;
$department=$p->department;
$faculty=$p->faculty;
$description=$p->description;
$video=$p->vedio;
//$drivelink=$p->drivelink;
$image=$p->image;
} ?>
@ -66,11 +70,11 @@
<form action="<?=base_url();?>edit_project/<?=$id;?>" method="post" >
<div class="form-body">
<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>
</label>
<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 class="form-group row">
@ -78,7 +82,15 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
@ -86,7 +98,7 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
@ -94,15 +106,15 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
<label class="control-label col-md-3">Faculty
<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 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 class="form-group row">
@ -110,22 +122,25 @@
<span class="required"> * </span>
</label>
<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 class="form-group row">
<label class="control-label col-md-3">Gender
<label class="control-label col-md-3">Description.
<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 class="col-md-5">
<input name="description" value="<?=$description;?>" type="text" placeholder="Enter Description" class="form-control input-height" /> </div>
</div>
<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>
<div class="compose-editor">
<input name="image" value="<?=$image;?>" type="file" class="form-control" >

View File

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

View File

@ -100,20 +100,18 @@
<form action="<?=base_url();?>add_role" 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="rolename" data-required="1" placeholder="Enter name" class="form-control input-height">
</div>
<div class="form-group">
<label class="control-label">Name<span class="required"> * </span></label>
<input type="text" name="rolename" data-validation="required" placeholder="Enter name" class="form-control input-height">
</div>
<div class="form-actions">
<div class="row">
<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">
<button type="button" class="btn btn-default">Cancel</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
@ -141,11 +139,12 @@
<div class="form-body">
<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>
</label>
<div class="col-md-7">
<input type="text" name="rolename" data-required="1" id="editroleid" placeholder="Enter name" class="form-control input-height">
<input type="text" data-validation="required" name="rolename" id="editroleid" placeholder="Enter name" class="form-control input-height">
<input type="hidden" name="hiddenroleid" id="hiddenroleid">
</div>
</div>
@ -154,7 +153,7 @@
<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>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
@ -180,7 +179,7 @@
<div class="form-body">
<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">
</div>
@ -188,7 +187,7 @@
<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>
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
</div>
</div>
</div>
@ -204,6 +203,7 @@
<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 src="<?=base_url();?>assets/jquery.form-validator.min.js"></script>
<script>
$(".editroleclass").click(function(){
$('#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 {
float:left;
padding-top:19px;
padding-top:8px;
height:70px;
}
.logo-holder img {