Revonzy Mini Shell

Şuanki Dizin: /home4/shrishtiarchitec/www/
Dosya Yükle :
Şuanki Dosya : //home4/shrishtiarchitec/www/projects.php

<?php 
include('config.php');
require_once(PATH_LIBRARIES.'/classes/DBConn.php');
$db = new DBConn();
require_once(PATH_INCLUDE.'/header.php');

if(!empty($_REQUEST['cid'])){
    $cidDecode=base64_decode($_REQUEST['cid']);    
}


if(!empty($_REQUEST['cid']) && $cidDecode==1){
    $cid = 1;
}else if(!empty($_REQUEST['cid']) && $cidDecode==2){
    $cid = 2;
}else{
    $cid = 1;
}

$longImage=$db->ExecuteQuery("SELECT Long_Image FROM category WHERE Category_Id=".$cid);

/*$subcat=$db->ExecuteQuery("SELECT SC.Sub_Id, SC.Sub_Name, Image_Path, CG.Category_Name 
    FROM sub_category SC 

    INNER JOIN category CG ON CG.Category_Id=SC.Category_Id 
    INNER JOIN image_upload IU ON IU.Sub_Id=SC.Sub_Id

    WHERE CG.Category_Id=".$cid." GROUP BY IU.Sub_Id
    ORDER BY SC.`Position` ASC");*/

    $subcat=$db->ExecuteQuery("SELECT SC.Sub_Id, SC.Sub_Name, SC.Subcategory_Image, CG.Category_Name 
    FROM sub_category SC 

    INNER JOIN category CG ON CG.Category_Id=SC.Category_Id 

    WHERE CG.Category_Id=".$cid." ORDER BY SC.`Position` ASC");
?>  

<section class="p-t-0 p-b-0">
	
	<div class="d-flex">
        <!-- background animation  -->      
        <div class="bg-animate"><img src="images/body-bg.png"  class="respimg" alt=""></div>
        <!-- wrapper inner -->
		<div class="wrapper-inner">
			
            <div class="container2">
                <div class="wow bounceInDown animated" data-wow-duration="500ms">
                    <div class="section-title">
                        <h3><?php echo $subcat[1]['Category_Name']; ?> Project</h3>
                    </div>

                    <?php if($subcat[1]['Category_Name']=="ARCHITECTURE"){ ?>
                        <p class="p-t-5">We excel in architectural buildings like hotels (restaurants, bars), schools, residential (apartments, bunglows), commercial complexes, religious buildings, factories, vehicles showrooms, etc.</p>
                    <?php }else{ ?>
                        <p class="p-t-5">All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true</p>
                    <?php } ?>
                </div>

                <section class="m-t-50" style="border-bottom: 6px solid #eee;">
                    <div class="gallery-items three-coulms grid-small-pad">
                        <!-- 1 -->
                        <?php foreach($subcat as $val){ ?>
                        <div class="gallery-item">
                            <div class="grid-item-holder">
                                <div class="box-item">
                                    <a href="project-detail.php?id=<?php echo base64_encode($cid.'@@'.$val['Sub_Id']) ;?>">
                                    <span class="overlay2"></span> 
                                    <img  src="<?php echo PATH_UPLOAD_IMAGE.'/subcategory/'.$val['Subcategory_Image']?>" alt="">
                                    </a>
                                </div>
                                <div class="grid-item ">
                                    <h3><a href="project-detail.php?id=<?php echo base64_encode($cid.'@@'.$val['Sub_Id']) ;?>" class=" portfolio-link"><?php echo $val['Sub_Name'];?></a></h3>
                                    <span><?php echo $subcat[1]['Category_Name']; ?> DESIGN</span>
                                </div>
                            </div>
                        </div>
                        <?php } ?>
                        
                    </div>
                    <!-- end gallery items -->
                    <div style="clear: both;"></div>
                </section>
                <div class="content-nav">
                    <ul class="pull-right">

                        <?php if($cid==1){ 
                            $catId = 2; ?>
                            <li style="font-size: 28px;"><i class="fa fa-long-arrow-left"></i></li>
                            <li><span>/</span></li>
                            <li><a  title="Interior" href="projects.php?cid=<?php echo base64_encode($catId); ?>"><i class="fa fa-long-arrow-right"></i></a></li>
                        <?php }else if($cid==2){ 
                            $catId = 1; ?>
                            <li><a title="Architecture" href="projects.php?cid=<?php echo base64_encode($catId); ?>"><i class="fa fa-long-arrow-left"></i></a></li>
                            <li><span>/</span></li>
                            <li style="font-size: 28px;"><i class="fa fa-long-arrow-right"></i></li>

                        <?php }else{
                            $catId = 2; ?>
                            <li style="font-size: 28px;"><i class="fa fa-long-arrow-left"></i></li>
                            <li><span>/</span></li>
                            <li><a href="projects.php?cid=<?php echo base64_encode($catId); ?>"><i class="fa fa-long-arrow-right"></i></a></li>
                       <?php }
                        ?>
                        
                    </ul>
                </div>
            </div>
		</div>
        <!-- <div class="img-wrap">
            <div class="bg" style="background-image: url(images/bg/long/1.jpg)" data-top-bottom="transform: translateY(300px);" data-bottom-top="transform: translateY(-300px);"></div>
        </div> -->
        <div class="img-wrap2 p-r-0 p-l-0 hidden-xs" style="background: #f4f4f4 url('<?php echo PATH_UPLOAD_IMAGE.'/category/long/'.$longImage[1]['Long_Image']?>') right fixed no-repeat; background-size: 40%; overflow:hidden; position: fixed;"></div>
        
        <!-- <?php if($cid==1){ ?> 
            <div class="img-wrap2 p-r-0 p-l-0 hidden-xs" style="background: #f4f4f4 url('images/bg/long/1.jpg') right fixed no-repeat; background-size: 40%; overflow:hidden; position: fixed;"></div>
        <?php }else{ ?>
            <div class="img-wrap2 p-r-0 p-l-0 hidden-xs" style="background: #f4f4f4 url('images/bg/long/4.jpg') right fixed no-repeat; background-size: 40%; overflow:hidden; position: fixed;"></div>
        <?php } ?> -->
		
        
	</div>
</section>


<?php require_once(PATH_INCLUDE.'/footer.php'); ?>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux vps.suncrosonline.com 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64
Apache
162.241.69.42