This commit is contained in:
dotwingssoftware 2023-01-06 13:10:31 +05:30
commit 76d39a21aa
42 changed files with 1062 additions and 277 deletions

View File

@ -1,2 +0,0 @@
# McGansWebsite

View File

@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own. | a PHP script and you can easily do that on your own.
| |
*/ */
$config['base_url'] = 'http://localhost/student/'; $config['base_url'] = 'http://localhost/Mcgans/';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -78,7 +78,7 @@ $db['default'] = array(
'hostname' => 'localhost', 'hostname' => 'localhost',
'username' => 'root', 'username' => 'root',
'password' => '', 'password' => '',
'database' => 'demo', 'database' => 'mcgans',
'dbdriver' => 'mysqli', 'dbdriver' => 'mysqli',
'dbprefix' => '', 'dbprefix' => '',
'pconnect' => FALSE, 'pconnect' => FALSE,

View File

@ -77,7 +77,7 @@ $route['delete_department'] = 'department/delete_department';
//Semester// //Semester//
$route['semester'] = 'semester/semester_list'; $route['semester'] = 'semester/semester_list';
$route['add_semester'] = 'semester/add_semester'; $route['add_semester'] = 'semester/add_semester';
$route['edit_semester/(:num)'] = 'semester/edit_semester/$1'; $route['edit_semester'] = 'semester/edit_semester';
$route['deleted_semester'] = 'semester/deleted_semester'; $route['deleted_semester'] = 'semester/deleted_semester';

View File

@ -36,15 +36,19 @@ class Department extends CI_Controller {
function add_department() function add_department()
{ {
$this->load->view('department/add_department');
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$depname=$this->input->post('depname'); $depname=$this->input->post('depname');
$depcode=$this->input->post('depcode'); $depcode=$this->input->post('depcode');
$year=$this->input->post('year');
$table="department"; $table="department";
$values=array('name'=>$depname, $values=array('name'=>$depname,
'code'=>$depcode, 'code'=>$depcode,
'year'=>$year,
//'created_on'=>date('Y-m-d'), //'created_on'=>date('Y-m-d'),
'created_by'=>1, 'created_by'=>1,
'status'=>1); 'status'=>1);

View File

@ -31,7 +31,7 @@ public function __construct()
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$employeename=$this->input->post('employeename'); $employeename=$this->input->post('employeename');
$number=$this->input->post('number'); $mobile_Number=$this->input->post('mobile_Number');
$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');
@ -42,11 +42,11 @@ public function __construct()
$table="employee"; $table="employee";
$values=array('name'=>$employeename, $values=array('name'=>$employeename,
'mobilenumer'=>$number, 'mobile_Number'=>$mobile_Number,
'address'=>$address, 'address'=>$address,
'email'=>$email, 'email'=>$email,
'pincode'=>$code, 'pincode'=>$code,
'img'=>$img, 'image'=>$img,
'username'=>$user, 'username'=>$user,
'password'=>$password, 'password'=>$password,
'created_on'=>date('Y-m-d'), 'created_on'=>date('Y-m-d'),
@ -72,7 +72,7 @@ public function __construct()
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$employeename=$this->input->post('employeename'); $employeename=$this->input->post('employeename');
$number=$this->input->post('mnumber'); $mobile_Number=$this->input->post('mobile_Number');
$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');
@ -91,11 +91,12 @@ public function __construct()
$table="employee"; $table="employee";
$where=array("id"=>$empid); $where=array("id"=>$empid);
$values=array('name'=>$employeename, $values=array('name'=>$employeename,
'mobilenumer'=>$number, 'mobile_Number'=>$mobile_Number,
'address'=>$address, 'address'=>$address,
'email'=>$email, 'email'=>$email,
'pincode'=>$code, 'pincode'=>$code,
'username'=>$user, 'username'=>$user,
'image'=>$img,
'password'=>$newpassword, 'password'=>$newpassword,
'update_on'=>date('Y-m-d'), 'update_on'=>date('Y-m-d'),
'update_by'=>1, 'update_by'=>1,

View File

@ -41,15 +41,15 @@ class Faculty extends CI_Controller {
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$faculty=$this->input->post('faculty'); $faculty=$this->input->post('code');
$name=$this->input->post('name'); $name=$this->input->post('name');
$email=$this->input->post('email'); $email=$this->input->post('email');
//$dob=$this->input->post('dob'); //$dob=$this->input->post('dob');
$gender=$this->input->post('gender'); $gender=$this->input->post('gender');
$number=$this->input->post('number'); $number=$this->input->post('mobile');
$address=$this->input->post('address'); $address=$this->input->post('address');
$desi=$this->input->post('desigation'); $desi=$this->input->post('designation');
$f_img=$this->input->post('f_img'); $f_img=$this->input->post('image');
$table="faculty"; $table="faculty";
$values=array('code'=>$faculty, $values=array('code'=>$faculty,
@ -59,8 +59,8 @@ class Faculty extends CI_Controller {
'gender'=>$gender, 'gender'=>$gender,
'mobile'=>$number, 'mobile'=>$number,
'address'=>$address, 'address'=>$address,
'desigation'=>$desi, 'designation'=>$desi,
'f_img'=>$f_img, 'image'=>$f_img,
'created_on'=>date('Y-m-d'), 'created_on'=>date('Y-m-d'),
'created_by'=>1, 'created_by'=>1,
'status'=>1); 'status'=>1);
@ -89,15 +89,15 @@ class Faculty extends CI_Controller {
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$faculty=$this->input->post('faculty'); $faculty=$this->input->post('code');
$name=$this->input->post('name'); $name=$this->input->post('name');
$email=$this->input->post('email'); $email=$this->input->post('email');
//$dob=$this->input->post('dob'); //$dob=$this->input->post('dob');
$gender=$this->input->post('gender'); $gender=$this->input->post('gender');
$number=$this->input->post('number'); $number=$this->input->post('number');
$address=$this->input->post('address'); $address=$this->input->post('address');
$desi=$this->input->post('desigation'); $desi=$this->input->post('designation');
$f_img=$this->input->post('f_img'); $f_img=$this->input->post('image');
$table="faculty"; $table="faculty";
@ -109,10 +109,10 @@ class Faculty extends CI_Controller {
'gender'=>$gender, 'gender'=>$gender,
'mobile'=>$number, 'mobile'=>$number,
'address'=>$address, 'address'=>$address,
'desigation'=>$desi, 'designation'=>$desi,
'f_img'=>$f_img, 'image'=>$f_img,
'update_on'=>date('Y-m-d'), 'updated_on'=>date('Y-m-d'),
'update_by'=>1, 'updated_by'=>1,
'status'=>1); 'status'=>1);
$result=$this->Commonsql_model->updateTable($table,$where,$values); $result=$this->Commonsql_model->updateTable($table,$where,$values);

View File

@ -50,7 +50,7 @@ public function __construct()
$primaryid=$this->input->post('hiddenroleid'); $primaryid=$this->input->post('hiddenroleid');
$table="role"; $table="role";
$where=array("role_id"=>$primaryid); $where=array("id"=>$primaryid);
$values=array('name'=>$rolename, $values=array('name'=>$rolename,
'updated_on'=>date('Y-m-d'), 'updated_on'=>date('Y-m-d'),
'updated_by'=>1, 'updated_by'=>1,
@ -80,7 +80,7 @@ public function __construct()
$primaryid=$this->input->post('hiddengffgdtpid'); $primaryid=$this->input->post('hiddengffgdtpid');
//echo $primaryid ; exit; //echo $primaryid ; exit;
$table="role"; $table="role";
$where=array("role_id"=>$primaryid); $where=array("id"=>$primaryid);
$values=array( $values=array(
'status'=>0); 'status'=>0);

View File

@ -36,18 +36,16 @@ class Semester extends CI_Controller {
function add_semester() function add_semester()
{ {
$this->load->view('semester/add_semester'); //$this->load->view('semester/add_semester');
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$name=$this->input->post('name'); $name=$this->input->post('name');
$hod=$this->input->post('hod');
$staff=$this->input->post('staff');
$table="semester"; $table="semester";
$values=array('name'=>$name, $values=array('name'=>$name,
'hod'=>$hod,
'staff'=>$staff,
'created_on'=>date('Y-m-d'), 'created_on'=>date('Y-m-d'),
'created_by'=>1, 'created_by'=>1,
'status'=>1); 'status'=>1);
@ -68,24 +66,19 @@ class Semester extends CI_Controller {
} }
function edit_semester($id) function edit_semester()
{ {
$data['sem']=$this->Semester_model->get_sem($id);
$this->load->view('semester/edit_semester',$data);
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$name=$this->input->post('name'); $name=$this->input->post('name');
$hod=$this->input->post('hod'); $id=$this->input->post('hiddendepid');
$staff=$this->input->post('staff');
$table="semester"; $table="semester";
$where=array("id"=>$id); $where=array("id"=>$id);
$values=array('name'=>$name, $values=array('name'=>$name,
'hod'=>$hod,
'staff'=>$staff,
//'update_on'=>date('Y-m-d'), //'update_on'=>date('Y-m-d'),
// 'update_by'=>1, // 'update_by'=>1,
'status'=>1); 'status'=>1);
@ -114,7 +107,7 @@ class Semester extends CI_Controller {
{ {
if($this->input->post('submit')) if($this->input->post('submit'))
{ {
$id=$this->input->post('hiddenpass'); $id=$this->input->post('hiddengffgdtpid');
$table="semester"; $table="semester";
$where=array("id"=>$id); $where=array("id"=>$id);

View File

@ -45,7 +45,7 @@ class Student extends CI_Controller {
$address=$this->input->post('address'); $address=$this->input->post('address');
$department=$this->input->post('department'); $department=$this->input->post('department');
$gender=$this->input->post('gender'); $gender=$this->input->post('gender');
$s_img=$this->input->post('s_img'); $s_img=$this->input->post('image');
$table="student"; $table="student";
$values=array('name'=>$name, $values=array('name'=>$name,
@ -53,7 +53,7 @@ class Student extends CI_Controller {
'address'=>$address, 'address'=>$address,
'department'=>$department, 'department'=>$department,
'gender'=>$gender, 'gender'=>$gender,
's_img'=>$s_img, 'image'=>$s_img,
'created_on'=>date('Y-m-d'), 'created_on'=>date('Y-m-d'),
'created_by'=>1, 'created_by'=>1,
'status'=>1); 'status'=>1);
@ -87,7 +87,7 @@ class Student extends CI_Controller {
$address=$this->input->post('address'); $address=$this->input->post('address');
$department=$this->input->post('department'); $department=$this->input->post('department');
$gender=$this->input->post('gender'); $gender=$this->input->post('gender');
$s_img=$this->input->post('s_img'); $s_img=$this->input->post('image');
$table="student"; $table="student";
@ -97,7 +97,7 @@ class Student extends CI_Controller {
'address'=>$address, 'address'=>$address,
'department'=>$department, 'department'=>$department,
'gender'=>$gender, 'gender'=>$gender,
's_img'=>$s_img, 'image'=>$s_img,
//'update_on'=>date('Y-m-d'), //'update_on'=>date('Y-m-d'),
// 'update_by'=>1, // 'update_by'=>1,
'status'=>1); 'status'=>1);

View File

@ -0,0 +1,141 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Semester extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('Semester_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 semester_list()
{
$data['sem']=$this->Semester_model->list_sem();
$this->load->view('semester/semester_list',$data);
}
function add_semester()
{
//$this->load->view('semester/add_semester');
if($this->input->post('submit'))
{
$name=$this->input->post('name');
$hod=$this->input->post('hod');
$staff=$this->input->post('staff');
$table="semester";
$values=array('name'=>$name,
'hod'=>$hod,
'staff'=>$staff,
'created_on'=>date('Y-m-d'),
'created_by'=>1,
'status'=>1);
$result=$this->Commonsql_model->insert_table($table,$values);
if($result)
{
$this->session->set_userdata('suc','successfully added');
redirect('semester');
}
else
{
$this->session->set_userdata('err','Please try again');
redirect('semester');
}
}
}
function edit_semester($id)
{
$data['sem']=$this->Semester_model->get_sem($id);
$this->load->view('semester/edit_semester',$data);
if($this->input->post('submit'))
{
$name=$this->input->post('name');
$hod=$this->input->post('hod');
$staff=$this->input->post('staff');
$table="semester";
$where=array("id"=>$id);
$values=array('name'=>$name,
'hod'=>$hod,
'staff'=>$staff,
//'update_on'=>date('Y-m-d'),
// 'update_by'=>1,
'status'=>1);
$result=$this->Commonsql_model->updateTable($table,$where,$values);
if($result)
{
$this->session->set_userdata('suc','successfully Updated');
redirect('semester');
}
else
{
$this->session->set_userdata('err','Please try again');
redirect('semester');
}
}
//echo "sdsd";exit;
//echo $this->db->last_query();exit;
}
function deleted_semester()
{
if($this->input->post('submit'))
{
$id=$this->input->post('hiddenpass');
$table="semester";
$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('semester');
}
else
{
$this->session->set_userdata('err','Please try again');
redirect('semester');
}
}
}
}

View File

@ -41,14 +41,14 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="number" type="text" placeholder="Enter mobile number" class="form-control input-height" /> </div> <input name="mobile_Number" type="text" placeholder="Enter mobile number" class="form-control input-height" /> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Address <label class="control-label col-md-3">Address
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<textarea name="address" placeholder="Enter address" class="form-control-textarea" rows="5"></textarea> <textarea name="address" placeholder="Enter address" class="form-control" rows="5"></textarea>
</div> </div>
</div> </div>
@ -73,13 +73,7 @@
<input name="img" type="text" placeholder="Enter img" class="form-control input-height" /> <input name="img" type="text" placeholder="Enter img" class="form-control input-height" />
</div> </div>
</div>--> </div>-->
<div class="form-group row">
<label class="control-label col-md-3">Upload Profile
</label>
<div class="compose-editor">
<input name="img" type="file" placeholder="Enter img" class="default" multiple>
</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>
@ -105,6 +99,14 @@
<input name="Password" type="text" placeholder="Enter Password" class="form-control input-height" /> </div> <input name="Password" type="text" placeholder="Enter Password" class="form-control input-height" /> </div>
</div> </div>
</div> </div>
<div class="form-group row">
<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>
</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

@ -48,9 +48,9 @@
$e=$emp->row(); $e=$emp->row();
$eid=$e->id; $eid=$e->id;
$name=$e->name; $name=$e->name;
$mobilenumer=$e->mobilenumer; $mobile_Number=$e->mobile_Number;
$email=$e->email; $email=$e->email;
$img=$e->img; $image=$e->image;
$address=$e->address; $address=$e->address;
$pincode=$e->pincode; $pincode=$e->pincode;
$username=$e->username; $username=$e->username;
@ -79,7 +79,7 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="mnumber" value="<?=$mobilenumer;?>" type="number" placeholder="Enter mobile number" class="form-control input-height" /> </div> <input name="mobile_Number" value="<?=$mobile_Number;?>" type="number" placeholder="Enter mobile number" class="form-control input-height" /> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Address <label class="control-label col-md-3">Address
@ -117,7 +117,7 @@
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Upload Picture <label class="control-label col-md-3">Upload Picture
</label> </label>
<div class="compose-editor"> <div class="col-md-5 compose-editor">
<input type="file" name="img" value="<?=$img;?>" placeholder="Enter img" class="default" multiple> <input type="file" name="img" value="<?=$img;?>" placeholder="Enter img" class="default" multiple>
</div> </div>
</div> </div>

View File

@ -49,7 +49,7 @@
<!-- /.col --> <!-- /.col -->
<div class="col-xl-3 col-md-6 col-12"> <div class="col-xl-3 col-md-6 col-12">
<div class="info-box bg-purple"> <div class="info-box bg-purple">
<span class="info-box-icon push-bottom"><i class="material-icons">content_cut</i></span> <span class="info-box-icon push-bottom"><i class="material-icons">local_library</i></span>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-text">Total Subjects</span> <span class="info-box-text">Total Subjects</span>
<span class="info-box-number">52</span> <span class="info-box-number">52</span>
@ -61,7 +61,7 @@
<!-- /.col --> <!-- /.col -->
<div class="col-xl-3 col-md-6 col-12"> <div class="col-xl-3 col-md-6 col-12">
<div class="info-box bg-success"> <div class="info-box bg-success">
<span class="info-box-icon push-bottom"><i class="material-icons">monetization_on</i></span> <span class="info-box-icon push-bottom"><i class="material-icons">school</i></span>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-text">Total Courses</span> <span class="info-box-text">Total Courses</span>
<span class="info-box-number">5</span> <span class="info-box-number">5</span>

View File

@ -0,0 +1,177 @@
<link href="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
<?php $this->load->view('includes/header');?>
<div class="page-container">
<!-- start sidebar menu -->
<?php $this->load->view('includes/sidebar');?>
<!-- start page content -->
<div class="page-content-wrapper">
<div class="page-content">
<div class="page-bar">
<div class="page-title-breadcrumb">
<div class=" pull-left">
<div class="page-title">Add 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">Department</li>
</ol>
</div>
</div>
<!-- Midium Model -->
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="card card-box">
<div class="card-head">
<header>Department</header>
</div>
<div class="card-body" id="bar-parent">
<form action="<?=base_url();?>add_department" 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" name="name" data-required="1" placeholder="EnterYour 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>
</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 The Year
<span class="required"> * </span>
</label>
<div class="col-md-5 search">
<input id="recherche" name="search" type="search" placeholder="Enter Your Year" class="form-control input-height search" /> </div>
</div>
</div>
<div id="resultat" id="resultat" style="display: none;" class=" form-group row resultat ">
<label class="control-label col-md-5">
</label>
<div class="col-md-5">
<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>Odd</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>Event</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>Odd</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>Odd</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>
</div>
</div>
</div>
<div class="form-actions">
<div class="row">
<div class="offset-md-3 col-md-9">
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
<button type="button" class="btn btn-default">Cancel</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
</div>
</div>
</div>
<?php $this->load->view('includes/footer');?>
<script>
$(".departmentclass").click(function(){
$('#Model').modal('show');
var id=$(this).attr('data-id');
//alert(id);
$('#hiddenid').val(id);
});
</script>
<script>
var A = 10;
$('#getyear').keyup(function () {
var nyear=$(this).val();
//alert(nyear);
//var div = document.getElementById('resultat');
});
</script>
<script>
var input = document.getElementById('recherche');
var div = document.getElementById('resultat');
// When the user type, we show the results
input.addEventListener('keypress', function() {
div.style.display = "block";
});
// To hide the div when the cursor isn't in the input
input.addEventListener('focusout', function() {
div.style.display = "none";
});
</script>

View File

@ -22,172 +22,75 @@
</div> </div>
<?php $this->load->view('includes/msg');?> <?php $this->load->view('includes/msg');?>
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-6">
<div class="card card-topline-red"> <div class="card card-topline-red">
<div class="card-body "> <div class="card-body ">
<div class="row"> <div class="row">
<div class="col-md-6 col-sm-6 col-xs-6"> <div class="col-md-6 col-sm-6 col-xs-6">
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-info" <button type="button" class="btn btn-info"
data-toggle="modal" data-target="#mediumModel">Add <i class="fa fa-plus"></i></button> data-toggle="modal" data-target="#mediumModel" ><a style="color:#fff;"href="<?=base_url();?>add_department">add <i class="fa fa-plus"></i></a> </button>
</div> </div>
</div> </div>
</div> </div>
<div class="table-scrollable"> <div class="table-scrollable">
<table class="table table-hover table-checkable order-column full-width" id="example4" > <table class="table table-hover table-checkable order-column full-width" id="example4">
<thead> <thead>
<tr> <tr>
<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> Action </th> <th> Action </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
if(isset($dep) && $dep->num_rows()>0) if(isset($sem) && $sem->num_rows()>0)
{ {
$i=1; $i=1;
foreach($dep->result() as $r) foreach($sem->result() as $s)
{ {
$id=$s->id;
//$id=$r->id; $name=$s->name;
$dep_id=$r->dep_id; $code=$s->code;
$depname=$r->name; $year=$s->year;
$depcode=$r->code;
//echo $dep_id; exit;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
<td><?=$i;?></td> <td><?=$i;?></td>
<td><?=$depname;?></td> <td><?=$name;?></td>
<td><?=$depcode;?></td> <td><?=$code;?></td>
<td><?=$year;?></td>
<td> <td>
<a href="javascript:;" data-id="<?=$dep_id;?>" data-name="<?=$depname;?>" data-code="<?=$depcode;?>"class="editdepclass btn btn-primary btn-xs "> <a href="<?=base_url();?>edit_department/<?=$id;?>" class="btn btn-primary btn-xs">
<i class="fa fa-pencil"></i> <i class="fa fa-pencil"></i>
</a> </a>
<a href="javascript:;" data-id="<?=$dep_id;?>" class="deletedpeclass btn btn-danger btn-xs "> <a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
<i class="fa fa-trash-o"></i> <i class="fa fa-trash-o"></i>
</a> </a>
</td> </td>
</tr> </tr>
<?php $i=$i+1;} }?> <?php
$i++;
} }?>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- end page content --> <!-- end page content -->
<!-- Midium Model --> <div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
<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="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"> aria-hidden="true">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
@ -198,12 +101,13 @@
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form action="<?=base_url();?>delete_department" method="post"> <form action="<?=base_url();?>deleted_department" method="post">
<div class="form-body"> <div class="form-body">
<div class="form-group row"> <div class="form-group row">
<p style="margin-left: 19px;">Do You Wante Delete?</p> <p style="margin-left: 19px;">Do You Wante Delete?</p>
<input type="hidden" name="hiddengffgdtpid" id="hiddenid">
<input type="hidden" name="hiddenpass" id="hiddenid">
</div> </div>
<div class="form-actions"> <div class="form-actions">
@ -221,28 +125,17 @@
</div> </div>
</div> </div>
</div> </div>
<?php $this->load->view('includes/footer');?> <?php $this->load->view('includes/footer');?>
<!-- data tables --> <!-- data tables -->
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script> <script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script> <script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
<script src="<?=base_url();?>/assets/table_data.js"></script> <script src="<?=base_url();?>/assets/table_data.js"></script>
<script> <script>
$(".editdepclass").click(function(){ $(".editsemesterclass").click(function(){
$('#editmediumModel').modal('show'); $('#editmediumModel').modal('show');
var name=$(this).attr('data-name');
var code=$(this).attr('data-code');
var id=$(this).attr('data-id'); var id=$(this).attr('data-id');
$('#editdepid').val(name); //alert(id);
$('#editdepcode').val(code);
$('#hiddendepid').val(id);
});
$(".deletedpeclass").click(function(){
$('#delete1').modal('show');
var id=$(this).attr('data-id');
//alert(id);
$('#hiddenid').val(id); $('#hiddenid').val(id);
}); });
</script>
</script>

View File

@ -0,0 +1,310 @@
<!-- 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

@ -56,15 +56,15 @@
{ {
$eid=$e->id; $eid=$e->id;
$name=$e->name; $name=$e->name;
$mobilenumer=$e->mobilenumer; $mobile_Number=$e->mobile_Number;
$email=$e->email; $email=$e->email;
$img=$e->img; $image=$e->image;
$address=$e->address; $address=$e->address;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
<td><?=$i;?></td> <td><?=$i;?></td>
<td><?=$name;?></td> <td><?=$name;?></td>
<td><?=$mobilenumer;?></td> <td><?=$mobile_Number;?></td>
<td><?=$email;?></td> <td><?=$email;?></td>
<td><?=$address;?></td> <td><?=$address;?></td>

View File

@ -59,7 +59,7 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="number" type="text" placeholder="Enter Your Mobile Number" class="form-control input-height" /> </div> <input name="mobile" type="text" placeholder="Enter Your Mobile Number" class="form-control input-height" /> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Date Of Birth <label class="control-label col-md-3">Date Of Birth
@ -67,7 +67,7 @@
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<div class="input-append date" id="dp3"> <div class="input-append date" id="dp3">
<input name="date" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required"> <input type="date" name="date" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required">
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>--> <!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
</div> </div>
</div> </div>
@ -97,13 +97,13 @@
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="desigation" type="text" placeholder="Enter Your Designation" class="form-control input-height" /> </div> <input name="designation" type="text" placeholder="Enter Your Designation" class="form-control input-height" /> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Profile Image <label class="control-label col-md-3">Profile Image
</label> </label>
<div class="col-md-5 compose-editor"> <div class="col-md-5 compose-editor">
<input name="f_img" type="file" class="form-control default" multiple> <input name="image" type="file" class="form-control default" multiple>
</div> </div>
</div> </div>
</div> </div>

View File

@ -50,12 +50,12 @@
$faculty=$f->code; $faculty=$f->code;
$name=$f->name; $name=$f->name;
$email=$f->email; $email=$f->email;
$number=$f->number; $number=$f->mobile;
$dob=$f->dob; $dob=$f->dob;
$gender=$f->gender; $gender=$f->gender;
$address=$f->address; $address=$f->address;
$desi=$f->desi; $desi=$f->designation;
$f_img=$f->f_img; $f_img=$f->image;
} ?> } ?>
<div class="row"> <div class="row">
@ -97,20 +97,28 @@
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Mobile Number. <label class="control-label col-md-3">Mobile Number
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="number" value="<?=$number;?>" type="text" placeholder="Enter Staff" class="form-control error" /> <input name="number" value="<?=$number;?>" type="text" placeholder="Enter Staff" class="form-control error" />
</div> </div>
</div> </div>
<div class="form-group row">
<label class="control-label col-md-3">Designation
<span class="required"> * </span>
</label>
<div class="col-md-5">
<input name="designation" value="<?=$desi;?>" type="text" placeholder="Enter Staff" class="form-control error" />
</div>
</div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Date Of Birth <label class="control-label col-md-3">Date Of Birth
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<div class="input-append date" id="dp3"> <div class="input-append date" id="dp3">
<input name="dob" value="<?=$dob;?>" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required"> <input type="date" name="dob" value="<?=$dob;?>" class=" form-control input-height formDatePicker" placeholder="Date Of Birth" size="44" type="text" data-validation="required">
<!--<span class="add-on"><i class="fa fa-calendar"></i></span>--> <!--<span class="add-on"><i class="fa fa-calendar"></i></span>-->
</div> </div>
</div> </div>
@ -140,7 +148,7 @@
<label class="control-label col-md-3">Profile Img <label class="control-label col-md-3">Profile Img
</label> </label>
<div class="compose-editor"> <div class="compose-editor">
<input type="file" name="f_img" value="<?=$f_img;?>" placeholder="Enter img" class="form-control error"> <input type="file" name="image" value="<?=$f_img;?>" placeholder="Enter img" class="form-control error">
</div> </div>
</div> </div>
<div class="form-actions"> <div class="form-actions">

View File

@ -61,7 +61,7 @@
//$dob=$f->dob; //$dob=$f->dob;
//$gender=$f->gender; //$gender=$f->gender;
//$address=$f->address; //$address=$f->address;
$desi=$f->desigation; $desi=$f->designation;
//$f_img=$f->f_img; //$f_img=$f->f_img;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">

View File

@ -1,7 +1,7 @@
<!-- start footer --> <!-- start footer -->
<div class="page-footer"> <div class="page-footer">
<div class="page-footer-inner"> 2017 &copy; RedStar Hospital Theme By <div class="page-footer-inner"> 2023 &copy; Created By
<a href="mailto:redstartheme@gmail.com" target="_top" class="makerCss">RT Theme maker</a> <a href="" target="_top" class="makerCss">Dowings</a>
</div> </div>
<div class="scroll-to-top"> <div class="scroll-to-top">
<i class="icon-arrow-up"></i> <i class="icon-arrow-up"></i>

View File

@ -10,7 +10,7 @@
<meta content="width=device-width, initial-scale=1" name="viewport" /> <meta content="width=device-width, initial-scale=1" name="viewport" />
<meta name="description" content="Responsive Admin Template" /> <meta name="description" content="Responsive Admin Template" />
<meta name="author" content="RedstarHospital" /> <meta name="author" content="RedstarHospital" />
<title>Student</title> <title>Mcgans</title>
<!-- google font --> <!-- google font -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&amp;subset=all" rel="stylesheet" type="text/css" /> <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&amp;subset=all" rel="stylesheet" type="text/css" />
<!-- icons --> <!-- icons -->
@ -40,8 +40,8 @@
<div class="page-header navbar navbar-fixed-top"> <div class="page-header navbar navbar-fixed-top">
<div class="page-header-inner "> <div class="page-header-inner ">
<!-- logo start --> <!-- logo start -->
<div style="background: #f5f5f5;" class="page-logo"> <div style="background: #f5f5f5;margin-left: -14px;" class="page-logo">
<img src="<?=base_url();?>assets/img/logo5.png" alt="logo" class="logo-default" /> <img src="<?=base_url();?>assets/img/logonew2.png" alt="logo" class="logo-default" />
</div> </div>
<!-- logo end --> <!-- logo end -->
<ul class="nav navbar-nav navbar-left in"> <ul class="nav navbar-nav navbar-left in">
@ -213,10 +213,15 @@
<!-- end message dropdown --> <!-- end message dropdown -->
<!-- start manage user dropdown --> <!-- start manage user dropdown -->
<li class="dropdown dropdown-user"> <li class="dropdown dropdown-user">
<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">
<img alt="" class="img-circle " src="assets/img/icon.png" /> <img alt="" class="img-circle " src="assets/img/icon.png" />
<span class="username username-hide-on-mobile"> Student </span> <span class="username username-hide-on-mobile"> Student </span>
<i class="fa fa-angle-down"></i> <i class="fa fa-angle-down"></i>
</a>-->
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<img alt="" class="img-circle " src="assets/img/icon.jpg" />
<span class="username username-hide-on-mobile"> Student </span>
<i class="fa fa-angle-down"></i>
</a> </a>
<ul class="dropdown-menu dropdown-menu-default"> <ul class="dropdown-menu dropdown-menu-default">
<li> <li>

View File

@ -56,7 +56,7 @@
<li class="nav-item "> <li class="nav-item ">
<a href="<?=base_url();?>department" class="nav-link nav-toggle"> <a href="<?=base_url();?>department" class="nav-link nav-toggle">
<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>
<li class="nav-item "> <li class="nav-item ">

View File

@ -51,7 +51,7 @@
<div class="wrap-login100"> <div class="wrap-login100">
<form class="login100-form validate-form" action="<?=base_url()?>welcome/dashboard" method="post"> <form class="login100-form validate-form" action="<?=base_url()?>welcome/dashboard" method="post">
<span class="login100-form-logo"> <span class="login100-form-logo">
<!--<img alt="" src="<?=base_url();?>assets/img/logo3.png">--> <img alt="" src="<?=base_url();?>assets/img/login.png">
</span> </span>
<span class="login100-form-title p-b-34 p-t-27"> <span class="login100-form-title p-b-34 p-t-27">
Log in Log in

View File

@ -53,7 +53,7 @@
{ {
//$id=$r->id; //$id=$r->id;
$role_id=$r->role_id; $id=$r->id;
$rolename=$r->name; $rolename=$r->name;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
@ -61,10 +61,10 @@
<td><?=$i;?></td> <td><?=$i;?></td>
<td><?=$rolename;?></td> <td><?=$rolename;?></td>
<td> <td>
<a href="javascript:;" data-id="<?=$role_id;?>" data-name="<?=$rolename;?>" class="editroleclass btn btn-primary btn-xs "> <a href="javascript:;" data-id="<?=$id;?>" data-name="<?=$rolename;?>" class="editroleclass btn btn-primary btn-xs ">
<i class="fa fa-pencil"></i> <i class="fa fa-pencil"></i>
</a> </a>
<a href="javascript:;" data-id="<?=$role_id;?>" class="deleteroleclass btn btn-danger btn-xs "> <a href="javascript:;" data-id="<?=$id;?>" class="deleteroleclass btn btn-danger btn-xs ">
<i class="fa fa-trash-o"></i> <i class="fa fa-trash-o"></i>
</a> </a>

View File

@ -22,30 +22,27 @@
</div> </div>
<?php $this->load->view('includes/msg');?> <?php $this->load->view('includes/msg');?>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-8">
<div class="card card-topline-red"> <div class="card card-topline-red">
<div class="card-body "> <div class="card-body ">
<div class="row"> <div class="row">
<div class="col-md-6 col-sm-6 col-xs-6"> <div class="col-md-6 col-sm-6 col-xs-6">
<div class="btn-group"> <div class="btn-group">
<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">Add <i class="fa fa-plus"></i></button>
</div> </div>
</div> </div>
</div> </div>
<div class="table-scrollable"> <div class="table-scrollable">
<table class="table table-hover table-checkable order-column full-width" id="example4"> <table class="table table-hover table-checkable order-column full-width" id="example4" >
<thead> <thead>
<tr> <tr>
<th> S.No</th> <th> S.No </th>
<th> Name </th> <th> Name </th>
<th> Hod </th>
<th> Staff </th>
<th> Action </th> <th> Action </th>
</tr> </tr>
</thead> </thead>
<tbody>
<?php <?php
if(isset($sem) && $sem->num_rows()>0) if(isset($sem) && $sem->num_rows()>0)
{ {
@ -54,21 +51,18 @@
{ {
$id=$s->id; $id=$s->id;
$name=$s->name; $name=$s->name;
$hod=$s->hod;
$staff=$s->staff;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
<td><?=$i;?></td> <td><?=$i;?></td>
<td><?=$name;?></td> <td><?=$name;?></td>
<td><?=$hod;?></td>
<td><?=$staff;?></td>
<td> <td>
<a href="javascript:;" data-id="<?=$id;?>" data-name="<?=$name;?>" class="editdepclass btn btn-primary btn-xs ">
<a href="<?=base_url();?>edit_semester/<?=$id;?>" class="btn btn-primary btn-xs">
<i class="fa fa-pencil"></i> <i class="fa fa-pencil"></i>
</a> </a>
<a data-id="<?=$id;?>" class="editsemesterclass btn btn-danger btn-xs">
<a href="javascript:;" data-id="<?=$id;?>" class="deletedpeclass btn btn-danger btn-xs">
<i class="fa fa-trash-o"></i> <i class="fa fa-trash-o"></i>
</a> </a>
@ -81,20 +75,105 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- end page content --> <!-- end page content -->
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" <!-- Midium Model -->
<div class="modal fade" id="mediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true"> aria-hidden="true">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title" id="exampleModalLabel">delete Role</h4> <h4 class="modal-title" id="exampleModalLabel">Add Semester</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_semester" method="post">
<div class="form-body">
<div class="form-group row">
<label class="control-label col-md-4">Name
<span class="required"> * </span>
</label>
<div class="col-md-7">
<input type="text" name="name" data-required="1" placeholder="Enter Your Name" class="form-control input-height">
</div>
</div>
<div class="form-actions">
<div class="row">
<div class="offset-md-3 col-md-9">
<input type="submit" id="add_department" name="submit" class="btn btn-info m-r-20" value="Submit">
<button type="button" class="btn btn-default">Cancel</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="editmediumModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="exampleModalLabel">Edit Semester</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="<?=base_url();?>edit_semester" method="post">
<div class="form-body">
<div class="form-group row">
<label class="control-label col-md-4">Name
<span class="required"> * </span>
</label>
<div class="col-md-7">
<input type="text" name="name" data-required="1" id="editdepid" placeholder="Enter Your Name" class="form-control input-height">
<input type="hidden" name="hiddendepid" id="hiddendepid">
</div>
</div>
<div class="form-actions">
<div class="row">
<div class="offset-md-3 col-md-9">
<input type="submit" name="submit" class="btn btn-info m-r-20" value="Submit">
<button type="button" class="btn btn-default">Cancel</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="modal fade" id="delete1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="exampleModalLabel">deleted Role</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
@ -105,8 +184,7 @@
<div class="form-group row"> <div class="form-group row">
<p style="margin-left: 19px;">Do You Wante Delete?</p> <p style="margin-left: 19px;">Do You Wante Delete?</p>
<input type="hidden" name="hiddengffgdtpid" id="hiddenid">
<input type="hidden" name="hiddenpass" id="hiddenid">
</div> </div>
<div class="form-actions"> <div class="form-actions">
@ -124,17 +202,28 @@
</div> </div>
</div> </div>
</div> </div>
<?php $this->load->view('includes/footer');?> <?php $this->load->view('includes/footer');?>
<!-- data tables --> <!-- data tables -->
<script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script> <script src="<?=base_url();?>/assets/datatables/jquery.dataTables.min.js"></script>
<script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script> <script src="<?=base_url();?>/assets/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js"></script>
<script src="<?=base_url();?>/assets/table_data.js"></script> <script src="<?=base_url();?>/assets/table_data.js"></script>
<script> <script>
$(".editsemesterclass").click(function(){ $(".editdepclass").click(function(){
$('#editmediumModel').modal('show'); $('#editmediumModel').modal('show');
var name=$(this).attr('data-name');
var code=$(this).attr('data-code');
var id=$(this).attr('data-id'); var id=$(this).attr('data-id');
//alert(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); $('#hiddenid').val(id);
}); });
</script>
</script>

View File

@ -0,0 +1,135 @@
<!-- 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">Semester 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>
</ol>
</div>
</div>
<?php $this->load->view('includes/msg');?>
<div class="row">
<div class="col-md-6">
<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" ><a style="color:#fff;"href="<?=base_url();?>add_semester">add <i class="fa fa-plus"></i></a> </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> Action </th>
</tr>
</thead>
<tbody>
<?php
if(isset($sem) && $sem->num_rows()>0)
{
$i=1;
foreach($sem->result() as $s)
{
$id=$s->id;
$name=$s->name;
?>
<tr class="odd gradeX">
<td><?=$i;?></td>
<td><?=$name;?></td>
<td>
<a href="<?=base_url();?>edit_semester/<?=$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">
<i class="fa fa-trash-o"></i>
</a>
</td>
</tr>
<?php
$i++;
} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end page content -->
<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">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();?>deleted_semester" 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="hiddenpass" 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>
$(".editsemesterclass").click(function(){
$('#editmediumModel').modal('show');
var id=$(this).attr('data-id');
//alert(id);
$('#hiddenid').val(id);
});
</script>

View File

@ -93,7 +93,7 @@
<label class="control-label col-md-3">Profile Img <label class="control-label col-md-3">Profile Img
</label> </label>
<div class="col-md-5 compose-editor"> <div class="col-md-5 compose-editor">
<input name="s_img" type="file" class="form-control default" multiple> <input name="image" type="file" class="form-control default" multiple>
</div> </div>
</div> </div>
</div> </div>

View File

@ -52,7 +52,7 @@
$address=$s->address; $address=$s->address;
$department=$s->department; $department=$s->department;
$gender=$s->gender; $gender=$s->gender;
$s_img=$s->s_img; $s_img=$s->image;
} ?> } ?>
<div class="row"> <div class="row">
@ -112,7 +112,7 @@
<label class="control-label col-md-3">Profile Img <label class="control-label col-md-3">Profile Img
</label> </label>
<div class="compose-editor"> <div class="compose-editor">
<input name="s_img" value="<?=$s_img;?>" type="file" class="default" multiple> <input name="image" value="<?=$s_img;?>" type="file" class="default" multiple>
</div> </div>
</div> </div>
<div class="form-actions"> <div class="form-actions">

View File

@ -59,7 +59,7 @@
$address=$s->address; $address=$s->address;
$department=$s->department; $department=$s->department;
$gender=$s->gender; $gender=$s->gender;
$s_img=$s->s_img; $s_img=$s->image;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
<td><?=$i;?></td> <td><?=$i;?></td>

View File

@ -44,24 +44,38 @@
<input name="subject" type="text" placeholder="Enter Subject Name" class="form-control input-height" /> </div> <input name="subject" type="text" placeholder="Enter Subject Name" class="form-control input-height" /> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Department. <label class="control-label col-md-3">Department
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="department" type="text" placeholder="Enter Department" class="form-control input-height" /> </div> <select class="form-control input-height" name="department">
<option value="">Select...</option>
<option value="BCA">BCA</option>
<option value="MCA">MCA</option>
<option value="B.com">B.com</option>
</select>
</div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Semester. <label class="control-label col-md-3">Semester
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="semester" type="text" placeholder="Enter Semester" class="form-control input-height" /> </div> <select class="form-control input-height" name="semester">
<option value="">Select...</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Profile Images <label class="control-label col-md-3">Profile Images
</label> </label>
<div class="col-md-5 compose-editor"> <div class="col-md-5 compose-editor">
<input type="file" name="img" placeholder="Enter img" class="form-control default" > <input type="file" name="image" placeholder="Enter img" class="form-control default" >
</div> </div>
</div> </div>

View File

@ -51,7 +51,7 @@
$sub=$s->subject; $sub=$s->subject;
$dep=$s->department; $dep=$s->department;
$semester=$s->semester; $semester=$s->semester;
$p_img=$s->p_img; $p_img=$s->image;
} ?> } ?>
<div class="row"> <div class="row">
@ -79,24 +79,39 @@
<input name="subject" value="<?=$sub;?>" type="text" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div> <input name="subject" value="<?=$sub;?>" type="text" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Department. <label class="control-label col-md-3">Department
<span class="required"> * </span> <span class="required"> * </span>
</label> </label>
<div class="col-md-5"> <div class="col-md-5">
<input name="department" value="<?=$dep;?>" type="text" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div> <select class="form-control input-height" value="<?=$dep;?>" name="department">
<option value="">Select...</option>
<option value="BCA">BCA</option>
<option value="MCA">MCA</option>
<option value="B.com">B.com</option>
</select>
</div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Semester. <label class="control-label col-md-3">Semester
<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" data-required="1" placeholder="Enter subject" class="form-control input-height" /> </div> <select class="form-control input-height" value="<?=$semester;?>" name="semester">
<option value="">Select...</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="control-label col-md-3">Upload Picture <label class="control-label col-md-3">Upload Picture
</label> </label>
<div class="compose-editor"> <div class="compose-editor">
<input type="file" name="p_img" value="<?=$p_img;?>" placeholder="Enter img" class="default" multiple> <input type="file" name="image" value="<?=$p_img;?>" placeholder="Enter img" class="default" multiple>
</div> </div>
</div> </div>

View File

@ -59,7 +59,7 @@
$sub=$s->subject; $sub=$s->subject;
$dep=$s->department; $dep=$s->department;
$semester=$s->semester; $semester=$s->semester;
$p_img=$s->p_img; $p_img=$s->image;
?> ?>
<tr class="odd gradeX"> <tr class="odd gradeX">
<td><?=$i;?></td> <td><?=$i;?></td>

BIN
assets/img/icon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
assets/img/login.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
assets/img/logonew1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
assets/img/logonew2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -174,11 +174,11 @@ iframe {
border-radius: 10px; border-radius: 10px;
overflow: hidden; overflow: hidden;
padding: 37px 55px 37px 55px; padding: 37px 55px 37px 55px;
background: #9152f8; background: #EF9A9A;
background: -webkit-linear-gradient(top, #007bff, #5992d0); /* //background: -webkit-linear-gradient(top, #007bff, #5992d0); */
background: -o-linear-gradient(top, #007bff, #5992d0); /* // background: -o-linear-gradient(top, #007bff, #5992d0); */
background: -moz-linear-gradient(top, #007bff, #5992d0); /* // background: -moz-linear-gradient(top, #007bff, #5992d0); */
background: linear-gradient(top, #007bff, #5992d0); /* //background: linear-gradient(top, #007bff, #5992d0); */
} }