McGansWebsite/application/views/project_details.php
2023-01-24 15:35:16 +05:30

138 lines
3.5 KiB
PHP

<?php $this->load->view('include/header.php')?>
<style>
.row{
margin-top: 58px;
}
</style>
<?php
$CI=& get_instance();
$CI->load->model('WelcomeModel');?>
<div id="wrapper">
<!-- content-holder -->
<div class="content-holder">
<?php
if(isset($projectdetail)&& $projectdetail->num_rows()>0)
{
$view=$projectdetail->row();
$pid=$view->id;
$projectName=$view->projectName;
$studentName=$view->studentName;
$description=$view->description;
}
?>
<!-- content -->
<div class="content">
<!-- sroll-nav-wrap -->
<div class="sroll-nav-wrap">
<div class="sroll-nav-container">
<nav class="scroll-nav scroll-init fl-wrap">
<ul>
<li>
<?php
//$projectId = $this->uri->segment(2);
$getGallery=$CI->WelcomeModel->getGalleryList($pid);
//$numRows=$getFac->num_rows();
if(isset($getGallery) && $getGallery->num_rows()>0)
{
$i=1;
foreach($getGallery->result() as $list)
{
$id=$list->id;
$title=$list->title;
//$image=$list->image;
?>
<a class="scroll-link act-scrlink" href="#sec1"><?=$i;?><span><?=$title;?></span></a></li>
<?php
$i++;
} }?>
</li>
</ul>
</nav>
</div>
</div>
<section data-scrollax-parent="true" >
<div class="container">
<div class="">
<h3 class="bold-title" style="font-size: 22px;font-weight:600;"><?=$projectName;?></h3>
<div class="pr-tags" style="width:30%;border:none;background:none;padding-right:0px;padding-left:0px;">
<span style="font-size: 16px;">Student Name : </span>
<ul>
<li><?=$studentName;?></li>
</ul>
</div>
<br>
<p><?=$description;?></p>
<br><br>
<span class="bold-separator"></span>
</div>
<div class="section-container fl-wrap">
<!--serv-item end -->
<?php
$getGallery=$CI->WelcomeModel->getGalleryList($pid);
//$numRows=$getFac->num_rows();
if(isset($getGallery) && $getGallery->num_rows()>0)
{
foreach($getGallery->result() as $list)
{
$id=$list->id;
$title=$list->title;
$image=$list->image;
?>
<div class="serv-item fl-wrap" id="serv2">
<div class="row">
<div class="col-md-4">
<div class="pr-title">
<?=$title;?>
</div>
</div>
<div class="col-md-8">
<div class="">
<div class="blog-media fl-wrap">
<div class="box-item">
<img src="<?=base_url();?>admin/uploads/project/<?=$image;?>" style="height:500px;" class="respimg" alt="">
<div class="overlay"></div>
<a href="<?=base_url();?>admin/uploads/project/<?=$image;?>" class="image-popup popup-image"><i class="fa fa-search" ></i></a>
</div>
</div>
<div class="clearfix"></div>
<!--<span class="bold-separator"></span>-->
</div>
</div>
</div>
</div>
<!--serv-item end -->
<?php
}}
?>
</div>
</div>
<div class="limit-box fl-wrap"></div>
<!-- partcile-dec-->
<div class="partcile-dec" data-parcount="200"></div>
<!-- partcile-dec end-->
</section>
<!-- section end-->
</div>
<!-- content end-->
<!--=============== content-footer ===============-->
<div class="height-emulator"></div>
<!-- content-footer end -->
</div>
<!-- content-holder end -->
</div>
<!-- wrapper end -->
<?php include 'include/footer.php';?>