if (!empty($fgcolorString)) { $fgcolor = new JUI\Color('fgcolor'); $fgcolor->setValue($fgcolorString); } else { $fgcolor = new JUI\Color('fgcolor'); $fgcolor->setValue($conf['fgcolor']); } $fgcolor->setLabel("Vordergrundfarbe: "); $colorContainer->add($fgcolor); $colorContainer->nline(); $bgcolorString = $loginManager->getUserPreference("bgcolor"); if (!empty($bgcolorString)) { $bgcolor = new JUI\Color('bgcolor'); $bgcolor->setValue($bgcolorString); } else { $bgcolor = new JUI\Color('bgcolor'); $bgcolor->setValue($conf['bgcolor']); } $bgcolor->setLabel("Hintergrundfarbe: "); $colorContainer->add($bgcolor); $colorContainer->nline(2); $submit = new JUI\Button("Speichern", TRUE); $colorContainer->add($submit); $reset = new JUI\Button("Zurücksetzen"); $reset->setClick(new JUI\Click(JUI\Click::openPlugin, $pluginManager, 'home', 'resetColors')); $colorContainer->add($reset); $jUI->add($colorContainer); $authtokenContainer = new JUI\Container(); $authtokenContainer->setBackgroundColor('#E8E8E8'); $authtokenContainer->setPadding(20); $authtokenContainer->setMarginTop(15);
$view = new JUI\Input($key); $view->setValue($value['value']); } else { if ($value['type'] == "INTEGER") { $view = new JUI\Input($key); $view->setAccepted(JUI\Input::NUMBERS); $view->setValue($value['value']); } else { if ($value['type'] == "BOOLEAN") { $view = new JUI\Select($key); $view->addItem("TRUE"); $view->addItem("FALSE"); $view->setValue(strtoupper($value['value'])); } else { if ($value['type'] == "COLOR") { $view = new JUI\Color($key); $view->setValue($value['value']); } else { if ($value['type'] == "ARRAY") { $view = new JUI\Text(json_encode($value['value'])); } else { if (is_string($value['value'])) { $view = new JUI\Text($value['value']); } } } } } } $row->addColumn($view); $table->addRow($row);