-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin1.php
More file actions
86 lines (76 loc) · 2.32 KB
/
admin1.php
File metadata and controls
86 lines (76 loc) · 2.32 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Feedback
</title>
<link rel="stylesheet" href="css/main.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="css/main_page.css" type="text/css" charset="utf-8">
<meta name="description" content="NEWS">
<meta name="keywords" content="NEWS">
<meta name="viewport" content="width=device-width, inital-scale=1">
<link href="img/sv.png" rel="shortcut icon" type="image/x-icon">
<link rel="stylesheet" href="css/font-awesome.min.css">
</head>
<body>
<?php session_start();
?>
<div id="wrapper">
<div id="content">
<?php include 'header.php';?>
<?php include 'modal1.php' ?>
</div>
<table>
<thead>
<tr><th colspan="7">Users</th></tr>
<tr>
<th >user_id</th>
<th >login</th>
<th >first_name</th>
<th >last_name</th>
<th >group_au</th>
<th >date_creation</th>
<th >action</th>
</tr>
</THead>
<TBody>
<?php
$servername ='localhost';
$username='root';
$password='';
$dbname='base1';
$con= new mysqli($servername,$username,$password, $dbname);
if ($con->connect_error){
die('error');
}
$sql="SELECT * FROM users ";
$result=$con->query($sql);
if($result->num_rows>0){
while($row=$result->fetch_assoc()){
?>
<tr >
<td><?php echo $row['user_id']; ?></td>
<td><?php echo $row['login']; ?></td>
<td><?php echo $row['first_name']; ?></td>
<td><?php echo $row['last_name']; ?></td>
<td><?php echo $row['group_au']; ?></td>
<td><?php echo $row['date_creation']; ?></td>
<td><a href="javascript: void(0);"><img class="help1 correct" src="https://world.utexas.edu/io/images/isss/planning%20icon.png" width=20 height=20/></a>
<a href="javascript: void(0);"><img class="del" src="http://download.seaicons.com/icons/custom-icon-design/flatastic-1/512/delete-1-icon.png" width=20 height=20/></a></td>
</tr>
<?php
}
}
?>
</tbody>
</Table>
<button class="bu" id="myBtn">Add</button>
<div style="clear:both">
<br>
</div>
</div>
<?php include 'scr.php';?>
</body>
<script src="admin1.js"></script>
<script src="admin.js"></script>
</html>