Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Panelės spalva

Parašė Gedi Minas· 2007 Lap. 24 00:11:36
#6

openside("Navigacija");
$result = dbquery("SELECT * FROM ".$db_prefix."site_links WHERE link_position<='2' ORDER BY link_order");
echo"

<style type='text/css'>
#mygtukas {
width: 165px;
color: #00ccff;
}
#mygtukas ul {
list-style: none;
margin: 0px;
padding: 0px;
border: 0px;
}
img {
border: none;
}
#mygtukas li {
height: 24px;
margin:1px;
border: 1px solid #003399;
}
#mygtukas li a {
display: block;
padding: 5px 5px 6px 15px;
background: url(http://www.musica.xz.lt/images/Untitled-2.gif);
color: #0099ff;
text-decoration: none;
width: 100%;
}
html>body #mygtukas li a {
width: auto;
height:auto;
font-size:11px;
font-family: verdana;
font-weight: bold;
color: #003399;
}
#mygtukas li a:hover {
background: url(http://www.musica.xz.lt/images/1.gif);
padding: 5px 5px 6px 15px;
font-size:11px;
font-family: verdana;
font-weight: bold;
color: #ff9900;
}

</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();




Pažymėjau vietas, jei gerai supratau ko nori.