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/kamariallee.com/public_html/application/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

<!-- Breadcrumbs -->
<div class="breadcrumbs">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<ul class="bcrumbs" id="crumbs">
					<li><a href="<?= base_url(); ?>">Home</a></li>
					<li style="color:white;">Shop</li>
					
				</ul>
			</div> 
		</div>
	</div>
</div>
<!-- End of Breadcrumbs -->

<div class="container">
	<div class="row">
		<!-- Left Sidebar -->
		<div class="col-md-3">
			
			<div class="shop-sidebar1">

				<div class="item-details widget shop-title-h5">
					<h5>Category</h5>

					<?= Modules::run('category_column'); ?>	

					<!-- <ul>
						<li><a href="gird.html#">Categories 01 (1) </a></li>
						<li><a href="gird.html#">Categories 02 (3)</a></li>
						<li><a href="gird.html#">Categories 03 (5)</a></li>
						<li><a href="gird.html#">Categories 04 (8)</a></li>
					</ul> -->
				</div>

                <div class="rposts topsale widget shop-title-h52">

					<?php
						//get best seller products from current category
						$this->db->distinct('product_details.product_id');
						//$this->db->select('*');
						$this->db->select('products.alias as alias, products.image1 as image1, products.image2 as image2, products.title as title, products.id_products as id_products');
						$this->db->from('products');  
						$this->db->join('category_product', 'products.id_products = category_product.id_product');
						$this->db->join('product_details', 'products.id_products = product_details.product_id');
						$this->db->where('products.product_status', '1');
						$this->db->limit(5);
						$this->db->order_by('products.id_products', 'RANDOM');
						$best_products = $this->db->get()->result();
					?>
					<?php if(count($best_products) >0 ) : ?>	
						<h5>BEST SELLER</h5>
					<?php endif; ?>	

					<ul>
						<?php foreach($best_products as $best) : ?>
						<li>
							<img style="margin-right:10px;" src="<?= base_url() . 'uploads/product/thumbnail/' . $best->image1; ?>" alt="">
							<div class="pposts-info">
								<h6><a href="<?= base_url() . 'product/' . $best->alias; ?>"><?= strtoupper($best->title); ?></a></h6>

								<?php
									//get product price and discount price
									$this->db->select('price, discounted_price')->from('product_details')->where('product_id', $best->id_products)->limit(1);
									$product_price = $this->db->get()->row();
								?>	
								<?php if($product_price->discounted_price != 0) : ?>
									<div class="product-pd">
										<p style="font-size:14px; color:grey;">Rp <?= $product_price->price; ?><br>
										<strike>Rp <?= $product_price->discounted_price; ?></strike></p>
									</div>

								<?php else : ?>
									<div class="product-pd">
										<p style="font-size:12px; color:grey;">Rp <?= $product_price->price; ?></p>
									</div>
								<?php endif; ?>
								
							</div>
						</li>
						<?php endforeach; ?>
							
					</ul>
				</div>

				
				<!-- <div class="item-details price-tag widget shop-title-h5">
					<h5>Price</h5>
					<label for="amount">Range: <span>$100.00 - 500.00</span></label>
					<div id="pricerange"></div>
					<input type="text" id="amount" readonly>
				</div> -->
				
				<!-- <div class="item-details widget shop-title-h5">
					<h5>MANUFACTURE</h5>
					<ul>
						<li><a href="gird.html#">Calvin Klein (1)</a></li>
						<li><a href="gird.html#">Diesel (3)</a></li>
						<li><a href="gird.html#">Polo (2)</a></li>
						<li><a href="gird.html#">Tommy Hilfiger (3)</a></li>
					</ul>
				</div> -->

				<!-- <div class="item-details widget shop-title-h5">
					<h5>COLOR</h5>
					<ul>
						<li><a href="gird.html#">Black (1)</a></li>
						<li><a href="gird.html#">Blue (2)</a></li>
						<li><a href="gird.html#">Green (1)</a></li>
						<li><a href="gird.html#">Grey (1)</a></li>
						<li><a href="gird.html#">Red (2)</a></li>
						<li><a href="gird.html#">White (3)</a></li>
					</ul>
				</div> -->

			</div>
			<div class="shop-sidebar2">

				<!-- <div class="shop-tags item-details2 widget shop-title-h52">
					<h5>Tags</h5>
					<a href="gird.html#">Shoes</a>
					<a href="gird.html#">Bags</a>
					<a href="gird.html#">Dress</a>
					<a href="gird.html#">What ches</a>
					<a href="gird.html#">Belt</a>
					<a href="gird.html#">Accessories</a>
					<a href="gird.html#">Men</a>
					<a href="gird.html#">Women</a>
					<a href="gird.html#">Sauget</a>
					<a href="gird.html#">Sandal</a>
					<a href="gird.html#">Sport</a>
				</div> -->

				
			</div>
		</div>
		<!-- End of Left Sidebar -->
		<!-- Site Content  -->
		<div class="col-md-9">
		
			<!-- Page Title Category -->
			<div class="productr-page-title">
				<h5>Shop</h5>
				<span class="et-border"></span>
			</div>
			<!-- Page Title Category -->
			
			
			<!-- FILTERS -->
			<div class="product-filter">
			
				<div class="grid-filter col-md-4 col-sm-4">
					<div><span class="text-muted">Showing <?= count($products);?> from total <?= $total_products; ?> products</span></div>
					<!-- <a class="active"><i class="fa fa-th-large"></i></a>
					<a href="list.html"><i class="fa fa-list"></i></a> -->
				</div>
				<div class="col-md-4 col-sm-4 byview">
					<!-- <em>View:</em>
					<div class="c-selectParent2">
						<select>
							<option>05</option>
							<option>09</option>
							<option>10</option>
							<option>15</option>
							<option>20</option>
							<option>50</option>
							<option>100</option>
						</select>
					</div> -->
				</div>

                <div class="col-md-4 col-sm-4 sortby">
					<em>Sort by:</em> 
					<div class="c-selectParent1">
						
                        <?= form_open('category/all-categories'); ?> 

						<select id="sortProductBox" name="sort_product" onchange="this.form.submit();">
							<option value="created-date"
							<?php if ($sort_product_by == 'created-date') : ?>
							selected
							<?php endif; ?>
							>Sort Products</option>
							<option value="price-asc"
							<?php if ($sort_product_by == 'price-asc') : ?>
							selected
							<?php endif; ?>
							>Price Low to High</option>
							<option value="price-desc"
							<?php if ($sort_product_by == 'price-desc') : ?>
							selected
							<?php endif; ?>
							>Price High to Low</option>
							<option value="name-asc"
							<?php if ($sort_product_by == 'name-asc') : ?>
							selected
							<?php endif; ?>
							>Product Name A-Z</option>
							<option value="name-desc"
							<?php if ($sort_product_by == 'name-desc') : ?>
							selected
							<?php endif; ?>
							>Product Name Z-A</option>
						</select>
						<?= form_close(); ?>  	
					</div>
				</div>
				
			</div>
			<!-- FILTERS -->
		
		
			<!-- Product Grid  -->
			<div class="product-grid">
				<div class="row">

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

					<div class="col-md-4 col-sm-6">
						<div class="product-singleArea">
							<div class="product-img">

								<?php
									//check if item out of stock
									$this->db->select('id_product_details')->from('product_details')->where('product_id', $item->id_products)->where('stock !=', 0);
									$count_current_stock = $this->db->get()->num_rows();
								?>
							
								<?php if ($count_current_stock == 0) : ?>
								<img id="nostockIcon" src="<?= base_url('assets/frontend/img/outofstock.png'); ?>">
								<?php endif; ?>

								<a href="<?= base_url() . 'product/' . $item->alias; ?>"><div class="overlay"></div></a>
								<img class="img-responsive primary_image" src="<?= base_url() . 'uploads/product/small/' . $item->image1; ?>" alt="<?= $item->title; ?>"/>

								<?php if($item->image2 != ''): ?>
									<img class="img-responsive hover_image" src="<?= base_url() . 'uploads/product/small/' . $item->image2; ?>" alt="<?= $item->title; ?>"/>
								<?php endif; ?>

								<?php
									//get product price and discount price
									$this->db->select('price, discounted_price')->from('product_details')->where('product_id', $item->id_products)->limit(1);
									$product_price = $this->db->get()->row();
								?>	

								<?php if ($product_price->discounted_price != 0): ?>
									<div class="offer-nostock">sale</div>
								<?php endif; ?>	

								<div class="product-cart-area">
									<div class="btn-others">
										<ul>
											<li><a href="<?= base_url() . 'wishlist/add_wishlist/' . $item->id_products; ?>"><i class="fa fa-heart-o"></i></a></li>
											<li><a href="<?= base_url() . 'product/' . $item->alias; ?>"><i class="fa fa-expand"></i></a></li>
										</ul>
									</div>
									<!-- <div class="btn-add-to-cart cart-btn"><a href="gird.html#">ADD TO CART</a></div> -->
								</div>
							</div>
							<div class="product-details">
								<div class="product-title"><a href="<?= base_url() . 'product/' . $item->alias; ?>"><?= strtoupper($item->title); ?></a></div>
								<div class="product-pd">
									<?php if ($product_price->discounted_price != 0): ?>
										<div class="product-price">Rp <?= number_format($product_price->discounted_price); ?><br><strike style="color:grey; font-size:15px;">Rp <?= number_format($product_price->price); ?></strike></div>
									<?php else : ?>  
										Rp <?= number_format($product_price->price); ?>
									<?php endif; ?>   	
								</div>
								<!-- <div class="product-review">
									<div class="star">
										<span class="yes"><i class="fa fa-star"></i></span>
										<span class="yes"><i class="fa fa-star"></i></span>
										<span class="yes"><i class="fa fa-star"></i></span>
										<span class="yes"><i class="fa fa-star"></i></span>
										<span class="yes"><i class="fa fa-star"></i></span>
									</div>
								</div> -->
							</div>
						</div>
					</div>

					<?php endforeach; ?>  	

				</div>

				<!-- PAGINATION --> 
				<div class="row">
					<div class="col-sm-12">
						<?php
						//create pagination...
						echo '<div style="text-align:center;">' . $this->pagination->create_links() . '</div>';
						?>
					</div><!-- end class="col-sm-12" -->
				</div> <!-- end row --> 


			</div>
			<!-- PRODUCT TABS -->		
		</div>
	</div>
</div>


https://t.me/RX1948 - 2025