GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/admin/
Upload File :
Current File : /home/serb/www/admin/change_color.php

<? 
include("sessionout.php");
	include("../lib/globals.php");
	include("../lib/common.php");
	//$action=$HTTP_GET_VARS["action"];
	//if($action=="change")
	//{
?>
<?php
	if($_POST)
	{
		$color_main=$_POST['themecolor'];
		$theme2color=$_POST['theme2color'];
		$colortext=$_POST['colortext'];
		$color_link=$_POST['linkcolor'];
		$color_hover=$_POST['hovercolor'];
		$color_top=$_POST['topcolor'];
		$color_menu_text=$_POST['color_menu_text'];
		$color_menu_text_hover=$_POST['color_menu_text_hover'];
		$color_menu=$_POST['color_menu'];
		$color_menu_hover=$_POST['color_menu_hover'];
		$color_button=$_POST['color_button'];
		$color_drop=$_POST['color_drop'];
		$upd="UPDATE color SET color_main='$color_main',color_main2='$theme2color', color_link='$color_link', color_hover='$color_hover', color_menu='$color_menu',color_menu_hover='$color_menu_hover',color_menu_text='$color_menu_text', color_menu_hover_text='$color_menu_text_hover',color_text='$colortext',color_button='$color_button',color_drop='$color_drop' WHERE color_id='1'";
		execute_query($upd);
	}
	$sql="SELECT * FROM color WHERE color_id='1'";
	$res=execute_query($sql);
	$row=mysql_fetch_array($res);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: swingers.it | admin  ::</title>
<link href="../style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	var imageUrl="img/color.png"; // optionally, you can change path for images.
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="../js/izzyColor.js"></script>
</head>
<body>
<table width="790" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#00283e">
  <tr>
    <td align="left" valign="top"><table width="790" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" valign="top" class="td1"><table width="790" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="343" align="left" valign="top"></td>
            <td width="447" align="left" valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td height="38" align="right" valign="middle" class="topnav">&nbsp; </td>
            <td align="right" valign="top" class="footer-link">Administrator Control Panel&nbsp;&nbsp;&nbsp;&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td align="left" valign="top" class="td2">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="top" class="td3"><table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td align="center" valign="top" class="td4"><table width="768" border="0" cellspacing="0" cellpadding="0"><tr>
     <td height="6"></td>
     </tr>
          <tr>
            <td align="center" valign="top" class="td9"><table width="751" border="0" align="center" class="bordermain">
              <tr>
                <td><? include("menu.php");?></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="491" border="0" align="center" cellpadding="0" cellspacing="1" class="bordermain">
                  <tr>
                    <td height="24" colspan="2" align="center" class="tblHeader2">&nbsp;Change Color Scheme of the site</td>
                  </tr>
                  <tr class="mouseOver">
                    <td width="200">&nbsp;</td>
                    <td width="197">&nbsp;</td>
                  </tr>
                  <form action="<?=$_SERVER['PHP_SELF'] ?>" method="post" name="frm" id="frm" onsubmit="return validate();">
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Main Theme Color:</b></td>
                      <td>&nbsp;<input type="text" name="themecolor" value="<?=$row['color_main'] ?>" class="izzyColor" id="color1"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Secondary Color:</b></td>
                      <td>&nbsp;<input type="text" name="theme2color" value="<?=$row['color_main2'] ?>" class="izzyColor" id="color7"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Text Color:</b></td>
                      <td>&nbsp;<input type="text" name="colortext" value="<?=$row['color_text'] ?>" class="izzyColor" id="color8"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Menu Color:</b></td>
                      <td>&nbsp;<input type="text" name="color_menu" value="<?=$row['color_menu'] ?>" class="izzyColor" id="color4"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Menu Hover Color:</b></td>
                      <td>&nbsp;<input type="text" name="color_menu_hover" value="<?=$row['color_menu_hover'] ?>" class="izzyColor" id="color6"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Menu Text Color:</b></td>
                      <td>&nbsp;<input type="text" name="color_menu_text" value="<?=$row['color_menu_text'] ?>" class="izzyColor" id="color5"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Menu Hover Text Color:</b></td>
                      <td>&nbsp;<input type="text" name="color_menu_text_hover" value="<?=$row['color_menu_hover_text'] ?>" class="izzyColor" id="color15"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Link Color:</b></td>
                      <td>&nbsp;<input type="text" name="linkcolor" value="<?=$row['color_link'] ?>" class="izzyColor" id="color2"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Link Hover Color:</b></td>
                      <td>&nbsp;<input type="text" name="hovercolor" value="<?=$row['color_hover'] ?>" class="izzyColor" id="color3"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Button Color:</b></td>
                      <td>&nbsp;<input type="text" name="color_button" value="<?=$row['color_button'] ?>" class="izzyColor" id="color13"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td height="24" align="left" class="gtext"><b>&nbsp;&nbsp;Dropdown Text Color:</b></td>
                      <td>&nbsp;<input type="text" name="color_drop" value="<?=$row['color_drop'] ?>" class="izzyColor" id="color14"></td>
                    </tr>
                    <tr  class="alterClass2">
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr  class="alterClass2">
                      <td align="right"><input name="Submit" type="submit" class="butn3" value="Change Color" />
                      </td>
                      <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          <!--<input name="Submit2" type="reset" class="butn3" value="Reset" onclick="setFocus('frm','old_p');" />--></td>
                    </tr>
                  </form>
                  <tr  class="mouseOver">
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td width="296">&nbsp;</td>
                </tr>
              
            </table></td>
          </tr>
          <tr>
            <td width="232" align="center" valign="top" class="td5">&nbsp;</td>
            </tr><tr>
     <td height="6"></td>
     </tr>
        </table></td>
      </tr>
      
    </table></td>
  </tr>
  <tr>
     <td height="6"></td>
     </tr>
  	 <tr>
     <td width="232" align="center" valign="top" class="td2">&nbsp;</td>
     </tr>
  <tr>
    <td align="center" valign="top"><table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" valign="top" class="footer-bac">
		<p style="text-align:center; padding:35px 0 5px 0px;"><a href="main.php" class="footer-link">Administrator Control Panel </a><a href="#" class="footer-link"></a></p>
		<p class="footer-text1" style="text-align:center;">swingers.it</p>
		</td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

./BlackJoker Mini Shell 1.0