Location: PHPKode > projects > NetLink > netlink_os/change_css.php
<style type='text/css'>
.css
{
  border:2px grey solid;
}
</style>
<script type='text/javascript' src='about/about.js'>
</script>
<script language="JavaScript" type="text/javascript" src='css/css_table.js'>
</script>

<h3 style='margin:0px;'>CSS T<small>HEMER</small> v1.0</h3>
<small>
&#187; <a href="about/css1.php" onclick="NewWindow(this.href,'name','400','580','yes');return false;" class='under'>About CT v1.0</a>
</small>
<br/><br/>

<?php
extract($_GET);
$login=$_SESSION['login'];
echo "<form method='post' action='?id=update_css_temp&div=$div'>\n\n";
echo "Changing CSS Property for $div";

include("db.php");

$dbh=mysql_connect ($host,$user,$pass) or die ('MySQL Error: ' . mysql_error());
mysql_select_db ($table); 

$sql="SELECT * FROM CSS_TEMP WHERE Username='$login';";
$rs=mysql_query($sql,$dbh);

$row=mysql_fetch_array($rs);
$div_color=$row[$div];
mysql_close($dbh);
?>
<br/><br/>
Instructions:
<blockquote style='font-size:10pt'>
In the table provided below, click on a color that you want wit the mouse. The textbox at the bottom will change with the HEX code (the 6-digit color code that the Internet can understand), and will have the box beside that preview the color you just chose. After you click the color you like, click <b>Save Color for _____</b> (the scheme you're changing). If you want to keep the original color, click <b>Cancel Changes</b> to go back to the <b>CSS T<small>HEMER</small>.
</blockquote>
<div align='center'>

<!--TABLE FOR COLORS--=========================================================-->
<table summary='colors' border='1' style='cursor:pointer'>
<tr>
<?php include("css/0000__.php") ?>
<?php include("css/3300__.php") ?>
<?php include("css/6600__.php") ?>
<?php include("css/9900__.php") ?>
<?php include("css/CC00__.php") ?>
<?php include("css/FF00__.php") ?>
</tr>
<tr>
<?php include("css/0033__.php") ?>
<?php include("css/3333__.php") ?>
<?php include("css/6633__.php") ?>
<?php include("css/9933__.php") ?>
<?php include("css/CC33__.php") ?>
<?php include("css/FF33__.php") ?>
</tr>
<tr>
<?php include("css/0066__.php") ?>
<?php include("css/3366__.php") ?>
<?php include("css/6666__.php") ?>
<?php include("css/9966__.php") ?>
<?php include("css/CC66__.php") ?>
<?php include("css/FF66__.php") ?>
</tr>
<tr>
<?php include("css/0099__.php") ?>
<?php include("css/3399__.php") ?>
<?php include("css/6699__.php") ?>
<?php include("css/9999__.php") ?>
<?php include("css/CC99__.php") ?>
<?php include("css/FF99__.php") ?>
</tr>
<tr>
<?php include("css/00CC__.php") ?>
<?php include("css/33CC__.php") ?>
<?php include("css/66CC__.php") ?>
<?php include("css/99CC__.php") ?>
<?php include("css/CCCC__.php") ?>
<?php include("css/FFCC__.php") ?>
</tr>
<tr>
<?php include("css/00FF__.php") ?>
<?php include("css/33FF__.php") ?>
<?php include("css/66FF__.php") ?>
<?php include("css/99FF__.php") ?>
<?php include("css/CCFF__.php") ?>
<?php include("css/FFFF__.php") ?>
</tr>



</table>
<!--TABLE FOR COLORS--=========================================================-->

<br/><br/>
<table summary='pick' border='0'>
<tr>
<td colspan='5' align='center'>
<table summary='pick_this' border='0'>
<tr>
<td>
Color: <input type='text' id='change_box' readonly='readonly'/>
</td>
<td>
<div id='change_div' style='width:20px; height:20px;' class='css'></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
Current Color:
<?php
echo "<input type='text' readonly='readonly' value='#$div_color'/>";
echo "</td><td>";
echo "<div style='background-color:#$div_color; width:20px; height:20px;' class='css'></div>";
?>
</td>

<td width='50px'/>

<td>
Color Picked: <input type='text' id='select_box' name='select_box' readonly='readonly'/>
</td><td>
<div id='select_div' style='width:20px; height:20px;' class='css'></div>
</td>
</tr>
</table>
<br/><br/>
</div>
<?php
echo "<input type='submit' style='font-weight:bold;' value='Save Changes for $div'/>";
?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type='button' onclick="location.href='?id=edit_css'" value='Cancel Changes'/>
</form>
Return current item: NetLink