<?php

$idjurusan = $_GET['idjurusan'];

$datadetail = $koneksi->query("SELECT * FROM tbl_jurusan WHERE jurusan_id ='$idjurusan'")->fetch_assoc();


?>

<section id="blog" class="blog">
    <div class="container mt-5">
        <div class="section-title mt-5">
            <h2>Jurusan</h2>
            <p>Jurusan SMKN 2 GUGUAK</p>
        </div>
        <div class="row">


            <div class="col-lg-8 entries">

                <article class="entry entry-single">

                    <div class="entry-img">
                        <img width="800" src="admin/dist/img/imgjurusan/<?= $datadetail['jurusan_foto']; ?>" alt="" class="img-fluid">
                    </div>

                    <h2 class="entry-title">
                        <a href="#S"><?= $datadetail['jurusan_nama'] ?></a>
                    </h2>

                    <div class="entry-content">
                        <p>
                            <?= $datadetail['jurusan_ket'] ?>
                        </p>



                    </div>

                    <div class="entry-footer clearfix">
                        <div class="float-left">
                        </div>

                        <div class="float-left share">
                            <a href="#" title="Share on Twitter"><i class="icofont-twitter"></i></a>
                            <a href="#" title="Share on Facebook"><i class="icofont-facebook"></i></a>
                            <a href="#" title="Share on Instagram"><i class="icofont-instagram"></i></a>
                        </div>

                    </div>

                </article><!-- End blog entry -->

                <!-- End blog author bio -->

                <!-- End blog comments -->

            </div><!-- End blog entries list -->

            <div class="col-lg-4">

                <div class="sidebar">

                    <h3 class="sidebar-title">Search</h3>
                    <div class="sidebar-item search-form">
                        <form action="">
                            <input type="text">
                            <button type="submit"><i class="icofont-search"></i></button>
                        </form>

                    </div><!-- End sidebar search formn-->

                    <h3 class="sidebar-title">Jurusan</h3>
                    <div class="sidebar-item categories">
                        <?php
                        $datajurusan =  $koneksi->query("SELECT * FROM tbl_jurusan");
                        foreach ($datajurusan as $pecah) :

                        ?>
                            <ul>
                                <li><a href="?page=pages/jurusan/detail_jurusan&iddetail=<?= $pecah['jurusan_id'] ?>"><?= $pecah['jurusan_nama'] ?></a></li>
                            </ul>
                        <?php
                        endforeach;
                        ?>

                    </div><!-- End sidebar categories-->

                    <h3 class="sidebar-title">Pengumuman</h3>
                    <div class="sidebar-item recent-posts ">
                        <?php

                        $datapengumuman = $koneksi->query("SELECT * FROM tbl_pengumuman");
                        foreach ($datapengumuman as $pecah) :

                        ?>
                            <div class="post-item clearfix">
                                <img src="admin/dist/img/imgpengumuman/<?= $pecah['pengumuman_foto'] ?>" alt="">

                                <h4>
                                    <a href="?page=pages/pengumuman/detail&iddetail=<?= $pecah['pengumuman_id'] ?>">
                                        <?= $pecah['pengumuman_nama'] ?>
                                    </a>
                                </h4><br><br>
                                <span><?= $pecah['pengumuman_tgl'] ?></span>
                                <!-- <p style="background: #5fcf80; text-align: center;"><a href="?page=pages/pengumuman/detail&iddetail=<?= $pecah['pengumuman_id'] ?>">Read More..</a></p> -->


                            </div>
                        <?php
                        endforeach;
                        ?>
                    </div><!-- End sidebar recent posts-->
                    <!-- End sidebar tags-->

                </div><!-- End sidebar -->

            </div><!-- End blog sidebar -->

        </div>

    </div>
</section>