|
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/rabbithabit.com/public_html/application/views/themes/3/ |
Upload File : |
<style>
/*initial opacity for 1st attribute detail image */
ul.blok_select li a.hasImage, ul.blok_select li a.noImage span {opacity: 0.4}
ul.blok_select li:first-child a.hasImage, ul.blok_select li:first-child a.noImage span {opacity: 1}
.ul_varian_change_product.ul_not_color{
display: flex;
display: inline-flex;
align-items: flex-end;
flex-wrap: wrap;
}
.ul_varian_change_product.ul_not_color li{
margin:0px !important;
margin-right: 8px !important;
margin-top: 8px !important;
text-align: left !important;
}
.ul_varian_change_product.ul_not_color li:not(.first_li_not_color){
display: inherit;
}
.ul_varian_change_product.ul_not_color li.first_li_not_color div.select{
width: 60px;
line-height: 15px !important;
margin-bottom: 5px;
text-align: center !important;
word-wrap: anywhere;
/*white-space: nowrap;*/
/*text-overflow: ellipsis;*/
/*overflow: hidden;*/
}
.ul_varian_change_product.ul_not_color a.li_a_cvarian.hasImage img{
height: 60px;
width: 60px;
}
.ul_varian_change_product.ul_not_color a.li_a_cvarian.noImage{
text-align: center;
vertical-align: bottom;
}
.ul_varian_change_product.ul_not_color a.li_a_cvarian.noImage span{
height: 60px;
width: 60px;
line-height: 15px !important;
word-wrap: anywhere;
text-overflow: ellipsis;
overflow: hidden;
}
@media (max-width: 768px) {
/*.productPrice span { display: none; }*/
.productPrice h2 { font-size: 15px; }
.total_box {
position: -webkit-sticky;
position: sticky;
top: 0;
padding-top: 20px;
padding-bottom: 20px;
}
#row {
flex-wrap: nowrap;
top: unset !important;
}
.cart_intotal {
margin-top: 23px;
margin-left: 10px !important;
}
.title_intotal, .productPrice h2 {
margin-left: -15px;
}
}
#row { top: -65px; }
.product_browse_name h3 a:hover {
color: <?= $primary_colortheme;?> !important;
}
.product_detail_nv ul li:hover a,
.product_detail_nv ul li a.active {
color:<?= $primary_colortheme;?>;
}
div.no-stock{
font-size: 20px;
line-height: 1.3;
font-weight: 600;
color: #e04926;
margin-bottom: 12px;
}
.short_descr *{
text-align: justify;
}
/*section.slider{
height: 100%;
}
section.slider div#slider{
height: 100%;
}
section.slider div#slider div{
height: 100%;
}
section.slider div#slider ul{
height: 100%;
}
section.slider div#slider li{
height: 100%;
}
section.slider div#slider img{
height: 100%;
}*/
@media (max-width: 450px){
#slc_change_color{
width: 100% !important;
}
.shop-product__title-2{
display: block !important;
}
.shop-product__title-1{
display: none !important;
}
.btn_opennew_link{
width: 100% !important;
}
.txt_review_first{
font-size: 11px;
}
.companion-product .col-companion-img{
width: 50%;
}
.productPrice .shop-product__price span.main-price,
.productPrice .shop-product__price span.discounted-price{
display: block;
}
.shop-page-wrapper .container.mb-75{
margin-bottom: 25px !important;
}
.shop-page-wrapper .row.pb-50{
padding-bottom: 20px !important;
}
.shop-product__review .single-review__content{
padding-left: 15px !important;
}
.shop-product__review .review-title.mb-20{
margin-top: 10px !important;
}
.shop-product__review .single-review{
margin-bottom: 20px !important;
}
.companion-product .companion-img a.image-wrap{
height: auto !important;
}
.companion-product .single-slider-post__content{
margin-top: 15px !important;
}
.companion-product .companion-title h6{
font-size: 12px !important;
}
.companion-product .companion-price span{
display: block;
}
.shop-product .col-lg-5.mb-sm-70{
margin-bottom: 30px !important;
}
.shop-product .shop-product__title h2.h2_title{
font-size: 22px !important;
}
.shop-product .shop-product__title p{
font-size: 12px !important;
}
#des-details1 p,
#des-details2 p,
#des-details3 p,
#des-details4 p{
font-size: 12px !important;
}
.shop-product__review form .form-group label{
font-size: 13px !important;
}
.shop-product__review .button--medium{
font-size: 13px;
padding: 5px 25px;
width: 100%;
}
}
</style>
<?php
$this->session->set_userdata("ses_product",$product);
?>
<?php if (isset($product)): ?>
<script src='<?= base_url(); ?>themes/<?= $theme; ?>/js/productPage.js'></script>
<script>
var baseUrl = '<?= base_url(); ?>';
var productId = <?= $product->id_products; ?>;
var csrfHash = '<?= $this->security->get_csrf_hash(); ?>';
var indentTime = '<?= $product->indent_time; ?>';
var indentDp = <?= $product->indent_dp; ?>;
var chosenVarianDetailArray = new Array(<?= count($initial_varian_detail_ids); ?>);
<?php $count_varian_detail = 0; ?>
<?php foreach ($initial_varian_detail_ids as $detail_id) : ?>
chosenVarianDetailArray[<?= $count_varian_detail; ?>] = <?= $detail_id; ?>;
<?php $count_varian_detail++; ?>
<?php endforeach; ?>
jQuery(document).ready(function() {
initialProductDetail(chosenVarianDetailArray, productId, baseUrl, csrfHash, indentTime, indentDp,
function(dsc){
dynamicStockCondition(dsc);
}
);
});
</script>
<?php endif; ?>
<div class="shop-page-wrapper" style="<?= $bg_section_color; ?> padding-top: 50px;">
<div class="container mb-75">
<div class="row pb-50">
<div class="col-lg-12">
<!--======= shop product content =======-->
<div class="shop-product">
<div class="row">
<div class="col-lg-5 mb-md-70 mb-sm-70">
<div class="shop-product__title-2" style="display: none;">
<div class="shop-product__title mb-15">
<h2 class="h2_title" style="color:#000; fonts-size:22px; margin-bottom:0;"><?= ucfirst($product->title); ?></h2>
<div class="short_descr">
<?php if($this->session->userdata('site_lang') == 'english') : ?>
<?= ucfirst($product->description_en); ?>
<?php else : ?>
<?= ucfirst($product->description); ?>
<?php endif; ?>
</div>
</div>
</div>
<div class="product_main_image" id="productImageContainer"></div>
</div>
<div class="col-lg-7 shop" style="padding-left:50px;">
<!--======= shop product description =======-->
<!--======= shop product title =======-->
<div class="shop-product__title mb-15 shop-product__title-1">
<h2 class="h2_title" style="color:#000; fonts-size:22px; margin-bottom:0;"><?= ucfirst($product->title); ?></h2>
<div class="short_descr">
<?php if($this->session->userdata('site_lang') == 'english') : ?>
<?= ucfirst($product->description_en); ?>
<?php else : ?>
<?= ucfirst($product->description); ?>
<?php endif; ?>
</div>
</div>
<!--======= End of shop product title =======-->
<?php if ($product->active_product_link == 'no'): ?>
<!--======= shop product price =======-->
<div class="total_price_intotal productPrice"></div>
<!--======= shop product color block =======-->
<?php endif; ?>
<div id="div_fill_varian" style="<?= $product->active_product_link == 'yes' ? '' : ''; ?>" >
<!-- varian -->
<?php
$p_color = $this->session->userdata('p_color');
$count_varian = 0;
foreach ($varians as $varian) :
$varian_details = get_varian_data($varian->attribute_id, $product->id_products)['varian_details'];
$varian_name = get_varian_data($varian->attribute_id, $product->id_products)['varian_name'];
$is_color = get_varian_data($varian->attribute_id, $product->id_products)['is_color'];
if(count($varian_details) > 0) : ?>
<?php
$count_varian++;
$varian_name = strtolower($varian_name);
?>
<?php if ($is_color == 'yes'): ?>
<div class="shop-product__block shop-product__block--color mb-20 dtl_select div_varian" id="varian<?= $varian->attribute_id; ?>" style="margin-bottom:8px !important;">
<div class="shop-product__block__title">COLOR: </div>
<div class="shop-product__block__value">
<div class="shop-product-color-list">
<ul class="ul_varian_change_product ul_varian_color single-filter-widget--list single-filter-widget--list--color">
<!-- <li class="mb-0 pt-0 pb-0 mr-10">
<a class="active" href="#" title="BLACK">
<span class="color-picker"></span>
</a>
</li> -->
<?php
$count = 0;
foreach ($varian_details as $varian_detail) :
$count++;
$query_product_attributes = $this->db->get_where('product_attributes',array('id'=>$varian_detail->product_attribute_id));
$is_color = $query_product_attributes->row()->is_color;
$background_color = 'white';
$text_color = 'black';
$border_color = 'none';
if ($is_color == 'yes') {
$background_color = $varian_detail->color_hex;
$text_color = 'white';
$check_rgb = HTMLToRGB($varian_detail->color_hex);
$check_hsl = RGBToHSL($check_rgb);
// echo "
// <script>alert('".$varian_detail->color_hex."');</script>
// ";
if ((strtolower($varian_detail->attribute_detail) == 'white' || strtolower($varian_detail->attribute_detail) == 'putih') || $check_hsl->lightness > 200)
{
$background_color = $varian_detail->color_hex;
$text_color = 'black';
$border_color = '1px solid black';
}
}
?>
<li id="<?= $varian_detail->attribute_detail_id; ?>" class="mb-0 pt-0 pb-0 mr-10">
<a data-select="<?= $count; ?>" data-attribute_id="<?= $varian->attribute_id; ?>" id="a_varian_<?= strtolower($varian_detail->attribute_detail); ?>" data="<?= $varian_detail->attribute_detail_id; ?>" class="li_a_cvarian noImage <?= $count == 1 ? 'active' : ''; ?>" href="javascript:void(0)" title="<?= ucwords($varian_detail->attribute_detail); ?>">
<span style="vertical-align: initial;
border:<?= $border_color; ?>;
color: <?= $text_color; ?>;
background: <?= $background_color; ?>;
" class="color-picker"></span>
</a>
</li>
<?php if(!empty($varian_detail->image)) : ?>
<?php $image_class = 'hasImage'; ?>
<?php $image_span = ''; ?>
<?php else : ?>
<?php $image_class = 'noImage'; ?>
<?php $image_span = ' span.li_span_color'; ?>
<?php endif; ?>
<script>
// self executing function here
(function() {
// alert(<?= $varian_detail->attribute_detail_id; ?>);
changeVarianColor(<?= $varian->attribute_id; ?>,<?= $varian_detail->attribute_detail_id; ?>,'<?= $image_class; ?>','<?= $image_span; ?>',<?= $count_varian; ?>);
})();
</script>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<div style="" class="shop-product__block shop-product__block--color mb-20">
<select onchange='jQuery("ul.ul_varian_color li").eq($(this).find("option:selected").index()).find("a.li_a_cvarian").click();' name="slc_change_color" id="slc_change_color" class="form-control" style="width:38%; border-radius: 0px;border:0px;font-family: 'rockwellregular';">
<?php
$cntr_color=0;
?>
<?php foreach ($varian_details as $varian_detail) : ?>
<?php $cntr_color++; ?>
<option value="<?= $cntr_color; ?>">
<?= ucwords($varian_detail->attribute_detail); ?>
<!-- Color <?= $i; ?> -->
</option>
<?php endforeach; ?>
</select>
</div>
<?php else: ?>
<div style="flex-flow: column;align-items: normal;" class="shop-product__block shop-product__block--color mb-20 dtl_select div_varian" id="varian<?= $varian->attribute_id; ?>">
<div style="flex-basis: 10% !important;" id="str_select" class="shop-product__block__title">
<?= strtoupper(lang('select').' '.$varian_name.': '); ?>
</div>
<div class="pro-details-color-content">
<ul class="blok_select ul_varian_change_product ul_not_color" style="float: left; position: relative;">
<?php $count = 0; ?>
<?php foreach ($varian_details as $varian_detail) : ?>
<?php $count++; ?>
<?php
$query_product_attributes = $this->db->get_where('product_attributes',array('id'=>$varian_detail->product_attribute_id));
$is_color = $query_product_attributes->row()->is_color;
$background_color = 'white';
$text_color = 'black';
if ($is_color == 'yes') {
$background_color = $varian_detail->color_hex;
$text_color = 'white';
if (strtolower($varian_detail->attribute_detail) == 'white' || strtolower($varian_detail->attribute_detail) == 'putih')
{
$background_color = $varian_detail->color_hex;
$text_color = 'black';
}
}
?>
<li class="<?= $count == 1 ? 'first_li_not_color' : '' ; ?>" style="width: initial; <?= $count == 1 ? 'margin-left:0px;' : '' ; ?>" id="<?= $varian_detail->attribute_detail_id; ?>">
<?php if($count == 1) : ?>
<div class="select shop-product__block__title" id="detailName<?= $varian->attribute_id; ?>" style="text-align: left;">
<?= ucwords($varian_detail->attribute_detail); ?>
</div>
<?php endif; ?>
<?php if(!empty($varian_detail->image)) : ?>
<a data-attribute_id="<?= $varian->attribute_id; ?>" id="a_varian_<?= strtolower($varian_detail->attribute_detail); ?>" class="li_a_cvarian shop-product__block__title hasImage" data="<?= $varian_detail->attribute_detail_id; ?>" href="" style="color:black;">
<img title="<?= ucwords($varian_detail->attribute_detail); ?>" style="border:1px solid <?= $p_color; ?>;" src="<?= base_url() . 'uploads/varian/' . $varian_detail->image; ?>">
</a>
<?php else : ?>
<a data-attribute_id="<?= $varian->attribute_id; ?>" id="a_varian_<?= strtolower($varian_detail->attribute_detail); ?>" class="li_a_cvarian shop-product__block__title noImage" data="<?= $varian_detail->attribute_detail_id; ?>" href="">
<span style="padding: 5px;line-height: 35px;
color: <?= $text_color; ?>;
background: <?= $background_color; ?>;
border:1px solid <?= $p_color; ?>; display: block;" title="<?= ucwords($varian_detail->attribute_detail); ?>">
<?= ucwords($varian_detail->attribute_detail); ?>
</span>
</a>
<?php endif; ?>
</li>
<?php if(!empty($varian_detail->image)) : ?>
<?php $image_class = 'hasImage'; ?>
<?php $image_span = ' img'; ?>
<?php else : ?>
<?php $image_class = 'noImage'; ?>
<?php $image_span = ' span'; ?>
<?php endif; ?>
<script>
(function() {
changeVarian(<?= $varian->attribute_id; ?>,<?= $varian_detail->attribute_detail_id; ?>,'<?= $image_class; ?>','<?= $image_span; ?>',<?= $count_varian; ?>);
})();
</script>
<?php endforeach; ?>
</ul>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<style>
ul.blok_select li{
display: inline-block;
margin: 0 8px;
text-align: center;
width: 55px;
position: relative;
float: none;
}
</style>
<!-- varian -->
</div>
<?php if ($product->active_product_link == 'no'): ?>
<div class="shop-product__block shop-product__block--quantity" style="margin-bottom:12px;">
<div class="shop-product__block__title">QTY:</div>
<div class="shop-product__block__value" style="margin-left: -25px;">
<div class="pro-qty d-inline-block mx-0 " style=" padding: 5px 7px; border: 1px solid #666666">
<input id="qty2" type="text" value="1" style="background-color: transparent;">
</div>
</div>
<a id="submitToCart2" class="submitToCart2 button button--medium" href="javascript:void(0)" style="background:<?= $primary_colortheme; ?> !important;padding: 7px 7px; font-size: 12px;">ADD TO BAG</a>
<div class="single-icon wishlist" style="margin-left: 20px; font-size: 26px;">
<?php
$ses_customer = $this->session->userdata('customer');
$count_wishlist = $this->db->select('id_wishlist')
->from('wishlist')->where('customer_id', $ses_customer['customer_id'])
->where('product_id', $product->id_products)
->get()->num_rows();
?>
<a href="javascript:void(0)" data-value="<?= $product->id_products; ?>" <?php if($this->session->userdata('customer')['customer_id']):?>
class="add_wishlist_login"
<?php else: ?>
class="add_wishlist_nonlogin"
<?php endif; ?>>
<?php if ($count_wishlist > 0): ?>
<i style="color: #e04926 !important;" class="ion-android-favorite"></i>
<?php else: ?>
<i class="ion-android-favorite-outline"></i>
<?php endif ?>
</a>
</div>
</div>
<div class="shop-product__buttons" style="margin-bottom:0px;">
<?php for($i=0; $i<$avg_product_reviews; $i++): ?>
<a href="javascript:void(0)" onclick="$('html, body').animate({scrollTop: $('#reviews').offset().top}, 'slow');">
<i class="fa fa-star" aria-hidden="true" style="color:#dfd880"></i>
</a>
<?php endfor; ?>
<?php for($i=0; $i<(5-$avg_product_reviews); $i++): ?>
<a href="javascript:void(0)" onclick="$('html, body').animate({scrollTop: $('#reviews').offset().top}, 'slow');">
<i class="fa fa-star-o" aria-hidden="true" style="color:#dfd880"></i>
</a>
<?php endfor; ?>
</div>
<?php endif; ?>
<?php if ($product->active_product_link == 'yes'): ?>
<!-- link shopee -->
<!-- <div style="display: block; text-align: left;">
<a class="button button--medium btn_opennew_link" href="<?= $product->product_link; ?>" target="_blank" style="width: 50%;background:<?= $primary_colortheme; ?> !important;padding: 7px 7px; font-size: 12px;text-align: center;">
BUY NOW
</a>
</div> -->
<div style="display: block; text-align: left;">
<a href="<?= $product->product_link; ?>" target="_blank">
<img src="<?= base_url('uploads/shopee-button.png'); ?>" alt="shopee" />
</a>
</div>
<?php endif; ?>
<!--======= End of shop product color block =======-->
<!--======= shop product quantity block =======-->
<!--======= shop product buttons =======-->
<hr style="border-top:1px solid #6666; margin-bottom:0.5em;" />
<div style="width:100%; height:5px;"></div>
<!--======= End of shop product buttons =======-->
<div class="row">
<div class="col-lg-12">
<!--======= shop product description tab =======-->
<div class="row">
<div class="ml-auto mr-auto col-lg-10" style="max-width:100%; flex:0 0 100%; text-align: left;">
<div class="dec-review-topbar nav mb-40" style="text-align: left; margin-bottom:25px !important;">
<a class="tab1 active" data-toggle="tab" href="#des-details1" style="margin-right:10px;">Description</a>
<a class="tab2" data-toggle="tab" href="#des-details2" style="margin-left: 10px;margin-right:10px;">How To Use</a>
<a class="tab3" data-toggle="tab" href="#des-details3" style="margin-left: 10px;margin-right:20px;">Ingredients</a>
<a class="tab4" data-toggle="tab" href="#des-details4" style="margin-right: 10px;">Video</a>
</div>
<div class="tab-content dec-review-bottom">
<div id="des-details1" class="tab-pane active">
<div class="description-wrap">
<div style="text-align: justify; font-size: 13px;">
<div>
<?php if($this->session->userdata('site_lang') == 'english') : ?>
<?= $product->long_description_en; ?>
<?php else : ?>
<?= $product->long_description; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div id="des-details2" class="tab-pane">
<div class="shop-product__additional-info">
<div class="description-wrap">
<?php if($this->session->userdata('site_lang') == 'english') : ?>
<?= $product->additional_information_en; ?>
<?php else : ?>
<?= $product->additional_information; ?>
<?php endif; ?>
</div>
</div>
</div>
<div id="des-details3" class="tab-pane">
<div class="description-wrap">
<?php if($this->session->userdata('site_lang') == 'english') : ?>
<?= $product->ingredients_en; ?>
<?php else : ?>
<?= $product->ingredients; ?>
<?php endif; ?>
</div>
</div>
<div id="des-details4" class="tab-pane">
<div class="description-wrap">
<?php if ($product->active_link_video == 'yes'): ?>
<iframe style="width: 100%;" height="315" src="<?= $product->link_video; ?>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<?php else: ?>
<img src="<?= base_url('uploads/banners/').$product->banner_link_video; ?>" style="width: 100%;" alt="">
<?php endif ?>
</div>
</div>
</div>
</div>
<!--======= End of shop product description tab =======-->
</div>
</div>
<!--======= End of shop product short description =======-->
<!--======= End of shop product description =======-->
</div>
</div>
</div>
<div class="row">
<div class="col-lg-5 mb-md-70">
<?php
$this->load->module('newarrival');
echo $this->newarrival->frontpage($product->id_products);
?>
</div>
</div>
<!--======= End of shop product content =======-->
</div>
</div>
</div>
<?php if ($product->active_product_link == 'no'): ?>
<div class="row">
<div class="col-lg-12">
<div class="divider">
<hr style="border-top: 1px solid #6666;">
</div>
<div class="row">
<div class="col-md-12">
<div class="shop-product__review">
<h2 class="review-title mb-20" id="reviews">
<?php
$c_review = count($product_reviews);
echo $c_review.($c_review>0?' reviews':' review').' for Make Up';
?>
</h2>
<?php if(count($product_reviews) > 0) : ?>
<?php foreach ($product_reviews as $review) : ?>
<!--======= single review =======-->
<div class="single-review">
<div class="single-review__content">
<div class="shop-product__rating">
<span class="product-rating">
<?php
if(count($review) > 0) {
$total_sum = 0;
$total_sum = $total_sum + $review->rating;
$star_rating = floor($total_sum / count($review));
}
?>
<?php for ($i = 0; $i<$star_rating; $i++) : ?>
<i class="active ion-android-star" style="color:#dfd880"></i>
<?php endfor; ?>
<?php for ($i = 0; $i<(5-$star_rating); $i++) : ?>
<i class="ion-android-star-outline"></i>
<?php endfor; ?>
</span>
</div>
<p class="username">
<?php
//get customer name
$this->db->select('name')->from('customers')->where('id_customers', $review->customer_id);
$customer_name = $this->db->get()->row()->name;
?>
<?= ucwords($customer_name); ?>
</p>
<p class="message">
<b><?= ucfirst($review->subject); ?></b><br>
<?= ucfirst($review->review); ?>
</p>
</div>
</div>
<!--======= End of single review =======-->
<?php endforeach; ?>
<?php else : ?>
<div style="" class="txt_review_first shop-product__review col-md-12">
<?= ucwords(lang('review_first')); ?>
</div>
<?php endif; ?>
</div>
</div>
<div style="padding-left: 30px;padding-right: 30px;" class="shop-product__review col-md-12">
<!-- Review Form-->
<h2 class="review-title mb-20" style="text-align: center; margin-top: 20px;">
<?= ucwords(lang('add_review')); ?>
</h2>
<?php if($this->session->userdata('customer')['customer_name']) :
$attributes = array(
'class' => 'row'
);
echo form_open('product_review/add_review', $attributes);
?>
<input type="hidden" name="product_alias" value="<?= $product->alias; ?>">
<input type="hidden" name="product_id" value="<?= $product->id_products; ?>">
<div class="col-sm-6">
<div class="form-group">
<label for="subject"><?= ucwords(lang('title_review')); ?></label>
<input name="subject" required class="form-control form-control-rounded" type="text" id="review_subject" required>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="review_rating"><?= ucwords(lang('rating')); ?></label>
<select name="rating" class="form-control form-control-rounded" id="review_rating">
<option value="5">5 <?= ucwords(lang('stars')); ?></option>
<option value="4">4 <?= ucwords(lang('stars')); ?></option>
<option value="3">3 <?= ucwords(lang('stars')); ?></option>
<option value="2">2 <?= ucwords(lang('stars')); ?></option>
<option value="1">1 <?= ucwords(lang('stars')); ?></option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="review_text">
<?php if($this->session->userdata('site_lang') == 'english') : ?>
Review
<?php else : ?>
Ulasan
<?php endif; ?>
</label>
<textarea name="review" class="form-control form-control-rounded" id="review_text" rows="8" required></textarea>
</div>
</div>
<div class="col-12 text-right">
<input style="background: <?= $primary_colortheme; ?> !important;" type="submit" name="submit_review" class="button button--medium" value="Submit Review"></input>
</div>
<?= form_close(); ?>
<?php else : ?>
<p class="txt_review_first"><strong><?= ucwords(lang('login_please')); ?> <a style="color:<?= $primary_colortheme;?>" href="<?= base_url('login'); ?>"> <?= ucwords(lang('login')); ?></a> <?= ucwords(lang('login_provide')); ?></strong></p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endif ?>
</div>
<!-- Modal TOC Indent -->
<div class="modal fade" id="modalIndentTOC" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">TERMS & CONDITIONS</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<?= ucfirst($toc_indent); ?>
</div>
<div class="modal-footer" style="text-align: center;">
<button type="button" class="btn btn-secondary" data-dismiss="modal" style="width:50%">NO</button>
<a id="indentTOCAgree" class="btn btn-primary" style="width:50%" href="#" data-toggle="modal" data-target="#cart_madal">AGREE</a>
</div>
</div>
</div>
</div>