admin theme pack
This commit is contained in:
23
kernel/filters/CustomSelectFilter.php
Normal file
23
kernel/filters/CustomSelectFilter.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\filters;
|
||||
|
||||
use Itguild\Tables\Filter\Filter;
|
||||
|
||||
class CustomSelectFilter extends Filter
|
||||
{
|
||||
|
||||
public function fetch()
|
||||
{
|
||||
$this->html = "<td><select class='form-control' name='$this->name'>";
|
||||
foreach ($this->param as $value) {
|
||||
if ($value === $this->value) {
|
||||
$this->html .= "<option value='$value' selected>$value</option>";
|
||||
} else {
|
||||
$this->html .= "<option value='$value'>$value</option>";
|
||||
}
|
||||
}
|
||||
$this->html .= "value='$this->value'</select></td>";
|
||||
return $this->html;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user