-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpanel.phtml
More file actions
88 lines (88 loc) · 4.83 KB
/
panel.phtml
File metadata and controls
88 lines (88 loc) · 4.83 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
<?php
$repos = [
['id' => 1, 'name' => 'repo-1', 'stars' => 205, 'active' => false],
['id' => 2, 'name' => 'repo-2', 'stars' => 210, 'active' => true],
['id' => 3, 'name' => 'repo-3', 'stars' => 215, 'active' => false],
['id' => 4, 'name' => 'repo-4', 'stars' => 220, 'active' => true],
['id' => 5, 'name' => 'repo-5', 'stars' => 225, 'active' => false],
['id' => 6, 'name' => 'repo-6', 'stars' => 230, 'active' => true],
['id' => 7, 'name' => 'repo-7', 'stars' => 235, 'active' => false],
['id' => 8, 'name' => 'repo-8', 'stars' => 240, 'active' => true],
['id' => 9, 'name' => 'repo-9', 'stars' => 245, 'active' => false],
['id' => 10, 'name' => 'repo-10', 'stars' => 250, 'active' => true],
['id' => 11, 'name' => 'repo-11', 'stars' => 255, 'active' => false],
['id' => 12, 'name' => 'repo-12', 'stars' => 260, 'active' => true],
['id' => 13, 'name' => 'repo-13', 'stars' => 265, 'active' => false],
['id' => 14, 'name' => 'repo-14', 'stars' => 270, 'active' => true],
['id' => 15, 'name' => 'repo-15', 'stars' => 275, 'active' => false],
['id' => 16, 'name' => 'repo-16', 'stars' => 280, 'active' => true],
['id' => 17, 'name' => 'repo-17', 'stars' => 285, 'active' => false],
['id' => 18, 'name' => 'repo-18', 'stars' => 290, 'active' => true],
['id' => 19, 'name' => 'repo-19', 'stars' => 295, 'active' => false],
['id' => 20, 'name' => 'repo-20', 'stars' => 300, 'active' => true],
['id' => 21, 'name' => 'repo-21', 'stars' => 305, 'active' => false],
['id' => 22, 'name' => 'repo-22', 'stars' => 310, 'active' => true],
['id' => 23, 'name' => 'repo-23', 'stars' => 315, 'active' => false],
['id' => 24, 'name' => 'repo-24', 'stars' => 320, 'active' => true],
['id' => 25, 'name' => 'repo-25', 'stars' => 325, 'active' => false],
['id' => 26, 'name' => 'repo-26', 'stars' => 330, 'active' => true],
['id' => 27, 'name' => 'repo-27', 'stars' => 335, 'active' => false],
['id' => 28, 'name' => 'repo-28', 'stars' => 340, 'active' => true],
['id' => 29, 'name' => 'repo-29', 'stars' => 345, 'active' => false],
['id' => 30, 'name' => 'repo-30', 'stars' => 350, 'active' => true],
['id' => 31, 'name' => 'repo-31', 'stars' => 355, 'active' => false],
['id' => 32, 'name' => 'repo-32', 'stars' => 360, 'active' => true],
['id' => 33, 'name' => 'repo-33', 'stars' => 365, 'active' => false],
['id' => 34, 'name' => 'repo-34', 'stars' => 370, 'active' => true],
['id' => 35, 'name' => 'repo-35', 'stars' => 375, 'active' => false],
['id' => 36, 'name' => 'repo-36', 'stars' => 380, 'active' => true],
['id' => 37, 'name' => 'repo-37', 'stars' => 385, 'active' => false],
['id' => 38, 'name' => 'repo-38', 'stars' => 390, 'active' => true],
['id' => 39, 'name' => 'repo-39', 'stars' => 395, 'active' => false],
['id' => 40, 'name' => 'repo-40', 'stars' => 400, 'active' => true],
['id' => 41, 'name' => 'repo-41', 'stars' => 405, 'active' => false],
['id' => 42, 'name' => 'repo-42', 'stars' => 410, 'active' => true],
['id' => 43, 'name' => 'repo-43', 'stars' => 415, 'active' => false],
['id' => 44, 'name' => 'repo-44', 'stars' => 420, 'active' => true],
['id' => 45, 'name' => 'repo-45', 'stars' => 425, 'active' => false],
['id' => 46, 'name' => 'repo-46', 'stars' => 430, 'active' => true],
['id' => 47, 'name' => 'repo-47', 'stars' => 435, 'active' => false],
['id' => 48, 'name' => 'repo-48', 'stars' => 440, 'active' => true],
['id' => 49, 'name' => 'repo-49', 'stars' => 445, 'active' => false],
['id' => 50, 'name' => 'repo-50', 'stars' => 450, 'active' => true],
['id' => 51, 'name' => 'repo-51', 'stars' => 455, 'active' => false],
['id' => 52, 'name' => 'repo-52', 'stars' => 460, 'active' => true],
['id' => 53, 'name' => 'repo-53', 'stars' => 465, 'active' => false],
['id' => 54, 'name' => 'repo-54', 'stars' => 470, 'active' => true],
['id' => 55, 'name' => 'repo-55', 'stars' => 475, 'active' => false],
['id' => 56, 'name' => 'repo-56', 'stars' => 480, 'active' => true],
['id' => 57, 'name' => 'repo-57', 'stars' => 485, 'active' => false],
['id' => 58, 'name' => 'repo-58', 'stars' => 490, 'active' => true],
];
$total = count($repos);
$activeCount = count(array_filter($repos, fn($r) => $r['active']));
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>PHTML Sample</title>
<style>
body { font-family: sans-serif; margin: 24px; }
.repo { padding: 6px 0; border-bottom: 1px solid #ddd; }
.active { color: #0a7a36; }
</style>
</head>
<body>
<h1>Repository List</h1>
<p>Total: <?= $total ?>, Active: <?= $activeCount ?></p>
<?php foreach ($repos as $repo): ?>
<div class="repo">
<strong><?= htmlspecialchars($repo['name']) ?></strong>
<span>#<?= $repo['id'] ?></span>
<span>⭐ <?= $repo['stars'] ?></span>
<?php if ($repo['active']): ?><span class="active">active</span><?php endif; ?>
</div>
<?php endforeach; ?>
</body>
</html>