https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/kanvakanva.com/public_html/application/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/kanvakanva.com/public_html/application/views/product_comparison.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

<!-- BEGIN CONTENT PAGE -->
<section class="all-content-page">			
    <!-- Banner Categories -->					
    <div class="baner-top-categories">
        <div class="categories-text-hero">
            <h1>Product Comparison</h1>
        </div>
        <img src="<?=base_url()?>assets/frontend_new/images/banner/11.jpg" alt="banner">
    </div>		

	<div class="container">
		<div class="breadcrumbs">
            <a href="<?=base_url()?>">Home</a>
            <span>Product Comparison</span>
        </div>	


<?php if ($this->session->userdata('product_comparison')): ?> 

	<?= form_open('product_comparison/clear_product_comparison'); ?>
	<br>
	<input type="submit" value="CLEAR PRODUCT COMPARISON" class="btn btn-primary">

	<?= form_close(); ?>

<?php endif; ?>

<?php if (!$this->session->userdata('product_comparison')): ?> 
	There are no products to compare.
<?php endif ?>		

<br>

<!-- Products list -->

<?php if ($this->session->userdata('product_comparison')): ?> 

	<div class="row">

	<?php foreach ($this->session->userdata('product_comparison') as $key => $product) : ?>

		<?php foreach ($product as $item) : ?>

        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
		
        <div style="border:solid 1.5px #d5d5d5;padding:10px;min-height: 750px;">
		<div class="product-des product-des-detail">

			<?php
				$this->db->select('*')->from('products')->where('id_products', $item);
				$product_detail = $this->db->get()->row();
			?>
		
			<a href="<?= base_url() . 'product/' . $product_detail->alias; ?>" class="product_img_link" title="<?= $product_detail->title; ?>">
				<img src="<?= base_url() . 'uploads/product/small/' . $product_detail->image1; ?>" alt=""   />
			</a>

            <h1 class="title-product"><a href="<?= base_url() . 'product/' . $product_detail->alias; ?>" title="<?= $product_detail->title; ?>"><?= ucwords($product_detail->title) ?></a></h1>
			<?php
			//Get brand name 
			$this->db->select('brand')->from('brands')->where('id_brands', $product_detail->brand_id);
			$brand_name = $this->db->get()->row();
			?>
			<p><strong><?= ucwords($brand_name->brand); ?></strong></p>
			<div class="left_block">
			</div>
			
            <p>
			<?php if ($product_detail->discount_price != 0): ?>
				<span class="mc-price"><ins class="price">IDR <?= number_format(
                $product_detail->discount_price
                ) ?></ins>
                <del class="disc_price">IDR <?= number_format(
                $product_detail->price
                ) ?></del>
                </span>
			<?php else : ?>
				<span class="mc-price"><ins class="price">IDR <?= number_format($product_detail->price); ?></ins></span>
			<?php endif; ?>	
			</p>	

			<?php
			//check if this item has stock or not
			$this->db->select('*')->from('stocks')->where('product_id', $product_detail->id_products)->where('stock !=', 0);
			$product_stock_count = $this->db->get()->num_rows();
			?>
			<?php if ($product_stock_count == 0) : ?>
				<p style="color:red; font-size: 12px;">Out of Stock</p>		
			<?php else : ?>
				<p style="font-size: 12px;">In Stock</p>		
			<?php endif; ?>	
													
		</div>
		
		<div id="product_comparison">
			<p style="text-align: left; font-weight: bold; margin-top: 15px;">Specification</p>
			<?= $product_detail->description; ?>
		</div>
		
        </div>
        </div>

		<?php endforeach; ?>

	<?php endforeach; ?>

    </div>	

<?php endif; ?>		

<br>

<?php if ($this->session->userdata('product_comparison')): ?> 

	<?= form_open('product_comparison/clear_product_comparison'); ?>

	<input type="submit" value="CLEAR PRODUCT COMPARISON" class="btn btn-primary">

	<?= form_close(); ?>	
	<br>

<?php endif; ?>
	<!-- /Products list -->

</div>
</section>
			

https://t.me/RX1948 - 2025