MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/vaticaplus/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/vaticaplus/myprofile.php
<?php
session_start();
include ("Admin/Includes/db.php");
 @$uid =  $_SESSION['userid'] ;
 
 $sqlu = "select * from tbl_user where id='$uid'";
    $sql_resu = mysqli_query($con, $sqlu) or die(mysqli_error($con));
     $sql_rowu = mysqli_fetch_array($sql_resu);

     @$fname = $sql_rowu['fname'];
     @$lname = $sql_rowu['lname'];
     @$email = $sql_rowu['email'];
     @$phone = $sql_rowu['phone']; 
     @$state = $sql_rowu['state'];
     @$city = $sql_rowu['city'];
     @$add = $sql_rowu['address'];
     @$pass = $sql_rowu['password'];
     @$cpass = $sql_rowu['cpassword'];
?>
<!doctype html>
<html class="no-js" lang="zxx">


<!-- Mirrored from htmldemo.net/makali/makali/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 30 Sep 2022 10:13:09 GMT -->
<head>
    <?php include 'include/head.php'; ?>
    <style>
        title
        {
            display: block;
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 26px;
    font-size: 21px;
    line-height: inherit;
    color: #999999;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
        }
        .list
        {
            height: 350px;
    overflow-y: scroll;
        }
    </style>
</head>

<body class="template-color-1">
    <?php
                                                if(@$_SESSION['flash_message'] == 'profileupdate') {
                                                  $message = $_SESSION['flash_message'];
                                                  unset($_SESSION['flash_message']); ?>

                                                <script>
  $(document).ready(function(){
    toastr.success("Profile Updated Successfully");
    });
  </script>
                                                
                                                <?php  } ?>
    <!--[if lte IE 9]>
		<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
	<![endif]-->

    <!-- Main Wrapper Start Here -->
    <div class="wrapper">
        <!-- Main Header Area Start Here -->

        <!-- Main Header Area Three Start Here -->
           <?php include 'include/header1.php'; ?>
        <!-- Main Header Area Three End Here -->

        <!-- Main Header Area End Here -->
        <!-- Breadcrumb Area Start Here -->
        <div class="breadcrumb-area">
            <div class="container">
                <ol class="breadcrumb breadcrumb-list">
                    <li class="breadcrumb-item"><a href="index.php">Home</a></li>
                    <li class="breadcrumb-item active">Register</li>
                </ol>
            </div>
        </div>
        <!-- Breadcrumb Area End Here -->
        <!-- Login Page Start Here -->
         <div class="register-area ptb-90">
            <div class="container">
                <h3 class="login-header">Profile </h3>
                <div class="row">
                    <div class="offset-xl-1 col-xl-10">
                        <div class="register-form login-form clearfix">
                            <form action="profile_update.php?id=<?php echo $uid; ?>" method="POST" >
                                
                                
                                <title>Your Personal Details</title>
                               
                                <div class="form-group row mb-20">
                                    <label for="f-name" class="col-lg-3 col-md-3 col-form-label">First Name</label>
                                    <div class="col-lg-6 col-md-6">
                                        <input type="text" class="form-control" id="f-name" name="fname" value="<?php echo $fname; ?>">
                                    </div>
                                </div>
                                <div class="form-group row mb-20">
                                    <label for="l-name" class="col-lg-3 col-md-3 col-form-label">Last Name</label>
                                    <div class="col-lg-6 col-md-6">
                                        <input type="text" class="form-control" id="l-name" name="lname" value="<?php echo $lname; ?>">
                                    </div>
                                </div>
                                <div class="form-group row mb-20">
                                    <label for="email" class="col-lg-3 col-md-3 col-form-label">Email</label>
                                    <div class="col-lg-6 col-md-6">
                                        <input type="email" class="form-control" id="email" name="email" value="<?php echo $email; ?>" readonly>
                                    </div>
                                </div>
                                <div class="form-group row mb-20">
                                    <label for="email" class="col-lg-3 col-md-3 col-form-label">Phone No</label>
                                    <div class="col-lg-6 col-md-6">
                                        <input type="text" class="form-control" id="phone" name="phone" value="<?php echo $phone; ?>">
                                    </div>
                                </div>
                                
                                <title>Your Address</title>
                                
                                <div class="form-group row mb-20">
                                    <label for="email" class="col-lg-3 col-md-3 col-form-label">State</label>
                                    <div class="col-lg-6 col-md-6">
                                        <select class="form-control" id="state" name="state">
                                            <option value="">Select State</option>
                                             <?php
                                                        $new_qu = "select * from states where country_id='101'";
                                                        $new_res = mysqli_query($con, $new_qu) or die(mysqli_error($con));

                                                        while ($new_row = mysqli_fetch_assoc($new_res)) { ?>
                                                            <?php if ($new_row['id'] == $state) { ?>
                                                                <option value="<?php echo $new_row['id']; ?>" selected><?php echo $new_row['name']; ?></option>
                                                            <?php } else { ?>
                                                                <option value="<?php echo $new_row['id']; ?>"><?php echo $new_row['name']; ?></option>
                                                            <?php } ?>
                                                        <?php } ?>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group row mb-20">
                                    <label for="email" class="col-lg-3 col-md-3 col-form-label">City</label>
                                    <div class="col-lg-6 col-md-6">
                                        <select class="form-control" id="citys" name="citys">
                                          
                                              <?php
                                                        $new_qu = "select * from cities where country_id='101'";
                                                        $new_res = mysqli_query($con, $new_qu) or die(mysqli_error($con));

                                                        while ($new_row = mysqli_fetch_assoc($new_res)) { ?>
                                                            <?php if ($new_row['id'] == $city) { ?>
                                                                <option value="<?php echo $new_row['id']; ?>" selected><?php echo $new_row['name']; ?></option>
                                                            <?php } else { ?>
                                                                <option value="<?php echo $new_row['id']; ?>"><?php echo $new_row['name']; ?></option>
                                                            <?php } ?>
                                                        <?php } ?>
                                                                    
                                                            
                                        </select>
                                    </div>
                                </div>
                                
                                <div class="form-group row mb-20">
                                    <label for="email" class="col-lg-3 col-md-3 col-form-label">Address</label>
                                    <div class="col-lg-6 col-md-6">
                                       <textarea id="checkout-mess" cols="45" rows="5"  name="address"  ><?php echo $add; ?></textarea>
                                    </div>
                                </div>
                                
                                <title>Your Password</title>
                                
                                <div class="form-group row mb-20">
                                    <label for="inputPassword" class="col-lg-3 col-md-3 col-form-label">Password</label>
                                    <div class="position-relative col-lg-6 col-md-6">
                                        <input type="password" class="form-control" id="txtNewPassword" name="pass" value="<?php echo $pass; ?>">
                                       <!--  <button class="btn show-btn" type="button">Show</button> -->
                                    </div>
                                </div>
                                
                                <div class="form-group row mb-20">
                                    <label for="inputPassword" class="col-lg-3 col-md-3 col-form-label">Confirm Password</label>
                                    <div class="position-relative col-lg-6 col-md-6">
                                        <input type="password" class="form-control" id="txtConfirmPassword"  name="cpass" value="<?php echo $cpass; ?>">
                                       <!--  <button class="btn show-btn" type="button">Show</button> -->
                                       <span id="perror"></span>
                                    </div>
                                </div>
                               <!--  <div class="form-group row mb-20 align-items-center">
                                    <label for="birth" class="col-lg-3 col-md-3 col-form-label">Birthdate</label>
                                    <div class="col-lg-6 col-md-6">
                                        <input type="text" class="form-control" id="birth" placeholder="MM/DD/YYYY">
                                    </div>
                                    <span class="col-sm-3 form-control-comment">optional</span>
                                </div> -->
                               <!--  <div class="form-check row p-0 mt-20">
                                    <div class="col-md-6 offset-md-3">
                                        <input class="form-check-input" value="#" id="offer" type="checkbox">
                                        <label class="form-check-label" for="offer">Receive offers from our
                                            partners</label>
                                    </div>
                                </div> -->
                               <!--  <div class="form-check row p-0 mt-20">
                                    <div class="col-md-8 offset-md-3">
                                        <input class="form-check-input" value="#" id="subscribe" type="checkbox">
                                        <label class="form-check-label" for="subscribe">Sign up for our
                                            newsletter<br>Subscribe to our newsletters now and stay up-to-date with new
                                            collections, the latest lookbooks and exclusive offers..</label>
                                    </div>
                                </div> -->
                                <div class="register-box mt-40">
                                    <button type="submit" class="login-btn float-right" id="btnSubmit">Register</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- Login Page End Here -->
        <!-- Footer Area Start Here -->
       <?php include'include/footer.php'; ?>
        <!-- Footer Area End Here -->
    </div>
    <!-- Main Wrapper End Here -->

    <!-- jquery -->
    <script src="js/vendor/jquery-3.6.0.min.js"></script>
    <!-- jquery migrate -->
    <script src="js/vendor/jquery-migrate-3.3.2.min.js"></script>
    <!-- Countdown js -->
    <script src="js/jquery.countdown.min.js"></script>
    <!-- Mobile menu js -->
    <script src="js/jquery.meanmenu.min.js"></script>
    <!-- ScrollUp js -->
    <script src="js/jquery.scrollUp.js"></script>
    <!-- Fancybox js -->
    <script src="js/jquery.fancybox.min.js"></script>
    <!-- Jquery nice select js -->
    <script src="js/jquery.nice-select.min.js"></script>
    <!-- Jquery ui price slider js -->
    <script src="js/jquery-ui.min.js"></script>
    <!-- Owl carousel -->
    <script src="js/owl.carousel.min.js"></script>
    <!-- Bootstrap popper js -->
    <script src="js/popper.min.js"></script>
    <!-- Bootstrap js -->
    <script src="js/bootstrap.min.js"></script>
    <!-- Plugin js -->
    <script src="js/plugins.js"></script>
    <!-- Main activaion js -->
    <script src="js/main.js"></script>
    
    <script>
        $(document).ready(function() {
  $('select').niceSelect();
});
    </script>
    
    <script type="text/javascript">
     $(document).ready(function() {
            $('#state').on('change', function() {
                var stateID = $(this).val();
                // alert(conID);
                $.ajax({  
                    type: 'POST',  
                    url: 'Admin/get_state.php', 
                    data: {city: stateID },
                    success: function(response) {
                        // alert(response);
                         $('#citys').html(response);
                         $('select').niceSelect('update');
        // content.html(response);
    }
});
            });
        });
</script>


    <script>
    function checkPasswordMatch() {
        var password = $("#txtNewPassword").val();
        var confirmPassword = $("#txtConfirmPassword").val();
        if (password != confirmPassword)
        {
            // $("#perror").html("Passwords does not match!");
            $("#perror").text(" Passwords does not match ").css("color", "red").show().fadeIn();
            $("#btnSubmit").prop("disabled", true);
        }
        else
        {
            // $("#perror").html("Passwords match.");
             $("#perror").text("Passwords match ").css("color", "green").show().fadeIn();
                       $("#btnSubmit").prop("disabled",false);
        }
    }
    $(document).ready(function () {
       $("#txtConfirmPassword").keyup(checkPasswordMatch);
    });
    </script>



</body>


<!-- Mirrored from htmldemo.net/makali/makali/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 30 Sep 2022 10:13:09 GMT -->
</html>

MMCT - 2023