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/blue-sky.co.id/public_html/application/modules/category/view/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/blue-sky.co.id/public_html/application/modules/category/view/category.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<div id="content">
  <div class="container">
    <div class="catelog_c">
      <div class="slider clearfix animated fadeIn " data-animation="fadeIn"  >
        <div class="category-slider">
          <ul class="slides">
            
            <li>
                  <?php if ($category->image != NULL) : ?>
                    <div class="slider_img"> <img src="<?= base_url() . 'uploads/category/' . $category->image; ?>"> </div>
                  <?php endif; ?>

             <?php if (!empty($category->description)) : ?>      
                <div class="slider_desc">
                  <?= $category->description; ?>
                  <!-- <div class="clearfix"> <a class="btn_c" href="catalog.html#">Detail</a>
                    <div class="price_c"> <span class="old_price">$150</span> <span class="new_price">$120</span> </div>
                  </div> -->
                </div>   
               <?php endif; ?>


            </li>
            
          </ul>
          <div class="container">
           
          </div>
        </div>
      </div>

      <div class="title clearfix">
        <h2> <?= $category->category; ?></h2>
      </div>


      <div class="row">


        <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12 ">


          <div class="sidebar sidebar_1 " >
            

            


            <!-- <div class="side_box side_box_1 red5 material">
              <h5><a href="catalog.html#" class="tgl_btn">Artist / Brand</a></h5>
              <ul class="tgl_c">
              <?php
              //get all artist or brands
              $this->db->select('id_brands, brand, alias')->from('brands')->where('status', 1)->order_by('priority', 'ASC');
              $brands = $this->db->get()->result();

              ?>

              <?php foreach ($brands as $item) : ?>
                
                <li><a href="<?= base_url() . 'brand/' . $item->alias; ?>"><?= ucwords($item->brand); ?></a></li>
              
              <?php endforeach; ?>



                
              </ul>
            </div> -->



            <!-- <div class="side_box side_box_1 red5 col_box">
              <h5><a href="catalog.html#" class="tgl_btn">primary color</a></h5>
              <ul class="tgl_c">
                <li><span></span>Purple
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span></span>Blue
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span></span>Green
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span></span>Yellow
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span></span>Orange
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span></span>Red
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span></span>Gray
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span></span>Black
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
                <li><span class="multi"></span>Multicolor
                  <input type="checkbox" class="icheckbox_minimal">
                </li>
              </ul>
            </div> -->

            <div class="side_box side_box_1 red5 material">
              <h5><a href="catalog.html#" class="tgl_btn">Category</a></h5>
              <ul class="tgl_c">

                  <?php 
                  //get themes
                  $this->db->select('*')->from('themes')->order_by('priority', 'ASC');
                  $themes = $this->db->get()->result();
                  ?>

                  <!-- <?php foreach ($themes as $theme) : ?>
                      <li><a href="#"><?= $theme->themes; ?></a></li>
                  <?php endforeach; ?> -->

                  <?php $categories1 = $this->db->where('menu_type','category')->where('status', '1')->order_by('priority', 'ASC')->get('menus')->result(); ?>

                  <?php foreach ($categories1 as $c1) : ?>
                    <li><a href="<?= base_url() . 'category/' . $c1->alias; ?>"><strong><?= $c1->menu; ?></strong></a></li>
                    <?php $count_categories1 = $this->db->where('parent',$c1->category_id)->where('status', '1')->get('categories')->num_rows(); ?>

                    <?php if($count_categories1 > 0): ?>

                      <?php $categories2 = $this->db->where('parent',$c1->category_id)->where('status', '1')->order_by('priority','ASC')->get('categories')->result(); ?>
                      <!-- <ul class="subcategory"> -->

                      <?php foreach ($categories2 as $c2): ?>
                        <li><a href="<?= base_url() . 'category/' . $c2->alias; ?>"><i class="fa fa-angle-right" aria-hidden="true"></i> &nbsp;&nbsp;<?= $c2->category; ?></a></li>
                      <?php endforeach; ?>

                    <?php endif; ?>
                  <?php endforeach; ?>

              </ul>
            </div>
            

            
          </div>
        </div>
        <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
          <div class="product_c">
            
            <div class="filter_c"> <!-- <span>Show:</span>
              <div class="select_box sel_1">
                <select class="selbx ">
                  <option>25</option>
                  <option>50</option>
                  <option>100</option>  
                </select>
              </div> -->
            
              <?= form_open('category/' . $category->alias); ?> 

             
              <div class="select_box sel_2">

              <select name="sort_product" class="selbx " style="position: relative; top:7px;" onchange="this.form.submit();"> 
                <option value=""
                <?php if ($sort_product_by == '') : ?>
                  selected
                <?php endif; ?>
                >Sort Products</option>
                <option value="price-asc"
                <?php if ($sort_product_by == 'price-asc') : ?>
                  selected
                <?php endif; ?>
                >Price Low-High</option>
                <option value="price-desc"
                <?php if ($sort_product_by == 'price-desc') : ?>
                  selected
                <?php endif; ?>
                >Price High-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>

              </div>

              <?= form_close(); ?>  

            </div>
            <div class="row view-grid animated  fadeInUp" data-animation="fadeInUp" >
              
              <?php foreach ($products as $item) : ?>
               
                <div class="col-lg-4 col-md-6 col-sm-6 col-xs-12 ">
                  <div class="main_box" style="position:relative;">
                    <div class="box_1"> 
                        <a href="<?= base_url() . 'product/' . $item->alias; ?>"><img alt="alt"  width="259" height="200" src="<?= base_url() . 'uploads/product/small/' . $item->image1; ?>" draggable="false"></a>
                        <?php
                          //check if item out of stock
                          $this->db->select('id_stocks')->from('stocks')->where('product_id', $item->id_products)->where('stock !=', 0);
                          $count_current_stock = $this->db->get()->num_rows();
                        ?>
                    </div>
                     <?php if ($count_current_stock == 0) : ?>
                      <img id="nostockIcon" src="<?= base_url('template/images/outofstock.png'); ?>">
                    <?php endif; ?>
                    

                    <div class="desc" id="productListDescription">
                      <h5><a href="<?= base_url() . 'product/' . $item->alias; ?>"><?= ucwords($item->title); ?></a></h5>
                      
                      <?php
                      //get brand name
                      $this->db->select('brand, alias')->from('brands')->where('id_brands', $item->brand_id);
                      $brand = $this->db->get()->row();

                      ?>

                      <p><a style="color:#282727;" href="<?= base_url() . 'brand/' . $brand->alias; ?>"><?= ucwords($brand->brand); ?></a></p>


                      <div class="price"> 

                        <?php if ($item->discount_price != 0): ?>
                            <span class="amount">IDR <?= number_format($item->discount_price); ?></span>
                            <del style="color:grey;"><span class="amount" style="color:grey; font-size: 14px;">IDR <?= number_format($item->price); ?></span></del>

                        <?php else : ?>  

                          <?php
                              //get lowest price
                              $this->db->select_min('price')->from('stocks')->where('product_id', $item->id_products)->where('price !=', 0);
                              $lowest_price = $this->db->get()->row()->price;

                               //get highest price
                              $this->db->select_max('price')->from('stocks')->where('product_id', $item->id_products)->where('price !=', 0);
                              $highest_price = $this->db->get()->row()->price;
                          ?>

                          <?php if($lowest_price != 0 && $highest_price != 0 && $lowest_price != $highest_price) : ?>
                               <span class="amount">IDR <?= number_format($lowest_price); ?> - <?= number_format($highest_price); ?></span>
                          <?php else : ?>  
                              <span class="amount">IDR <?= number_format($item->price); ?></span>
                          <?php endif; ?>    

                        <?php endif; ?>
                      </div>

                    </div>
                  </div>
                </div>

              <?php endforeach; ?>
            
            </div>


            <!-- <div class="page_c clearfix red5"> <a href="catalog.html#" class="prev"><span class="fa fa-chevron-left"></span>Previous</a>
              <ul>
                <li class="active"><a href="catalog.html#">1</a></li>
                <li><a href="catalog.html#">2</a></li>
                <li><a href="catalog.html#">3</a></li>
                <li><a href="catalog.html#">4</a></li>
                <li><a href="catalog.html#">5</a></li>
                <li><a href="catalog.html#">6</a></li>
                <li><a href="catalog.html#">7</a></li>
                <li><a href="catalog.html#">8</a></li>
                <li><a href="catalog.html#">9</a></li>
                <li><a href="catalog.html#">10</a></li>
              </ul>
              <a href="catalog.html#" class="next">Next<span class="fa fa-chevron-right"></span></a> </div> -->


          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div id="footer" >
  

https://t.me/RX1948 - 2025