00001 <?php
00002
00003 if ($_SESSION["show_popup_info"])
00004 $program_id_counter++;
00005
00006 $percent = intVal($timeslots_used * 96 / num_time_slots);
00007 ?>
00008 <td class="small <?php echo $program->css_class; ?>" colspan="<?php echo $timeslots_used ?>" style="width: <?php echo $percent; ?>%" valign="top"><?php
00009
00010 if ($program->hdtv && $percent > 5)
00011 echo '<span class="hdtv_icon">HD</span>';
00012
00013 echo '<a id = "program-'.$program->chanid.'-'.$program->starttime.'"
00014 class = "program"
00015 onmouseover = "currently_hovered_id = this.id; details_delay_timer_id = setTimeout(function () {load_tool_tip(\'program-'.$program->chanid.'-'.$program->starttime.'\',\''.$program->chanid.'\',\''.$program->starttime.'\');}, 250);"
00016 onmouseout = "currently_hovered_id = null; clearTimeout( details_delay_timer_id ); details_delay_timer_id = null;"
00017 href = "'.root.'tv/detail/'.$program->chanid.'/'.$program->starttime.'">';
00018 // Is this program 'Already in Progress'?
00019 if ($program->starttime < $GLOBALS['list_starttime'])
00020 echo '<img src="'.skin_url.'img/left_sm.png" class="left_arrow" alt="'.t('left').'">';
00021 // Does this program 'Continue'?
00022 if ($program->endtime > $GLOBALS['list_endtime'])
00023 echo '<img src="'.skin_url.'img/right_sm.png" class="right_arrow" alt="'.t('right').'">';
00024 if ($percent > 5) {
00025 echo $program->title;
00026 if (strlen($program->subtitle) > 0) {
00027 if ($percent > 8)
00028 echo ":<br>$program->subtitle";
00029 else
00030 echo ': ...';
00031 }
00032 }
00033 else
00034 echo '...';
00035 // Finish off the link
00036 echo '</a>';
00037
00038 // Print some additional information for movies
00039 if (strcasecmp($program->category_type, t('movie')) == 0) {
00040 $parens = '';
00041 if ($program->airdate > 0)
00042 $parens = sprintf('%4d', $program->airdate);
00043 if (strlen($program->rating) > 0) {
00044 if ($parens)
00045 $parens .= ", ";
00046 $parens .= "<i>$program->rating</i>";
00047 }
00048 if (strlen($program->starstring) > 0) {
00049 if ($parens)
00050 $parens .= ", ";
00051 $parens .= $program->starstring;
00052 }
00053 if ($parens)
00054 echo " ($parens)";
00055 }
00056 $parens = '';
00057 // Finally, print some other information
00058 if ($program->previouslyshown)
00059 $parens = '<i>'.t('Repeat').'</i>';
00060 if ($parens)
00061 echo "<BR>($parens)";
00062
00063 ?></td>