2023-01-08 20:46:58 +00:00
|
|
|
<!-- 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">Project List</div>
|
|
|
|
</div>
|
|
|
|
<ol class="breadcrumb page-breadcrumb pull-right">
|
|
|
|
<li><i class="fa fa-home"></i> <a class="parent-item" href="<?=base_url();?>/dashboard">Home</a> <i class="fa fa-angle-right"></i>
|
|
|
|
</li>
|
|
|
|
<li class="active">Project</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php $this->load->view('includes/msg');?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<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">
|
2023-01-21 13:41:47 +00:00
|
|
|
<a style="color:#fff;"href="<?=base_url();?>add_project">
|
2023-01-08 20:46:58 +00:00
|
|
|
<button type="button" class="btn btn-info"
|
2023-01-21 13:41:47 +00:00
|
|
|
data-toggle="modal" data-target="#mediumModel" >add <i class="fa fa-plus"></i></button>
|
|
|
|
</a>
|
2023-01-08 20:46:58 +00:00
|
|
|
</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> Date </th>
|
2023-01-21 13:41:47 +00:00
|
|
|
<th> Project Code </th>
|
2023-01-08 20:46:58 +00:00
|
|
|
<th> Student </th>
|
|
|
|
<th> Semester </th>
|
2023-01-21 13:41:47 +00:00
|
|
|
<th> Subject </th>
|
2023-01-08 20:46:58 +00:00
|
|
|
<th> Department </th>
|
|
|
|
<th> Action </th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
if(isset($pro) && $pro->num_rows()>0)
|
|
|
|
{
|
|
|
|
$i=1;
|
|
|
|
foreach($pro->result() as $p)
|
|
|
|
{
|
|
|
|
$id=$p->id;
|
|
|
|
$date=$p->date;
|
|
|
|
$name=$p->projectName;
|
2023-01-21 13:41:47 +00:00
|
|
|
$code=$p->code;
|
|
|
|
$studentName=$p->studentName;
|
|
|
|
$semName=$p->semName;
|
|
|
|
$subName=$p->subName;
|
|
|
|
$depName=$p->depName;
|
|
|
|
//$faculty=$p->facultyName;
|
2023-01-08 20:46:58 +00:00
|
|
|
$image=$p->image;
|
|
|
|
?>
|
|
|
|
<tr class="odd gradeX">
|
|
|
|
<td><?=$i;?></td>
|
|
|
|
<td><?=$date;?></td>
|
2023-01-21 13:41:47 +00:00
|
|
|
<td><?=$code;?></td>
|
|
|
|
<td><?=$studentName;?></td>
|
|
|
|
<td><?=$semName;?></td>
|
|
|
|
<td><?=$subName;?></td>
|
|
|
|
<td><?=$depName;?></td>
|
|
|
|
|
2023-01-08 20:46:58 +00:00
|
|
|
|
|
|
|
<td>
|
2023-01-21 13:41:47 +00:00
|
|
|
<a href="<?=base_url();?>view-project/<?=$id;?>" class="btn btn-success btn-xs">
|
|
|
|
<i class="fa fa-eye"></i>
|
|
|
|
</a>
|
2023-01-24 10:05:16 +00:00
|
|
|
<a href="<?=base_url();?>edit-project/<?=$id;?>" class="btn btn-primary btn-xs">
|
2023-01-08 20:46:58 +00:00
|
|
|
<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">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2023-01-21 13:41:47 +00:00
|
|
|
<form action="<?=base_url();?>project/deleteProject" method="post">
|
2023-01-08 20:46:58 +00:00
|
|
|
<div class="form-body">
|
|
|
|
|
|
|
|
<div class="form-group row">
|
|
|
|
<p style="margin-left: 19px;">Do You Wante Delete?</p>
|
|
|
|
|
2023-01-21 13:41:47 +00:00
|
|
|
<input type="hidden" name="projectId" value="<?=$id;?>">
|
2023-01-08 20:46:58 +00:00
|
|
|
</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>
|