-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingleUser.php
More file actions
46 lines (41 loc) · 1.49 KB
/
singleUser.php
File metadata and controls
46 lines (41 loc) · 1.49 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
<!doctype html>
<html lang="en">
<head>
<?php include("php/head.php"); ?>
<title>Single User</title>
</head>
<body>
<?php
include("php/header.php");
include("php/singleUser/SingleUser.php");
if (isset($_GET["id"]))
$test = new SingleUser($_GET["id"]);
if (!isset($test)) {
echo '<div class="container"><div class="row"><div class="col-12">No user was found.</div></div></div>';
return;
}
?>
<main>
<div class="container mt-4">
<div class="row">
<div class="col-12 order-last col-md-3 order-md-first">
<?php include("php/home/sidebar.inc.php") ?>
</div>
<div class="col-12 col-md-9">
<?php $test->outputHeading(); ?>
<div class="row">
<div class="col-12 col-md-8">
<?php $test->outputPosts(); ?>
<?php $test->outputImages(); ?>
</div>
<div class="col-12 col-md-4">
<?php $test->outputContact(); ?>
</div>
</div>
</div>
</div>
</div>
</main>
<?php include("php/footer.php"); ?>
</body>
</html>