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

if ($action =="go")
{

    $query = "UPDATE $admintable SET strPostWidth = '$Postwidth', strSigSeperator = '$Sigseperator', strStars1 = '$Stars1', strStars2 = '$Stars2', strStars3 = '$Stars3', strStars4 = '$Stars4', strStars5 = '$Stars5', strShowPosts = '$showPosts', strShowPostId = '$Showpostid', strShowModLevel = '$Showmodlevel', strShowStars = '$Showstars', strShowAvatars = '$Showavatars', strShowLocation = '$Showlocation', strShowSeconds = '$Showseconds', strShow24Hour = '$Show24hour', strTimeOffset = '$Timeoffset', strShowPmIcon = '$Showpmicon', strShowWwwIcon = '$Showwwwicon', strShowProfile1 = '$Showprofile1', strShowProfile2 = '$Showprofile2', strShowProfile3 = '$Showprofile3', strShowProfile4 = '$Showprofile4', strShowEditInfo = '$Showeditinfo', strEditInfoColour = '$Editinfocolour', strTeleporter = '$Showteleporter', strBoxedQuotes = '$Boxedquotes', strQuoteBackColor = '$Quotebackcolor', strQuoteFontColor = '$Quotefontcolor', strAdlevel1 = '$Adlevel1', strAdlevel2 = '$Adlevel2', strAdlevel3 = '$Adlevel3', strAdlevel4 = '$Adlevel4', strAdlevel5 = '$Adlevel5', strAdlevel6 = '$Adlevel6', strAdlevel7 = '$Adlevel7', strPostsForHotTopic = '$Postsforhottopic'";
    mysql_query( $query, $link ) or die ( "Error! : ".mysql_error() );
}
include ("../inc/inc_common.php");
if ($showPosts == 1)
{
    $Showpostsch = "Checked";
}
if ($showpostid == 1)
{
    $Showpostidch = "Checked";
}
if ($showmodlevel == 1)
{
    $Showmodlevelch = "Checked";
}
if ($showstars == 1)
{
    $Showstarsch = "Checked";
}
if ($showavatars == 1)
{
    $Showavatarsch = "Checked";
}
if ($showlocation == 1)
{
    $Showlocationch = "Checked";
}
if ($showseconds == 1)
{
    $Showsecondsch = "Checked";
}
if ($show24hour == 1)
{
    $Show24hourch = "Checked";
}
if ($showpmicon == 1)
{
    $Showpmiconch = "Checked";
}
if ($showprofile1 == 1)
{
    $Showprofile1ch = "Checked";
}
if ($showprofile2 == 1)
{
    $Showprofile2ch = "Checked";
}
if ($showprofile3 == 1)
{
    $Showprofile3ch = "Checked";
}
if ($showprofile4 == 1)
{
    $Showprofile4ch = "Checked";
}
if ($showeditinfo == 1)
{
    $Showeditinfoch = "Checked";
}
if ($showteleporter == 1)
{
    $Showteleporterch = "Checked";
}
if ($boxedquotes == 1)
{
    $Boxedquotesch = "Checked";
}
if ($showwwwicon == 1)
{
    $Showwwwiconch = "Checked";
}






include ("../inc/inc_admincheck.php");
include ("../inc/inc_getdate.php");
include ("../inc/inc_forumname.php");
$page = "Admin - Customise Topics";
$pagelink = $file;
include("../inc/inc_setonline.php");
$title = "$name1 Admin - $gfcookie[1] - Customise Topics";
include ("../inc/inc_head.php");
include ("../inc/inc_body.php");
$title = "Customise Topics";
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_topic.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\">
    Post Width</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Postwidth\" value=\"$a_row->strPostWidth\" style=\"color: #FFFFFF; background-image: url('../images/textbox_background_red.gif')\"></td></tr>

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

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

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

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

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

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

    <tr><td align=\"center\">
    Show Post Count</td><td align=\"center\"><input type=\"checkbox\" $Showpostsch name=\"showPosts\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Post ID</td><td align=\"center\"><input type=\"checkbox\" $Showpostidch name=\"Showpostid\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Moderator Level</td><td align=\"center\"><input type=\"checkbox\" $Showmodlevelch name=\"Showmodlevel\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Post Stars</td><td align=\"center\"><input type=\"checkbox\" $Showstarsch name=\"Showstars\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Avatars</td><td align=\"center\"><input type=\"checkbox\" $Showavatarsch name=\"Showavatars\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Location</td><td align=\"center\"><input type=\"checkbox\" $Showlocationch name=\"Showlocation\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Seconds On Time</td><td align=\"center\"><input type=\"checkbox\" $Showsecondsch name=\"Showseconds\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Use 24 Hour Clock</td><td align=\"center\"><input type=\"checkbox\" $Show24hourch name=\"Show24hour\" value=\"1\"></td></tr>

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

    <tr><td align=\"center\">
    Show Private Messenger (MSN, Etc.) Icons</td><td align=\"center\"><input type=\"checkbox\" $Showpmiconch name=\"Showpmicon\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Home Page Icon</td><td align=\"center\"><input type=\"checkbox\" $Showwwwiconch name=\"Showwwwicon\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Answer To Profile Custom Question 1</td><td align=\"center\"><input type=\"checkbox\" $Showprofile1ch name=\"Showprofile1\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Answer To Profile Custom Question 2</td><td align=\"center\"><input type=\"checkbox\" $Showprofile2ch name=\"Showprofile2\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Answer To Profile Custom Question 3</td><td align=\"center\"><input type=\"checkbox\" $Showprofile3ch name=\"Showprofile3\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Answer To Profile Custom Question 4</td><td align=\"center\"><input type=\"checkbox\" $Showprofile4ch name=\"Showprofile4\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Show Post Editing Info</td><td align=\"center\"><input type=\"checkbox\" $Showeditinfoch name=\"Showeditinfo\" value=\"1\"></td></tr>

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

    <tr><td align=\"center\">
    Show Teleporter</td><td align=\"center\"><input type=\"checkbox\" $Showteleporterch name=\"Showteleporter\" value=\"1\"></td></tr>

    <tr><td align=\"center\">
    Use Boxed Quotes</td><td align=\"center\"><input type=\"checkbox\" $Boxedquotesch name=\"Boxedquotes\" value=\"1\"></td></tr>

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

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

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

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

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

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

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

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

    <tr><td align=\"center\">
    Name For Admin Level 7</td><td align=\"center\"><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" name=\"Adlevel7\" value=\"$a_row->strAdLevel7\" 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");