user crud
This commit is contained in:
24
kernel/IGTabel/btn/DangerBtn.php
Normal file
24
kernel/IGTabel/btn/DangerBtn.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\IGTabel\btn;
|
||||
|
||||
class DangerBtn
|
||||
{
|
||||
protected string $btn = '';
|
||||
|
||||
public function __construct(string $title, string $url)
|
||||
{
|
||||
$this->btn = "<a class='btn btn-danger' href='$url' style='margin: 3px; width: 150px;' >$title</a>";
|
||||
}
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
return $this->btn;
|
||||
}
|
||||
|
||||
public static function create(string $title, string $url): DangerBtn
|
||||
{
|
||||
return new self($title, $url);
|
||||
}
|
||||
|
||||
}
|
24
kernel/IGTabel/btn/SuccessBtn.php
Normal file
24
kernel/IGTabel/btn/SuccessBtn.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\IGTabel\btn;
|
||||
|
||||
class SuccessBtn
|
||||
{
|
||||
protected string $btn = '';
|
||||
|
||||
public function __construct(string $title, string $url)
|
||||
{
|
||||
$this->btn = "<a class='btn btn-success' href='$url' style='margin: 3px; width: 150px;' >$title</a>";
|
||||
}
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
return $this->btn;
|
||||
}
|
||||
|
||||
public static function create(string $title, string $url): SuccessBtn
|
||||
{
|
||||
return new self($title, $url);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user