📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
themes
/
default
📝
search.php
← Geri Dön
<?php m_header(); if(m_u_p('c_id')=='') { $search_c_id = m_u_g('c_id'); } else { $search_c_id = m_u_p('c_id'); } if(m_u_p('q')=='') { $search_q = m_u_g('q'); } else { $search_q= m_u_p('q'); } if(mb_strlen($search_q,'UTF-8')<3) { m_redirect(SITE_DOMAIN); } if($search_c_id=='0' or $search_c_id=='') { $products = $db->table('products')->where('status','=',1)->where_set('title','LIKE',"'%".$search_q."%'")->pagination(40)->order('id','desc')->get(); } else { $products = $db->table('products')->where('status','=',1)->where_set('title','LIKE',"'%".$search_q."%'")->where_set('c_id','LIKE',"'%[".$search_c_id."]%'")->pagination(40)->order('id','desc')->get(); } ?> <section class="bestsellers mt-5 pt-5 pb-5"> <div class="container-lg"> <div class="group d-flex align-items-center justify-content-between"> <div class="title"><?php echo LG_SEARCH_RESULTS; ?> - <?php echo $search_q; ?></div> </div> <div class="row mt-5 row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5 productlist"> <?php foreach($products['data'] as $product) { $product_image = m_image_url($product['image']); $alt_product_image_status = 0; if($product['image_2'] != "" && m_setting('product_hover') == 1){ $alt_product_image = m_image_url($product['image_2']); $alt_product_image_status = 1; } $product_title = $product['title']; $product_link = m_permalink('product',$product['sef'],$product['id']); $undiscounted_price = m_currency($product['undiscounted_price']); $product_sale_price = m_currency($product['sale_price']); $product_currency_type = currency_types($product['currency_type'],'value'); $undiscounted_html = ''; if($undiscounted_price>0) { $undiscounted_html = '<div class="oldprice">'.$undiscounted_price.' '.$product_currency_type.'</div>'; } $cart_control = cart_control($product['id']); ?> <div class="col"> <div class="item"> <div class="img"> <?php if($product['cargo_price'] == "0.00"){ ?> <span class="d-flex bdgs"> <span class="bdg green">Ücretsiz Kargo!</span> </span> <?php } ?> <a href="<?php echo $product_link; ?>" class="img-top-ust"> <img src="<?php echo $product_image; ?>" width="238" height="175" class="img-fluid" alt=""> <?php if($alt_product_image_status){ ?> <img src="<?= $alt_product_image?>" width="238" height="175" class="img-top img-fluid" alt="Card Front"> <?php } ?> <?php if($product['home_slider_image'] != ""){ ?> <div class="img-top" > <video muted="muted" id="myVid" controls autoplay width="100%" height="100%" controls="false"> <source src="<?= m_image_url($product['home_slider_image'])?>" type="video/mp4"> </video> </div> <?php } ?> </a> </div> <a href="<?php echo $product_link; ?>" class="title"><h3><?php echo $product_title; ?></h3></a> <div class="pb"> <?php echo $undiscounted_html ?> <div class="price"><?php echo $product_sale_price; ?> <?php echo $product_currency_type; ?></div> <?php echo $cart_control; ?> </div> </div> </div> <?php } ?> </div> </div> </section> <section class="whyus pt-5 pb-5"> <div class="container-lg"> <div class="title text-center">NEDEN <?php echo str_replace('https://','',SITE_DOMAIN); ?>?</div> <div class="row mt-5"> <?php $boxes_bottom = $db->table('boxes_bottom')->where('status','=',1)->order('b_rank','ASC')->get(); if($boxes_bottom['total_count'] != 0){ foreach($boxes_bottom['data'] as $boxes){ $title = $boxes['title']; $content = $boxes['content']; $color = $boxes['color']; $icon = $boxes['icon']; ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <style> .subtitle-<?= $boxes['id']?>:before { content: ""; position: absolute; bottom: 0; width: 24px; height: 4px; border-radius: 2px; background-color: <?= $color?>; } </style> <div class="item orange" > <div class="orangee" style="background-color: <?= $color?>;box-shadow: 0 0 15px 0 <?= $color?>;"><i class="<?= $icon ?>"></i></div> <div class="subtitle subtitle-<?= $boxes['id']?>" style="color:<?= $color?>!important;" ><?= $title ?></div> <p><?= $content ?></p> </div> </div> <?php } } ?> </div> </div> </section> <section class="seotext mb-5"> <div class="container"> <?php echo m_setting('boxes_bottom'); ?> </div> </section> <?php m_footer(); ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula