McGansWebsite/admin/application/views/dashboard.php
dotwingssoftware f2a40c268b 20230207
1. Have to test and deploy in server.  2. add faculty detail into employee table and student detail  into employee table, 3. Change Teaching Assistant into multiple select 4. User Profile
2023-02-07 18:41:26 +05:30

446 lines
17 KiB
PHP

<?php $this->load->view('includes/header');?>
<!-- start page container -->
<div class="page-container">
<?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">Dashboard</div>
</div>
<ol class="breadcrumb page-breadcrumb pull-right">
<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
</li>
<li class="active">Dashboard</li>
</ol>
</div>
</div>
<!-- start widget -->
<div class="state-overview">
<div class="row">
<div class="col-xl-3 col-md-6 col-12">
<div class="info-box bg-blue">
<span class="info-box-icon push-bottom"><i class="material-icons">group</i></span>
<?php
if(isset($project) && $project->num_rows()>0){
$b=$project->row();
$tProjects=$b->tProjects;
}
?>
<div class="info-box-content">
<span class="info-box-text">Total Project</span>
<span class="info-box-number"><?=$tProjects;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<!-- /.col -->
<div class="col-xl-3 col-md-6 col-12">
<div class="info-box bg-orange">
<span class="info-box-icon push-bottom"><i class="material-icons">person</i></span>
<?php
if(isset($student) && $student->num_rows()>0){
$b=$student->row();
$tStudents=$b->tStudents;
}
?>
<div class="info-box-content">
<span class="info-box-text">Total Students</span>
<span class="info-box-number"><?=$tStudents;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<!-- /.col -->
<div class="col-xl-3 col-md-6 col-12">
<div class="info-box bg-purple">
<span class="info-box-icon push-bottom"><i class="material-icons">local_library</i></span>
<?php
if(isset($subject) && $subject->num_rows()>0){
$b=$subject->row();
$tSubjects=$b->tSubjects;
}
?>
<div class="info-box-content">
<span class="info-box-text">Total Subjects</span>
<span class="info-box-number"><?=$tSubjects;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<!-- /.col -->
<div class="col-xl-3 col-md-6 col-12">
<div class="info-box bg-success">
<span class="info-box-icon push-bottom"><i class="material-icons">school</i></span>
<?php
if(isset($faculty) && $faculty->num_rows()>0){
$b=$faculty->row();
$tFaculties=$b->tFaculties;
}
?>
<div class="info-box-content">
<span class="info-box-text">Total Faculties</span>
<span class="info-box-number"><?=$tFaculties;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<!-- /.col -->
</div>
</div>
<!-- end widget -->
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="card card-box">
<div class="card-body ">
<div class="row table-padding">
<div class="col-md-6 col-sm-6 col-xs-6">
<div class="btn-group">
<a href="<?=base_url();?>/add_project" id="addRow" class="btn btn-info">
Add New <i class="fa fa-plus"></i>
</a>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-6">
<div class="btn-group pull-right">
<button class="btn deepPink-bgcolor btn-outline dropdown-toggle" data-toggle="dropdown">Tools
<i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu pull-right">
<li>
<a href="javascript:;">
<i class="fa fa-print"></i> Print </a>
</li>
<li>
<a href="javascript:;">
<i class="fa fa-file-pdf-o"></i> Save as PDF </a>
</li>
<li>
<a href="javascript:;">
<i class="fa fa-file-excel-o"></i> Export to Excel </a>
</li>
</ul>
</div>
</div>
</div>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover table-checkable order-column" id="example4">
<thead>
<tr>
<th> S.No </th>
<th> Date </th>
<th> Project Code </th>
<th> Student </th>
<th> Semester </th>
<th> Subject </th>
<th> Department </th>
<th> Action </th>
</tr>
</thead>
<tbody>
<?php if(isset($projectList) && $projectList->num_rows()>0)
{
$i=1;
foreach($projectList->result() as $p)
{
$id=$p->id;
$date=$p->date;
$name=$p->projectName;
$code=$p->code;
$studentName=$p->studentName;
$semName=$p->semName;
$subName=$p->subName;
$depName=$p->depName;
//$faculty=$p->facultyName;
$image=$p->image;
?>
<tr class="odd gradeX">
<td><?=$i;?></td>
<td><?=$date;?></td>
<td><?=$code;?></td>
<td><?=$studentName;?></td>
<td><?=$semName;?></td>
<td><?=$subName;?></td>
<td><?=$depName;?></td>
<td class="center">
<div class="btn-group">
<a href="<?=base_url();?>view-project/<?=$id;?>" class="btn btn-info btn-xs">
View <i class="fa fa-eye"></i>
</a>
</div>
</td>
</tr>
<?php $i++;}}?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end page content -->
<!-- start chat sidebar -->
<div class="chat-sidebar-container" data-close-on-body-click="false">
<div class="chat-sidebar">
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="#quick_sidebar_tab_1" class="nav-link active tab-icon" data-toggle="tab"> <i class="material-icons">chat</i>Chat
<span class="badge badge-danger">4</span>
</a>
</li>
<li class="nav-item">
<a href="#quick_sidebar_tab_3" class="nav-link tab-icon" data-toggle="tab"> <i class="material-icons">settings</i>
Settings
</a>
</li>
</ul>
<div class="tab-content">
<!-- Start Doctor Chat -->
<div class="tab-pane active chat-sidebar-chat in active show" role="tabpanel" id="quick_sidebar_tab_1">
<div class="chat-sidebar-list">
<div class="chat-sidebar-chat-users slimscroll-style" data-rail-color="#ddd" data-wrapper-class="chat-sidebar-list">
<div class="chat-header">
<h5 class="list-heading">Online</h5>
</div>
<ul class="media-list list-items">
<li class="media"><img class="media-object" src="img/doc/doc3.jpg" width="35" height="35" alt="...">
<i class="online dot"></i>
<div class="media-body">
<h5 class="media-heading">John Deo</h5>
<div class="media-heading-sub">Spine Surgeon</div>
</div>
</li>
<li class="media">
<div class="media-status">
<span class="badge badge-success">5</span>
</div> <img class="media-object" src="img/doc/doc1.jpg" width="35" height="35" alt="...">
<i class="busy dot"></i>
<div class="media-body">
<h5 class="media-heading">Rajesh</h5>
<div class="media-heading-sub">Director</div>
</div>
</li>
<li class="media"><img class="media-object" src="img/doc/doc5.jpg" width="35" height="35" alt="...">
<i class="away dot"></i>
<div class="media-body">
<h5 class="media-heading">Jacob Ryan</h5>
<div class="media-heading-sub">Ortho Surgeon</div>
</div>
</li>
<li class="media">
<div class="media-status">
<span class="badge badge-danger">8</span>
</div> <img class="media-object" src="img/doc/doc4.jpg" width="35" height="35" alt="...">
<i class="online dot"></i>
<div class="media-body">
<h5 class="media-heading">Kehn Anderson</h5>
<div class="media-heading-sub">CEO</div>
</div>
</li>
<li class="media"><img class="media-object" src="img/doc/doc2.jpg" width="35" height="35" alt="...">
<i class="busy dot"></i>
<div class="media-body">
<h5 class="media-heading">Sarah Smith</h5>
<div class="media-heading-sub">Anaesthetics</div>
</div>
</li>
<li class="media"><img class="media-object" src="img/doc/doc7.jpg" width="35" height="35" alt="...">
<i class="online dot"></i>
<div class="media-body">
<h5 class="media-heading">Vlad Cardella</h5>
<div class="media-heading-sub">Cardiologist</div>
</div>
</li>
</ul>
<div class="chat-header">
<h5 class="list-heading">Offline</h5>
</div>
<ul class="media-list list-items">
<li class="media">
<div class="media-status">
<span class="badge badge-warning">4</span>
</div> <img class="media-object" src="img/doc/doc6.jpg" width="35" height="35" alt="...">
<i class="offline dot"></i>
<div class="media-body">
<h5 class="media-heading">Jennifer Maklen</h5>
<div class="media-heading-sub">Nurse</div>
<div class="media-heading-small">Last seen 01:20 AM</div>
</div>
</li>
<li class="media"><img class="media-object" src="img/doc/doc8.jpg" width="35" height="35" alt="...">
<i class="offline dot"></i>
<div class="media-body">
<h5 class="media-heading">Lina Smith</h5>
<div class="media-heading-sub">Ortho Surgeon</div>
<div class="media-heading-small">Last seen 11:14 PM</div>
</div>
</li>
<li class="media">
<div class="media-status">
<span class="badge badge-success">9</span>
</div> <img class="media-object" src="img/doc/doc9.jpg" width="35" height="35" alt="...">
<i class="offline dot"></i>
<div class="media-body">
<h5 class="media-heading">Jeff Adam</h5>
<div class="media-heading-sub">Compounder</div>
<div class="media-heading-small">Last seen 3:31 PM</div>
</div>
</li>
<li class="media"><img class="media-object" src="img/doc/doc10.jpg" width="35" height="35" alt="...">
<i class="offline dot"></i>
<div class="media-body">
<h5 class="media-heading">Anjelina Cardella</h5>
<div class="media-heading-sub">Physiotherapist</div>
<div class="media-heading-small">Last seen 7:45 PM</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<!-- End Doctor Chat -->
<!-- Start Setting Panel -->
<div class="tab-pane chat-sidebar-settings" role="tabpanel" id="quick_sidebar_tab_3">
<div class="chat-sidebar-settings-list slimscroll-style">
<div class="chat-header">
<h5 class="list-heading">Layout Settings</h5>
</div>
<div class="chatpane inner-content ">
<div class="settings-list">
<div class="setting-item">
<div class="setting-text">Sidebar Position</div>
<div class="setting-set">
<select class="sidebar-pos-option form-control input-inline input-sm input-small ">
<option value="left" selected="selected">Left</option>
<option value="right">Right</option>
</select>
</div>
</div>
<div class="setting-item">
<div class="setting-text">Header</div>
<div class="setting-set">
<select class="page-header-option form-control input-inline input-sm input-small ">
<option value="fixed" selected="selected">Fixed</option>
<option value="default">Default</option>
</select>
</div>
</div>
<div class="setting-item">
<div class="setting-text">Footer</div>
<div class="setting-set">
<select class="page-footer-option form-control input-inline input-sm input-small ">
<option value="fixed">Fixed</option>
<option value="default" selected="selected">Default</option>
</select>
</div>
</div>
</div>
<div class="chat-header">
<h5 class="list-heading">Account Settings</h5>
</div>
<div class="settings-list">
<div class="setting-item">
<div class="setting-text">Notifications</div>
<div class="setting-set">
<div class="switch">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-1">
<input type="checkbox" id="switch-1" class="mdl-switch__input" checked>
</label>
</div>
</div>
</div>
<div class="setting-item">
<div class="setting-text">Show Online</div>
<div class="setting-set">
<div class="switch">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-7">
<input type="checkbox" id="switch-7" class="mdl-switch__input" checked>
</label>
</div>
</div>
</div>
<div class="setting-item">
<div class="setting-text">Status</div>
<div class="setting-set">
<div class="switch">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-2">
<input type="checkbox" id="switch-2" class="mdl-switch__input" checked>
</label>
</div>
</div>
</div>
<div class="setting-item">
<div class="setting-text">2 Steps Verification</div>
<div class="setting-set">
<div class="switch">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-3">
<input type="checkbox" id="switch-3" class="mdl-switch__input" checked>
</label>
</div>
</div>
</div>
</div>
<div class="chat-header">
<h5 class="list-heading">General Settings</h5>
</div>
<div class="settings-list">
<div class="setting-item">
<div class="setting-text">Location</div>
<div class="setting-set">
<div class="switch">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-4">
<input type="checkbox" id="switch-4" class="mdl-switch__input" checked>
</label>
</div>
</div>
</div>
<div class="setting-item">
<div class="setting-text">Save Histry</div>
<div class="setting-set">
<div class="switch">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-5">
<input type="checkbox" id="switch-5" class="mdl-switch__input" checked>
</label>
</div>
</div>
</div>
<div class="setting-item">
<div class="setting-text">Auto Updates</div>
<div class="setting-set">
<div class="switch">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-6">
<input type="checkbox" id="switch-6" class="mdl-switch__input" checked>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end chat sidebar -->
</div>
<!-- end page container -->
<!-- start footer -->
<?php $this->load->view('includes/footer');?>