<?php  
require_once '../php/settings.php'; 
// require_once '../php/c.php';




?>


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
				<script src="../../assets/plugins/jquery/jquery.min.js"></script>
    <script src="assets/js/jquery-1.10.2.js"></script>
 
	
	
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Settings</title>
	<!-- BOOTSTRAP STYLES-->
    <link href="assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FONTAWESOME STYLES-->
    <link href="assets/css/font-awesome.css" rel="stylesheet" />
     <!-- MORRIS CHART STYLES-->
   
        <!-- CUSTOM STYLES-->
    <link href="assets/css/custom.css" rel="stylesheet" />
     <!-- GOOGLE FONTS-->
   <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
     <!-- TABLE STYLES-->
    <link href="assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
    <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">Binary admin</a> 
            </div>
  <div style="color: white;
padding: 15px 50px 5px 50px;
float: right;
font-size: 16px;"> Date : <?php echo date('d M Y', time()); ?> &nbsp; <a href="../logout/" class="btn btn-danger square-btn-adjust">Logout</a> </div>
        </nav>   
           <!-- /. NAV TOP  -->
                <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
				<li class="text-center">
                    <img src="assets/img/find_user.png" class="user-image img-responsive"/>
					</li>
				
					
                    <li >
							<a  class=""   href="../users/index.php"><i class="fa fa-user"></i> Users</a>
						</li>
						<li class="">
							<a href="../withdraw/index.php"><i class=" icon-wallet"></i> Withdraws</a>
						</li>
						<li class=" ">
							<a href="../deposit/index.php"><i class=" icon-wallet"></i> Deposits</a>
						</li>
						<li class=" ">
							<a  class="" href="../notice/index.php"><i class=" icon-wallet"></i>Notifications</a>
						</li>
						<li  class="">
							<a   href="../balan/index.php"><i class="fa fa-cog"></i> Set Balance</a>
						</li>
						<!--<li  class="">-->
						<!--	<a   href="../bon/index.php"><i class="fa fa-cog"></i> Set Bonus</a>-->
						<!--</li>-->
						<!--<li  class="">-->
						<!--	<a   href="../profit/index.php"><i class="fa fa-cog"></i> Set Profit</a>-->
						<!--</li>-->
						<li  class="">
							<a   href="../plan/index.php"><i class="fa fa-cog"></i> Upgrade PLan</a>
						</li>
							<li class=" ">
							<a href="../trades/index.php"><i class="fa fa-cog"></i> Trades</a>
						</li>
						
						
						<li class=" ">
							<a href="../settings/index.php"><i class="fa fa-cog"></i> Settings</a>
						</li>
                        </ul>
                      </li>  
                  
                </ul>
               
            </div>
            
        </nav>  
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper" >
            <div id="page-inner">
               
                 <!-- /. ROW  -->
                 <hr />
				 	
               <div class="row">
                    <div class="col-md-12">
                     <h2>Settings</h2>   
                    
                    <!--<h5>Turn off, Change and manage Your wallet addresses here and also change admin password .  </h5>-->
                    <h5> Change and manage Your wallet addresses here and also change admin password .  </h5>
                       
                    </div>
				<?php	 if(isset($_SESSION['msg2']) && !empty($_SESSION['msg2']) ){ ?>
<div class="col-md-12">
    <div class="alert alert-success">
  <strong>Success!</strong> <?php  echo  $_SESSION['msg2'];  unset($_SESSION['msg2']);?>.
</div>
</div>					

<?php } ?>



	<?php	 if(isset($_SESSION['error']) && !empty($_SESSION['error']) ){ ?>
<div class="col-md-12">
    <div class="alert alert-danger">
  <strong>Error!</strong> <?php  echo  $_SESSION['error'];  unset($_SESSION['error']);?>.
</div>
</div>					

<?php } ?>


                                <div class="col-md-6">
                    <!-- Advanced Tables -->
                    <div style="" class="">
                    <div style="" class="panel panel-default">
                        <div class="panel-heading">
                             Manage your  Wallets 
                        </div>
                      
                        <div class="panel-body">
                            <form method="post" class="form-group">
                            <div  class="d-flex row">
                                
                                <div   class="col-md-10">
                                    
                                       <div class="form-group">
                                            <label>BTC Address</label>
                                            <input type="text" class="form-control" id="addr"  value = '<?php echo trim($settings['btc']); ?>' name="btcx2" placeholder="BitCoin Address">
                                       </div>
                                       
                                        <div class="form-group">
                                            <label>ETH Address</label>
                                            <input  class="form-control" type="text" id="addr"  value = '<?php echo trim($settings['eth']); ?>' name="ethx" placeholder="Ethereum Address">
                                       </div>
                                       
                                       <!--    <div class="form-group">-->
                                       <!--     <label>USDT(TRC20) Address</label>-->
                                       <!--     <input  type="text" class="form-control" id="addr"  value = '<?php echo trim($settings['usdt']); ?>' name="usdtx" placeholder="USDT TRC20 Address">-->
                                       <!--</div>-->
                                       
                                           <div class="form-group">
                                            <label>LTC Address</label>
                                            <input  class="form-control"  type="text" id="addr"  value = '<?php echo trim($settings['lite']); ?>' name="ltcx" placeholder="LTC Address">
                                       </div>
                                       
                                       
                                        <div class="form-group">
                                            <label>BitCoin Cash Address</label>
                                            <input  class="form-control"  type="text" id="addr"  value = '<?php echo trim($settings['btch']); ?>' name="bchx" placeholder="BCH Address">
                                       </div>
                                       
                                        <div class="form-group">
                                            <label>Doge Address</label>
                                            <input  class="form-control"  type="text" id="addr"  value = '<?php echo trim($settings['doge']); ?>' name="dogex" placeholder="DOGE Address">
                                       </div>
                                       
                                       
                                       
                                       
                                      <div class="form-group">
                                            <label>Wallet Password</label>
                                            <input  class="form-control"  type="text" id="addr"   name="wallet_password" placeholder="Wallet Password">
                                            <small style="font-weight:500;" class="text-danger "> <span style="font-weight:600;">info! </span>Wallet password is required anytime you want to change your password</small>
                                       </div>
                                       
                                <!--</form>-->
                                </div>
    <style>
    .m-1{
        margin:10px;
    }    
     </style>                            
                                <!--<div style="display:flex;" class="col-md-12">-->
                                <!--     <div class="form-group m-1">-->
                                <!--        <label>BTC</label>-->
                                    <!--   <input  value="1" <?php //if(set3('btc') == 1){ echo 'checked'; } ?>  type="checkbox" name='radio_btc' >
                                <!--    </div> -->
                                    
                                <!--     <div class="form-group m-1">-->
                                <!--        <label>ETH</label>-->
                                      <!-- <input  value="1" <?php //if(set3('eth') == 1){ echo 'checked'; } ?>  type="checkbox" name='radio_eth' >
                                <!--    </div> -->
                                    
                                <!--     <div class="form-group m-1">-->
                                <!--        <label>USDT (TRC20)</label>-->
                                      <!-- <input  value="1" <?php // if(set3('usdt') == 1){ echo 'checked'; } ?>  type="checkbox" name='radio_usdt' >
                                <!--    </div> -->
                                     <!--<input   type="hidden" name='disabled' >-->
                                    
                                    <!-- <div class="form-group m-1">-->
                                    <!--    <label>LTC</label>-->
                                    <!--   <input  value="1" <?php //if(set3('ltc') == 1){ echo 'checked'; } ?>  type="checkbox" name='radio_ltc' >-->
                                    <!--</div> -->
                                    
                                <!--</div>-->
                               
                                <div>
            
               

                    
                                </div>
                                
     
                                
                            </div>
                                <div class="col-md-12 " style="display:inline; text-align:right;">
                                    <button type="submit" class="btn btn-primary">Save  <i class="fa fa-save"></i></button>
                                </div>
                             </form>
 

                        </div>
                    </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>

                                <div class="col-md-6">
                                <div class="row">
                                <!--address & phone-->
                                 <div class="col-md-12">
                    <!-- Advanced Tables -->


                    <div style="" class="">
                    <div style="" class="panel panel-default">
                        <div class="panel-heading">
                            Change Phone  & Address 
                        </div>
                      
                        <div class="panel-body">
                            <form method="post" class="form-group">
                            <div  class="d-flex row">
                                
                                <div   class="col-md-10">
                                    
                                       <div class="form-group">
                                            <label> Phone</label>
                                            <input class="form-control" name='phone' Placeholder=" Phone" type="text" value="<?php echo $settings['phone'] ?>">
                                       </div>

                                           <div class="form-group">
                                            <label>Website Address</label>
                                            <textarea  class="form-control" name='address' Placeholder="Website address"><?php echo $settings['address'] ?></textarea>
                                       </div>
                                       
                              
                                </div>
            
                                <div>
            
               

                    
                                </div>
                                
     
                                
                            </div>
                                <div class="col-md-12 " style="display:inline; text-align:right;">
                                    <button type="submit" class="btn btn-primary">Save Changes  <i class="fa fa-save"></i></button>
                                </div>
                            
   </form>

                        </div>
                    </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
                                
                                <!--password-->
                                <div class="col-md-12">
                    <!-- Advanced Tables -->

	
                    <div style="" class="">
                    <div style="" class="panel panel-default">
                        <div class="panel-heading">
                            Change Admin Password 
                        </div>
                      
                        <div class="panel-body">
                            <form method="post" class="form-group">
                            <div  class="d-flex row">
                                
                                <div   class="col-md-10">
                                    
                                       <div class="form-group">
                                            <label>Current Password</label>
                                            <input class="form-control" name='p1' Placeholder="Current password">
                                       </div>
                                       
                                        <div class="form-group">
                                            <label>New Password</label>
                                            <input class="form-control" name='p2' Placeholder="New  password">
                                       </div>
                                       
                                           <div class="form-group">
                                            <label>Confirm Password</label>
                                            <input  class="form-control" name='p3' Placeholder="Confirm New password">
                                       </div>
                                       
                              
                                </div>
            
                                <div>
            
               

                    
                                </div>
                                
     
                                
                            </div>
                                <div class="col-md-12 " style="display:inline; text-align:right;">
                                    <button type="submit" class="btn btn-primary">Change Password  <i class="fa fa-save"></i></button>
                                </div>
                            
   </form>

                        </div>
                    </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
                </div>
                </div>


            <!--</div>-->
                <br>
<script> <?php if(isset($words)){echo $words;}  ?> </script>
                <br>
				
             <!-- /. PAGE INNER  -->
            </div>
			
			
			
         <!-- /. PAGE WRAPPER  -->
     <!-- /. WRAPPER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <!-- JQUERY SCRIPTS -->
	<script src="../../assets/plugins/jquery/jquery.min.js"></script>
    <script src="assets/js/jquery-1.10.2.js"></script>
      <!-- BOOTSTRAP SCRIPTS -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- METISMENU SCRIPTS -->
    <script src="assets/js/jquery.metisMenu.js"></script>
     <!-- DATA TABLE SCRIPTS -->
    <script src="assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
        <script>
            $(document).ready(function () {
                $('#dataTables-example').dataTable();
            });
			 
			
    </script>
	<?php   if(isset($maro)){echo $maro;}  ?>
         <!-- CUSTOM SCRIPTS -->
    <script src="assets/js/custom.js"></script>
    
 
</body>
</html>

