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/flashsale/views/5/ |
Upload File : |
<?php if($fs_cek > 0): ?> <style type="text/css"> @media (min-width: 768px)and(max-width: 1024px){ .flashsales { width: 750px !important; } } .product-harga{ text-align: center ; margin-left: -14px ; } .newarrival{ margin-left: -19px; } .blockharga{ text-align: center ; } .titel{ text-align: center ; margin-left: unset !important; } .spasiProduk{ padding-bottom: 20px; } a.style:link, a.style:visited { background-color: <?= $primary_colortheme;?>; color: white; padding: 14px 25px; text-align: center; text-decoration: none; display: inline-block; border-radius: 20px; } a.style:hover, a.style:active { background-color: <?= $primary_colortheme;?>; cursor: pointer; } .timer-flash-sale{ display: inline; color: black; background-color: #f4f6f8; padding: 0px 3px; } </style> <div id="cobatest" class="hidden-xs"> <h2 style="text-align: center; padding-bottom: 20px;">Flashsale <p class="timer-flash-sale" id="jam">00</p> : <p class="timer-flash-sale" id="menit">00</p> : <p class="timer-flash-sale" id="detik">00</p> <script src="https://www.tokodaku.com/store-shared/assets/frontend/js/jquery.countdown.min.js"></script> <script> /*---format: %D days %H:%M:%S ---*/ jQuery('#jam').countdown('<?= $time;?>', function(event) { /*jQuery('#days').html(event.strftime('%D'));*/ jQuery('#jam').html(event.strftime('%H')); jQuery('#menit').html(event.strftime('%M')); jQuery('#detik').html(event.strftime('%S')); }); </script> </h2> <div class="container flashsales"> <div class="row"> <?php foreach ($flashsale as $item) : ?> <?php $get_choosen_varian = $this->db->get_where("product_combination",array( "product_id"=>$item->id_products, "product_details_id"=>$item->product_details_id, )); $get_choosen_attribute_detail_id = []; $get_choosen_attribute_id = []; $get_choosen_varian_detail = []; $counter_idx = -1; foreach ($get_choosen_varian->result() as $key) { $counter_idx++; $get_choosen_attribute_detail_id[$counter_idx] = $key->attribute_detail_id; $get_choosen_attribute_id[$counter_idx] = $key->attribute_id; $get_choosen_varian_detail[$counter_idx] = $this->db->get_where("product_attributes_detail",array( "id"=>$key->attribute_detail_id, "product_attribute_id"=>$key->attribute_id, )); } $get_choosen_varian_detail_output = ""; for ($i=0; $i<count($get_choosen_varian_detail) ; $i++) { $get_choosen_varian_detail_output .= ucwords($get_choosen_varian_detail[$i]->row()->attribute_detail).","; } // echo "<br><pre> product_combination<br>"; // var_dump($get_choosen_varian_detail[0]->row()); // // echo "<br><hr> product_attributes_detail<br>"; // // var_dump($get_choosen_varian_detail->result()); // exit(); ?> <div class="col-md-3 col-sm-3 col-xs-6 spasiProduk"> <div id="div_product_id" data-id="<?= $item->id_products; ?>" class="product-singleArea"> <div class="product-img"> <a href="<?= base_url() . 'product/' . $item->alias; ?>"></a> <?php $this->load->helper('product'); $thumbnail = get_product_thumbnail($item->id_products); ?> <a href="<?= base_url() . 'product/' . $item->alias; ?>"><img class="img-responsive primary_image" src="<?= $thumbnail['image1']; ?>" alt="<?= $item->title; ?>"/></a> </div> <div class="blockharga"> <div class="titel"><a href="<?= base_url() . 'product/' . $item->alias; ?>"><?= strtoupper($item->title); ?></a></div> <div class="product-harga"> <?php //check lowest normal price $this->db->select('price, id, discounted_price')->from('product_details')->where('product_id', $item->id_products)->where('id', $item->product_details_id)->where('price !=', 0)->order_by('price', 'ASC')->limit(1); $lowest_price = $this->db->get()->row(); ?> <span> Rp <?= number_format($item->discounted_price); ?> </span> <br> <span> <small> <strike> Rp <?= number_format($lowest_price->discounted_price); ?> </strike> <span style="color:<?= $primary_colortheme;?>;"> <?= ucwords(lang('save')); ?> <?= number_format(($lowest_price->discounted_price - $item->discounted_price) / $lowest_price->discounted_price * 100); ?> % </span> </small> </span> </div> </div> </div> </div> <?php endforeach; ?> </div> <div class="hidden-xs" style="text-align: right;padding-bottom: 20px;margin-top: 32px;margin-right: 15px !important;"> <a href="<?= base_url('flashsale/view/'.$fs_id);?>" style="text-decoration: none;font-weight: bold;"><?= ucwords(lang('view_all')); ?></a> </div> </div> </div> <style type="text/css"> @media (max-width: 767px){ .visible-xs { padding-bottom: 26px; } } </style> <div id="content" class="visible-xs"> <div class="container"> <div class="catelog_c"> <div class="slider clearfix animated fadeIn " data-animation="fadeIn" > </div> <div class="row"> <!-- <div class="col-lg-9 col-md-9 col-sm-8 col-xs-12"> --> <div class="col-lg-12 col-md-9 col-sm-8 col-xs-12"> <style> .jrett { text-decoration: line-through; } @media only screen and (max-width: 768px) { #content .product_c .main_box { margin-bottom: 30px; max-height: 470px; height: auto; } } #content .main_box .desc h5 a:hover { color: <?= $primary_colortheme;?> !important; } p a:hover{ color: <?= $primary_colortheme;?> !important; } a.style:link, a.style:visited { background-color: <?= $primary_colortheme;?>; color: white; padding: 14px 25px; text-align: center; text-decoration: none; display: inline-block; border-radius: 20px; } a.style:hover, a.style:active { background-color: <?= $primary_colortheme;?>; cursor: pointer; } </style> <div class="product_c"> <div class="filter_c"> <h2 style="text-align: center; padding-bottom: 20px;">Flashsale <p class="timer-flash-sale" id="hours">00</p> : <p class="timer-flash-sale" id="minutes">00</p> : <p class="timer-flash-sale" id="seconds">00</p> <script src="https://www.tokodaku.com/store-shared/assets/frontend/js/jquery.countdown.min.js"></script> <script> /*---format: %D days %H:%M:%S ---*/ jQuery('#hours').countdown('<?= $time;?>', function(event) { /*jQuery('#days').html(event.strftime('%D'));*/ jQuery('#hours').html(event.strftime('%H')); jQuery('#minutes').html(event.strftime('%M')); jQuery('#seconds').html(event.strftime('%S')); }); </script> </h2> </div> <div class="row view-grid animated fadeInUp d-flex justify-content-center" data-animation="fadeInUp"> <?php foreach ($flashsale as $item):?> <?php $get_choosen_varian = $this->db->get_where("product_combination",array( "product_id"=>$item->id_products, "product_details_id"=>$item->product_details_id, )); $get_choosen_attribute_detail_id = []; $get_choosen_attribute_id = []; $get_choosen_varian_detail = []; $counter_idx = -1; foreach ($get_choosen_varian->result() as $key) { $counter_idx++; $get_choosen_attribute_detail_id[$counter_idx] = $key->attribute_detail_id; $get_choosen_attribute_id[$counter_idx] = $key->attribute_id; $get_choosen_varian_detail[$counter_idx] = $this->db->get_where("product_attributes_detail",array( "id"=>$key->attribute_detail_id, "product_attribute_id"=>$key->attribute_id, )); } $get_choosen_varian_detail_output = ""; for ($i=0; $i<count($get_choosen_varian_detail) ; $i++) { $get_choosen_varian_detail_output .= ucwords($get_choosen_varian_detail[$i]->row()->attribute_detail).","; } // echo "<br><pre> product_combination<br>"; // var_dump($get_choosen_varian_detail[0]->row()); // // echo "<br><hr> product_attributes_detail<br>"; // // var_dump($get_choosen_varian_detail->result()); // exit(); ?> <!-- <div class="col-lg-4 col-md-6 col-sm-6 col-xs-12"> --> <div class="col-lg-2 col-md-6 col-sm-6 col-xs-6"> <div id="div_product_id" data-id="<?= $item->id_products; ?>" class="main_box" style="position:relative;"> <?php $this->load->helper('product'); $thumbnail = get_product_thumbnail($item->id_products); ?> <div class="box_1"> <a href="<?= base_url() . 'product/' . strtolower($item->alias); ?>" style="background: unset; background-image: url('<?= $thumbnail["image2"]; ?>'); background-repeat: no-repeat; background-size: cover;"> <img src="<?= $thumbnail['image1']; ?>" /> </a> </div> <div class="desc" id="productListDescription"> <p><a style="color:#282727;" href="<?= base_url() . 'product/' . $item->title; ?>"><?= ucwords($item->title); ?></a></p> <div class="price"> <?php //check lowest normal price $this->db->select('price, id, discounted_price')->from('product_details')->where('product_id', $item->id_products)->where('id', $item->product_details_id)->where('price !=', 0)->order_by('price', 'ASC')->limit(1); $lowest_price = $this->db->get()->row(); ?> <span style="font-size: 14px;">Rp <?= number_format($item->discounted_price); ?></span> <br> <del style="color:<?= $primary_colortheme;?>; font-size: 12px"> Rp <?= number_format($lowest_price->discounted_price); ?> </del> <span style="font-size: 14px;"> <?php $hemat = number_format(($lowest_price->discounted_price - $item->discounted_price) / $lowest_price->discounted_price * 100); echo $hemat . '%'; ?> </span> </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 class="visible-xs" style="text-align: center;"> <a class="style" href="<?= base_url('flashsale/view/'.$fs_id);?>" style="text-decoration: none;font-weight: bold;"><?= ucwords(lang('view_all')); ?></a> </div> </div> </div> </div> </div> </div> <?php endif; ?>