<?php require_once('head.php'); ?>

  <body>
  <!-- container section start -->
  <section id="container" class="">
      
	<?php require_once('header.php'); ?>	

	<?php require_once('sidebar.php'); ?>
      
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper">

			  <div class="row">
                  <div class="col-lg-12">
                      <!--breadcrumbs start -->
                      <ul class="breadcrumb">
                          <li><a href="dashboard.php"><i class="icon_house_alt"></i> Home</a></li>
						  <li><a href="accounts.php"><i class="icon-signal"></i> Accounts</a></li>
                          <li class="active"> View</li>
						  <li class="pull-right"> <i class="icon_calendar"></i>
							 <?php echo date('l jS F Y'); ?></li>
                      </ul>
                      <!--breadcrumbs end -->
                  </div>
              </div>
			  
			  
			  <div class="row">
					<div class="col-lg-12">
					<section class="panel panel-body">
					<h3><?php echo WEB_NAME ?></h3>
					<h4>ACCOUNT PROFILE</h4>
					</section>
					</div>
              </div>
			  

			<?php
			dbconnect();
			$sql = "SELECT * FROM `".USERS_TABLE_NAME."` WHERE user_id='{$_GET['user']}'";
			$stmt = $pdo->query($sql);
			$row = $stmt->fetch(PDO::FETCH_ASSOC);
			?>
			  
			  <!-- Recent Transactions Starts -->
			  <div class="row">
                  <div class="col-lg-12">
				  
					<section class="panel">
                          <header class="panel-heading">
                              Passport Photograph
                          </header>
                          
						  <div class="panel-body">
						  
						  <div class="panel-body bio-graph-info">
							  <h1>Photograph</h1>
							  <div class="row">
								<img alt="<?php echo $row['first_name']; ?> <?php echo $row['last_name']; ?>" src="../users/<?php echo $row['user_photo']; ?>">  
							  </div>
						  </div>
						</div>
						
						
						
                      </section>
				  
                      <section class="panel">
                          <header class="panel-heading">
                              Personal Information
                          </header>
                          
						  <div class="panel-body">
						  
						  <div class="panel-body bio-graph-info">
							  <h1>Bio Graph</h1>
							  <div class="row">
								  <div class="bio-row">
									  <p><span>First Name </span>: <?php echo $row['first_name']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>Last Name </span>: <?php echo $row['last_name']; ?></p>
								  </div>                                              
								  <div class="bio-row">
									  <p><span>Date of Birth</span>: 
									  <?php if ($row['dob'] == "0000-00-00") { echo ""; }else{ echo date('jS F Y', strtotime($row['dob']));} ?>
									  </p>
								  </div>
								  <div class="bio-row">
									  <p><span>Gender </span>: <?php echo $row['user_gender']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>Email </span>: <?php echo $row['user_email']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>Mobile </span>: <?php echo $row['user_phone']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>Address </span>: <?php echo $row['user_add']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>City </span>:  <?php echo $row['user_city']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>State </span>:  <?php echo $row['user_state']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>Zip Code </span>:  <?php echo $row['postcode']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>Country </span>:  <?php echo $row['country']; ?></p>
								  </div>
							  </div>
						  </div>
						</div>
						
						
						
                      </section>
					  
					  <section class="panel">
                          <header class="panel-heading">
                              Personal Identification
                          </header>
                          
						  <div class="panel-body">
						  
						  <div class="panel-body bio-graph-info">
							  <h1>ID Information</h1>
							  <div class="row">
								  <div class="bio-row">
									  <p><span>ID Type </span>: <?php echo $row['id_type']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>ID Number </span>: <?php echo $row['id_number']; ?></p>
								  </div>                                              
								  <div class="bio-row">
									  <p><span>Expiry Date</span>: <?php if ($row['id_expiry'] == "0000-00-00") { echo ""; }else{ echo date('jS F Y', strtotime($row['id_expiry']));} ?></p>
								  </div>
							  </div>
						  </div>
						</div>
						
						
						
                      </section>
					  
					  
					  <section class="panel">
                          <header class="panel-heading">
                              Account Information
                          </header>
                          
						  <div class="panel-body">
						  
						  <div class="panel-body bio-graph-info">
							  <h1>Account Details</h1>
							  <div class="row">
								  <div class="bio-row">
									  <p><span>Account Number </span>: <?php echo $row['user_acc']; ?></p>
								  </div>
								  <div class="bio-row">
									  <p><span>User ID </span>: <?php echo $row['user_name']; ?></p>
								  </div>                                              
								  <div class="bio-row">
									  <p><span>Password</span>: <?php echo $row['user_word']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>PIN</span>: <?php echo $row['user_pin']; ?></p>
								  </div>

                                  <div class="bio-row">
									  <p><span><?php echo CODE1_NAME ?></span>: <?php echo $row['user_code1']; ?></p>
								  </div>

                                  <div class="bio-row">
									  <p><span><?php echo CODE2_NAME ?></span>: <?php echo $row['user_code2']; ?></p>
								  </div>

                                  <div class="bio-row">
									  <p><span><?php echo CODE3_NAME ?></span>: <?php echo $row['user_code3']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>Account Status</span>: <?php echo $row['user_active']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>Account Type</span>: <?php echo $row['acc_type']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>Currency</span>: <?php echo $row['currency']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>Security Question</span>: <?php echo $row['secret_qs']; ?></p>
								  </div>
								  
								  <div class="bio-row">
									  <p><span>Security Answer</span>: <?php echo $row['secret_ans']; ?></p>
								  </div>
							  </div>
						  </div>
						</div>
						
						
						
                      </section>
					  
                  </div>
              </div>
			  <!-- Recent Transactions end -->

              

          </section>
      </section>
      <!--main content end-->
  </section>
  <!-- container section start -->

    <!-- javascripts -->
    <script src="../js/jquery.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <!-- nice scroll -->
    <script src="../js/jquery.scrollTo.min.js"></script>
    <script src="../js/jquery.nicescroll.js" type="text/javascript"></script>
    <!-- data tables js -->
    <script type="text/javascript" src="../assets/data-tables/jquery.dataTables.js"></script>
    <script type="text/javascript" src="../assets/data-tables/DT_bootstrap.js"></script>
    <!-- dynamic table cuatom script for this page only-->
    <script src="../js/dynamic-table.js"></script>
    <!--custome script for all page-->
    <script src="../js/scripts.js"></script>

  </body>
</html>