hi ich habe einen colorpicker, er funktioniert aber nich richtig.
http://jopspjo.jo.funpic.de/41(admin name: admin
admin passwort: admin)
hoffe auf hilfe joseph
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ü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ü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öß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">ü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">ü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
Kommentar