summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php27
-rw-r--r--js/istreamdev.js16
2 files changed, 39 insertions, 4 deletions
diff --git a/index.php b/index.php
index ffa4589..71d2065 100644
--- a/index.php
+++ b/index.php
@@ -252,6 +252,33 @@ include ('bin/auth.php');
<ul class="edgetoedge" id="ul_epglist">
</ul>
</div>
+
+ <div id="epgdetails">
+ <div class="toolbar">
+ <a href="#" class="back">Back</a>
+ <a href="#home" id="home_but" class="button">Home</a>
+ <h1><img class="menuicon" src="img/tv.png" />Channel</h1>
+ </div>
+ <center><ul class="thumb" style="width:90px"><img class="thumbnail" id="thumbnail" src="" onerror="this.src='img/nologoTV.png'" /></ul></center>
+ <ul class="streaminfo">
+ <li><span class="name_now"></span>
+ <span class="epgtime_now"></span>
+ <span class="desc_now"></span></li>
+ </ul>
+ <center>
+ <br>
+ <span class="recButton"><a id="rec" href="#" class="cube">Rec.</a></span>
+ <br><br>
+ </center>
+ <div rel="dataholder" style="visibility:hidden">
+ <span rel="number"></span>
+ <span rel="channame"></span>
+ <span rel="date"></span>
+ <span rel="stime"></span>
+ <span rel="etime"></span>
+ </div>
+ </div>
+
</div>
</body>
</html> \ No newline at end of file
diff --git a/js/istreamdev.js b/js/istreamdev.js
index bf89fbc..c9668ff 100644
--- a/js/istreamdev.js
+++ b/js/istreamdev.js
@@ -1063,18 +1063,26 @@ var dataString = 'action=getEpg&channel=' + channel + '&time=' + time + '&day='
$('#jqt').data("epg",data);
if ( data.category.length > 1 ) {
type = 'cat';
- parse_epg(data,0,type);
+ parse_epg(data,0,type,day);
} else {
type = 'chan';
- parse_epg(data,channel,type);
+ parse_epg(data,channel,type,day);
}
$('#epglist li[rel="toggle"]').hide();
});
}
-function parse_epg(data,selectedvalue,type){
+function parse_epg(data,selectedvalue,type,day){
$('#epglist #epg_selector').html('');
$('#epglist #ul_epglist').html('');
+ date = new Date();
+ var date_milli=date.getTime();
+ date.setTime(date_milli+(86400000*day));
+ var date_year = date.getFullYear();
+ var date_month = date.getMonth()+1;
+ var date_day = date.getDate();
+ var epgdate = date_year + "-" + date_month + "-" + date_day;
+ $('#epglist #ul_epglist').append('<li rel="epgdate" class="sep">' + epgdate + '</li>');
if ( data.category.length > 1 )
{
$('#epglist #epg_selector').append('<select id="epglist_cat"></select>');
@@ -1129,7 +1137,7 @@ function parse_epg(data,selectedvalue,type){
epgdata = $('#jqt').data("epg");
selectedvalue = $("#epglist #epg_selector select option:selected").val();
if ($("#epglist #epg_selector select").attr("id") == 'epglist_cat') {
- parse_epg(epgdata,selectedvalue,'cat');
+ parse_epg(epgdata,selectedvalue,'cat',day);
} else {
time = $('#epgform #epg_time').val();
day = $('#epgform select##epg_day').val();