<?php
if (!defined('IN_SITE')) {
    die('The Request Not Found');
}
?>
<?php  
if (isset($_GET['code'])) {
    $id = check_string($_GET['code']);
}
$row = $DVR->get_row(" SELECT * FROM `gdv` WHERE `code` = '".check_string($_GET['code'])."' ");
{
?>
<!DOCTYPE html>
<html lang="vi">
<head>
  <!-- Required meta tags -->
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="description" content="<?=$_SERVER['HTTP_HOST']?> Cam Kết Bảo Hiểm <?=format_cash($row['money']);?>vnđ cho mọi giao dịch của bạn với &quot;<?=$row[ 'name' ];?>&quot; khi bạn tuân theo Nội Quy Giao Dịch của <?=$_SERVER['HTTP_HOST']?>">
  <title><?=$title?></title>
  <meta name="keywords" content="[ <?=$row[ 'name' ];?> ] BH <?=format_cash($row['money']);?> VND Tại <?=$_SERVER['HTTP_HOST']?>">

  <!-- Open Graph data -->
  <meta property="og:title" content="[ <?=$row[ 'name' ];?> ] BH <?=format_cash($row['money']);?> VND Tại <?=$_SERVER['HTTP_HOST']?>">
  <meta property="og:type" content="website">
  <meta property="og:url" content="<?=BASE_URL('');?>">
  <meta property="og:image" content="<?=$row['image'];?>" />
  <meta property="og:image:width" content="1536" />
  <meta property="og:image:height" content="720" />
  <meta property="og:image:type" content="image/jpeg" />
  <meta name="twitter:card" content="summary_large_image" />
  <meta name="twitter:label1" content="Ước tính thời gian đọc" />
  <meta name="twitter:data1" content="1 phút" />
  <meta property="og:description" content="<?=$_SERVER['HTTP_HOST']?> Cam Kết Bảo Hiểm <?=format_cash($row['money']);?>vnđ cho mọi giao dịch của bạn với &quot;<?=$row[ 'name' ];?>&quot; khi bạn tuân theo Nội Quy Giao Dịch của <?=$_SERVER['HTTP_HOST']?>">
  <meta property="og:site_name" content="Bảo Hiểm Tại <?=$_SERVER['HTTP_HOST']?>">
  <meta property="og:url" content="https://<?=$_SERVER['HTTP_HOST']?>" />
  <meta property="article:section" content="<?=$_SERVER['HTTP_HOST']?> Cam Kết Bảo Hiểm <?=format_cash($row['money']);?>vnđ cho mọi giao dịch của bạn với &quot;<?=$row[ 'name' ];?>&quot; khi bạn tuân theo Nội Quy Giao Dịch của <?=$_SERVER['HTTP_HOST']?>">
  <meta property="article:tag" content="[ <?=$row[ 'name' ];?> ] BH <?=format_cash($row['money']);?> VND Tại <?=$_SERVER['HTTP_HOST']?>">
  <meta name="author" content="[ <?=$row[ 'name' ];?> ] BH <?=format_cash($row['money']);?> VND Tại <?=$_SERVER['HTTP_HOST']?>">
  

  <link rel="icon" href="<?=$DVR->site('favicon');?>" type="image/x-icon" />
  <link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet" />
  <link rel="stylesheet" href="<?=BASE_URL('public/theme/');?>assets/default/plugins/bootstrap/bootstrap.min.css" />
  <link rel="stylesheet" href="<?=BASE_URL('public/theme/');?>assets/default/plugins/swiper/swiper-bundle.min.css" />
  <link rel="stylesheet" href="<?=BASE_URL('public/theme/');?>assets/default/plugins/select2/css/select2.min.css" />
  <link rel="stylesheet" href="<?=BASE_URL('public/theme/');?>assets/default/plugins/fancybox/fancybox.min.css" />
  <link rel="stylesheet" href="<?=BASE_URL('public/theme/');?>assets/default/fonts/fontawesome/css/all.min.css" />
  <link rel="stylesheet" href="<?=BASE_URL('public/theme/');?>assets/default/css/base.css?<?=time();?>" />
  <link rel="stylesheet" href="<?=BASE_URL('public/theme/');?>assets/default/css/style.css?<?=time();?>" />
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" crossorigin="anonymous" />
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  <link rel="icon" href="<?=BASE_URL('public/theme/');?>assets/default/images/Picsart_22-10-16_07-31-12-867.png">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css">
  <script src="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.js"></script>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify@1.0.4/dist/simple-notify.css" />
  <script src="https://cdn.jsdelivr.net/npm/simple-notify@1.0.4/dist/simple-notify.min.js"></script>
  <link href="<?=BASE_URL('')?>public/assets/cute/cute-alert.css" rel="stylesheet">
  <script src="<?=BASE_URL('')?>public/assets/cute/cute-alert.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/plugins/jquery.min.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/plugins/bootstrap/bootstrap.bundle.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.3.2/dist/lazyload.min.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/plugins/swiper/swiper-bundle.min.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/plugins/select2/js/select2.min.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/plugins/fancybox/fancybox.min.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/plugins/swal/sweetalert2.all.min.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/plugins/cookie/cookie.min.js"></script>
  <script type="text/javascript" src="<?=BASE_URL('public/theme/');?>assets/default/js/app.js?<?=time();?>"></script>
  <script src="https://cdn.jsdelivr.net/npm/iconify-icon@2.0.0/dist/iconify-icon.min.js"></script>

  <script>
  function showMessage(message, type) {
    const commonOptions = {
      effect: 'fade',
      speed: 300,
      customClass: null,
      customIcon: null,
      showIcon: true,
      showCloseButton: true,
      autoclose: true,
      autotimeout: 3000,
      gap: 20,
      distance: 20,
      type: 'outline',
      position: 'right top'
    };

    const options = {
      success: {
        status: 'success',
        title: 'Thành công!',
        text: message,
      },
      error: {
        status: 'error',
        title: 'Thất bại!',
        text: message,
      }
    };
    new Notify(Object.assign({}, commonOptions, options[type]));
  }
  </script>

  <script>
  function onloadCallback() {
    grecaptcha.ready(function () {
      grecaptcha.execute("", { action: "homepage" }).then(function (token) {
        $(".recaptcha_token").val(token);
      });
    });
  }
  function HideModal() {
    Cookies.set("Hide", "TRUE", { expires: 1 });
    $("#global-modal").modal("hide");
  }
  $(document).ready(function () {
    if (!Cookies.get("Hide")) {
      $("#global-modal").modal("show");
    }
    $("#dropfile").click(function (event) {
      $("#uploadfile").trigger("click");
    });
  });
  </script>
  <style>
  :root {
    --gray-theme: #F8FAFC;
    --gray-theme-900: #F4F4F5;
    --gray-theme-800: #e1e1e1;
    --gray-theme-700: #dadada;
    --gray-theme-600: #b7b7b7;
    --gray-theme-500: #adadad;
    --gray-theme-400: #969696;
    --gray-theme-300: #7c7c7c;
    --gray-theme-200: #696969;
    --gray-theme-100: #595959;
    --dark-color: #232323;
    --transition: .3s all ease-in-out;
    --font-theme: 'Open Sans', sans-serif; 
    --primary-color: <?=$DVR->site('color');?>;
    --primary-hover: <?=$DVR->site('sdcolor');?>;
    --dvtg: #00CD00;
    --ditme: #9933FF;
  }
  </style> 
  <?=base64_decode($DVR->site('javascript_header'));?>
</head>
<style>
      body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

  </style>
</body>
</html>
<?php } ?>
