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/views/themes/1/ |
Upload File : |
<style> div.title_page_mobile{ display: none; color: #494949; } div.title_page_mobile div.col-xs-12{ text-align: center; } div.title_page_mobile h1{ text-transform: capitalize; border-bottom: 3px solid #ecb55b; display: inline-block; font-size: 27px; } @media only screen and (max-width: 991px) { .mt-about-sec { padding: 30px 0 0px; } .mt-contact-banner.style4{ padding-top: 10px !important; margin-top: 10px !important; height: 180px; background-size: cover; background-repeat: no-repeat; } div.title_page_desktop{ display: none; } div.title_page_mobile{ display: block; padding-top: 80px; } } </style> <?php $q_config_page = $this->db->select(" page_val1, page_val2, page_val3, page_val4, page_val5 ")->get_where("configuration",array( "id_configuration"=>1 ))->row(); $t_page_name = $this->session->userdata('site_lang') == 'english' ? explode('||', $q_config_page->page_val2)[1] : explode('||', $q_config_page->page_val2)[0]; $q_daftar_harga = $this->db->get_where("daftar_harga",array( "id_home_slideshow"=>1 ))->row(); ?> <main id="mt-main"> <div class="container title_page_mobile"> <div class="row"> <div class="col-xs-12"> <h1><?= $t_page_name; ?></h1> </div> </div> </div> <style> table tr:last-child { border-bottom: 1px solid #DDDDDD; } </style> <!-- Mt Contact Banner of the Page --> <?php $harga_banner = $this->db->select('harga_banner')->from('configuration')->where('id_configuration',1)->get()->row()->harga_banner ?> <section class="mt-contact-banner style4" style="background-image: url(<?=base_url('uploads/blog/'.$harga_banner)?>);"> <div class="container title_page_desktop"> <div class="row"> <div class="col-xs-12 text-center" style="padding-top: 40px;"> <h1><?= $t_page_name; ?></h1> </div> </div> </div> </section><!-- Mt Contact Banner of the Page end --> <div class="container div_price_page"> <!-- harga printing --> <div class="row"> <div class="col-sm-12"> <br> <h3 style="text-align: center;"> <?= ucwords(lang("harga_printing")); ?> </h3> <br> </div> <?php foreach($parameter as $i => $par) : ?> <?php if ($i != 0 && $i++ % 2 == 0) { echo '</tr><tr>'; } echo '<td>xxx</td>'; ?> <?php endforeach ?> <div class="parent_tbl_price1 col-sm-6 hidden-xs"> <div class=""> <?php $header_jenis_kain = $this->db->select('*') ->from('jenis_kain') ->where('status',1) ->order_by('priority','ASC') ->limit(1,0)->get()->row(); // echo "<pre>"; // var_dump($header_jenis_kain); // exit(); $count_jenis_kain = $this->db->select('*')->from('jenis_kain')->where('status',1)->order_by('priority','ASC')->get()->num_rows(); $divide = $count_jenis_kain/2; if($count_jenis_kain%2==0) { $jenis_kain = $this->db->select('*')->from('jenis_kain')->where('status',1)->order_by('priority','ASC')->limit($divide,0)->get()->result(); $jenis_kain_2 = $this->db->select('*')->from('jenis_kain')->where('status',1)->order_by('priority','ASC')->limit($divide,$divide)->get()->result(); } else { $jenis_kain = $this->db->select('*')->from('jenis_kain')->where('status',1)->order_by('priority','ASC')->limit($divide+1,0)->get()->result(); $jenis_kain_2 = $this->db->select('*')->from('jenis_kain')->where('status',1)->order_by('priority','ASC')->limit($divide+1,$divide+1)->get()->result(); } $jenis_kain_mobile = $this->db->select('*')->from('jenis_kain')->where('status',1)->order_by('priority','ASC')->get()->result(); ?> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px;vertical-align: middle;font-weight: bold; color:white;"><?=ucwords(lang('bahan'))?></td> <td style="font-weight: bold; color:white;"><p class="prf">90cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">110cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">130cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">150cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> </tr> <tr> <td><a style="cursor:pointer;"><?=$this->session->userdata('site_lang') == 'english' ?ucwords('bring your own fabric type') : ucwords('bawa bahan sendiri')?></a></td> <?php $bahans = $this->db->select('*')->from('daftar_harga_detail')->where('harga_permeter !=','')->get()->result(); ?> <?php foreach ($bahans as $bahan) : ?> <td><?=number_format($bahan->harga_permeter)?></td> <?php endforeach ?> </tr> <?php foreach ($jenis_kain as $kain) : ?> <tr> <td><a onclick="modal(<?=$kain->id_home_slideshow?>)" style="cursor:pointer;"><?=$this->session->userdata('site_lang') == 'english' ?ucwords($kain->title_en) : ucwords($kain->title)?></a></td> <?php $jenis_kain_detail = $this->db->select('*')->from('jenis_kain_detail')->where('harga_permeter !=','')->where('product_id',$kain->id_home_slideshow)->limit($divide,0)->get()->result(); ?> <?php foreach ($jenis_kain_detail as $detail) : ?> <td><?=number_format($detail->harga_permeter)?></td> <?php endforeach ?> </tr> <?php endforeach ?> <!-- <tr> <td> <a href="#" data-toggle="modal" data-target="#myModal" style="cursor:pointer;">Blacu</a> <button style="cursor: default;background: transparent;border: 1px solid #FF6550;color: #FF6550;padding-top: 1px;padding-bottom: 1px;font-size: 10px;" disabled="disabled" class="btn btn-sm">New</button> </td> <td>50.000</td> <td>60.000</td> <td>70.000</td> <td>80.000</td> </tr> --> </table> </div> <?php $text_content = $this->db->select('*')->from('daftar_harga')->get()->row(); ?> <?= $this->session->userdata('site_lang') == 'english' ? $text_content->text_content_en : $text_content->text_content ?> </div> <!-- start mobile --> <div class="parent_tbl_price1 col-sm-6 visible-xs"> <div class=""> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px;vertical-align: middle;font-weight: bold; color:white;"><?=ucwords(lang('bahan'))?></td> <td style="font-weight: bold; color:white;"><p class="prf">90cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">110cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">130cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">150cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> </tr> <?php foreach ($jenis_kain_mobile as $kain_mobile) : ?> <tr> <td><a onclick="modal(<?=$kain_mobile->id_home_slideshow?>)" style="cursor:pointer;"><?=$this->session->userdata('site_lang') == 'english' ?ucwords($kain_mobile->title_en) : ucwords($kain_mobile->title)?></a></td> <?php $jenis_kain_detail3 = $this->db->select('*')->from('jenis_kain_detail')->where('harga_permeter !=','')->where('product_id',$kain_mobile->id_home_slideshow)->get()->result(); ?> <?php foreach ($jenis_kain_detail3 as $detail) : ?> <td><?=number_format($detail->harga_permeter)?></td> <?php endforeach ?> </tr> <?php endforeach ?> <!-- <tr> <td> <a href="#" data-toggle="modal" data-target="#myModal" style="cursor:pointer;">Blacu</a> <button style="cursor: default;background: transparent;border: 1px solid #FF6550;color: #FF6550;padding-top: 1px;padding-bottom: 1px;font-size: 10px;" disabled="disabled" class="btn btn-sm">New</button> </td> <td>50.000</td> <td>60.000</td> <td>70.000</td> <td>80.000</td> </tr> --> </table> </div> <?= $this->session->userdata('site_lang') == 'english' ? $text_content->text_content_en : $text_content->text_content ?> </div> <!-- end mobile --> <div class="parent_tbl_price2 col-sm-6"> <div class=""> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px;vertical-align: middle;font-weight: bold; color:white;"><?=ucwords(lang('bahan'))?></td> <td style="font-weight: bold; color:white;"><p class="prf">90cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">110cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">130cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> <td style="font-weight: bold; color:white;"><p class="prf">150cm</p><p class="prf2"><?=ucwords(lang('harga'))?>/m</p></td> </tr> <?php foreach ($jenis_kain_2 as $kain2) : ?> <tr> <td><a onclick="modal(<?=$kain2->id_home_slideshow?>)" style="cursor:pointer;"><?=$this->session->userdata('site_lang') == 'english' ?ucwords($kain2->title_en) : ucwords($kain2->title)?></td> <?php $jenis_kain_detail2 = $this->db->select('*')->from('jenis_kain_detail')->where('harga_permeter !=','')->where('product_id',$kain2->id_home_slideshow)->get()->result(); ?> <?php foreach ($jenis_kain_detail2 as $detail) : ?> <td><?=number_format($detail->harga_permeter)?></td> <?php endforeach ?> </tr> <?php endforeach ?> </table> </div> </div> </div> <!-- end harga pinting --> <!-- harga jahit --> <div class="row"> <div class="col-sm-12"> <h3 style="text-align: center;"> <?= $this->session->userdata('site_lang') == 'english' ? ucwords(explode("||", $q_daftar_harga->jdl_harga_jahit)[1]) : ucwords(explode("||", $q_daftar_harga->jdl_harga_jahit)[0]); ?> </h3> <br> </div> <!-- mobile --> <div class="col-sm-6 visible-xs"> <div class="table-responsive"> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px; font-weight: bold; color:white;"><?=ucwords(lang('jenis'))?></td> <td style="font-weight: bold; color:white;"><?=ucwords(lang('harga'))?></td> </tr> <?php $sewings = $this->db->select('*')->from('daftar_harga_detail')->where('jenis2 !=','')->where('harga2 !=','')->order_by('jenis2','asc')->get()->num_rows(); $divide2 = $sewings/2; if($sewings%2==0) { $sewings2 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis2 !=','')->where('harga2 !=','')->order_by('jenis2','asc')->limit($divide2,0)->get()->result(); $sewings3 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis2 !=','')->where('harga2 !=','')->order_by('jenis2','asc')->limit($divide2,$divide2)->get()->result(); } else { $sewings2 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis2 !=','')->where('harga2 !=','')->order_by('jenis2','asc')->limit($divide2+1,0)->get()->result(); $sewings3 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis2 !=','')->where('harga2 !=','')->order_by('jenis2','asc')->limit($divide2+1,$divide2+1)->get()->result(); } $sewings_mobile = $this->db->select('*')->from('daftar_harga_detail')->where('jenis2 !=','')->where('harga2 !=','')->order_by('jenis2','asc')->get()->result(); ?> <?php foreach ($sewings_mobile as $sewing_m) : ?> <tr> <td><a href="#" style="cursor:pointer;"><?=ucwords($sewing_m->jenis2)?></td> <td><?=strtolower(lang('mulai_dari'))?> Rp. <?=number_format($sewing_m->harga2)?></td> </tr> <?php endforeach ?> </table> </div> </div> <!-- end mobile --> <div class="col-sm-6 hidden-xs"> <div class="table-responsive"> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px; font-weight: bold; color:white;"><?=ucwords(lang('jenis'))?></td> <td style="font-weight: bold; color:white;"><?=ucwords(lang('harga'))?></td> </tr> <?php foreach ($sewings2 as $sewing2) : ?> <tr> <td><a href="#" style="cursor:pointer;"><?=ucwords($sewing2->jenis2)?></td> <td><?=strtolower(lang('mulai_dari'))?> Rp. <?=number_format($sewing2->harga2)?></td> </tr> <?php endforeach ?> </table> </div> </div> <div class="col-sm-6 hidden-xs"> <div class="table-responsive"> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px; font-weight: bold; color:white;"><?=ucwords(lang('jenis'))?></td> <td style="font-weight: bold; color:white;"><?=ucwords(lang('harga'))?></td> </tr> <?php foreach ($sewings3 as $sewing3) : ?> <tr> <td><a href="#" style="cursor:pointer;"><?=ucwords($sewing3->jenis2)?></td> <td><?=strtolower(lang('mulai_dari'))?> Rp. <?=number_format($sewing3->harga2)?></td> </tr> <?php endforeach ?> </table> </div> </div> <!-- end harga jahit --> <!-- harga tambahan --> <div class="col-sm-12"> <h3 style="text-align: center;"> <?= $this->session->userdata('site_lang') == 'english' ? ucwords(explode("||", $q_daftar_harga->jdl_harga_jasa_tambahan)[1]) : ucwords(explode("||", $q_daftar_harga->jdl_harga_jasa_tambahan)[0]); ?> </h3> <br> </div> <!-- mobile --> <div class="col-sm-6 visible-xs"> <div class="table-responsive"> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px; font-weight: bold; color:white;"><?=ucwords(lang('jenis'))?></td> <td style="font-weight: bold; color:white;"><?=ucwords(lang('harga'))?></td> </tr> <?php $additionals = $this->db->select('*')->from('daftar_harga_detail')->where('jenis3 !=','')->where('harga3 !=','')->order_by('jenis3','asc')->get()->num_rows(); $divide3 = $additionals/2; if($additionals%2==0) { $additionals2 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis3 !=','')->where('harga3 !=','')->order_by('jenis3','asc')->limit($divide3,0)->get()->result(); $additionals3 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis3 !=','')->where('harga3 !=','')->order_by('jenis3','asc')->limit($divide3,$divide3)->get()->result(); } else { $additionals2 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis3 !=','')->where('harga3 !=','')->order_by('jenis3','asc')->limit($divide3+1,0)->get()->result(); $additionals3 = $this->db->select('*')->from('daftar_harga_detail')->where('jenis3 !=','')->where('harga3 !=','')->order_by('jenis3','asc')->limit($divide3+1,$divide3+1)->get()->result(); } $additionals_mobile = $this->db->select('*')->from('daftar_harga_detail')->where('jenis3 !=','')->where('harga3 !=','')->order_by('jenis3','asc')->get()->result(); ?> <?php foreach ($additionals_mobile as $additional) : ?> <tr> <td><a href="#" style="cursor:pointer;"><?=ucwords($additional->jenis3)?></td> <td><?=strtolower(lang('mulai_dari'))?> Rp. <?=number_format($additional->harga3)?></td> </tr> <?php endforeach ?> </table> </div> </div> <!-- end mobile --> <div class="col-sm-6 hidden-xs"> <div class="table-responsive"> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px; font-weight: bold; color:white;"><?=ucwords(lang('jenis'))?></td> <td style="font-weight: bold; color:white;"><?=ucwords(lang('harga'))?></td> </tr> <?php foreach ($additionals2 as $additional2) : ?> <tr> <td><a href="#" style="cursor:pointer;"><?=ucwords($additional2->jenis3)?></td> <td><?=strtolower(lang('mulai_dari'))?> Rp. <?=number_format($additional2->harga3)?></td> </tr> <?php endforeach ?> </table> </div> </div> <div class="col-sm-6 hidden-xs"> <div class="table-responsive"> <table class="table table-striped"> <tr style="background:#0094ba;"> <td style="width: 180px; font-weight: bold; color:white;"><?=ucwords(lang('jenis'))?></td> <td style="font-weight: bold; color:white;"><?=ucwords(lang('harga'))?></td> </tr> <?php foreach ($additionals3 as $additional3) : ?> <tr> <td><a href="#" style="cursor:pointer;"><?=ucwords($additional3->jenis3)?></td> <td><?=strtolower(lang('mulai_dari'))?> Rp. <?=number_format($additional3->harga3)?></td> </tr> <?php endforeach ?> </table> </div> </div> <!-- end jasa tambahan --> </div> </div> <br><br> </main> <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Informasi Kain BSY</h4> </div> <div class="modal-body"> <div> <img id="img" style="height: 300px; width:100%; object-fit: cover; margin-bottom: 15px;border-radius: 4px;" src="https://www.canvaswebdesign.com/shrelo3/images/kain-potong1.jpg" alt="image description"> </div> <strong class="title"><a id="kain1" href="#" style="font-size: 20px; color:black;">BSY</a></strong> <table class="table table-striped"> <thead> <tr style="background:#0094ba;"> <td style="width: 50%; font-weight: bold; color:white;"><?=strtoupper((lang('ukuran_lebar')))?></td> <td style="width: 50%; font-weight: bold; color:white;"><?=strtoupper((lang('harga_permeter')))?></td> </tr> </thead> <tbody id="detail"> </tbody> </table> <table class="table table-striped"> <thead> <tr style="background:#0094ba;"> <td style="width: 50%; font-weight: bold; color:white;">PARAMETER</td> <td style="width: 50%; font-weight: bold; color:white;"></td> </tr> </thead> <style> #param tr td { text-transform: capitalize; } </style> <tbody id="param"> </tbody> </table> <div id="desc"> <p style="text-align: justify;">Detail : Bahan 100% polyester (polyster fabric), dengan tenunan serupa kain katun. Berbeda dengan BSY jepang yang tebal dan permukaannya lebih kasar, BSY ini halus dan dapat digunakan untuk aplikasi peralatan bayi. Sifat kainnya yang kuat dan mudah dijahit, menjadikan kain BSY sebagai kain favorit untuk banyak aplikasi. Area bersih untuk dicetak : 148 cm (gunakan lebar ini untuk cetak kain di lebar 150 cm).</p> Estimasi penyusutan : 1%-3%</p> <p>Cocok untuk produk <a href="#" style="color:black;">Dompet dan Pakaian</a></p> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script> function modal(id) { var url = '<?=base_url('ajax/ajax_daftar_harga')?>'; var lang = '<?=$this->session->userdata('site_lang')?>'; $.ajax({ url: url, data: {'<?php echo $this->security->get_csrf_token_name(); ?>':'<?php echo $this->security->get_csrf_hash(); ?>',id:id}, type: 'post', dataType: 'json', success:function(result){ $('#myModal').modal(); $('.modal-title').html(lang=='english' ? result.jenis_kain.title_en+' Fabric Information' : 'Informasi Kain '+result.jenis_kain.title); $('#kain1').html(lang=='english' ? result.jenis_kain.title_en : result.jenis_kain.title); $('#desc').html(lang=='english' ? result.jenis_kain.text_content_en : result.jenis_kain.text_content); $("#img").attr('src', result.jenis_kain.image!='' ? '<?=base_url()?>/uploads/banners/'+result.jenis_kain.image : '<?=base_url()?>/uploads/banners/no_image.jpg'); $('#detail').html(''); for (var i = 0; i < result.jenis_kain_detail[0].length; i++) { $('#detail').append('<tr><td style="width: 50%">'+result.jenis_kain_detail[0][i]['ukuran_lebar']+'</td><td style="width: 50%">IDR '+result.jenis_kain_detail[0][i]['harga_permeter']+'</td></tr>'); } var parameter = result.jenis_kain.banner_link.split (","); var parameter_en = result.jenis_kain.banner_link_en.split (","); $('#param').html(''); var newchar = '<i class="fa fa-star"></i>'; var html ='<tr>'; if(lang=='indonesian') { $.each(parameter, function(x,par) { if (x != 0 && x++ % 2 == 0) { html+='</tr></tr>'; }; html+='<td>'+par.split('*').join(newchar)+'</td>'; }); } else { $.each(parameter_en, function(x,par) { if (x != 0 && x++ % 2 == 0) { html+='</tr></tr>'; }; newchar = '<i class="fa fa-star"></i>'; html+='<td>'+par.split('*').join(newchar)+'</td>'; }); } $('#param').html(html); } }); } </script>