-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage_profile.php
More file actions
105 lines (98 loc) · 5.44 KB
/
page_profile.php
File metadata and controls
105 lines (98 loc) · 5.44 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
96
97
98
99
100
101
102
103
104
105
<?php
session_start();
require_once "function.php";
if (!(is_not_logged_in())) redirect_to("page_login.php");
if (!isset($_GET["id"])) redirect_to("users.php");
$user = get_user_by_id($_GET["id"]);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Профиль пользователя</title>
<meta name="description" content="Chartist.html">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no, minimal-ui">
<link id="vendorsbundle" rel="stylesheet" media="screen, print" href="css/vendors.bundle.css">
<link id="appbundle" rel="stylesheet" media="screen, print" href="css/app.bundle.css">
<link id="myskin" rel="stylesheet" media="screen, print" href="css/skins/skin-master.css">
<link rel="stylesheet" media="screen, print" href="css/fa-solid.css">
<link rel="stylesheet" media="screen, print" href="css/fa-brands.css">
<link rel="stylesheet" media="screen, print" href="css/fa-regular.css">
</head>
<body class="mod-bg-1 mod-nav-link">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary bg-primary-gradient">
<a class="navbar-brand d-flex align-items-center fw-500" href="#"><img alt="logo" class="d-inline-block align-top mr-2" src="img/logo.png"> Учебный проект</a> <button aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbarColor02" data-toggle="collapse" type="button"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarColor02">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="#">Главная</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#">Войти</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Выйти</a>
</li>
</ul>
</div>
</nav>
<main id="js-page-content" role="main" class="page-content mt-3">
<?php display_flash_message('danger');?>
<div class="subheader">
<h1 class="subheader-title">
<i class='subheader-icon fal fa-user'></i> <? echo $user['username']; ?>
</h1>
</div>
<div class="row">
<div class="col-lg-6 col-xl-6 m-auto">
<!-- profile summary -->
<div class="card mb-g rounded-top">
<div class="row no-gutters row-grid">
<div class="col-12">
<div class="d-flex flex-column align-items-center justify-content-center p-4">
<img src="img/ava/<? echo $user['avatar']; ?>" class="rounded-circle shadow-2 img-thumbnail" alt="">
<h5 class="mb-0 fw-700 text-center mt-3">
<? echo $user['username']; ?>
<small class="text-muted mb-0"><? echo $user['address']; ?></small>
</h5>
<div class="mt-4 text-center demo">
<a href="<? echo $user['instagram']; ?>" class="fs-xl" style="color:#C13584">
<i class="fab fa-instagram"></i>
</a>
<a href="<? echo $user['vk']; ?>" class="fs-xl" style="color:#4680C2">
<i class="fab fa-vk"></i>
</a>
<a href="<? echo $user['telegram']; ?>" class="fs-xl" style="color:#0088cc">
<i class="fab fa-telegram"></i>
</a>
</div>
</div>
</div>
<div class="col-12">
<div class="p-3 text-center">
<a href="tel:+13174562564" class="mt-1 d-block fs-sm fw-400 text-dark">
<i class="fas fa-mobile-alt text-muted mr-2"></i><? echo $user['phone']; ?></a>
<a href="mailto:<? echo $user['email']; ?>" class="mt-1 d-block fs-sm fw-400 text-dark">
<i class="fas fa-mouse-pointer text-muted mr-2"></i> <? echo $user['email']; ?></a>
<address class="fs-sm fw-400 mt-4 text-muted">
<i class="fas fa-map-pin mr-2"></i> <? echo $user['address']; ?>
</address>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</body>
<script src="js/vendors.bundle.js"></script>
<script src="js/app.bundle.js"></script>
<script>
$(document).ready(function()
{
});
</script>
</html>