Parašė Dutis_· 2009 Lap. 15 16:11:19
#1
Sveiki,iskilo tokia problema su sia panele. Siek tiek nesuprantu kaip reikia ja isirasyti. Na,i paneles nukopijuoju visa sita dalyka, ir toliau nesuprantu ka reikia keisti,gal kas galetumete paaiskinti? :)
if (!defined("IN_FUSION")) { die("Access Denied"); }
add_to_head("<style type='text/css'>
/* A few IE bug fixes */
* { margin: 0; padding: 0; }
* html ul ul li a { height: 100%; }
* html ul li a { height: 100%; }
* html ul ul li { margin-bottom: -1px; }
</style>");
add_to_head("<script type='text/javascript' src='".INFUSIONS."accordion_navigation_panel/accordion.js'></script>");
add_to_head("<script type='text/javascript'>
jQuery().ready(function(){
// applying the settings
jQuery('#navigation').Accordion({
active: 'h2.selected',
header: 'h2.head',
alwaysOpen: false,
animated: true,
showSpeed: 400,
hideSpeed: 800
});
});
</script>");
$list_open = false;
$i = 0;
openside($locale['global_001']);
$result = dbquery(
"SELECT tl.link_name, tl.link_url, tl.link_window, tl.link_order FROM ".DB_SITE_LINKS." tl
WHERE ".groupaccess('tl.link_visibility')." AND link_position<='2'
ORDER BY link_order"
);
if (dbrows($result)) {
echo "<div id='navigation'>\n";
while($data = dbarray($result)) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
//echo "<h2 class='".(!$i ? "selected" : "head")."'>".$data['link_name']."</h2>\n";
echo "<h2 class='".(!$i ? "head" : "head")."' style='cursor:pointer'>".$data['link_name']."</h2>\n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
echo "<hr class='side-hr' />\n";
} else {
if (!$list_open) { echo "<ul>\n"; $list_open = true; }
$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." class='side'>".THEME_BULLET." <span>".$data['link_name']."</span></a></li>\n";
} else {
echo "<li><a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".THEME_BULLET." <span>".$data['link_name']."</span></a></li>\n";
}
}
$i++;
}
if ($list_open) { echo "</ul>\n"; }
echo "</div>\n";
} else {
echo $locale['global_002'];
}
closeside();
?>
Redagavo Dutis_· 2009 Lap. 15 16:11:58