McGansWebsite/application/views/index.php
dotwingssoftware 6515996f87 20230121
Role, Employee, Department, Degree, Semester, Subject, Faculty Edit Completed
2023-01-21 19:11:47 +05:30

75 lines
3.0 KiB
PHP

<?php $this->load->view('include/header.php')?>
<!-- sidebar-menu end-->
<!--=============== wrapper ===============-->
<div id="wrapper">
<!-- content-holder -->
<div class="content-holder">
<!-- content -->
<div class="content full-height">
<div class="error-wrap">
<div class="container">
<br>
<div class="row">
<div class="col-md-3">
<div class="content-wrap about-wrap">
<h5 class="bold-title">Department</h5>
<span class="bold-separator"></span>
<div class="clearfix"></div>
</div>
</div>
<?php
if(isset($dep) && $dep->num_rows()>0)
{
foreach($dep->result() as $deparment)
$id=$deparment->id;
$code=$deparment->code;
$name=$deparment->name;
$image=$deparment->image;
{
?>
<div class="col-md-3">
<a href="<?=base_url();?>subject-list/<?=$id?>">
<div class="box-item" style="margin-bottom:15px;">
<?php if($image!=""){
?>
<img src="<?=base_url();?>admin/uploads/department/<?=$image;?>" class="respimg" alt="">
<?php
}else{?>
<img src="https://ui-avatars.com/api/?name=<?=$code?>?background=random&color=random" class="respimg" alt="">
<?php }?>
<div class="overlay"></div>
</div>
<h1 style="font-size:20px;padding-top:5px"><?=$name?></h1>
</div>
</a>
<?php
}
}
?>
</div>
</div>
</div>
<div class="partcile-dec" data-parcount="200"></div>
</div>
<!--=============== content-footer ===============-->
<!-- content-footer end -->
</div>
<!-- content-holder end -->
</div>
<?php $this->load->view('include/footer.php')?>
</div>
<!-- Main end -->
<!--=============== scripts ===============-->
<script type="text/javascript" src="<?=base_url();?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?=base_url();?>js/plugins.js"></script>
<script type="text/javascript" src="<?=base_url();?>js/scripts.js"></script>
</body>
</html>