<?php include("includes/header.php"); ?>
<?php include("includes/auto_out.php"); ?>
<!DOCTYPE html>
<html>
<head>
  <title>Support | <?php echo $sitename; ?></title>
  
     <!----------------------------------------------------------------------->
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
     <script src="bootstrap/js/jquery.min.js"></script>
     <script src="bootstrap/js/bootstrap.min.js"></script>
     <!----------------------------------------------------------------------->
     <link rel="icon" href="images/fav-icon.ico" type="image/x-icon" />
    <!-- <link rel="shortcut icon" href="images/fav-icon.ico" type="image/x-icon" />
     <!----------------------------------------------------------------------->
     <!-------------------Constumized CSS--------------------------->
     <link rel="stylesheet" type="text/css" href="css/style.cs">

     <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
     <style>
        body{
          background-color: #f5f5f5;
        }
      .icons-links{
        text-decoration: none;
        color: #555;
        font-size: 16px;
        font-weight: bolder;
      }
      .icons-links:hover{
        color:#0c2074;
        text-decoration: none;
      }
     </style>
     
</head>
<body>
  <?php  include("includes/dashboard_nav.php"); ?>
    <br>
  <div class="container-fluid">
    

        <div class="row">
      <div class="col-sm-2">
        <?php include("includes/sidebar.php"); ?>
          <?php include("includes/side.php"); ?>
      </div>
      <div class="col-sm-10">
               <div class="row">

                   <!------------------LEFT ROW ---------------------------->
                   <div class="col-sm-8">
                       
                      
                     
                       <!------------------------------------------------------>

                       <div class="row">
                         <div class="col-sm-12">
                            <div class="panel panel-default">
                             <div class="panel-body">
                               <h4 style=""><img src="images/3468821.png" width="35"> SUPPORT TEAM</h4>
                               <hr>

                               <div class="row">

                                <div class="col-sm-8" align="left">

                                  <?php
                                    if(isset($_POST["sendmessagebtn"])){

                                      //GET ALL VAIRABLES
                                      $my_account = $_POST["my_account"];
                                      $client_email = $_POST["client_email"];
                                      $issue_type = $_POST["issue_type"];
                                      $description = $_POST["description"];

                                      
                                      $issue_date = date("M d, Y");


                                        //INSERT INTO Db
                                        $query = mysqli_query($conn, "INSERT INTO support VALUES('', '$u_dbid', '$my_account', '$client_email', '$issue_type', '$description', '$issue_date')");
                                        echo "<div class='alert alert-success'><i class='glyphicon glyphicon-ok'></i> Your message has been sent, we will email you as soon as possible.</div>";



                                    }
                                  ?>


                                   <form action="" method="POST">
                                     <div class="form-group">
                                      <label>My Account:</label>
                                       <select class="form-control input-lg" name="my_account" style="border-radius: 0px;">
                                         <option><?php echo $account_number; ?> - <?php echo ucfirst($firstname)."&nbsp;".ucfirst($middlename)."&nbsp;".ucfirst($lastname) ?></option>
                                       </select>

                                       <br>

                                       <label>Email Address:</label>
                                       <input type="email" class="form-control input-lg" name="client_email" style="border-radius: 0px;" placeholder="" autocomplete="none" required/>
                                       <div class="alert alert-info"><i class="glyphicon glyphicon-exclamation-sign"></i> Fill in an email address to receive feedback from us...</div>

                                       <br>

                                       <label>Issue Type:</label>
                                       <select class="form-control input-lg" name="issue_type" style="border-radius: 0px;">
                                        <?php

                                        if(isset($_GET["issueType"])){
                                          $issueType = $_GET["issueType"];
                                          echo "<option>$issueType</option>";
                                        }

                                        ?>
                                        <option>Account Issues</option>
                                        <option>AML Code Request</option>
                                        <option>Bill Payment Issues</option>
                                         <option>Card Usage Issues</option>
                                         <option>Card Payment Issues</option>
                                         <option>Charges & Fees Issues</option>
                                         <option>COT Code Request</option>
                                         <option>Failed/Pending Transaction</option>
                                         <option>Fruad Related Issues</option>
                                         <option>Internet Banking Issues</option>
                                         <option>Loan Issue</option>
                                         <option>NRT Code Request</option>
                                         <option>Reactivate Deactivated/Inactive Account</option>
                                         <option>Reactivate Dormant Account</option>
                                         <option>Request Account Deactivation</option>
                                         <option>Update Account Information</option>

                                         <option>Others</option>
                                       </select>

                                       <br>

                                       <label>Description:</label>
                                       <textarea class="form-control input-lg" rows="5" name="description" style="border-radius: 0px;"><?php
                                         if(isset($_GET["issueType"])){
                                           $issueType = $_GET["issueType"];
                                           echo "$issueType";
                                         }
                                         ?> </textarea>

                                       <br>


                                       <button type="submit" name="sendmessagebtn" class="btn btn-primary" style="border-radius: 0px;">Send Message</button>
                                     </div>
                                   </form>
                                </div>


                                 
                               </div>

                               <br>
                               
                             </div>
                           </div>
                         </div>
                       </div>
                       <!------------------------------------------------------>
                       <!------------------------------------------------------>
                       <div class="row">
                         <div class="col-sm-12">
                            <div class="panel panel-default">
                             <div class="panel-body">
                               <h4 style=""><img src="images/3527271.png" width="25px"> &nbsp;SUPPORT EMAILS</h4>
                               <hr>

                               <div class="row">

                                <div class="col-sm-3" align="center">
                                 <img src="images/3062634.png" class="img-responsive" style="margin-top: 15px;" width="50">
                                  <br>
                                  <span style="font-size:12px; font-weight: bold;"><a style="text-decoration: underline;" href="mailto:support@<?php echo $siteshortname; ?>.com">support@<?php echo $siteshortname; ?>.com</a></span><br>
                                  <br>
                                  
                                   <div class="hidden-md hidden-lg"><hr></div>
                                </div>


                                <div class="col-sm-3" align="center">
                                  <img src="images/4144845.png" class="img-responsive" style="margin-top: 15px;" width="50">
                                  <br>
                                  <span style="font-size:12px; font-weight: bold;"><a style="text-decoration: underline;" href="mailto:transfer@<?php echo $siteshortname; ?>.com">transfer@<?php echo $siteshortname; ?>.com</a></span><br>
                                  <br>
                                   
                                   <div class="hidden-md hidden-lg"><hr></div>
                                 </div>

                                 <div class="col-sm-3" align="center">
                                   <img src="images/4144781.png" class="img-responsive" style="margin-top: 15px;" width="50">
                                  <br>
                                  <span style="font-size:12px; font-weight: bold;"><a style="text-decoration: underline;" href="mailto:info@<?php echo $siteshortname; ?>.com">info@<?php echo $siteshortname; ?>.com</a></span><br>
                                  <br>
                                   
                                   <div class="hidden-md hidden-lg"><hr></div>
                                 </div>

                                 <div class="col-sm-3" align="center">
                                   <img src="images/1304052.png" class="img-responsive" style="margin-top: 15px;" width="50">
                                  <br>
                                  <span style="font-size:12px; font-weight: bold;"><a style="text-decoration: underline;" href="contact-us.php" target="_blank">More Contact</a></span><br>
                                  <br>
                                   
                                   <div class="hidden-md hidden-lg"><hr></div>
                                 </div>
                                 
                               </div>

                               <br>
                               
                             </div>
                           </div>
                         </div>
                       </div>
                       
                     
                   </div>
                   <!-----------------/LEFT ROW ---------------------------->

                   <!------------------------------------------------------->

                   <!------------------RIGHT ROW --------------------------->
                   <div class="col-sm-4">

                    <div class="row">
                      <div class="col-sm-12">
                         <div class="panel panel-default">
                          <div class="panel-body">
                            <h4 style="">CONTACT</h4>
                            <hr>

                          <img src="images/support.gif" width="100%">

                          <div align="right"><a href="contact-us.php" target="_blank">Visit Contact Us Page <i class="fa   fa-caret-right"></i></a></div>
                            
                          </div>
                        </div>
                      </div>
                    </div>


                    <!--------------------------------->

                          
                    
                   </div>
                   <!-----------------/RIGHT ROW --------------------------->
               </div>
      </div>
    </div>
  </div>
</body>
</html>