<?php
session_start();
@$userKey = $_SESSION['loginKey'];

if($userKey == "")
{
    echo "<script>window.open('login.php','_self')</script>";
}


include "control/activity.php";
$dd = new activity();


$table = "userdetails";
$condition = " where userKey='$userKey'";
$getuserdetails = $dd->single($table,$condition);




$table = "level_distribution";
$condition = null;
$getCommisionDetais = $dd->single($table,$condition);

$table = "admin_calculation";
 $condition =null;
 $getDetailsAdmin = $dd->single($table,$condition);
 $telegram = $getDetailsAdmin['telegram'];
$fevicon = $getAdminDetails['favicon'];
?>



<!DOCTYPE html>
<html lang="en" translate="no">
<head>
    <meta charset="UTF-8">
   <link rel="icon" type="image/svg+xml" href="temp_img/<?= $fevicon; ?>">
    <meta name="google" content="notranslate">
    <meta name="robots" content="noindex,nofollow">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title><?= $getDetailsAdmin['title'];?></title>
    <link rel="stylesheet" href="css/slick.css" />
    <link rel="stylesheet" href="css/modules.css" />
    <link rel="stylesheet" href="css/style.css" />
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/slick.min.js" type="text/javascript"></script>
    <script src="js/main.js" type="text/javascript"></script>
</head>
<body>
    <div id="app">
       <div class="mian myTeam tutorial">
         <!--NavBar-->
         <div class="navbar">
            <div class="navbar-fixed" style="background: linear-gradient(90deg, rgb(207, 3, 5) 0%, rgb(242, 63, 58) 100%);">
                <div class="navbar__content">
                    <div data-v-905dfe8c="" class="navbar__content-left" onclick="clicktoBack()"><div data-v-905dfe8c="" class="backIcon"></div></div>
                    <div data-v-905dfe8c="" class="navbar__content-center"><div data-v-905dfe8c="" class="navbar__content-title"> Tutorial </div></div>
                    <div class="navbar__content-right">
                        <div data-v-7c8bbbf4="" data-v-106b99c8="" class="c-row">
                            <i data-v-7c8bbbf4="" data-v-106b99c8="" class="van-icon van-icon-notes-o" style="font-size: 25px;"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--NavBar-->

        <!--promotion-->
        <div class="promotion">
            <div class="tab">
                <ul class="c-row c-row-between">
                <li data-v-7c8bbbf4="" onclick="location.href='promotion.php'">Overview</li>
                    <li data-v-7c8bbbf4="" onclick="location.href='myTeam.php'">My Team</li>
                    <!--<li data-v-7c8bbbf4="" onclick="location.href='promotionDes.php'">Receipt history</li>-->
                    <li data-v-7c8bbbf4="" onclick="location.href='tutorial.php'" class="action block-click">Tutorial</li>
                </ul>
            </div>
            <div class="box">
              
                <div class="info_content">
                    <div class="info">
                        <div data-v-d18c566e="" class="head">New Referral</div>
                        <div data-v-d18c566e="" class="line">Level 1 = <?= $getCommisionDetais['f1']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 2 = <?= $getCommisionDetais['f2']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 3 = <?= $getCommisionDetais['f3']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 4 = <?= $getCommisionDetais['f4']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 5 = <?= $getCommisionDetais['f5']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 6 = <?= $getCommisionDetais['f6']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 7 = <?= $getCommisionDetais['f7']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 8 = <?= $getCommisionDetais['f8']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 9 = <?= $getCommisionDetais['f9']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 10 = <?= $getCommisionDetais['f10']; ?>%</div>
                    </div>
                    <div data-v-d18c566e="" class="info">
                        <div data-v-d18c566e="" class="head u2">Bet Commission</div>
                        <div data-v-d18c566e="" class="line">Level 1 = <?= $getCommisionDetais['bet1']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 2 = <?= $getCommisionDetais['bet2']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 3 = <?= $getCommisionDetais['bet3']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 4 = <?= $getCommisionDetais['bet4']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 5 = <?= $getCommisionDetais['bet5']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 6 = <?= $getCommisionDetais['bet6']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 7 = <?= $getCommisionDetais['bet7']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 8 = <?= $getCommisionDetais['bet8']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 9 = <?= $getCommisionDetais['bet9']; ?>%</div>
                        <div data-v-d18c566e="" class="line">Level 10 = <?= $getCommisionDetais['bet10']; ?>%</div>
                    </div>
  
                </div>
            </div>
        </div>
        <!--promotion-->

        </div>
        <?php include "footer.php"; ?>
    </div>
</body>
<script>
  function clicktoBack()
  {
    window.open('index.php','_self');
  }
</script>
</html>