<?php 
include('dbconnect.php');

$page = "Summary" ;

	if(!isset($_SESSION['Username'])){

		 header("location:ccb_login.php?wrong=failed");
		}
		 if(isset($_SESSION['Username'])){

			 $user = $_SESSION['Username'];
			 $userid = $_SESSION['userid'];
			 }
			  $rowx = mysql_fetch_assoc(mysql_query("SELECT * FROM  message where user_id='$user'"));

			  $row = mysql_fetch_assoc(mysql_query("SELECT * FROM cleintuser where Username='$user' AND user_id = '$userid' "));
                                        
                                $Currency = $row['Currency'];
     if ($Currency == "CNY"){ $currencyx = "¥"; } 
     else if ($Currency == "GBP"){  $currencyx = "£"; }  
     else if ($Currency == "USD"){  $currencyx = "$";  } 
     else if ($Currency == "EURO"){ $currencyx = "€";  }                  
                        
                        	$input = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
$xcoded = $input[rand(0,25)].$input[rand(2,35)].$input[rand(25,35)].$input[rand(0,35)].$input[rand(0,35)].$input[rand(0,25)].$input[rand(0,25)].$input[rand(0,35)].$input[rand(0,35)].$input[rand(0,35)].$input[rand(26,35)].$input[rand(0,25)].$input[rand(0,35)].$input[rand(0,25)].$input[rand(0,25)] ;
$xcodedx = $input[rand(0,25)].$input[rand(2,35)].$input[rand(25,35)].$input[rand(0,35)].$input[rand(0,35)].$input[rand(0,25)].$input[rand(0,25)].$input[rand(0,35)].$input[rand(0,35)].$input[rand(0,35)].$input[rand(26,35)].$input[rand(0,25)].$input[rand(0,35)].$input[rand(0,25)].$input[rand(0,25)] ;
$codex = $xcoded.$xcodedx.$xcoded.$xcodedx.$xcoded.$xcodedx;
                        
    $userid=$row['user_id'];
    
     $messaagenum = $row['messaagenum'];
     

			  ?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
  <!-- Title and other stuffs -->
  <title>Account Details</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="author" content="">


  <!-- Stylesheets -->
  <link href="account/style/bootstrap.css" rel="stylesheet">
  <!-- Font awesome icon -->
  <link rel="stylesheet" href="account/style/font-awesome.css"> 
  <!-- jQuery UI -->
  <link rel="stylesheet" href="account/style/jquery-ui-1.9.2.custom.min.css"> 
  <!-- Calendar -->
  <link rel="stylesheet" href="account/style/fullcalendar.css">
  <!-- prettyPhoto -->
  <link rel="stylesheet" href="account/style/prettyPhoto.css">  
  <!-- Star rating -->
  <link rel="stylesheet" href="account/style/rateit.css">
  <!-- Date picker -->
  <link rel="stylesheet" href="account/style/bootstrap-datetimepicker.min.css">
  <!-- CLEditor -->
  <link rel="stylesheet" href="account/style/jquery.cleditor.css"> 
  <!-- Uniform -->
  <link rel="stylesheet" href="account/style/uniform.default.html"> 
  <!-- Uniform -->
  <link rel="stylesheet" href="account/style/daterangepicker-bs3.css" />
  <!-- Bootstrap toggle -->
  <link rel="stylesheet" href="account/style/bootstrap-switch.css">
    <!-- Bootstrap toggle -->
  <link rel="stylesheet" href="account/js/datatables/css/dataTables.bootstrap.css">
  <!-- Main stylesheet -->
  <link href="account/style/style.css" rel="stylesheet">
  <!-- Widgets stylesheet -->
  <link href="account/style/widgets.css" rel="stylesheet">   
    <!-- Gritter Notifications stylesheet -->
  <link href="account/style/jquery.gritter.css" rel="stylesheet">   
  
  <!-- HTML5 Support for IE -->
  <!--[if lt IE 9]>
  <script src="js/html5shim.js"></script>
  <![endif]-->

  <!-- Favicon -->
  <link rel="shortcut icon" href="assets/img/favicon.ico">
</head>
<div id="google_translate_element"></div><script type="text/javascript">
 function googleTranslateElementInit() {
   new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
 }
 </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<body>
<?php include_once("menu.php");  ?>

  	  	<!-- Main bar -->
  
  <?php include_once("header.php");  ?>
  
  
 <br>
   
 </div>
	    <!-- Matter class="matter" -->

	    <div >
        <div class="container">

          <!-- Table -->

            <div class="row">

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

  
              </div>

            </div>


            <div class="row">

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

                 <div class="widget-content">
                  <div class="padd">
                    
                    <!-- Profile form -->
                   
                                    <div class="form profile">
                                      <!-- Edit profile form (not working)-->
                                      <form class="form-horizontal">
                                          <!-- Name -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">UserName</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['Username']; ?> " disabled >
                                            </div>
                                          </div>   
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Account Number</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['AccountNumber']; ?>" disabled>
                                            </div>
                                          </div>   
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Full Name</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['FullName']; ?>" disabled>
                                            </div>
                                          </div>   
                                          <!-- Email -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="email1">Email</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['email']; ?> " disabled>
                                            </div>
                                          </div>
                                            <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Account Type</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['Accounttype']; ?>" disabled>
                                            </div>
                                          </div>
                                            <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Currency Type</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $currencyx." ".$row['Currency']; ?>" disabled>   
                                            </div>
                                          </div>
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Date of birth</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['Datedeposited']; ?>" disabled>
                                            </div>
                                          </div>
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Name of Company</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['CompanyName']; ?>" disabled>
                                            </div>
                                          </div>
                                          <!-- Telephone -->
	 	 	 	 	 	 	      
                                          <!-- Address -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="address">Address</label>
                                            <div class="col-lg-6">
                                              <textarea class="form-control"  disabled><?php echo $row['Address']; ?></textarea>
                                            </div>
                                          </div>                           
                                          <!-- Country -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Nationality</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['Nationality']; ?>" disabled>
                                            </div>
                                          </div>
                                          <!-- State -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="city">State</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['State']; ?>" disabled>
                                            </div>
                                          </div>                                               
                                          <!-- City -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="city">Zip Code</label>       
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['ZipCode']; ?>" disabled>
                                            </div>
                                          </div>                                                                                                                                         
                                          <!-- Username -->
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Mobile Tell</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['tellM']; ?>" disabled>
                                            </div>
                                          </div>
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Work Tell</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['tellW']; ?>" disabled>
                                            </div>
                                          </div>
                                          <div class="form-group">
                                            <label class="control-label col-lg-2" for="name1">Home Tell</label>
                                            <div class="col-lg-6">
                                              <input type="text" class="form-control" value="<?php echo $row['tellH']; ?>" disabled>
                                            </div>
                                          </div>
                                          
                                          <!-- Buttons -->
                                          <div class="form-group">
                                             <!-- Buttons -->
											 <div class="col-lg-6 col-lg-offset-2">
												<button type="submit" class="btn btn-primary">Update</button>
											
											</div>
                                          </div>
                                      </form>
                                    </div>

                  </div>
                </div>
                 
                 
                </div>
              </div>

             

            </div>

        </div>
		  </div>

		<!-- Matter ends -->

    </div>

   <!-- Mainbar ends -->	    	
   <div class="clearfix"></div>

</div>
<!-- Content ends -->

<!-- Footer starts -->
<footer>
  <div class="container">
    <div class="row">
      <div class="col-md-12">
            <!-- Copyright info -->
            <p class="copy">Copyright © 2020 · WesBanco, Inc. All Rights Reserved.</a> </p>
      </div>
    </div>
  </div>
</footer> 	

<!-- Footer ends -->

<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="fa fa-chevron-up"></i></a></span> 

<!-- JS -->
<script src="account/js/jquery.js"></script> <!-- jQuery -->
<script src="account/js/bootstrap.js"></script> <!-- Bootstrap -->
<script src="account/js/jquery-ui-1.9.2.custom.min.js"></script> <!-- jQuery UI -->
<script src="account/js/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar -->
<script src="account/js/jquery.rateit.min.js"></script> <!-- RateIt - Star rating -->
<script src="account/js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto -->

<!-- jQuery Flot -->
<script src="account/js/excanvas.min.js"></script>
<script src="account/js/jquery.flot.js"></script>
<script src="account/js/jquery.flot.resize.js"></script>
<script src="account/js/jquery.flot.pie.js"></script>
<script src="account/js/jquery.flot.stack.js"></script>

<!-- jQuery Notification - Noty -->
<script src="account/js/jquery.noty.js"></script> <!-- jQuery Notify -->
<script src="account/js/themes/default.js"></script> <!-- jQuery Notify -->
<script src="account/js/layouts/bottom.js"></script> <!-- jQuery Notify -->
<script src="account/js/layouts/topRight.js"></script> <!-- jQuery Notify -->
<script src="account/js/layouts/top.js"></script> <!-- jQuery Notify -->
<!-- jQuery Notification ends -->

<script src="js/datatables/js/jquery.dataTables.js"></script>

<script src="account/js/sparklines.js"></script> <!-- Sparklines -->
<script src="account/js/jquery.cleditor.min.js"></script> <!-- CLEditor -->
<script src="account/js/bootstrap-datetimepicker.min.js"></script> <!-- Date picker -->
<script src="account/js/jquery.uniform.min.html"></script> <!-- jQuery Uniform -->
<script src="account/js/jquery.slimscroll.min.js"></script> <!-- jQuery SlimScroll -->
<script src="account/js/bootstrap-switch.min.js"></script> <!-- Bootstrap Toggle -->
<script src="account/js/filter.js"></script> <!-- Filter for support page -->
<script src="account/js/custom.js"></script> <!-- Custom codes -->
<script src="account/js/charts.js"></script> <!-- Charts & Graphs -->

<script>
    $(document).ready(function() {
			$('#datatable').dataTable({"sPaginationType": "full_numbers"});
		});
</script>
</body>
</html>