finish epg popup and cross links. Improve status.

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif@168 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg
2011-06-09 00:42:26 +00:00
parent 5fb2b59a3a
commit 57d4b60a8d
11 changed files with 759 additions and 1121 deletions

View File

@@ -1,7 +1,7 @@
if {[expr ! [exists -proc cat ]]} {
proc cat {file} {
if {[catch {set fp [open $file r]]} { return }
if {[catch {set fp [open $file r]]}} { return }
puts [read $fp]
close $fp
}

View File

@@ -104,21 +104,21 @@ epg method type_icon {} {
epg method icon_set {{height 0}} {
if {$height > 0} { set height "height=$height" } else { set height "" }
set icon [$self type_icon]
set str ""
set set ""
if {$icon != ""} {
append str "<img src=$icon $height
lappend set "<img src=$icon $height
alt=\"[$self get content_type]\"
title=\"[$self get content_type]\">"
}
if {[$self get rec_crid] != ""} {
append str \
lappend set \
"<img src=/images/178_1_26_Icon_Recommend.png $height>"
}
if {[$self get series_crid] != ""} {
append str \
lappend set \
"<img src=/images/178_1_00_Icon_Serise.png $height>"
}
return $str
return $set
}
epg method cell {} {
@@ -129,7 +129,7 @@ epg method cell {} {
puts "<td nowrap valign=top title=\"$text\">"
puts [$self icon_set 14]
puts [join [$self icon_set 14] ""]
puts "
<a class=event href=/cgi-bin/epg_info.jim?service=[$self get service_id]&event=[$self get event_id]>

View File

@@ -0,0 +1,28 @@
puts {
<div id=dialogue></div>
<script type=text/javascript>
$(document).ready(function() {
var $dialog = $('#dialogue').dialog({
title: "Programme Details",
modal: false,
autoOpen: false,
height: 500,
width: 700,
show: 'scale',
hide: 'fade',
draggable: true,
resizable: true,
buttons: { "Close":
function() {$(this).dialog('close');}},
close: function(e,u) { $('#dialogue').empty().html('<img src="/img/loading.gif" alt="loading">'); }
});
$('a.event').click(function(e) {
e.preventDefault();
var url = $(this).attr('href');
$('#dialogue').load(url + '&bare=1');
$dialog.dialog('open');
});
});
</script>
}