-
Notifications
You must be signed in to change notification settings - Fork 1
/
edituser.php
77 lines (52 loc) · 3.46 KB
/
edituser.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
73
74
75
<?php include('./constant/layout/head.php');?>
<?php include('./constant/layout/header.php');?>
<?php include('./constant/layout/sidebar.php');?>
<?php include('./constant/connect.php');
$sql="SELECT * from users where user_id='".$_GET['id']."'";
$result=$connect->query($sql)->fetch_assoc(); ?>
<div class="page-wrapper">
<div class="row page-titles">
<div class="col-md-5 align-self-center">
<h3 class="text-primary">Edit User Management</h3> </div>
<div class="col-md-7 align-self-center">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li>
<li class="breadcrumb-item active">Edit User</li>
</ol>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-8" style=" margin-left: 10%;">
<div class="card">
<div class="card-title">
</div>
<div id="add-brand-messages"></div>
<div class="card-body">
<div class="input-states">
<form class="form-horizontal" method="POST" id="submitUserForm" action="php_action/editUser.php?id=<?php echo $_GET['id'];?>" enctype="multipart/form-data">
<input type="hidden" name="currnt_date" class="form-control">
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Username</label>
<div class="col-sm-9">
<input type="text" name="edituserName" id="edituserName" class="form-control" placeholder="Username" required="" pattern="^[a-zA-z0-9]+$"/ value="<?php echo $result['username']?>">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Password</label>
<div class="col-sm-9">
<input type="password" class="form-control" id="editPassword" placeholder="Password" name="editPassword">
</div>
</div>
</div>
<button type="submit" name="create" id="editProductBtn" class="btn btn-primary btn-flat m-b-30 m-t-30">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
<?php include('./constant/layout/footer.php');?>