%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj <
| Server IP : 212.252.79.165 / Your IP : 216.73.216.24 [ Web Server : Apache System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64 User : cehaburo ( 1001) PHP Version : 8.1.33 Disable Function : exec,passthru,shell_exec,system Domains : 48 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/cehaburo/public_html/libraryForMobile/ |
Upload File : |
<?php
include '../lib/connection1.php';
// tbl_product_category tablosundan tüm verileri çekme
$sql = "SELECT * FROM tbl_product_category";
$result = $ceha->query($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SubProduct Library</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="font-sans text-[#ACACAC]">
<div>
<div class="container mx-auto p-4 flex items-center justify-between">
<div class="backButton">
<a href="<?php echo $_SERVER['HTTP_REFERER']; ?>" class="flex items-center gap-2 text-black font-semibold text-[19px]">
<svg width="8" height="15" viewBox="0 0 8 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.13416 1.27907C7.13395 1.51866 7.0386 1.74836 6.86908 1.91767L2.24706 6.53968C2.10716 6.67955 1.99619 6.8456 1.92047 7.02836C1.84476 7.21112 1.80579 7.407 1.80579 7.60482C1.80579 7.80264 1.84476 7.99853 1.92047 8.18128C1.99619 8.36404 2.10716 8.53009 2.24706 8.66996L6.86305 13.289C7.02766 13.4594 7.11875 13.6877 7.11669 13.9246C7.11463 14.1616 7.01959 14.3882 6.85204 14.5558C6.68449 14.7233 6.45784 14.8183 6.2209 14.8204C5.98396 14.8225 5.75569 14.7314 5.58525 14.5668L0.969261 9.95137C0.348594 9.32948 1.00905e-05 8.48675 1.01673e-05 7.60813C1.02441e-05 6.72951 0.348594 5.88678 0.969262 5.2649L5.59128 0.642881C5.71748 0.516598 5.87826 0.430525 6.05333 0.395526C6.2284 0.360527 6.40991 0.378169 6.57497 0.446227C6.74002 0.514285 6.88122 0.629709 6.98074 0.777932C7.08026 0.926156 7.13364 1.10054 7.13416 1.27907Z" fill="#1F3663" />
</svg>
<div>
Geri
</div>
</a>
</div>
</div>
</div>
<div class="container mx-auto flex md:hidden w-full">
<div class="library flex flex-col items-center h-screen w-full">
<h3 class="flex justify-center w-full text-black font-semibold text-[19px]">
<?php
// Ana ürünün ID'sini alın
$mainProductId = $_GET['mainProductId'];
// Ana ürünün adını alın
$sql_main = "SELECT * FROM tbl_product_category WHERE id = $mainProductId";
$result_main = $ceha->query($sql_main);
$row_main = $result_main->fetch_assoc();
echo $row_main['title_tr'];
?>
</h3>
<div class="mainProduct grid grid-cols-3 mt-5">
<?php
// Ana ürünün ID'sini alın
$mainProductId = $_GET['mainProductId'];
// Alt ürünleri sorgulamak için gerekli SQL sorgusunu oluşturun
$sql_sub = "SELECT * FROM tbl_product_category WHERE parent_id = $mainProductId";
// Sorguyu çalıştırın ve sonuçları alın
$result_sub = $ceha->query($sql_sub);
// Alt ürünleri listeleyin
if ($result_sub->num_rows > 0) {
while ($row_sub = $result_sub->fetch_assoc()) {
$subProductId = $row_sub['id'];
$subProductName = $row_sub['title_tr'];
echo '<ul class="list-none p-0 w-full">';
echo '<a href="variation.php?subProductId=' . $subProductId .'" class="">';
echo '<li class="flex items-center space-x-2 cursor-pointer py-2 w-[108px] h-[167px] flex-col items-center cols-span-1">';
echo '<span class="listItem text-xl">
<svg width="77" height="77" viewBox="0 0 77 77" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_0_386)">
<path d="M0.00158691 28.9481V57.5509C0.0121534 66.3139 7.11331 73.415 15.8762 73.4256H60.3251C69.0879 73.415 76.1892 66.3139 76.1996 57.5509V28.5957L0.00158691 28.9481Z" fill="#446DBB"/>
<path d="M60.325 9.92693H39.5991C39.1082 9.93021 38.6228 9.82157 38.1799 9.60949L28.1599 4.58042C26.8371 3.92172 25.38 3.57838 23.9023 3.57719H15.8761C7.11331 3.58761 0.0121534 10.6888 0.00158691 19.4517V22.598L75.7646 22.2456C74.1103 15.0477 67.7105 9.94167 60.325 9.92693Z" fill="#446DBB"/>
</g>
<defs>
<clipPath id="clip0_0_386">
<rect width="76.198" height="76.198" fill="white" transform="translate(0.00158691 0.402176)"/>
</clipPath>
</defs>
</svg>
</span>';
echo '<span class="listItem font-semibold w-[100px] text-[#818181] text-center text-[15px]">' . $subProductName . '</span>';
echo '</li>';
echo '</a>';
echo '</ul>';
}
}
?>
</div>
</div>
</div>
<footer class="absolute bottom-[1rem] w-full">
<div class="flex justify-center">
<img src="../images/mobile-footer.png" alt="">
</div>
</footer>
</body>
</html>