/
home
/
techb158
/
immovalet.ca
/
Master
/
/home/techb158/immovalet.ca/Master
mkdir
upload
Name
Size
Mode
Actions
img/
-
0777
rm
Inc/
-
0777
rm
local/
-
0777
rm
acceptprofile.php
5652
0666
edit
dl
rm
alertes_cv.php
13181
0666
edit
dl
rm
archives_cv.php
5559
0666
edit
dl
rm
authorizedpage.php
1216
0666
edit
dl
rm
bootstrap-cerulean.min.css
121997
0666
edit
dl
rm
charisma-app.css
41790
0666
edit
dl
rm
dashboard.php
9901
0666
edit
dl
rm
delete_offer_employee.php
519
0666
edit
dl
rm
emplois_offerts.php
17556
0666
edit
dl
rm
emplois_offert_Ex.php
14292
0666
edit
dl
rm
footer.php
2440
0666
edit
dl
rm
head.php
3451
0666
edit
dl
rm
header.php
2267
0666
edit
dl
rm
mes_annonces.php
6401
0666
edit
dl
rm
mes_applications.php
7969
0666
edit
dl
rm
mes_factures.php
7709
0666
edit
dl
rm
mes_produits.php
6550
0666
edit
dl
rm
mes_rapports.php
6238
0666
edit
dl
rm
modifier_profil.php
12751
0666
edit
dl
rm
plan_valeurs.php
7342
0666
edit
dl
rm
search.php
761
0666
edit
dl
rm
searchs.php
562
0666
edit
dl
rm
submit_offer_employee.php
12394
0666
edit
dl
rm
UpdatePostStatus.php
910
0666
edit
dl
rm
update_offer_employee.php
15209
0666
edit
dl
rm
Update_Profile.php
3558
0666
edit
dl
rm
Update_Publish_Post.php
5022
0666
edit
dl
rm
upload.php
2479
0666
edit
dl
rm
vori_talent_profil.php
9503
0666
edit
dl
rm
Edit:
/home/techb158/immovalet.ca/Master/modifier_profil.php
(12751B)
<?php include_once '../includes/db_connect.php'; include_once '../includes/functions.php'; //include_once 'Inc/upload.php'; include_once 'Inc/Update_Profile.php'; sec_session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Modification de profile | BonBoss</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content="Bala Group Technologies Inc"> <!-- The styles --> <?include "head.php"; ?> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> <script type="text/javascript"> var fileobj; function upload_file(e) { e.preventDefault(); fileobj = e.dataTransfer.files[0]; ajax_file_upload(fileobj); } function file_explorer() { document.getElementById('selectfile').click(); document.getElementById('selectfile').onchange = function() { fileobj = document.getElementById('selectfile').files[0]; ajax_file_upload(fileobj); }; } function ajax_file_upload(file_obj) { if(file_obj != undefined) { var form_data = new FormData($("#formid")[0]); //var form_data = new FormData(); form_data.append('file', file_obj); $.ajax({ type: 'POST', url: 'upload.php', contentType: false, processData: false, data: form_data, //data: form_data, ord_cli_ord_no, success:function(response) { // alert(response); $('#selectfile').val(''); }, complete:function(){ window.location = 'modifier_profil.php'; }, }); } } </script> <style> #drop_file_zone { background-color: #EEE; border: #999 5px dashed; width: 450px; height: 200px; padding: 8px; font-size: 18px; } #drag_upload_file { width:50%; } #drag_upload_file p { /*text-align: center;*/ } #drag_upload_file #selectfile { display: none; } </style> </head> <body> <!-- topbar starts --> <?include "header.php"; ?> <!-- topbar ends --> <div class="ch-container"> <div class="row"> <div id="content" class="col-lg-10 col-sm-10"> <!-- content starts --> </div> <ul class="breadcrumb"> <li> <a href="dashboard.php">Dashboard</a> </li> <li> <a href="modifier_profil.php">Mon profil</a> </li> </ul> </div> </div> <?php if (login_check($mysqli) == true) : ?> <?php if (!empty($error_msg)) { echo $error_msg; } if (!empty($succc)) { echo "<div class=\"alert alert-success\"><strong>Notification!</strong> ".$succc."</div>"; } if (isset($_GET['error'])) { $mesg= $_GET['error']; echo "<div class=\"alert alert-success\"><strong>Notification!</strong> ".$mesg."</div>"; } $user_n=$_SESSION['user_id']; $username=$_SESSION['username']; $query = "SELECT * FROM Master Where M_ID ='".$user_n."'"; $result = $mysqli->query($query); $row = $result->fetch_assoc(); $ID = $row['M_ID']; $Usernames = $row['Username']; $User_img = $row['User_img']; $FName = $row["First_Name"]; $LName = $row["Last_name"]; $No_Of_Employee = $row["No_Of_Employee"]; $Email = $row["Email"]; $Phone = $row["Phone"]; $Address = $row["Address"]; $City = $row["City"]; $Location = $row["Location"]; $State = $row["State"]; $ZipCode = $row["ZipCode"]; $Company_Name = $row["Company_Name"]; $RegisterTime = $row["Register_Time"]; $Certified_Type = $row["Certified_Type"]; $My_Name = $FName .' '. $LName; ?> <div class="container"> <div class="box col-md-8 col-md-offset-2"> <div class="MyAccountHead align-center"></div> <!--<div class="MyAccountHead align-center"> <img width="75px" height="70px" src="img/<?echo $User_img;?>" class="user-image" alt="User Image"> </div>--> <div class="wellback"> <div class="row"> <div class="box-content"> <div class="box col-md-12"> <form enctype="multipart/form-data" class="form-horizontal" method="post" id="formid" name="registration_form" action="<?php echo esc_url($_SERVER['PHP_SELF']); ?>"> <div class="box col-md-12"> <div class="box col-md-9"> <h1>Modifier mon profil</h1> <div id="drag_upload_file"> <!--<i class="glyphicon glyphicon-user icon-white"></i>--> <p><input type="button" value="Choisir un fichier" class="btnpro btnpro-primary" onclick="file_explorer();"></p> <input type="file" id="selectfile"> <!--<input class="btnpro btnpro-default" type="file" name="file" id="file">--> </div> * Photo facultative <hr> </div> <div class="box col-md-3"> <img width="175px" height="200px" src="img/<?echo $ID.'/'.$User_img;?>" class="user-image" alt="User Image"> </div> </div> </form> </div> </div> <div class="box col-md-12"> <div class="box-inner"> <div class="box-content"> <!--<form role="form">--> <form id="form" role="form" method="post" name="registration_form" action="<?php echo esc_url($_SERVER['PHP_SELF']); ?>"> <div class="form-group"> <label for="exampleInputEmail1">Nom d'utilisateur</label> <input type="email" class="form-control" id="Username" name="Username" value="<?echo $Usernames;?>" placeholder="Nom d'utilisateur" readonly> </div> <div class="form-group"> <label for="exampleInputEmail1">Type certifié</label> <input type="text" class="form-control" id="Certified_Type" name="Certified_Type" value="<?echo $Certified_Type;?>" readonly placeholder="Type certifié"> </div> <div class="form-group"> <label for="exampleInputEmail1">Courriel</label> <input type="email" class="form-control" id="emails" name="emails" value="<?echo $Email;?>" placeholder="Courriel"> </div> <div class="form-group"> <label for="exampleInputEmail1">Prénom</label> <input type="text" class="form-control" id="FirstName" name="FirstName" value="<?echo $FName;?>" placeholder="Prénom"> </div> <div class="form-group"> <label for="exampleInputEmail1">Nom de famille</label> <input type="text" class="form-control" id="LastName" name="LastName" value="<?echo $LName;?>" placeholder="Nom de famille"> </div> <div class="form-group"> <label for="exampleInputEmail1">Entreprise</label> <input type="text" class="form-control" id="Company" name="Company" value="<?echo $Company_Name;?>" placeholder="Entreprise"> </div> <div class="form-group"> <label for="exampleInputEmail1">Nombre d’employé</label> <!--<input type="text" class="form-control" id="No_Of_Employee" name="No_Of_Employee" value="<?echo $No_Of_Employee;?>" placeholder="Nombre d’employé" readonly>--> <input type="number" class="form-control" min="1" max="1000000" maxlength="7" value="<?php if($No_Of_Employee>0){echo $No_Of_Employee;}else{echo "1";}?>" id="No_Of_Employee" name="No_Of_Employee" oninput="this.value=this.value.slice(0,this.maxLength||1/1);this.value=(this.value < 1) ? (1/1) : this.value;"> </div> <div class="form-group"> <label for="exampleInputEmail1">Téléphone pour vous joindre</label> <input type="text" class="form-control" id="Contact_Phone" name="Contact_Phone" value="<?echo $Phone;?>" placeholder="Téléphone pour vous joindre"> </div> <div class="form-group"> <label for="exampleInputEmail1">Adresse</label> <input type="text" class="form-control" id="Location_Address" name="Location_Address" value="<?echo $Address;?>" placeholder="Adresse"> </div> <div class="form-group"> <label for="exampleInputEmail1">Ville</label> <input type="text" class="form-control" id="Location_City" name="Location_City" value="<?echo $City;?>" placeholder="Ville"> </div> <div class="form-group"> <label class="control-label" for="selectError2">Pays</label> <select class="form-control" id="Location" name="Location" onchange ="getLocationStates(this.value)" > <option value="<?echo $Location;?>"> <?echo $Location;?></option> <!--<option value=""> Pays</option> --> <option value="Canada">Canada</option> </select> <!-- <select data-placeholder="Province" id="Location_State" name="Location_State" disabled="disabled"> <option value=""> Province</option> <option value="38" >Canada</option> </select>--> </div> <div class="form-group"> <label for="exampleInputEmail1">Province</label> <input type="text" class="form-control" id="Location_State" name="Location_State" value="<?echo $State;?>" placeholder="Province"> </div> <div class="form-group"> <label for="exampleInputEmail1">Code postal</label> <input type="text" class="form-control" id="Location_ZipCode" name="Location_ZipCode" value="<?echo $ZipCode;?>" placeholder="Code postal"> </div> <div class="form-group"> <button type="submit" id="submit" name="submit" class="align-left btnprosize btnprosize-primary">Sauvegarder</button> </div> </form> </div> </div> </div> <!--/span--> <div class="box-content"> <div class="box col-md-12"> <div class="box-inner"> <div class="box-header well" data-original-title=""> <h2><i class="glyphicon glyphicon-edit"></i> Modifier mot de passe</h2> </div> <div class="box-content"> <form id="form" role="form" method="post" name="registration_form" action="<?php echo esc_url($_SERVER['PHP_SELF']); ?>"> <div class="form-group"> <input type="hidden" id="email" name="email" value="<?echo $Email;?>"> <input type="hidden" id="username" name="username" value="<?echo $username;?>"> <label for="exampleInputEmail1">Nouveau mot de passe</label> <input type="password" class="form-control" id="password" name="password" placeholder="Nouveau mot de passe"> </div> <div class="form-group"> <label for="exampleInputEmail1">Confirmer le mot de passe</label> <input type="password" class="form-control" id="confirmpwd" name="password_conf" placeholder="Confirmer le mot de passe"> </div> <div class="form-group"> <input type="submit" id="submitr" name="submitr" onclick="return regformhash(this.form, this.form.username, this.form.email, this.form.password, this.form.confirmpwd);" class="align-left btnprosize btnprosize-primary" value="Sauvegarder mot de passe" style="width: 100%;"> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> <hr> <?include "footer.php"; ?><!--/.fluid-container--> <?php else : ?> <?php include'authorizedpage.php';?> <?php endif; ?> <!-- external javascript --> </body> </html>
Save
cmd:
run