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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

<?php if ($promotion->image != NULL) : ?>

<div class="banner">
   <a href=""><img src="<?= base_url() . 'uploads/promotion/' . $promotion->image; ?>"></a>
    <?php if (!empty($promotion->description)) : ?>    
        <br>
        <div style="padding: 20px;">
          <?= $promotion->description; ?>
        </div>
     <?php endif; ?>    
</div>

<?php else : ?>
  <!--make some space gap on top with menu-->
  <div class="banner" style="padding-top: 30px;">

  </div>
<?php endif; ?> 

<div class="wrapp2 browse_product clearfix"> 
<!-- Right Collom -->
<div class="right_col">

  <!-- Breadcrumb  -->
  <div class="breadcrumb">
       <p>
          <a href="<?= base_url(); ?>">Home</a> > Promotion
        </p>
    </div><!-- End Breadcrumb  -->
    
    <!-- Sort  -->
    <div class="sort_product clearfix">
    <div class="sort_by_name clearfix">
          <div class="sort_label">Show</div>
            <div class="sort_select">
          <select>
              <option> Sort by Name</option> 
                <option> Sort by Price</option>
                <option> Sort by New</option>
            </select>
            </div>
        </div>
        <!-- <div class="sort_by_number clearfix">
          <div class="sort_label">Show</div>
            <div class="sort_select">
          <select>
              <option> 12</option>
                <option> 24</option>
                <option> 50</option>
            </select>
            </div>
            <div class="sort_perpage">
            per page
            </div>
        </div>  -->
    </div> <!-- End Sort  -->
    
    <!-- Showing  -->
    <div class="showing_top clearfix">
      <!-- <div class="shwing_text">Showing of 20 item</div>
        <div class="shwing_pagination">
          <ul>
              <li class="prev nv"><a href="#">Prevoius</a></li>
                <li class="active"><a href="#">1</a></li>
                <li class=""><a href="#">2</a></li>
                <li class=""><a href="#">3</a></li>
                <li class="next nv"><a href="#">Next</a></li>
            </ul>
        </div>
        <div class="showign_showall">
          <a href="#">Show All</a>
        </div> -->
    </div>
    <!-- end Showing  -->
    
    <!-- Product List  -->
    <div class="browse_product_list clearfix">
      
      <?php foreach ($products as $item) : ?>  

      <!-- Product Item  -->
      <div class="product_item">

      <?php if ($item->discount_price != 0): ?>
        
          <div class="sale_butoon">Sale!</div>

      <?php endif; ?>    

          <?php
            //get product alias
            $this->db->select('alias')->from('products')->where('id_products', $item->id_products);
            $product_item_alias = $this->db->get()->row()->alias;
          ?>

          <div class="product_item_img"> <a href="<?= base_url() . 'product/' . $product_item_alias; ?>"><img src="<?= base_url() . 'uploads/product/small/' . $item->image1; ?>"></a></div>

          <div class="product_item_name"><a href="<?= base_url() . 'product/' . $product_item_alias; ?>"><?= ucwords($item->title); ?></a></div>

    <?php if ($item->discount_price != 0): ?>

          <div class="product_item_price clearfix"><span class="sale_price">Rp <?= 
    number_format($item->discount_price); ?> </span><span class="ori_price">Rp <?= 
    number_format($item->price); ?></span></div>

          <div class="product_item_hemat">Hemat Rp <?= number_format($item->price - $item->discount_price); ?></div>

           <?php else : ?>  

               <div class="product_item_price clearfix"><span class="ori_price">Rp <?= 
    number_format($item->price); ?></span></div>
          
           <?php endif; ?>    

          <div class="product_item_compare clearfix"><a href="<?= base_url() . 'wishlist/add_wishlist/' . $item->id_products; ?>" class="wishlist">Wishlist</a> <a href="<?= base_url() . 'product_comparison/add/' . $item->id_products; ?>" class="compare">Compare</a></div>
      </div><!-- End Product Item  -->

       <?php endforeach; ?>

    </div><!-- End Product List  -->
    
    <!-- Showing  -->
    <!-- <div class="showing_top clearfix">
      <div class="shwing_text">Showing of 20 item</div>
        <div class="shwing_pagination">
          <ul class="clearfix">
              <li class="prev nv"><a href="#">Prevoius</a></li>
                <li class="active"><a href="#">1</a></li>
                <li class=""><a href="#">2</a></li>
                <li class=""><a href="#">3</a></li>
                <li class="next nv"><a href="#">Next</a></li>
            </ul>
        </div>
        <div class="showign_showall">
          <a href="#">Show All</a>
        </div>
    </div> -->
    <!-- end Showing  -->

</div><!-- Edn Right Collom -->

<!-- Left Collom -->
<div class="left_col">
  
    <!-- Kategori -->
    <div class="kategori">
      <h3>Kategori</h3>
       <ul>

       <?php
          //get parent category id and name and parent from categories table
          $this->db->select('id_categories, category, alias')->from('categories')->where('parent', NULL)->order_by('priority', 'ASC')->where('status', '1');
          $categories = $this->db->get()->result();
       ?>

       <?php foreach ($categories as $category) : ?>

            <li><a style="color:black; font-size:14px; font-weight:bold; color:#005B9E;" href="<?= base_url() . 'category/' . $category->alias; ?>"><?= ucwords($category->category); ?></a></li>

            <?php
            //check if the current id does have child
            $this->db->select('*')->from('categories')->where('parent', $category->id_categories);
            $count_child_category = $this->db->get()->num_rows();
            ?>

            <?php if ($count_child_category > 0): ?>
                
                <?php 
                  //get all existing child categories 
                  $this->db->select('id_categories, category, alias')->from('categories')->where('parent', $category->id_categories)->order_by('priority', 'ASC');
                  $child_categories = $this->db->get()->result(); 
                ?>  

                <?php foreach ($child_categories as $child_category) : ?>
                
                    <li style="background-image:none;"><a href="<?= base_url() . 'category/' . $category->alias . '/' . $child_category->alias; ?>"><?= ucwords($child_category->category); ?></a></li>

                <?php endforeach; ?>

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

       </ul>  

    </div><!-- End Kategori -->
    
    <!-- Merek -->
    <div class="merek">
      <h3>Merek</h3>
        <ul>

        <?php 
            //get all brands
            $this->db->select('id_brands, brand, alias')->from('brands')->where('status', '1')->order_by('brand', 'ASC');
            $brands = $this->db->get()->result();
        ?>

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

        </ul>    
    </div><!-- End Merek -->
    
    <!-- Harga -->
   <!--  <div class="harga">
      <h3>Harga</h3>
    <ul>
          <li><a href="#">IDR 0 - 300.000</a></li>
      <li><a href="#">IDR 300.000 - 800.000</a></li>
      <li><a href="#">IDR 800.000 - 1.500.000</a></li>
            <li><a href="#">IDR 1.500 - 5000.000</a></li>
            <li><a href="#">diatas IDR 5.000.000</a></li>
        </ul>    
    </div> --><!-- End Harga -->
    
    <!-- Ketersediaan -->
    <!-- <div class="harga">
      <h3>Ketersediaan</h3>
    <ul>
          <li><a href="#">Tersedia (10)</a></li>
      <li><a href="#">Stok Kosong (5)</a></li>
        </ul>    
    </div> --><!-- End Ketersediaan -->

</div><!-- Edn Left Collom -->
  
</div>








	

https://t.me/RX1948 - 2025