Parašė Vilme· 2008 Vas. 24 13:02:49
#1
ka reik istrynti kad dingtu mygtukas ....
kodas:
openside("Navigacija2");
//@ Sukurta s1lenc3//
$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;
}
#mygtukas ul {
list-style: none;
margin: 0px;
padding: 0px;
border: 0px;
}
img {
border: none;
}
#mygtukas li {
height:24px;
margin:1px;
border: 1px solid #606060;
}
#mygtukas li a {
display: block;
padding: 7px 2px 3px 25px;
background: url(http://www.part.lt/img/7a8ccdcb14d75a5bce4019016832acc5146.jpg);
color: #fff;im
text-decoration: none;
width: 100%;
}
html>body #mygtukas li a {
width: auto;
height:auto;
font-size:11px;
font-family: sans-serif;
font-weight: bold;
color: #ffffff;
}
#mygtukas li a:hover {
background: url(http://www.part.lt/img/0acfb5bec176a239ced472e504eee05d453.jpg);
padding: 7px 2px 3px 25px;
font-size:11px;
font-family: sans-serif;
font-weight: bold;
color: #ffffff;
}
</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();