-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
54 lines (53 loc) · 1.67 KB
/
index.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
<!doctype html>
<html lang="en">
<?php
include "ini.php";
include $layout['head'];
$properties->execute();
$rows = $properties->fetchAll();
$user->execute();
$userData = $user->fetch();
?>
<body>
<!-- header -->
<?php
include $layout['header'];
?>
<div class="mx-8 flex flex-col">
<!-- title -->
<div class="w-full">
<h2 class="font-title text-left">
<?php echo $pages['home']['title'];?>
</h2>
</div>
<!-- layout -->
<div class="flex flex-row w-full">
<!-- content -->
<div class="flex flex flex-col w-3/5">
<?php
foreach($rows as $key => $row){
$startMonth = date('dS, M Y',strtotime($userData['birth']));
$dataRow = ($row['name'] != 'birth' ? $userData[$row['name']] : $startMonth);
echo "
<div class='grid grid-col-2 my-4'>
<div>{$row['values']} :</div>
<div class='font-sub-title'>
{$dataRow}
</div>
</div>
";
}
?>
</div>
<!-- image -->
<?php
echo "
<div class='text-center w-2/5'>
<img src='{$pages['home']['image']}' class='border p-2' alt='logo' title='logo'/>
</div>
";
?>
</div>
</div>
</body>
</html>