From 174f7c2da194fdf7aecd60c5f984449c5b0c66d2 Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 25 Mar 2010 00:35:06 +0100 Subject: show epg list --- js/istreamdev.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 3cd0c50..3b6b6fc 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -1024,13 +1024,19 @@ var dayname = new Array( "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ); } function get_epg(channel,time,day,programs) { +$('#epglist #ul_epglist').html(''); var dataString = 'action=getEpg&channel=' + channel + '&time=' + time + '&day=' + day + '&programs=' + programs; - $.getJSON("bin/backend.php", - dataString, - function(data) { + $.getJSON("bin/backend.php", + dataString, + function(data) { $.each(data.channel, function(i,channel){ - //TODO + $('#epglist #ul_epglist').append('
  • ' + channel.name + '
  • '); + $.each(channel.epg, function(j,epg){ + $('#epglist #ul_epglist').append('
  • ' + epg.time + '' + epg.title + '
  • '); + }); }); + json_complete('#epglist','cube'); + }); } // [/EPG SECTION] -- cgit v1.2.3