-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.php
72 lines (63 loc) · 3.62 KB
/
user.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php include"sidebar.php"; ?>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="header">
<h4 class="title">Edit Profile</h4>
</div>
<?php if(get("success")):?>
<div>
<?=App::message("success", "Your information was updated Successfully!")?>
</div>
<?php endif;?>
<div class="content">
<?php
$user=$_SESSION['SESS_MEMBER_ID'];
$result = $db->prepare("SELECT id,username,email,name,address FROM user WHERE id='$user'");
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<form action="update-user.php" method="post">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Username</label>
<input type="text" name="username" class="form-control" placeholder="Username" value="<?php echo $row['username']; ?>" disabled>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="email" class="form-control" placeholder="Email" value="<?php echo $row['email']; ?>">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Full Name</label>
<input type="text" name="name" class="form-control" placeholder="Company" value="<?php echo $row['name']; ?>">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Address</label>
<input type="text" name="address" class="form-control" placeholder="Home Address" value="<?php echo $row['address']; ?>">
</div>
</div>
</div>
<button type="submit" class="btn btn-info btn-fill pull-right">Update Profile</button>
<div class="clearfix"></div>
</form>
<?php }?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include"footer.php"; ?>