Ankündigung

Einklappen
Keine Ankündigung bisher.

colorpicker fehler

Einklappen

Neue Werbung 2019

Einklappen
Dieses Thema ist geschlossen.
X
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • colorpicker fehler

    hi ich habe einen colorpicker, er funktioniert aber nich richtig.
    http://jopspjo.jo.funpic.de/41(admin name: admin
    admin passwort: admin)
    PHP-Code:
    <?


            echo "<form action=\"webmenu.php?p=settings\" method=\"post\" name=\"settings\">\n";
            echo "<tr>\n<td class=\"boxtitle\">Titel / Name der Seite<br><span style=\"font-size: ".$font_size_small."px\">(z.B.: webtonics)</span></td>\n";

            
            echo "<td class=\"boxcontent\"><input type=\"text\" name=\"title\" size=\"25\" value=\"".$title."\"></td>\n</tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Breite in Pixel</td>\n";
            echo "<td class=\"boxcontent\"><input type=\"text\" name=\"width\" size=\"25\" value=\"".$width."\"></td>\n</tr>\n";
            
            echo "<tr><td colspan=\"2\" class=\"boxtitle\">Farbe:</td></tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Hintergrund</td>\n";
            echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"color_background\" class=\"color_background\" value=\"$color_background\">\n";
            

            echo "<tr>\n<td class=\"boxtitle\">Hintergrund (Mitte)</td>\n";
            echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"color_background_center\" class=\"color_background_cnter\" value=\"$color_background_center\">\n";
            

            echo "<tr>\n<td class=\"boxtitle\">Box&uuml;berschrift Hintergrund</td>\n";
            echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"color_box_title\" class=\"color_box_title\" value=\"$color_box_title\">\n";
        
            echo "<tr>\n<td class=\"boxtitle\">Box&uuml;berschrift Text</td>\n";
                echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"font_color_box_title\" class=\"font_color_box_title\" value=\"$font_color_box_title\">\n";

            echo "<tr>\n<td class=\"boxtitle\">Boxinhalt</td>\n";
                echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"color_box_content\" class=\"color_box_content\" value=\"$color_box_content\">\n";

            echo "<tr><td colspan=\"2\" class=\"boxtitle\">Schrift:</td></tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Farbe</td>\n";
                echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"font_color\" class=\"font_color\" value=\"$font_color\">\n";


            echo "<tr>\n<td class=\"boxtitle\">Art<br><span style=\"font-size: ".$font_size_small."px\">(z.B.: Arial, Helvetica, Sans-Serif)</span></td>\n";
            echo "<td class=\"boxcontent\"><input type=\"text\" name=\"font_family\" size=\"25\" value=\"".$font_family."\"></td>\n</tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Gr&ouml;&szlig;e</td>\n";
            echo "<td class=\"boxcontent\"><input type=\"text\" name=\"font_size\" size=\"25\" value=\"".$font_size."\"></td>\n</tr>\n";
            
            echo "<tr><td colspan=\"2\" class=\"boxtitle\">Link:</td></tr>\n";

            echo "<tr>\n<td class=\"boxtitle\">Farbe</td>\n";
                echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"link_color\" class=\"link_color\" value=\"$link_color\">\n";

            echo "<tr>\n<td class=\"boxtitle\">Farbe (Hover)</td>\n";
    echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"link_color_hover\" class=\"link_color_hover\"  value=\"".$link_color_hover."\">\n";

        echo "<tr>\n<td class=\"boxtitle\">Textdekoration</td>\n";
            echo "<td class=\"boxcontent\"><select name=\"link_style\" size=\"1\">\n";
            echo "<option value=\"underline\"";if($link_style=="underline")echo" selected";echo">unterstrichen</option>\n";
            echo "<option value=\"overline\"";if($link_style=="overline")echo" selected";echo">&uuml;berstrichen</option>\n";
            echo "<option value=\"line-through\"";if($link_style=="line-through")echo" selected";echo">durchgestrichen</option>\n";
            echo "<option value=\"none\"";if($link_style=="none")echo" selected";echo">keine</option>\n";
            echo "</select></td>\n</tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Textdekoration (Hover)</td>\n";
            echo "<td class=\"boxcontent\"><select name=\"link_style_hover\" size=\"1\">\n";
            echo "<option value=\"underline\"";if($link_style_hover=="underline")echo" selected";echo">unterstrichen</option>\n";
            echo "<option value=\"overline\"";if($link_style_hover=="overline")echo" selected";echo">&uuml;berstrichen</option>\n";
            echo "<option value=\"line-through\"";if($link_style_hover=="line-through")echo" selected";echo">durchgestrichen</option>\n";
            echo "<option value=\"none\"";if($link_style_hover=="none")echo" selected";echo">keine</option>\n";
            echo "</select></td>\n</tr>\n";
            
            echo "<tr><td colspan=\"2\" class=\"boxtitle\">Rahmen:</td></tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Breite</td>\n";
            echo "<td class=\"boxcontent\"><input type=\"text\" name=\"border_width\" size=\"25\" value=\"".$border_width."\"></td>\n</tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Linienart</td>\n";
            echo "<td class=\"boxcontent\"><select name=\"border_style\" size=\"1\">\n";
            echo "<option value=\"solid\"";if($border_style=="solid")echo" selected";echo">durchgezogen</option>\n";
            echo "<option value=\"dotted\"";if($border_style=="dotted")echo" selected";echo">gepunktet</option>\n";
            echo "<option value=\"dashed\"";if($border_style=="dashed")echo" selected";echo">gestrichelt</option>\n";
            echo "<option value=\"none\"";if($border_style=="none")echo" selected";echo">keine</option>\n";
            echo "</select></td>\n</tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Farbe</td>\n";
        echo "<td class=\"boxcontent\"><script type=\"text/javascript\" src=\"jscolor.js\"></script>

    Click here: <input name=\"border_color\" class=\"border_color\" value=\"$border_color\">\n";
            
            
            
            echo "<tr><td colspan=\"2\" class=\"boxtitle\">Footer:</td></tr>\n";
            echo "<tr>\n<td class=\"boxtitle\">Text<br><span style=\"font-size: ".$font_size_small."px\">(z. B. Creator)</span></td>\n";
            echo "<td class=\"boxcontent\"><input type=\"text\" name=\"footer\" size=\"25\" value=\"".$footer."\"></td>\n</tr>\n";
                
            echo "<tr><td colspan=\"2\" align=\"center\">\n";
            echo "<input type=\"submit\" name=\"settings_save\" value=\"Einstellungen speichern\"></td></tr>\n";
            echo "</form>\n";
            
            if($_POST['settings_save'])
            {
                $file = "wm_files/data/config.php";
                $input = "<?php\n";
        $input .= "\$adminName = \"".$adminName."\";\n";
                $input .= "\$adminPass = \"".$adminPass."\";\n";
                $input .= "\$title = \"".$_POST['title']."\";\n";
                $input .= "\$width = \"".$_POST['width']."\";\n";
                $input .= "\$color_background = \"#".$_POST['color_background']."\";\n";            
                $input .= "\$color_background_center = \"#".$_POST['color_background_center']."\";\n";
                $input .= "\$color_box_title = \"#".$_POST['color_box_title']."\";\n";
                $input .= "\$font_color_box_title = \"#".$_POST['font_color_box_title']."\";\n";
                $input .= "\$color_box_content = \"#".$_POST['color_box_content']."\";\n";
                $input .= "\$font_color = \"#".$_POST['font_color']."\";\n";
                $input .= "\$font_family = \"".$_POST['font_family']."\";\n";
                $input .= "\$font_size = ".$_POST['font_size'].";\n";
                $input .= "\$link_color = \"#".$_POST['link_color']."\";\n";
                $input .= "\$link_color_hover = \"#".$_POST['link_color_hover']."\";\n";
                $input .= "\$link_style = \"".$_POST['link_style']."\";\n";
                $input .= "\$link_style_hover = \"".$_POST['link_style_hover']."\";\n";
                $input .= "\$border_width = ".$_POST['border_width'].";\n";
                $input .= "\$border_style = \"".$_POST['border_style']."\";\n";
                $input .= "\$border_color = \"#".$_POST['border_color']."\";\n";
                $input .= "\$footer = \"".$_POST['footer']."\";\n";
                $input .= "?>";
                $handle = fopen($file, "w");
                fwrite($handle, $input);
                fclose($handle);
                echo "<script>location.href=\"webmenu.php?p=settings\";</script>";
            }

    ?>


    hoffe auf hilfe joseph

  • #2
    Der Link ist tot.
    Erwartest du ernsthaft dass man dir auf Basis der Informationen helfen kann ?
    Außerdem darfst du dir bei der Fehlerbeschreibung echt mehr Mühe geben und nicht einfach ein Bild mit was eingekringelten + Script hinbatschen und sagen: "FÄÄHLER !!!"

    PHP-Kenntnisse:
    Fortgeschritten
    Grüße

    Edit:
    PHP-Code:
                $input .= "\$font_color = \"#".$_POST['font_color']."\";\n"
    wird vermutlich bei der Ausgabe nicht mehr entfernt...
    Signatur:
    PHP-Code:
    $s '0048656c6c6f20576f726c64';
    while(
    $i=substr($s=substr($s,2),0,2))echo"&#x00$i;"

    Kommentar


    • #3
      Wieso bindest du das komplette Scroller-Script vor jedem einzelnen Farb-Inputfeld erneut ein?

      Ich wette 99:1, dass das nicht die Art und Weise ist, in der das vom Scriptersteller gedacht war - da gibt es bestimmt eine andere Art, wo das Script nur ein mal eingebunden und dann ggf. noch eine Initialisierungsfunktion aufgerufen wird.

      Schau also bitte mal in die Doku des Scriptes!
      [SIZE="1"]RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?[/SIZE]

      Kommentar


      • #4
        http://www.php.de/php-einsteiger/543...produkten.html

        [MOD: Thread geschlossen]
        [COLOR="#F5F5FF"]--[/COLOR]
        [COLOR="Gray"][SIZE="6"][FONT="Georgia"][B]^^ O.O[/B][/FONT] [/SIZE]
        „Emoticons machen einen Beitrag etwas freundlicher. Deine wirken zwar fachlich richtig sein, aber meist ziemlich uninteressant.
        [URL="http://www.php.de/javascript-ajax-und-mehr/107400-draggable-sorttable-setattribute.html#post788799"][B]Wenn man nur Text sieht, haben viele junge Entwickler keine interesse, diese stumpfen Texte zu lesen.“[/B][/URL][/COLOR]
        [COLOR="#F5F5FF"]
        --[/COLOR]

        Kommentar

        Lädt...
        X