-
Notifications
You must be signed in to change notification settings - Fork 0
/
datatypes.php
64 lines (48 loc) · 1.55 KB
/
datatypes.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
<?php
$pageTitle = "Data Types";
require_once 'Model/TrackActivity.php';
include 'views/header.php';
require_once dirname(__FILE__) . '/config/datasources.php';
require_once 'Model/Repositories.php';
$datatypesMapping = getDatatypesMapping();
$repositoryClass = new Repositories();
$repositories = $repositoryClass->getRepositories();
$mapIndexToName = [];
foreach($repositories as $repository){
$mapIndexToName[$repository->index] = $repository->repoShowName;
}
?>
<div class="container">
<div class="row">
<?php
$count = 0;
foreach($datatypesMapping as $type=>$repos){
$count++;
?>
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<strong><a class='hyperlink' href="search.php?searchtype=data&query=&offset=1&datatypes=<?php echo $type;?>"><?php echo $type?></a> </strong>
</div>
<div class="panel-body">
<table class="table table-striped">
<tbody>
<?php foreach($repos as $repo){
?>
<tr>
<td><?php echo $mapIndexToName[$repo];?></td>
</tr>
<?php
}?>
</tbody>
</table>
</div>
</div>
</div>
<?php
if($count%4 == 0){
echo "</div><div class='row'>";
}
} ?>
</div>
<?php include 'views/footer.php'; ?>