Location: PHPKode > scripts > Create Your Own Directory > cms/admin/colors.php
<?php
include "authheader.php";

if($block != true)
{
?>

<!-- Welcome to the scripts database of HIOX INDIA      -->
<!-- This tool is developed and a copyright             -->
<!-- product of HIOX INDIA.				        -->
<!-- For more information visit http://www.hscripts.com -->

<html>
<head>
<style>
.ta{background-color: ffff44;}
.rad{color:red; font-weight:bold; background-color: ffff44;}
.head{font-size: 17px; color: white; font-family: verdana, arial, san-serif;}
.links{font-size: 13px; color: white; font-family: verdana, arial, san-serif; text-decoration:none;}
.maintext{font-size: 13px; color: #fefefe; font-family: verdana, arial, san-serif; padding:20px;}
</style>
</head>
<body style="margin: 0px;">

<table width=790 height=100% cellpadding=0 cellspacing=0 align=center>
<tr><td align=center>

<?php include "heade.php" ?>

<tr height=95%><td class=maintext valign=top>
<div align=center style="color: 000000">

<?php

	$sub = $_POST['sub'];

	// will go to review.php for last process
	if($sub != "")
	{
		$border = $_POST['border'];
		$bmessage = $_POST['bmessage'];
		$bgcolor = $_POST['bgcolor'];
		$messagebg = $_POST['messagebg'];
		$message = $_POST['message'];
		$infobg = $_POST['infobg'];
		$info = $_POST['info'];
		$others = $_POST['others'];
			
		$qur = "update colors set border='$border', bmessage='$bmessage', bgcolor='$bgcolor',
		messagebg='$messagebg', message='$message', infobg='$infobg', info='$info', others='$others'";
		$result = mysql_query($qur,$link);
		if($result)
		{
			echo "Database Updated with new values";
		}
		else
		{
			echo "Unable to Update Database";
		}
	
	}
	else
	{
		$qur = "select * from colors";
		$result = mysql_query($qur,$link);
		if($line = @mysql_fetch_array($result, MYSQL_ASSOC))
		{
		$border = $line['border'];
		$bmessage = $line['bmessage'];
		$bgcolor = $line['bgcolor'];
		$messagebg = $line['messagebg'];
		$message = $line['message'];
		$infobg = $line['infobg'];
		$info = $line['info'];
		$others = $line['others'];
		}
		if($border == "")
			$border= "green";
		if($bmessage== "")
			$bmessage = "white";
		if($bgcolor== "")
			$bgcolor = "#ccffcc";
		if($messagebg== "")
			$messagebg = "#dddddd";
		if($message == "")
			$message = "#333333";
		if($infobg == "")
			$infobg = "#ddffee";
		if($info == "")
			$info = "#0000dd";
		if($others == "")
			$others = "#343434";

		echo "<table width=85% bgcolor=#f8f8ff   align=center cellpadding=0 cellspacing=0 border=0 
		style=\"font-size: 14px; padding: 20px; color: #000000;\" bgcolor=ffffff>
		<tr><td colspan=2 align=center width=30%><b> Set Colors </b><br><br></td></tr>
		<tr><td>Border Color</td><td>
		<form name=aa method=post action=colors.php>
		<input type=text name=border value=$border></td></tr>
		<tr><td>Border Message Color</td><td>
		<input type=text name=bmessage value=$bmessage></td></tr>
		<tr><td>Background Color</td><td>
		<input type=text name=bgcolor value=$bgcolor></td></tr>
		<tr><td>Comments Background</td><td>
		<input type=text name=messagebg value=$messagebg></td></tr>
		<tr><td>Comments Text Color</td><td>
		<input type=text name=message value=$message></td></tr>
		<tr><td>User Info Background</td><td>
		<input type=text name=infobg value=$infobg></td></tr>
		<tr><td>User Info Color</td><td>
		<input type=text name=info value=$info></td></tr>
		<tr><td>Others Text Color</td><td>
		<input type=text name=others value=$others></td></tr>
		<tr><td colspan=2 align=center>
		<input type=hidden name=sub value=sub><br>
		<input type=submit value=update><br>
		Empty colums will take default values
		</td></tr>
		</table>";
	}
?>

</div>
</td></tr>
<!-- content row -->

<tr><td width=100% align=right>
a product by &copy; <a href="http://www.hscripts.com" 
style="font-size: 14px; color: 347777; text-decoration:none;">hscripts.com</a> 
&nbsp; &nbsp; &nbsp; &nbsp;
</td></tr>
</table>
<!-- main table -->

</td></tr>
</table>

</body>
</html>

<!-- Welcome to the scripts database of HIOX INDIA      -->
<!-- This tool is developed and a copyright             -->
<!-- product of HIOX INDIA.				        -->
<!-- For more information visit http://www.hscripts.com -->

<?php
}
?>
Return current item: Create Your Own Directory