-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask_4.php
100 lines (98 loc) · 4.69 KB
/
task_4.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
<!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">
<?php
$items = [
[
'title' => 'My Tasks',
'value' => '130 / 500',
'bg' => 'bg-fusion-400',
'width' => '65%',
'valuenow' => '65',
'valuemin' => '0',
'valuemax' => '100',
],
[
'title' => 'Transfered',
'value' => '440 TB',
'bg' => 'bg-success-500',
'width' => '34%',
'valuenow' => '34',
'valuemin' => '0',
'valuemax' => '100',
],
[
'title' => 'Bugs Squashed',
'value' => '77%',
'bg' => 'bg-info-400',
'width' => '77%',
'valuenow' => '77',
'valuemin' => '0',
'valuemax' => '100',
],
[
'title' => 'User Testing',
'value' => '7 days',
'bg' => 'bg-primary-300',
'width' => '84%',
'valuenow' => '84',
'valuemin' => '0',
'valuemax' => '100',
],
]
?>
</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">
<?php foreach ($items as $item): ?>
<div class="d-flex mt-2">
<?php echo $item['title']; ?>
<span class="d-inline-block ml-auto"><?php echo $item['value']; ?></span>
</div>
<div class="progress progress-sm mb-3">
<div class="progress-bar <?php echo $item['bg']; ?>" role="progressbar" style="width: <?php echo $item['width']; ?>;" aria-valuenow="<?php echo $item['valuenow']; ?>" aria-valuemin="<?php echo $item['valuemin']; ?>>" aria-valuemax="<?php echo $item['valuemax']; ?>"></div>
</div>
<?php endforeach;?>
</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>