Parašė KestukaZ· 2007 Rugs. 1 13:09:07
#8
openside("Navigacija");
//@ muzonas.xz.lt//
$result = dbquery("SELECT * FROM ".$db_prefix."site_links WHERE link_position<='2' ORDER BY link_order");
echo"
<style type='text/css'>
#mygtukas {
width: 160px;
color: #333;
background-color: #000;
}
#mygtukas ul {
list-style: none;
margin: 0px;
padding: 0px;
border: 0px;
}
img {
border: none;
}
#mygtukas li {
height:24px;
}
#mygtukas li a {
display: block;
padding: 5px 5px 5px 15px;
background: url(http://img338.imageshack.us/img338/4609/menu2dc0.gif);
color: #fff;
text-decoration: none;
width: 100%;
}
html>body #mygtukas li a {
width: auto;
height:auto;
font-size:12px;
font-family: tahoma;
font-weight: bold;
color: #fff;
}
#mygtukas li a:hover {
background: url(http://img405.imageshack.us/img405/6743/menu2gi8.gif);
padding: 5px 5px 5px 17px;
font-size:12px;
font-family: tahoma;
font-weight: bold;
color: #fff;
}
</style>
";
echo "<div id='mygtukas'>
<ul>";
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<li><a href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a></li>";
} else {
echo "<li><a href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a></li>";
}
}
}
}
echo "</ul>
</div>";
closeside();
B)
Redagavo Fanio· 2007 Rugs. 1 13:09:56