<?php 
include('view/new_header_file.php');
include_once("classes/database.class.php");
include_once("classes/oanda.php");
include_once('classes/phpToPDF.php');
?>

<link rel="stylesheet" type="text/css" href="node_modules/css-toggle-switch/dist/toggle-switch.css">




  <style type="text/css">

    .tabs-left, .tabs-right {

      border-bottom: none;

      padding-top: 2px;

  }

  .tabs-left {

    border-right: 1px solid #ddd;

  }

  .tabs-right {

    border-left: 1px solid #ddd;

  }

  .tabs-left>li, .tabs-right>li {

    float: none;

    margin-bottom: 2px;

  }

  .tabs-left>li {

    margin-right: -1px;

  }

  .tabs-right>li {

    margin-left: -1px;

  }

  .tabs-left>li.active>a,

  .tabs-left>li.active>a:hover,

  .tabs-left>li.active>a:focus {

    border-bottom-color: #ddd;

    border-right-color: transparent;

  }



  .tabs-right>li.active>a,

  .tabs-right>li.active>a:hover,

  .tabs-right>li.active>a:focus {

    border-bottom: 1px solid #ddd;

    border-left-color: transparent;

  }

  .tabs-left>li>a {

    border-radius: 4px 0 0 4px;

    margin-right: 0;

    display:block;

  }

  .tabs-right>li>a {

    border-radius: 0 4px 4px 0;

    margin-right: 0;

  }

  .vertical-text {

    margin-top:50px;

    border: none;

    position: relative;

  }

  .vertical-text>li {

    height: 20px;

    width: 120px !!important;

    margin-bottom: 100px;

  }

  .vertical-text>li>a {

    border-bottom: 1px solid #ddd;

    border-right-color: transparent;

    text-align: center;

    border-radius: 4px 4px 0px 0px;

  }

  .vertical-text>li.active>a,

  .vertical-text>li.active>a:hover,

  .vertical-text>li.active>a:focus {

    border-bottom-color: transparent;

    border-right-color: #ddd;

    border-left-color: #ddd;

  }

  .vertical-text.tabs-left {

    left: -50px;

  }

  .vertical-text.tabs-right {

    right: -50px;

  }

  .vertical-text.tabs-right>li {

    -webkit-transform: rotate(90deg);

    -moz-transform: rotate(90deg);

    -ms-transform: rotate(90deg);

    -o-transform: rotate(90deg);

    transform: rotate(90deg);

  }

  .vertical-text.tabs-left>li {

    -webkit-transform: rotate(-90deg);

    -moz-transform: rotate(-90deg);

    -ms-transform: rotate(-90deg);

    -o-transform: rotate(-90deg);

    transform: rotate(-90deg);

  }

  .tabs-left > li 

  {

    padding-top: 5px !important;

    padding-bottom: 5px !important;

  }

  .panel-heading

  {

    background-color: #F7614E !important;

    text-align: center;

    padding: 7px !important;

    font-size: 18px !important;

    font-weight: 500;

  }

  .panel-body

  {

    background-color: #0E162D !important;

    text-align: center;

    padding-top: 40px;

    padding-bottom: 40px;

    font-size: 48px !important;

  }

  .swal-modal

  {

    background-color: #202943;

  }

  .swal-title

  {

    color: #F7614E;

  }

  .swal-text

  {

    color: #fff;

  }

  .swal-icon--success:before, .swal-icon--success:after

  {

    background-color: #202943;  

  }

  .swal-icon--success__hide-corners {



    background-color: #202943;  

  }

  .lightTabs

  {

    background: #fff !important;

  }

  .lightTabs > li > a

  {

    color: #F7614E !important; 

  }

  #home

  {

    color: white;

    background: #1F2638 !important;

  }

  #rightTab, #rightTab > .crypt-tab-content

  {

    background-color: #1F2638;

  }

  .lightRightTab, .lightRightTab > div, .lightRightTab > div > #home, .lightRightTab >  .crypt-tab-content 

  {

    background-color: #fff !important;

  }

  .light-panel-body

  {

    background: #eee !important;

    color: #1F2638 !important;

  }

  .lightTableVersion, .lightTableVersion > thead, .lightTableVersion > thead > tr, .lightTableVersion > thead > tr > th, .lightTableVersion > tbody, .lightTableVersion > tbody > tr, .lightTableVersion > tbody > tr > td

  {

    background-color: #fff;

    color: #1F2638 !important;

    border: 1px solid #1F2638 !important;

  }

  .lightRightTab > div > #profile > form > div > label, .lightRightTab > div > #messages > form > div > div > label, .lightRightTab > div > #targets > form > div > div > label, .lightRightTab > div > #userSettings > #acc_type_row > form > div > label, .lightRightTab > div > #userSettings > #logRules > form > div > label

  {

    color: #1F2638 !important;

  }

  .lightRightTab > div > #profile > form > div > input, .lightRightTab > div > #profile > form > div > select, .lightRightTab > div > #messages > form > div > div > input, .lightRightTab > div > #targets > form > div > div > input, .lightRightTab > div > #userSettings > #acc_type_row > form > div > input, .lightRightTab > div > #userSettings > #logRules > form > div > input, .lightRightTab > div > #userSettings > #logRules > form > div > select

  {

    color: #1F2638 !important;

    background-color: #eee !important;  

  }

  .round {

  position: relative;

}



.round label {

  background-color: #fff;

  border: 1px solid #ccc;

  border-radius: 50%;

  cursor: pointer;

  height: 28px;

  left: 0;

  position: absolute;

  top: 0;

  width: 28px;

}



.round label:after {

  border: 2px solid #fff;

  border-top: none;

  border-right: none;

  content: "";

  height: 6px;

  left: 7px;

  opacity: 0;

  position: absolute;

  top: 8px;

  transform: rotate(-45deg);

  width: 12px;

}



.round input[type="checkbox"] {

  visibility: hidden;

}



.round input[type="checkbox"]:checked + label {

  background-color: #66bb6a;

  border-color: #66bb6a;

}



.round input[type="checkbox"]:checked + label:after {

  opacity: 1;

}




  </style>

  <?php 

    if(isset($_COOKIE['id']) && isset($_COOKIE['uid'])){

    $userId = filter_input(INPUT_COOKIE, 'id');

    $userUId = filter_input(INPUT_COOKIE, 'uid');


    $db = new database();

    $stmt = $db->db->prepare("SELECT * FROM users WHERE id = :id and uid = :uid");

    $stmt->execute(array(':id' => $userId, ':uid' => $userUId));

    $userDetails = $stmt->fetch(PDO::FETCH_OBJ);

    $fullN = $userDetails->name;

    $splitname = explode(" ", $fullN);

    $loggedIn = true;

        $firstname = $splitname[0];

    $lastname = $splitname[1];

    $accType = $userDetails->acctype;

    $starting_money = $userDetails->starting_money;



  }

  ?>


      <div class="container">
         <div class="row sm-gutters">


                    <div class="col-xs-3 col-sm-3 col-lg-3">

                         
                          <?php 

                          include_once('menu.php');

                          ?>

                      </div>

                      <div class="col-xs-9 col-sm-9 col-lg-9" id="rightTab">


                          <div class="tab-content crypt-tab-content" style="width: 100%;">

                            <div class="tab-pane active" id="profile" style="color: white;padding-top: 20px !important;padding-bottom: 20px !important;">
                                
                                
                                <?php 



                                if (isset($_POST['tSubmit'])) {

                                  # code...

                                  $tickCur = $_POST['tickCur'];



                                  $tickCur = serialize($tickCur);



                                  $getUserTik = $db->db->prepare("SELECT * FROM tickers WHERE userid = '$userId'");

                                  $getUserTik->execute();



                                  $get_user_tickers = $getUserTik->fetch();



                                  if (empty($get_user_tickers)) {

                                    # code...

                                    $tckrs = $db->db->prepare("INSERT INTO tickers(userid, tickers) VALUES('$userId', '$tickCur')");  

                                  }else{







                                    $tckrs = $db->db->prepare("UPDATE tickers SET tickers = '$tickCur' WHERE userid = '$userId'");

                                  }



                                  



                                  if ($tckrs->execute()) {

                                    # code...

                                    



                                  ?>

                                  <script type="text/javascript">

                                    location.href = location.href;

                                  </script>

                                  <?php

                                }

                                }





                                

                                









                                ?>











                                

                                  

                                



                                <div class="row" style="margin-top: 30px;">



                                  <div class="col-md-6">

                                    <fieldset>

                              <label>Tickers</label>

                              <div class="switch-toggle switch-candy">



                                 <input id="hide" name="ticker" type="radio" value="hide" onchange="tickerSetting(value)" <?php 

                                 if ($tickerAvail == false) {

                                  # code...

                                  echo "checked";

                                 }

                                 ?>

                                 >

                                <label style="padding-top: 7px;padding-bottom: 7px;" for="hide" onclick="">Disable</label>



                                <input id="show" name="ticker" type="radio" value="show" onchange="tickerSetting(value)" <?php 

                                 if ($tickerAvail == true) {

                                  # code...

                                  echo "checked";

                                 }

                                 ?>>

                                <label style="padding-top: 7px;padding-bottom: 7px;" for="show" onclick="">Enable</label>



                               



                                <a></a>

                              </div>

                            </fieldset>

                                  </div>

                                  

                                </div>





                                <form method="post" action="" id="tickerForm" <?php if ($tickerAvail == false): ?>

                                  style="display: none;";

                                <?php endif ?>>





                                <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">EUR</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_USD" <?php if (in_array('EUR_USD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?> 



                                    >

                                    EUR/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_AUD" <?php if (in_array('EUR_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_GBP" <?php if (in_array('EUR_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_NZD" <?php if (in_array('EUR_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_CAD" <?php if (in_array('EUR_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_CHF" <?php if (in_array('EUR_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_JPY" <?php if (in_array('EUR_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_HKD" <?php if (in_array('EUR_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="EUR_SGD" <?php if (in_array('EUR_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    EUR/SGD

                                  </div>

                                  

                                </div>

















                                <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">USD</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_EUR" <?php if (in_array('USD_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_AUD" <?php if (in_array('USD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_GBP" <?php if (in_array('USD_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_NZD" <?php if (in_array('USD_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_CAD" <?php if (in_array('USD_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_CHF" <?php if (in_array('USD_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_JPY" <?php if (in_array('USD_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_HKD" <?php if (in_array('USD_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="USD_SGD" <?php if (in_array('USD_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    USD/SGD

                                  </div>

                                  

                                </div>









                                <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">AUD</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_EUR" <?php if (in_array('AUD_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_USD" <?php if (in_array('AUD_USD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_GBP" <?php if (in_array('AUD_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_NZD" <?php if (in_array('AUD_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_CAD" <?php if (in_array('AUD_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_CHF" <?php if (in_array('AUD_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_JPY" <?php if (in_array('AUD_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_HKD" <?php if (in_array('AUD_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="AUD_SGD" <?php if (in_array('AUD_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    AUD/SGD

                                  </div>

                                  

                                </div>

















                                <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">GBP</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_EUR" <?php if (in_array('GBP_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_USD" <?php if (in_array('GBP_USD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_AUD" <?php if (in_array('GBP_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_NZD" <?php if (in_array('GBP_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_CAD" <?php if (in_array('GBP_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_CHF" <?php if (in_array('GBP_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_JPY" <?php if (in_array('GBP_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_HKD" <?php if (in_array('GBP_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="GBP_SGD" <?php if (in_array('GBP_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    GBP/SGD

                                  </div>

                                  

                                </div>





















                                <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">NZD</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_EUR" <?php if (in_array('NZD_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_AUD" <?php if (in_array('NZD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_AUD" <?php if (in_array('NZD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_GBP" <?php if (in_array('NZD_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_CAD" <?php if (in_array('NZD_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_CHF" <?php if (in_array('NZD_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_JPY" <?php if (in_array('NZD_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_HKD" <?php if (in_array('NZD_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="NZD_SGD" <?php if (in_array('NZD_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    NZD/SGD

                                  </div>

                                  

                                </div>



















                                  <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">CAD</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_EUR" <?php if (in_array('CAD_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_AUD" <?php if (in_array('CAD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_AUD" <?php if (in_array('CAD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_GBP" <?php if (in_array('CAD_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_NZD" <?php if (in_array('CAD_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_CHF" <?php if (in_array('CAD_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_JPY" <?php if (in_array('CAD_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_HKD" <?php if (in_array('CAD_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CAD_SGD" <?php if (in_array('CAD_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CAD/SGD

                                  </div>

                                  

                                </div>



















                                    <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">CHF</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_EUR" <?php if (in_array('CHF_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_USD" <?php if (in_array('CHF_USD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_AUD" <?php if (in_array('CHF_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_GBP" <?php if (in_array('CHF_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_NZD" <?php if (in_array('CHF_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_CAD" <?php if (in_array('CHF_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_JPY" <?php if (in_array('CHF_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_HKD" <?php if (in_array('CHF_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="CHF_SGD" <?php if (in_array('CHF_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    CHF/SGD

                                  </div>

                                  

                                </div>



















                                    <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">JPY</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_EUR" <?php if (in_array('JPY_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_USD" <?php if (in_array('JPY_USD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_AUD" <?php if (in_array('JPY_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_GBP" <?php if (in_array('JPY_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_NZD" <?php if (in_array('JPY_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_CAD" <?php if (in_array('JPY_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_CHF" <?php if (in_array('JPY_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_HKD" <?php if (in_array('JPY_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/HKD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="JPY_SGD" <?php if (in_array('JPY_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    JPY/SGD

                                  </div>

                                  

                                </div>



























                                    <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">HKD</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_EUR" <?php if (in_array('HKD_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_USD" <?php if (in_array('HKD_USD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_AUD" <?php if (in_array('HKD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_GBP" <?php if (in_array('HKD_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_NZD" <?php if (in_array('HKD_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_CAD" <?php if (in_array('HKD_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_CHF" <?php if (in_array('HKD_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_JPY" <?php if (in_array('HKD_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="HKD_SGD" <?php if (in_array('HKD_SGD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    HKD/SGD

                                  </div>

                                  

                                </div>











                                      <div class="row" style="margin-top: 30px;">

                                  <div class="col-md-12">

                                    <p style="color: #F7614E;font-size: 24px;font-weight: 700">SGD</p>

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_EUR" <?php if (in_array('SGD_EUR', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/EUR

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_AUD" <?php if (in_array('SGD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/USD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_AUD" <?php if (in_array('SGD_AUD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/AUD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_GBP" <?php if (in_array('SGD_GBP', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/GBP

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_NZD" <?php if (in_array('SGD_NZD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/NZD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_CAD" <?php if (in_array('SGD_CAD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/CAD

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_CHF" <?php if (in_array('SGD_CHF', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/CHF

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_JPY" <?php if (in_array('SGD_JPY', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/JPY

                                  </div>

                                  <div class="col-md-2 form-group" style="color: #F7614E;font-weight: 700;font-size: 14px;">

                                    <input type="checkbox" name="tickCur[]" value="SGD_HKD" <?php if (in_array('SGD_HKD', $activeTikers) || empty($activeTikers)): ?>

                                      checked

                                    <?php endif ?>>

                                    SGD/HKD

                                  </div>

                                  

                                </div>









                                <div class="row" style="margin-top: 20px;">



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

                                    

                                    <button type="submit" name="tSubmit" class="btn  btn-md btn-success" style="width: 100%;">Update Ticker</button>



                                  </div>

                                  

                                </div>







                                </form>


                              </div>

                            </div>



                      </div>                      



        </div>
    </div>


<?php
include('view/new_footer_file.php');
?>


	  <script type="text/javascript">
	  	var getCar = '<?=$userDetails->pcarrier; ?>';
	  	$("#pcar").val(getCar).change();
	</script>
  <script type="text/javascript">
      
      $(function() {

            var firstcharsale = '<?=$firstSaleChar; ?>';
            var firstcharbuy = '<?=$firstBuyChar; ?>';
            var firstcharclose = '<?=$firstCloseChar ?>';

            $("#saleskey1").val(firstcharsale).change();
            $("#buykey1").val(firstcharbuy).change();
            $("#closekey1").val(firstcharclose).change();

      });

  </script>
<script type="text/javascript">

    

    function tickerSetting(values)

    {

      var ticker = '0';

      if (values == 'hide') {

        ticker = '0';

        $("#tickerForm").hide();

        $("#tcontainer").hide();

      }else{

        ticker = '1';

        $("#tickerForm").show();

        $("#tcontainer").show();

      }



      var uid = "<?=$userId; ?>";





      $.ajax({

        type: 'POST',

        url: 'controller/ticker.controller.php', 

        data: {action:'tickersetting', uid:uid, vl:ticker},

        success: function(res){



        }

      });











    }



  </script>
