Shell File Manager
<?php
include_once('../include/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>CamScan FZCO |Products</title>
<!-- <link rel="stylesheet" href="ts.css"> -->
<?php
include('../include/header.php');
$log_status = $_GET['log_status'];
?>
<body>
<?php
include('../include/nav.php');
?>
<br> <br> <br>
<div class="section-title ">
<h2>Product Details </h2>
</div>
</div>
<!-- partial:index.partial.html -->
<!-- <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">
<div class="pd-wrap">
<div class="container">
<div class="heading-section">
</div>
<div class="row">
<div class="col-md-6">
<div id="slider" class="owl-carousel product-slider">
<div class="item">
<?php
$product_id = $_GET['product_id'];
$products = "SELECT * FROM tb1 where id=$product_id";
$products_run = mysqli_query($connection, $products);
if (mysqli_num_rows($products_run) > 0) {
foreach ($products_run as $productsfor) {
// print_r($pritems1);
$Image = $productsfor['Image'];
$Name = $productsfor['Name'];
$product_category = $productsfor['product_category'];
$product_id = $productsfor['id'];
$type = $productsfor['type'];
$model = $productsfor['model'];
$discontinued = $productsfor['discontinued'];
$DataSheet = $productsfor['DataSheet'];
$Manual = $productsfor['Manual'];
$Certifications = $productsfor['Certifications'];
}
}
?>
<img src="../assets/img/products/<?php print_r($Image); ?>" style=" height: 500px;object-fit: contain; " />
</div>
</div>
</div>
<div class="col-md-6">
<div class="product-dtl">
<div class="product-info">
<br>
<div class="product-name">
<h2 style="color: #015d62;"> Details </h2>
</div>
<hr style="border: 2px solid black;">
<br>
<div class="product-name">
<h3> <?php print_r($Name); ?></h3>
</div>
</div>
<p> <strong> Product Type : </strong> <?php print_r($type); ?> <br> <strong>Product Category : </strong> <?php print_r($product_category); ?> <br> <strong>Product Model : </strong> <?php print_r($model); ?> <br> <strong>Product Status : </strong>
<?php if ($discontinued == 0) {
echo " Non Discontinued";
} else {
echo "Discontinued";
} ?></p>
<br>
<div class="row">
<div class="col-md-6">
<div class="product-name">
<h3>Downloads</h3>
</div>
<select id="size" name="forma" class="form-control" onchange="location = this.options[this.selectedIndex].value;">
<option value="Product_details.php?product_id=<?php print_r($product_id); ?>&log_status=<?php print_r($log_status); ?>">Select Option </option>
<option value="../downloads/download.php?file=<?php print_r($DataSheet); ?>"> Data Sheet </option>
<option value="../downloads/download.php?file=<?php print_r($Manual); ?>">User Manual Download</option>
<option value="../downloads/download.php?file=<?php print_r($Certifications); ?>">Certifications</option>
<option value="../downloads/download.php?file=">Photo</option>
</select>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="product-info-tabs">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="description-tab" data-toggle="tab" href="#description" role="tab" aria-controls="description" aria-selected="true">Features </a>
</li>
<li class="nav-item">
<a class="nav-link" id="review-tab" data-toggle="tab" href="#review" role="tab" aria-controls="review" aria-selected="false"> Specifications </a>
</li>
</ul>
<br>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="description" role="tabpanel" aria-labelledby="description-tab">
<div class="review-heading">
<h4> Product Features </h4>
</div>
<ul>
<?php
$product_id = $_GET['product_id'];
$products_d = "SELECT * FROM tb2 where tb1_id=$product_id and length(f1) >=1";
$products_d_run = mysqli_query($connection, $products_d);
if (mysqli_num_rows($products_d_run) > 0) {
foreach ($products_d_run as $products_dfor) {
// print_r($pritems1);
$f1 = $products_dfor['f1'];
?>
<li> <?php print_r($f1); ?></li>
<?php }
} ?>
</ul>
</div>
<div class="tab-pane fade" id="review" role="tabpanel" aria-labelledby="review-tab">
<div class="review-heading">
<h4> Product Specifications </h4>
</div>
<?php
$Specifications = "SELECT * FROM tb2 WHERE tb1_id=$product_id Group By title ORDER BY `tb2`.`id` ASC ";
$resultSpecifications = mysqli_query($connection, $Specifications);
foreach ($resultSpecifications as $sections) {
?>
<?php
?>
<table class="table table-striped">
<thead>
</thead>
<tbody>
<h4 style="color: #015d62; text-align:center"> <strong> <?php echo $sections['title']; ?> </strong></h4>
<?php
$product_id = $_GET['product_id'];
$t = $sections['title'];
// print_r($t);
$Specifications2 = "SELECT * FROM tb2 WHERE tb1_id=$product_id and title='$t' ";
$resultSpecifications2 = mysqli_query($connection, $Specifications2);
while ($row = mysqli_fetch_array($resultSpecifications2)) {
?>
<tr>
<td><?php echo $f2 = $row['f2'];; ?></td>
<td><?php echo $f2 = $row['f3'];; ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php
include '../include/footer.php';
?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity=" sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<!-- partial -->
<script src="details.js"></script>
</body>
</html>
Shell File Manager Version 1.1, Coded By Shell
Email: [email protected]