CC-1990: Widget to display schedule and "Now Playing" on any website
-First working version, needs to be called using: <script> $(document).ready(function() { $("#headerLiveHolder").airtimeLiveInfo(); $("#onAirToday").airtimeShowSchedule(); }); </script>
This commit is contained in:
parent
278938f746
commit
e92be3c186
4 changed files with 146 additions and 83 deletions
|
@ -889,7 +889,7 @@ class Show_DAL {
|
|||
return $rows;
|
||||
}
|
||||
|
||||
public static function GetNextShow($timeNow)
|
||||
public static function GetNextShows($timeNow, $limit)
|
||||
{
|
||||
global $CC_CONFIG, $CC_DBC;
|
||||
|
||||
|
@ -899,7 +899,7 @@ class Show_DAL {
|
|||
." AND si.starts >= TIMESTAMP '$timeNow'"
|
||||
." AND si.starts < TIMESTAMP '$timeNow' + INTERVAL '48 hours'"
|
||||
." ORDER BY si.starts"
|
||||
." LIMIT 1";
|
||||
." LIMIT $limit";
|
||||
|
||||
$rows = $CC_DBC->GetAll($sql);
|
||||
return $rows;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue