<?php 
session_start();
if(isset($_SESSION['SESS_ADMINLOGGEDIN']) == FALSE) {
    header("Location: " . $config_basedir."../admin/adminlogin.php");
}
require_once("achieved/config.php");
require_once("achieved/db.php");
require_once("achieved/functions.php");
require_once("header.php");
?>




<?php


$id = $_GET['id'];

if (isset($_POST['news'])) {
    
    $newz = mysql_real_escape_string($_POST['newz']);
     $nztitle = mysql_real_escape_string($_POST['nztitle']);
      $nznote = mysql_real_escape_string($_POST['nznote']);
   
              
 
    $addresssql = mysql_query("UPDATE settings SET  
      newz='$newz',
      nztitle='$nztitle',
      nznote='$nznote'
      WHERE id='$id'");
    
     echo mysql_error();
    $success_news="<div class='alert alert-success' style='margin-bottom:20px;'>Updated Successfully<meta http-equiv='refresh' content='5; url=' /></div>";
    
  
  

}
?>

    


   



        <div wire:id="0ho7JEz65LVMGIzD4ceZ" wire:initial-data="{&quot;fingerprint&quot;:{&quot;id&quot;:&quot;0ho7JEz65LVMGIzD4ceZ&quot;,&quot;name&quot;:&quot;admin.manage-users&quot;,&quot;locale&quot;:&quot;en&quot;,&quot;path&quot;:&quot;admin\/dashboard\/manageusers&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;v&quot;:&quot;acj&quot;},&quot;effects&quot;:{&quot;listeners&quot;:[],&quot;path&quot;:&quot;https:\/\/xtbtrading.live\/trade\/admin\/dashboard\/manageusers&quot;},&quot;serverMemo&quot;:{&quot;children&quot;:[],&quot;errors&quot;:[],&quot;htmlHash&quot;:&quot;ed570425&quot;,&quot;data&quot;:{&quot;pagenum&quot;:10,&quot;searchvalue&quot;:&quot;&quot;,&quot;orderby&quot;:&quot;id&quot;,&quot;orderdirection&quot;:&quot;desc&quot;,&quot;selectPage&quot;:false,&quot;selectAll&quot;:false,&quot;checkrecord&quot;:[],&quot;selected&quot;:&quot;&quot;,&quot;action&quot;:&quot;Delete&quot;,&quot;username&quot;:null,&quot;fullname&quot;:null,&quot;email&quot;:null,&quot;password&quot;:null,&quot;message&quot;:null,&quot;subject&quot;:null,&quot;plan&quot;:null,&quot;datecreated&quot;:null,&quot;topamount&quot;:null,&quot;toptype&quot;:null,&quot;topcolumn&quot;:&quot;Bonus&quot;,&quot;page&quot;:1,&quot;paginators&quot;:{&quot;page&quot;:1}},&quot;dataMeta&quot;:[],&quot;checksum&quot;:&quot;9e82a6adabccc53607a584c57da8f89b4130352eb62c7aa9cc50f9455ca3c494&quot;}}">
    <div class="main-panel">
        <div class="content bg-light">
            <div class="page-inner">
                <div class="mt-2 mb-4">
                    <h1 class="title1 text-dark">Edit Wallet Info</h1>
                </div>
                <div>
    </div>                <div>
    </div>                
               
               
               
               
                <div class="mb-5 row">
                    <div class="col-md-12 ">
                        <!--<div class="card shadow p-4 bg-light">-->
                           
                           
    <?php
                  
                  
          
  
      if(isset($success_news)){
         echo "<span style='color:red'>successfully Updated <meta http-equiv='refrsh' content='2, url=index.php'></div>";
     }
      ?>

                           
                           
                            
                            
                            
                            
                            
                         <?php
 
 
			$query=$conn->query("select * from settings  ORDER BY id DESC LIMIT 1");
			while($row=$query->fetch()){
				$id=$row['id'];
					$nztitle=$row['nztitle'];
						$nznote=$row['nznote'];
					   $newz=$row['newz'];
  ?>
   <?php }?>


  
 <form method='post' action=''>
					<div class=' form-group'>
						<input type='text' name='nztitle' class='form-control bg-light text-dark' value='<?php echo $nztitle ?>'  required>
					</div>
					<div class=' form-group'>
						<textarea type='text' class='form-control bg-light text-dark' name='nznote' row='8'  required>'<?php echo $nznote ?>' </textarea>
					</div>
					
					
						<div class=' form-group'>
					<select name='newz' class='form-control bg-light text-dark'>
					<option value='1'>ON</option>
					<option value='0'>OFF</option>
					</select>
					</div>
					
					
					
					
					
                    <div class=' form-group'>
                        
                        <button type='submit' name='news' value='Submit' class='btn btn-success'>
                            
                           
                            
                            
                           SEND....
                        </button>	
					</div>
                    
				 </form>
            
            
        </div></div></div>
<!--=====================================-->

</div>

 <?php
require ("footer.php")
?>

