v1.2 initial commit

This commit is contained in:
2026-05-10 21:40:25 +02:00
commit 1a5dfda288
995 changed files with 242075 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<?php
namespace bin\php\Classes;
if (!defined('APP_INIT')) {
exit;
}
class pageNavbar
{
public $breadCrumb;
private $buttons = array();
public function __construct($showBreadCrumb, $title = false)
{
$this->breadCrumb = $showBreadCrumb;
$this->title = $title;
}
public function AddHTMLButton($html)
{
array_push($this->buttons, $html);
}
public function outPutNavbar()
{
?>
<div class="row">
<div class="col d-flex justify-content-start">
<?php if ($this->breadCrumb) { ?>
<div class="pb-2" id="breadCrumb"></div>
<?php } elseif ($this->title) { ?>
<h2 class="px-4 mb-0"><?php echo $this->title ?></h2>
<?php } else { ?>
<div></div>
<?php } ?>
</div>
<div class="col d-flex justify-content-end">
<?php if (count($this->buttons)) {
foreach ($this->buttons as $button) {
echo $button;
}
} ?>
</div>
</div>
<br>
<?php }
}