-
Notifications
You must be signed in to change notification settings - Fork 0
/
task_6.php
139 lines (130 loc) · 5.41 KB
/
task_6.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!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/statistics/chartist/chartist.css">
<link rel="stylesheet" media="screen, print" href="css/miscellaneous/lightgallery/lightgallery.bundle.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 ">
<main id="js-page-content" role="main" class="page-content">
<div class="col-md-6">
<div id="panel-1" class="panel">
<div class="panel-hdr">
<h2>
Задание
</h2>
<div class="panel-toolbar">
<button class="btn btn-panel waves-effect waves-themed" data-action="panel-collapse" data-toggle="tooltip" data-offset="0,10" data-original-title="Collapse"></button>
<button class="btn btn-panel waves-effect waves-themed" data-action="panel-fullscreen" data-toggle="tooltip" data-offset="0,10" data-original-title="Fullscreen"></button>
</div>
</div>
<div class="panel-container show">
<div class="panel-content">
<div class="d-flex flex-wrap demo demo-h-spacing mt-3 mb-3">
<?
$persons = [
[
'name' => 'Sunny',
'surname' => '',
'short' => 'A.',
'photo' => 'sunny.png',
'skill' => 'UI/UX Expert',
'role' => 'Lead Author',
'twitter' => '@myplaneticket',
'wrapbootstrap' => 'myorange',
'active' => true
],
[
'name' => 'Jos',
'surname' => '',
'short' => 'K.',
'photo' => 'josh.png',
'skill' => 'ASP.NET Developer',
'role' => 'Partner & Contributor',
'twitter' => '@atlantez',
'wrapbootstrap' => 'Walapa',
'active' => true
],
[
'name' => 'Jovanni',
'surname' => 'Lo',
'short' => 'L.',
'photo' => 'jovanni.png',
'skill' => 'PHP Developer',
'role' => 'Partner & Contributor',
'twitter' => '@lodev09',
'wrapbootstrap' => 'lodev09',
'active' => false
],
[
'name' => 'Roberto',
'surname' => '',
'short' => 'R.',
'photo' => 'roberto.png',
'skill' => 'Rails Developer',
'role' => 'Partner & Contributor',
'twitter' => '@sildur',
'wrapbootstrap' => 'sildur',
'active' => false
]
];
/*
// export data as CSV for PHPmyAdmin import
foreach ($persons as $key => $data) {
echo (++$key);
foreach ($data as $field) {
echo ',"'.$field.'"';
}
echo "<br>\n";
}
//*/
//*
foreach ($persons as $man) {
if (!$man['surname'])
$man['surname'] = $man['short'];
?>
<div class="<?= ($man['active'] != true) ? 'banned ' : '' ?>rounded-pill bg-white shadow-sm p-2 border-faded mr-3 d-flex flex-row align-items-center justify-content-center flex-shrink-0">
<img src="img/demo/authors/<?=$man['photo']?>" alt="<?=$man['name']?> <?=$man['surname']?>" class="img-thumbnail img-responsive rounded-circle" style="width:5rem; height: 5rem;">
<div class="ml-2 mr-3">
<h5 class="m-0">
<?=$man['name']?> <?=$man['short']?> (<?=$man['skill']?>)
<small class="m-0 fw-300">
<?=$man['role']."\n"?>
</small>
</h5>
<a href="https://twitter.com/<?=$man['twitter']?>" class="text-info fs-sm" target="_blank"><?=$man['twitter']?></a> -
<a href="https://wrapbootstrap.com/user/<?=$man['wrapbootstrap']?>" class="text-info fs-sm" target="_blank" title="Contact <?=$man['name']?>"><i class="fal fa-envelope"></i></a>
</div>
</div>
<?
}
//*/
?>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="js/vendors.bundle.js"></script>
<script src="js/app.bundle.js"></script>
<script>
// default list filter
initApp.listFilter($('#js_default_list'), $('#js_default_list_filter'));
// custom response message
initApp.listFilter($('#js-list-msg'), $('#js-list-msg-filter'));
</script>
</body>
</html>