diff options
author | Alib <aliboba@free.fr> | 2010-03-25 00:35:06 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-25 00:35:06 +0100 |
commit | 174f7c2da194fdf7aecd60c5f984449c5b0c66d2 (patch) | |
tree | 7b6402ba8250da594e3df61f7c9e2642a04736f3 /js | |
parent | e9463f2507065cd341b90d401b26d01203c522ed (diff) | |
download | istreamdev-174f7c2da194fdf7aecd60c5f984449c5b0c66d2.tar.gz istreamdev-174f7c2da194fdf7aecd60c5f984449c5b0c66d2.tar.bz2 |
show epg list
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 14 |
1 files changed, 10 insertions, 4 deletions
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('<li class="sep">' + channel.name + '</li>');
+ $.each(channel.epg, function(j,epg){
+ $('#epglist #ul_epglist').append('<li><a href="#"><span class="epgtime">' + epg.time + '</span><span class="epgname">' + epg.title + '</span></a></li>');
+ });
});
+ json_complete('#epglist','cube');
+ });
}
// [/EPG SECTION]
|