Beispiel #1
0
 /**
  * Returns the colour style for use within CSS.
  * Will return an optimised hash colour.
  *
  * e.g #123456
  *     #123 instead of #112233
  *     #F00 instead of red
  *
  * @param string $overridevalue If provided then this value will be used instead
  *     of the styles current value.
  * @return string
  */
 public function out($overridevalue = null)
 {
     if ($overridevalue === null) {
         $overridevalue = $this->value;
     }
     return parent::out(self::shrink_value($overridevalue));
 }
if (isset($_POST['send']) and $_POST['send'] != 1) {
    $editorError = '<p class="warning">Bitte wählen Sie eine Datei aus oder legen eine neue Datei an!</p>';
    if (isset($_POST['update']) or isset($_GET['showProp']) or isset($_POST['validate'])) {
        $editorError = "";
    }
    $debugErrorMsg = $editorError;
}
/*
if ($_GET['showProp'] == "no") :
  $showProp = 'style="display:none"';
  $link = '[<a href="index.php?page=editor&showProp=yes" target="_self">anzeigen</a>]';
else :
  $link = '[<a href="index.php?page=editor&showProp=no" target="_self">nicht anzeigen</a>]';
endif;
*/
$prop = new css_style();
$propContent = $prop->create_list("content");
$propTypo = $prop->create_list("typo");
$propColor = $prop->create_list("color");
$propBox = $prop->create_list("box");
$propList = $prop->create_list("list");
$propDisplay = $prop->create_list("display");
$propTable = $prop->create_list("table");
$propEtc = $prop->create_list("etc");
$propLayout = $prop->create_list("layout");
$propPseudo = $prop->create_list("pseudo");
$SQL = new sql();
$SQL->setQuery("SELECT  showJsElements,\n            showProperty,\n            showColor,\n            showHighlight,\n            editorWindow, \n            hltSelector, \n            hltProperty, \n            hltValue,\n            hltDeclaration,\n            color1,\n            color2,\n            color3,\n            color4,\n            color5,\n            color6,\n            color7,\n            color8,\n            color9,\n            color10,\n            color11,\n            color12,\n            color13,\n            color14,\n            color15,\n            color16\n        FROM  rex_14_setting \n        WHERE   id = '1'");
$DBshowJsElements = $SQL->getValue('showJsElements');
$DBshowProperty = $SQL->getValue('showProperty');
$DBshowColor = $SQL->getValue('showColor');