VOD Display

AdvancedShowSearch(array(
‘ChannelID’ => 3,
‘searchString’ => ‘Selectmen’,
‘eventDate’ => date(“Y-m-d”) . “T00:00:00”,
‘dateComparator’ => ‘<', 'restrictToCategoryID' => 0,
‘restrictToProducerID’ => 0,
‘restrictToProjectID’ => 0,
‘displayStreamingShowsOnly’ => 1,
‘searchOtherSites’ => 0,));

if(!isset($result->AdvancedShowSearchResult->SiteSearchResult->Shows->ShowInfo)) {
$vods = array();
} else {
$vods = is_array($result->AdvancedShowSearchResult->SiteSearchResult->Shows->ShowInfo) ?
$result->AdvancedShowSearchResult->SiteSearchResult->Shows->ShowInfo :
array($result->AdvancedShowSearchResult->SiteSearchResult->Shows->ShowInfo);
}

if(count($vods) == ‘0’) {
//There is probably something wrong if this shows up.
echo “There are now Shows currently available for on demand viewing.”;
} else {
// Prints out a table with time and show title with link to show detial page
echo “

\n”;
echo “

\n”;

foreach($vods as $vod) {
echo “

\n”;
echo “

\n”;
echo “

Program Title Link
” . $vod->Title . “ (function ($) { $(document).ready(function () { $('ul.gabfire_tabs li').click(function(){ var tab_id = $(this).attr('data-tab'); $('ul.gabfire_tabs li').removeClass('current_tab'); $('.gabfire_tab-content').removeClass('current_tab'); $(this).addClass('current_tab'); $("#"+tab_id).addClass('current_tab'); }); }); })(jQuery);