<?php 
session_start();
include_once 'config.php';
include_once 'auth.php';
$user_id = $_SESSION['Admin']['id'];
$sql77 = "SELECT * FROM tbl_users WHERE id='16'";
$row77 = getRecord($sql77);
$MainPage="Account";
$Page = "Change-Password";
?>
<!DOCTYPE html>
<html lang="en" class="default-style">
<head>
<title><?php echo $Proj_Title; ?> - Change Password</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="description" content="" />
<meta name="keywords" content="">
<meta name="author" content="" />

<?php include_once 'header_script.php'; ?>
</head>
<body>
<style type="text/css">
  .password-tog-info {
  display: inline-block;
cursor: pointer;
font-size: 12px;
font-weight: 600;
position: absolute;
right: 50px;
top: 30px;
text-transform: uppercase;
z-index: 2;
}


</style>
<div class="layout-wrapper layout-1 layout-without-sidenav">
        <div class="layout-inner">
         
         <?php include 'sidenavi.php'; ?>


<?php 
if(isset($_POST['submit'])){
  $Telugu = addslashes(trim($_POST['Telugu']));
   $sql = "UPDATE tbl_users SET Telugu='$Telugu' WHERE id=16";
  $conn->query($sql);
  echo "<script>alert('Record Updated Successfully!');window.location.href='telugu-master.php';</script>";
}

 ?>
<div class="layout-container">



<div class="layout-content">

<div class="container-fluid flex-grow-1 container-p-y">
<h4 class="font-weight-bold py-3 mb-0">Telugu Text</h4>


<div class="card mb-4">
<div class="card-body">
<div id="alert_message"></div>
<form id="validation-form" method="post">
<div class="form-row">
  
<div class="form-group col-md-12">
<label class="form-label">Telugu Text</label>
<textarea name="Telugu" id="Telugu" class="form-control" placeholder="" required><?php echo $row77['Telugu']; ?></textarea>
</div>

</div>
<button type="submit" name="submit" class="btn btn-primary btn-finish">Update</button>
</form>
</div>
</div>






</div>


<?php include_once 'footer.php'; ?>
</div>

</div>

</div>

<div class="layout-overlay layout-sidenav-toggle"></div>
</div>


<?php include_once 'footer_script.php'; ?>

</body>
</html>
