⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
ebook.dev-unit.com
/
Modules
/
Admin
/
Ui
/
View File Name :
CiForm.php
<?php namespace Modules\Admin\Ui; use Modules\Admin\Ui\Concerns\InputFields; class CiForm { use InputFields; protected $unnecessaryAttributes = ['disabled', 'readonly', 'checked']; public function text($name, $title, $errors, $entity = null, $options = []) { return $this->input($name, $title, $errors, $entity, array_merge($options, ['type' => 'text'])); } public function password($name, $title, $errors, $entity = null, $options = []) { return $this->input($name, $title, $errors, $entity, array_merge($options, ['type' => 'password'])); } public function number($name, $title, $errors, $entity = null, $options = []) { return $this->input($name, $title, $errors, $entity, array_merge($options, ['type' => 'number'])); } public function email($name, $title, $errors, $entity = null, $options = []) { return $this->input($name, $title, $errors, $entity, array_merge($options, ['type' => 'email'])); } public function file($name, $title, $errors, $entity = null, $options = []) { return $this->input($name, $title, $errors, $entity, array_merge($options, ['type' => 'file'])); } public function color($name, $title, $errors, $entity = null, $options = []) { return $this->input($name, $title, $errors, $entity, array_merge($options, ['type' => 'color'])); } public function input($name, $title, $errors, $entity = null, $options = []) { return $this->field($name, $title, $errors, $entity, $options, [$this, 'inputField']); } public function textarea($name, $title, $errors, $entity = null, $options = []) { $options = array_merge(['rows' => 10, 'cols' => 10], $options); return $this->field($name, $title, $errors, $entity, $options, [$this, 'textareaField']); } public function wysiwyg($name, $title, $errors, $entity = null, $options = []) { $options['class'] = array_get($options, 'class', '') . ' wysiwyg'; return $this->textarea($name, $title, $errors, $entity, $options); } public function checkbox($name, $title, $label, $errors, $entity = null, $options = []) { return $this->field($name, $title, $errors, $entity, $options, [$this, 'checkboxField'], $label); } public function select($name, $title, $errors, $list = [], $entity = null, $options = []) { return $this->field($name, $title, $errors, $entity, $options, [$this, 'selectField'], $list); } }