2012-05-19 21:44:42 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
2012-05-21 20:23:41 +00:00
|
|
|
source /mod/webif/lib/setup
|
|
|
|
require settings.class
|
|
|
|
if {[[settings] notoolbar] eq "0"} {
|
|
|
|
|
|
|
|
require plugin system.class
|
2012-05-19 21:44:42 +00:00
|
|
|
|
|
|
|
if {[[settings] epg_style] eq "grid"} {
|
|
|
|
set epglink "/cgi-bin/xepg.jim"
|
|
|
|
} else {
|
|
|
|
set epglink "/epg.shtml"
|
|
|
|
}
|
|
|
|
|
2012-05-20 14:10:37 +00:00
|
|
|
proc tb {icon txt link {height 50} {width 0}} {
|
|
|
|
if {$width > 0} {
|
|
|
|
set width " width=$width"
|
|
|
|
} else {
|
|
|
|
set width ""
|
|
|
|
}
|
2012-05-19 21:44:42 +00:00
|
|
|
puts -nonewline "<span class=toolbarcell>
|
|
|
|
<a href=\"$link\">
|
2012-05-20 14:10:37 +00:00
|
|
|
<img src=\"$icon\" height=${height}${width} border=0>
|
2012-05-19 21:44:42 +00:00
|
|
|
<br>
|
|
|
|
$txt
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
"
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
2012-05-21 20:23:41 +00:00
|
|
|
<!-- start of toolbar -->
|
|
|
|
|
2012-05-20 14:10:37 +00:00
|
|
|
<div class=toolbarouter>
|
2012-05-30 19:51:20 +00:00
|
|
|
<div id=toolbar class=toolbar style="display: none">
|
2012-05-19 21:44:42 +00:00
|
|
|
}
|
|
|
|
|
2012-10-01 19:53:02 +00:00
|
|
|
if {[file exists "/mod/bin/ir"]} {
|
|
|
|
tb "/img/remote.png" "Remote" "/remote/remote.jim"
|
|
|
|
}
|
2012-05-19 21:46:45 +00:00
|
|
|
tb "/images/323_1_10_Menu_Video.png" "Browse" "/cgi-bin/browse.jim"
|
2012-05-19 21:44:42 +00:00
|
|
|
tb "/images/321_1_00_Menu_CHList.png" "Schedule" "/sched/sched.jim"
|
|
|
|
tb "/images/328_1_26_Menu_TV_Guide.png" "EPG" $epglink
|
|
|
|
tb "/img/spanner.png" "Services" "/services.shtml"
|
2012-08-04 00:29:57 +00:00
|
|
|
tb "/img/packages.png" "Packages" "/pkg/index.shtml"
|
2012-05-19 21:44:42 +00:00
|
|
|
tb "/images/326_1_00_Menu_Settings.png" "Settings" "/cgi-bin/settings.jim"
|
|
|
|
tb "/img/diagnostics.png" "Diag" "/diag/diag.jim"
|
|
|
|
eval_plugins toolbar
|
|
|
|
|
|
|
|
puts {
|
2012-05-20 15:05:48 +00:00
|
|
|
<span class=cleft id=tbstatus></span>
|
2012-05-19 21:44:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type=text/javascript>
|
2012-05-20 15:05:48 +00:00
|
|
|
var lastupd = 0;
|
2012-05-20 14:10:37 +00:00
|
|
|
if (window.location.pathname != '/' &&
|
|
|
|
window.location.pathname != '/index.shtml')
|
2012-05-21 20:23:41 +00:00
|
|
|
{
|
|
|
|
var down = function() {
|
2012-05-20 15:05:48 +00:00
|
|
|
$('#toolbar').stop(true, true).delay(200).slideDown(400,
|
|
|
|
function() {
|
|
|
|
if (+new Date() - lastupd > 5000)
|
|
|
|
{
|
|
|
|
lastupd = +new Date();
|
|
|
|
$('#tbstatus')
|
|
|
|
.empty()
|
|
|
|
.html('<img src=/img/loading.gif> ' +
|
|
|
|
'Updating...')
|
|
|
|
.load('/cgi-bin/status.jim');
|
|
|
|
}
|
|
|
|
});
|
2012-05-21 20:23:41 +00:00
|
|
|
};
|
|
|
|
var up = function() {
|
2012-05-19 21:44:42 +00:00
|
|
|
$('#toolbar').stop(true, true).delay(200).slideUp();
|
2012-05-21 20:23:41 +00:00
|
|
|
};
|
|
|
|
$('#topbar, #toolbar').hover(down, up);
|
|
|
|
}
|
2012-05-20 15:05:48 +00:00
|
|
|
|
|
|
|
$('span.toolbarcell').hover(
|
|
|
|
function() {
|
|
|
|
$(this).addClass('tbhover');
|
|
|
|
}, function() {
|
|
|
|
$(this).removeClass('tbhover');
|
|
|
|
});
|
|
|
|
|
2012-05-19 21:44:42 +00:00
|
|
|
</script>
|
2012-05-21 20:23:41 +00:00
|
|
|
|
|
|
|
<!-- end of toolbar -->
|
|
|
|
|
2012-05-19 21:44:42 +00:00
|
|
|
}
|
|
|
|
|
2012-05-21 20:23:41 +00:00
|
|
|
}
|