-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers.php
102 lines (99 loc) · 5.56 KB
/
users.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
include "includes/admissions/_var.php";
include "includes/_header.php";
include "includes/_nav.php";
include "includes/_slide.php";
?>
<div id="content" class="bg-container">
<header class="head">
<div class="main-bar">
<div class="row">
<div class="col-lg-6">
<h4 class="nav_top_align">
<i class="fa fa-file-o"></i>
Users
</h4>
</div>
<div class="col-lg-6">
<!-- <div class="float-right">
<ol class="breadcrumb nav_breadcrumb_top_align">
<li class="breadcrumb-item">
<a href="index.html">
<i class="fa fa-home" data-pack="default" data-tags=""></i>
Dashboard
</a>
</li>
<li class="breadcrumb-item">
<a href="#">Pages</a>
</li>
<li class="breadcrumb-item active">Blank Page</li>
</ol>
</div> -->
</div>
</div>
</div>
</header>
<div class="outer">
<div class="inner bg-container">
<div class="card">
<div class="card-header bg-white">
User Grid
</div>
<div class="card-block m-t-35" id="user_body">
<div class="table-toolbar">
<div class="btn-group float-right users_grid_tools">
<div class="tools"></div>
</div>
</div>
<div>
<div>
<table class="table table-striped table-bordered table-hover dataTable no-footer" id="editable_table" role="grid">
<thead>
<tr role="row">
<th class="sorting_asc wid-20" tabindex="0" rowspan="1" colspan="1">ที่</th>
<th class="sorting wid-25" tabindex="0" rowspan="1" colspan="1">Name</th>
<th class="sorting wid-10" tabindex="0" rowspan="1" colspan="1">UserId</th>
<th class="sorting wid-20" tabindex="0" rowspan="1" colspan="1">password</th>
<th class="sorting wid-15" tabindex="0" rowspan="1" colspan="1">email</th>
<!-- <th class="sorting wid-10" tabindex="0" rowspan="1" colspan="1">Actions</th> -->
</tr>
</thead>
<tbody>
<?php
$sql= "SELECT * FROM `users` ORDER BY `users`.`user_id` ASC";
$result = mysqli_query($connection, $sql);
if (mysqli_num_rows($result) > 0){
$i = 1;
while($row = mysqli_fetch_assoc($result)) {
$newstu_id = $row['newstu_id'];
$firstname = $row['firstname'];
$username = $row['username'];
$email = $row['email'];
?>
<tr role="row" class="even">
<td class="sorting_1"><?php echo $i++; ?></td>
<td><?php echo $firstname; ?></td>
<td><?php echo $username; ?></td>
<td class="center">123456</td>
<td class="email"><?php echo $email; ?></td>
</tr>
<?php }
}else{
echo " O results";
}
mysqli_close($connection);
?>
</tbody>
</table>
</div>
</div>
<!-- END EXAMPLE TABLE PORTLET-->
</div>
</div>
</div>
<!-- /.inner -->
</div>
</div>
<?php
include "includes/_footer.php";
?>