initial commit
This commit is contained in:
commit
2e59f250f0
94 changed files with 952 additions and 0 deletions
45
core.php
Normal file
45
core.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
|
||||
function showCategories($parsed_json)
|
||||
{
|
||||
|
||||
// Loop through Object
|
||||
foreach ($parsed_json as $key => $value) {
|
||||
$i_category = 0;
|
||||
while ($i_category < sizeof($value)) {
|
||||
echo "<div class=\"row my-2\">";
|
||||
|
||||
for ($x = 0; $x < 2; $x++) {
|
||||
if ($i_category < sizeof($value)) {
|
||||
$category = $value[$i_category];
|
||||
include('category.php');
|
||||
$i_category++;
|
||||
}
|
||||
}
|
||||
echo "</div>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function showSoftwares($category)
|
||||
{
|
||||
$softwares = $category->software;
|
||||
|
||||
$i_software = 0;
|
||||
while ($i_software < sizeof($softwares)) {
|
||||
|
||||
echo "<div class=\"row my-2\">";
|
||||
|
||||
for ($x = 0; $x < 2; $x++) {
|
||||
if($i_software < sizeof($softwares)){
|
||||
$software = $softwares[$i_software];
|
||||
include('software.php');
|
||||
$i_software++;
|
||||
}
|
||||
}
|
||||
echo "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue