<?php
$admin = 2;
$file = __FILE__;
include_once ("../inc/inc_connect.php");

if ($action =="go")
{

    $query = "UPDATE $admintable SET strFontSize = '$Fontsize', strFontPoint = '$Fontpoint', strFont = '$Font', strFontColor = '$Fontcolor', strRateColor = '$Ratecolor', strSwearColor = '$Swearcolor', strFLink = '$Flink', strVLink = '$Vlink', strALink = '$Alink', strBorderColor = '$Bordercolor', strBGColor = '$Bgcolor', strFGColor = '$Fgcolor', strAFGColor = '$Afgcolor', strBackImage = '$Backimage'";
    mysql_query( $query, $link ) or die ( "Error! : ".mysql_error() );
}

include ("../inc/inc_common.php");
include ("../inc/inc_admincheck.php");
include ("../inc/inc_getdate.php");
include ("../inc/inc_forumname.php");
$page = "Admin - Customise Colours";
$pagelink = $file;
include("../inc/inc_setonline.php");
$title = "$name1 Admin - $gfcookie[1] - Customise Colours";
include ("../inc/inc_head.php");
include ("../inc/inc_body.php");
$title = "Customise Colours";
include ("../inc/inc_title.php");




$result=mysql_query("SELECT * FROM $admintable LIMIT 0, 1");
$num_rows = mysql_num_rows( $result );
while ( $a_row = mysql_fetch_object( $result ) )
{
    print "<table border=1 cellpadding=5 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"$bordercolor\" style=\"font-family: $font; font-size: $fontpoint\" bgcolor=\"$fgcolour\"><tr><td width=\"100%\" align=\"center\">

    <form method=\"post\" action=\"admin_cus_colours.php?action=go\"><br>

    <table border=0 cellpadding=3 cellspacing=0 width=100% style=\"font-family: $font; font-size: $fontpoint\">

    <tr><td width=\"50%\" align=\"center\">
    Font Size</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Fontsize\" value=\"$a_row->strFontSize\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Font Point</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Fontpoint\" value=\"$a_row->strFontPoint\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Font</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Font\" value=\"$a_row->strFont\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Font Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Fontcolor\" value=\"$a_row->strFontColor\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Rating Font Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Ratecolor\" value=\"$a_row->strRateColor\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Admin Swear Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Swearcolor\" value=\"$a_row->strSwearColor\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Background Image URL (http://url.com/image.jpg)</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Backimage\" value=\"$a_row->strBackImage\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Link Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Flink\" value=\"$a_row->strFLink\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Visited Link Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Vlink\" value=\"$a_row->strVLink\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Active Link Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Alink\" value=\"$a_row->strALink\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Border Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Bordercolor\" value=\"$a_row->strBorderColor\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Background Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Bgcolor\" value=\"$a_row->strBGColor\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Foreground Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Fgcolor\" value=\"$a_row->strFGColor\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

    <tr><td align=\"center\">
    Alternate Foreground Colour</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Afgcolor\" value=\"$a_row->strAFGColor\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>


    </table><br><br><input type=\"submit\" value=\"Set These Values\"></form></td></tr></table><br><br><a href=\"admin_customise.php\"><font size=2>Back to the Main Customise Page</a>";

}

include ("../inc/inc_footer.php");