2023-01-24 10:05:16 +00:00
|
|
|
<?php $this->load->view('include/header.php')?>
|
2023-01-21 13:41:47 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.row{
|
2023-01-24 10:05:16 +00:00
|
|
|
margin-top: 58px;
|
2023-01-21 13:41:47 +00:00
|
|
|
}
|
|
|
|
</style>
|
2023-01-24 10:05:16 +00:00
|
|
|
<?php
|
2023-01-21 13:41:47 +00:00
|
|
|
$CI=& get_instance();
|
2023-01-24 10:05:16 +00:00
|
|
|
|
2023-01-21 13:41:47 +00:00
|
|
|
$CI->load->model('WelcomeModel');?>
|
2023-01-24 10:05:16 +00:00
|
|
|
<div id="wrapper">
|
|
|
|
<!-- content-holder -->
|
|
|
|
<div class="content-holder">
|
|
|
|
<div class="content">
|
|
|
|
<!-- section -->
|
|
|
|
<section class="pr-der-pad">
|
|
|
|
<!-- container-->
|
|
|
|
<div class="container">
|
|
|
|
<?php
|
|
|
|
if(isset($subject_Det)&& $subject_Det->num_rows()>0)
|
|
|
|
{
|
|
|
|
$list=$subject_Det->row();
|
|
|
|
|
|
|
|
$id=$list->id;
|
|
|
|
$code=$list->code;
|
|
|
|
$name=$list->name;
|
2023-02-07 13:11:26 +00:00
|
|
|
$subtitle=$list->subtitle;
|
2023-01-24 10:05:16 +00:00
|
|
|
$facultyId=$list->facultyId;
|
2023-02-07 13:11:26 +00:00
|
|
|
$teachingAssistant=$list->teachingAssistant;
|
2023-01-24 10:05:16 +00:00
|
|
|
$description=$list->description;
|
|
|
|
$facultyIds = explode(',', $facultyId);
|
2023-02-07 13:11:26 +00:00
|
|
|
$taId = explode(',', $teachingAssistant);
|
2023-01-24 10:05:16 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
<!-- det-wrap-->
|
|
|
|
<div class="fl-wrap det-wrap">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<!--Image List-->
|
|
|
|
<?php
|
|
|
|
$getSubjectImage=$CI->WelcomeModel->getSubjectImage($id);
|
|
|
|
//echo $this->db->last_query();exit;
|
|
|
|
if(isset($getSubjectImage) && $getSubjectImage->num_rows()>0)
|
|
|
|
{
|
|
|
|
foreach($getSubjectImage->result() as $view)
|
|
|
|
{
|
|
|
|
$imageid=$view->id;
|
|
|
|
$imagetitle=$view->title;
|
|
|
|
$iimage=$view->image;
|
2023-01-21 13:41:47 +00:00
|
|
|
|
2023-01-24 10:05:16 +00:00
|
|
|
?>
|
|
|
|
<div>
|
2023-02-07 13:11:26 +00:00
|
|
|
<img style="width:750px;height:auto;margin-bottom:100px;" src="<?=base_url();?>admin/uploads/subject/<?=$iimage;?>"/>
|
|
|
|
<h2 style="font-size:25px;margin-bottom:100px;"><?=$imagetitle;?></h2>
|
2023-01-24 10:05:16 +00:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}}
|
|
|
|
?>
|
|
|
|
<!--Image List-->
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$getProjectList=$CI->WelcomeModel->getProjectList($id);
|
|
|
|
//$numRows=$getFac->num_rows();
|
|
|
|
|
|
|
|
if(isset($getProjectList) && $getProjectList->num_rows()>0)
|
|
|
|
{
|
|
|
|
foreach($getProjectList->result() as $list)
|
|
|
|
{
|
|
|
|
$projectId=$list->id;
|
|
|
|
$projectName=$list->projectName;
|
|
|
|
$studentName=$list->studentName;
|
|
|
|
$image=$list->image;
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="gallery-item" style="width: 50%;">
|
|
|
|
<a href="<?=base_url();?>project-detail/<?=$projectId;?>">
|
|
|
|
<div class="grid-item-holder">
|
|
|
|
<div class="box-item">
|
|
|
|
<img style="width:400px;height:208px;"src="<?=base_url();?>admin/uploads/project/<?=$image;?>" alt="">
|
|
|
|
<div class="overlay"></div>
|
|
|
|
</div>
|
|
|
|
<div class="grid-item">
|
|
|
|
<h3><?=$projectName;?></h3>
|
|
|
|
<span><?=$studentName;?></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<!-- 1 end -->
|
|
|
|
<?php
|
|
|
|
}} else {?>
|
|
|
|
<img style="width:500px;height:500px;" src="<?=base_url();?>images/500.png"/>
|
|
|
|
<h1 style="font-size:30px;margin-top: 3%;">No Projects Found</h1><?php }
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<h3 class="bold-title"><?=$code;?></h3>
|
|
|
|
<div class="pr-tags fl-wrap">
|
|
|
|
<span style="font-size: 15px;">Faculty : </span>
|
|
|
|
<div>
|
2023-02-07 13:11:26 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
2023-01-24 10:05:16 +00:00
|
|
|
<a style="font-size: 15px;" href="#">
|
|
|
|
<?php
|
|
|
|
//$numRows=$getFac->num_rows();
|
|
|
|
$i=0;
|
|
|
|
foreach($facultyIds as $faculty){
|
|
|
|
$getFac=$CI->WelcomeModel->get_faculty($faculty);
|
|
|
|
//echo $facultyIds[$faculty];
|
|
|
|
|
|
|
|
if($getFac->num_rows()>0)
|
|
|
|
{
|
|
|
|
$list=$getFac->row();
|
|
|
|
$facName=$list->name;
|
|
|
|
} ?>
|
|
|
|
<?=$facName?>
|
2023-01-21 13:41:47 +00:00
|
|
|
|
|
|
|
<?php
|
2023-01-24 10:05:16 +00:00
|
|
|
} $i++
|
2023-01-21 13:41:47 +00:00
|
|
|
?>
|
2023-01-24 10:05:16 +00:00
|
|
|
</a>
|
2023-02-07 13:11:26 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pr-tags fl-wrap">
|
|
|
|
<span style="font-size: 15px;">TA : </span>
|
|
|
|
<div>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a style="font-size: 15px;" href="#">
|
|
|
|
<?php
|
|
|
|
//$numRows=$getFac->num_rows();
|
|
|
|
$i=0;
|
|
|
|
foreach($taId as $faculty){
|
|
|
|
$getFac=$CI->WelcomeModel->get_faculty($faculty);
|
|
|
|
//echo $facultyIds[$faculty];
|
|
|
|
|
|
|
|
if($getFac->num_rows()>0)
|
|
|
|
{
|
|
|
|
$list=$getFac->row();
|
|
|
|
$facName=$list->name;
|
|
|
|
} ?>
|
|
|
|
<?=$facName?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
} $i++
|
|
|
|
?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-01-24 10:05:16 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-02-07 13:11:26 +00:00
|
|
|
<h3 style="padding-bottom:0px;" class="pr-subtitle"> <?=$name;?>
|
|
|
|
|
|
|
|
</h3>
|
|
|
|
<p style="font-size:17px;padding-bottom:10px;"><?=$subtitle;?></p>
|
2023-01-24 10:05:16 +00:00
|
|
|
<p style="font-size:16px;text-align:justify"><?=$description;?></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- container end -->
|
|
|
|
<div class="partcile-dec" data-parcount="120"></div>
|
|
|
|
</section>
|
|
|
|
<!-- section end -->
|
|
|
|
</div>
|
|
|
|
<!-- content end -->
|
|
|
|
<!--=============== content-footer ===============-->
|
|
|
|
<div class="height-emulator"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- content-holder end -->
|
|
|
|
</div>
|
|
|
|
<!-- wrapper end -->
|
|
|
|
<?php include 'include/footer.php';?>
|