__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\Framework\Form\Element\Select;
use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Form\Element\Select;
class Skin extends Select {
protected $fixed = false;
protected function fetchElement() {
$html = parent::fetchElement();
Js::addInline('new _N2.FormElementSkin("' . $this->fieldID . '", "' . str_replace($this->name, '', $this->fieldID) . '", ' . json_encode($this->options) . ', ' . json_encode($this->fixed) . ');');
return $html;
}
protected function renderOptions($options) {
$html = '';
if (!$this->fixed) {
$html .= '<option value="0" selected="selected">' . n2_('Choose') . '</option>';
}
foreach ($options as $value => $option) {
$html .= '<option ' . $this->isSelected($value) . ' value="' . $value . '">' . $option['label'] . '</option>';
}
return $html;
}
/**
* @param bool $fixed
*/
public function setFixed($fixed) {
$this->fixed = $fixed;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Easing.php | File | 1.48 KB | 0664 |
|
| FillMode.php | File | 814 B | 0664 |
|
| Filter.php | File | 538 B | 0664 |
|
| FontWeight.php | File | 821 B | 0664 |
|
| Gradient.php | File | 566 B | 0664 |
|
| LinkTarget.php | File | 537 B | 0664 |
|
| SelectFile.php | File | 1.06 KB | 0664 |
|
| Skin.php | File | 1.02 KB | 0664 |
|
| SubFormIcon.php | File | 3.01 KB | 0664 |
|