Viewing File: /people/testlab/www/testlab.com.pl/panel/css.php

<?
include('../config.php');
if (!islogin()) die();
include('../inc/db.php');
$db = new DBConnect();


echo "<table><tr><td><img src=img/css.png></td><td><h3>Edytor CSS</h3></td></tr></table>";

$sql = "select * from `ustawienia` where typ='css';";
$result = $db->query($sql);
if (!$row=$db->fetchrow()) 
{
$text="
body {

}

#header {

}

#footer {

}

#footer_left {
}

#footer_right {
}


#page {

}

#menu {

}

#main {

}

#sddm
{              margin: 0;
	padding: 0;
	z-index: 1000;
                font-family: verdana;
	font-size:12px;
	}

#sddm li
{	
	float: left;
               display:block;
	}

#sddm li a,a:visited
{	
    display: block;
	text-align: center;
	padding: 4px 12px;
	color:#ffffff;
	text-decoration: none;
}

#sddm li a:hover
{	
	text-decoration: underline;
}

#sddm div
{	position: absolute;
                visibility: hidden;
	margin-top:0px;
	margin-left:-40px;
	padding: 0;
	background: #07b4ff;
	border: 1px solid #ffffff
                }

	#sddm div a
	{	position: relative;
		display: block;
		margin: 0;
		padding: 5px 10px;
		width: auto;
		white-space: nowrap;
		text-align: left;
		text-decoration: none;
		background: #07b4ff;
		color: #ffffff;
		font-size:11px;
	font-weight:bold;
	
		}

	#sddm div a:hover
	{	background: #ffffff;
		color: #07b4ff}


";
$sql = "insert into `ustawienia` (typ,text) values ('css','$text');";
$result = $db->query($sql);

 //echo $sql;
}
else
{
$text = $row['text'];
}

echo "<center>
<textarea style='width:500px;height:470px;' id='css_edytor' >$text</textarea>
<table width=500><tr><td id=error></td><td align=right><input type=button class=button value='Zapisz zmiany' onclick=zapisz_css()></td></tr></table>
</center>
";

?>
Back to Directory File Manager