-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmember_edit.php
More file actions
95 lines (94 loc) · 3.42 KB
/
member_edit.php
File metadata and controls
95 lines (94 loc) · 3.42 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE HTML>
<?php
require_once 'session.php';
require_once 'account_name.php';
?>
<html lang = "eng">
<head>
<meta charset = "UTF-8">
<link rel = "stylesheet" type = "text/css" href = "css/bootstrap.css" />
<link rel = "stylesheet" type = "text/css" href = "css/jquery.dataTables.css" />
<meta name = "viewport" content = "width=device-width, initial-scale=1" />
<title>Membership System</title>
</head>
<body class = "alert-warning">
<nav class = "navbar navbar-inverse">
<div class = "container-fluid">
<div class = "navbar-header">
<a class = "navbar-brand">Membership System</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a><span class = "glyphicon glyphicon-user"></span> <?php echo $acc_name?></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Settings <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<div class = "container-fluid">
<ul class="nav nav-pills">
<li><a href="home.php">Home</a></li>
<li><a href="account.php">Account</a></li>
<li class="active"><a href="member.php">Member</a></li>
<li><a href="club.php">Club</a></li>
</ul>
<br />
<div class = "col-md-12 well">
<a class = "btn btn-success" href = "member.php"><span class = "glyphicon glyphicon-hand-right"></span> Back</a>
<br/>
<br/>
<div class = "alert alert-warning">Member / Update</div>
<div class = "row">
<div class = "col-md-2 ">
</div>
<div class = "col-md-2">
</div>
<div class = "col-md-4">
<?php
$acc_query = $conn->query("SELECT * FROM `member` WHERE mem_id = '$_REQUEST[mem_id]'") or die(mysqli_error());
$acc_fetch = $acc_query->fetch_array();
?>
<form method = "POST">
<div class = "form-group">
<label>Firstname Edit</label>
<input id = "firstname" type = "text" value = "<?php echo $acc_fetch['firstname']?>" class = "form-control" />
<input id = "mem_id" type = "hidden" value = "<?php echo $acc_fetch['mem_id']?>" class = "form-control" />
</div>
<div class = "form-group">
<label>Lastname</label>
<input type = "text" id = "lastname" type = "text" value= "<?php echo $acc_fetch['lastname']?>" class = "form-control" />
</div>
<div class = "form-group">
<label>Email</label>
<input type = "email" id = "email" type = "text" value= "<?php echo $acc_fetch['email']?>" class = "form-control" />
</div>
<div class = "form-group">
<label>Password</label>
<input type = "text" id = "password" type = "text" value= "<?php echo $acc_fetch['password']?>" class = "form-control" />
</div>
<div id = "loading">
</div>
<br />
<div class = "form-group">
<button type = "button" id = "mem_edit" class = "btn btn-warning form-control"><span class = "glyphicon glyphicon-edit"></span> Save Changes</button>
</div>
</form>
</div>
</div>
</div>
</div>
<?php require_once 'group/footer.php' ?>
</body>
<script src = "js/jquery-3.1.1.js"></script>
<script src = "js/bootstrap.js"></script>
<script src = "js/script.js"></script>
<script src = "js/jquery.dataTables.min.js"></script>
<script type = "text/javascript">
$(document).ready(function(){
$('#table').DataTable();
})
</script>
</html>