<!DOCTYPE html>
<html lang="tr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <title>Kitap Profili</title>
</head>

<body>
    <div class="alert alert-secondary" role="alert" style="max-width: 1000px; margin: 20px auto">
        <?php
            require_once("_ayarlar.php");
            $id = @$_GET["id"];

            $sql = "SELECT * FROM kitap WHERE id = '$id' ";
            $tablo = $vt->query($sql);
            $satir = $tablo->fetch_assoc();
        ?>
        <h3 style="text-align: center"><?php echo $satir["kitap_ad"] ?></h3>
        <img src="kapak/<?php echo $satir["resim"] ?>" style="display:block; margin:auto; height:200px;">
        <strong>Yazar Adı: </strong><?php echo $satir["yazar_ad"] ?>
        <br>
        <strong>Yazar Soyadı: </strong><?php echo $satir["yazar_soyad"] ?>
        <br>
        <strong>ISBN: </strong><?php echo $satir["isbn"] ?>
        <br>
        <strong>Yayın Evi: </strong><?php echo $satir["yayinevi"] ?>
        <br>
        <strong>Basım Yılı: </strong><?php echo $satir["basim_yili"] ?>
        <br>
        <strong>Sayfa Sayısı: </strong><?php echo $satir["sayfa_sayisi"] ?>
        <br>
        <strong>Türü: </strong><?php echo $satir["tur"] ?>
        <br>
        <strong>Fiyatı: </strong><?php echo $satir["fiyat"] ?>₺
        <br>
        <strong>Hakkında: </strong><?php echo $satir["kitap_hakkinda"] ?>
        <br>

        <div class="col text-right" style="margin-top: 20px">
        <a href="index.php"><button type="button" class="btn btn-primary" style="margin:auto;">Tüm Kitaplara Dön</button></a>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>