$fields = array(); if (preg_match('/\\btitle/i', $_REQUEST['field'])) { $fields[] = 'title'; } if (stristr($_REQUEST['field'], 'subtitle')) { $fields[] = 'subtitle'; } if (stristr($_REQUEST['field'], 'desc')) { $fields[] = 'description'; } if (stristr($_REQUEST['field'], 'cat')) { $fields[] = 'category'; } if ($fields) { $search_str .= '&fields=' . implode(',', $fields); } // Display the results $row = 0; foreach ($Results as $show) { // Print the content echo $show->channel->name . '<br />'; echo '<a href="' . root_url . 'tv/detail/' . $show->chanid . '/' . $show->starttime . '"><b>' . $show->title . '</b></a><br />'; if (strlen($show->subtitle)) { echo $show->subtitle . '<br />'; } // echo $show->description.'<br />'; echo strftime($_SESSION['date_search'], $show->starttime) . '<br />'; echo nice_length($show->length) . '<br /><br />'; $row++; } require_once 'modules/_shared/tmpl/' . tmpl . '/footer.php';
?> </dd> <dt><?php echo t('Last recording'); ?> :</dt> <dd><?php echo date('l F jS, Y', $last); ?> </dd> <dt><?php echo t('Total Time'); ?> :</dt> <dd><?php echo t('$1 wasted', nice_length($time)); ?> </dd> </dl> </div> <table id="top_ten_shows" style="text-align: left;"> <caption>Top <?php echo $_REQUEST['count_dropdown']; ?> recorded shows</caption> <colgroup> <col class="num"></col> <col class="title"></col> <col class="count"></col> <col class="last_recorded"></col>
:</dt> <dd><?php if ($last - $first != 0) { echo nice_length($last - $first); } else { echo "0"; } ?> </dd> <dt><?php echo t('Total Recorded'); ?> :</dt> <dd><?php if (!is_null($time)) { echo nice_length($time); } else { echo "0"; } ?> </dd> <dt><?php echo t('Percent of time spent recording'); ?> :</dt> <dd><?php if ($last - $first != 0 && $tuners > 0) { echo intval($time / ($last - $first) * 100 / $tuners); } else { echo "0"; }
?> :</th> <td><?php echo $program->starstring; ?> </td> </tr><?php } ?> <tr class="x-extras"> <th><?php echo t('Length'); ?> :</th> <td><?php echo nice_length($program->length); ?> </td> </tr><?php if ($program->filename) { ?> <tr class="x-extras"> <th><?php echo t('File Size'); ?> :</th> <td><?php echo nice_filesize($program->filesize); ?> </td> </tr><?php
?> </td> <?php } if ($_SESSION['settings']['screens']['tv']['upcoming recordings']['record date'] == 'on') { ?> <td class="x-recdate" nowrap><?php echo strftime($_SESSION['date_scheduled'], $show->recstartts); ?> </td> <?php } if ($_SESSION['settings']['screens']['tv']['upcoming recordings']['length'] == 'on') { ?> <td class="x-length"><?php echo nice_length($show->length); ?> </td> <?php } if ($show->recstatus == 'Recording') { echo ' <td class="x-commands commands x-recording" colspan="2">', '<a href="', root_url, 'tv/detail/', $show->chanid, '/', $show->starttime, '">', t('Currently Recording: Edit'), "</a></td>\n"; } else { foreach ($commands as $command) { echo ' <td class="x-commands commands">', $command, "</td>\n"; } } ?> </tr><?php $prev_group = $cur_group; $row++;
var id = result.responseJSON['id'].evalJSON(); var st = result.responseJSON['starttime'].evalJSON(); alert("Can't delete "+st+".\nHTTP Error: " + errstr + ' (' + err + ')'); ajax_remove_request(); } // --> </script> <script type="text/javascript"> <?php foreach ($row_count as $count) { echo 'rowcount.push([' . escape($count) . "]);\n"; } foreach ($row_section as $section) { echo 'rowsection.push([' . escape($section) . "]);\n"; } foreach ($Program_Titles as $title => $count) { echo 'titles[' . escape($title) . '] = ' . escape($count) . ";\n"; } foreach ($Groups as $recgroup => $count) { echo 'groups[' . escape($recgroup) . '] = ' . escape($count) . ";\n"; } ?> </script> <?php echo '<div style="padding-right: 75px; text-align: right; float: right; padding-top: 1em;">' . t('$1 programs, using $2 ($3) out of $4 ($5 free).', '<span id="programcount">' . t($Total_Programs) . '</span>', '<span id="diskused">' . nice_filesize($Total_Used) . '</span>', '<span id="totaltime">' . nice_length($Total_Time) . '</span>', '<span id="disksize">' . nice_filesize(disk_size) . '</span>', '<span id="diskfree">' . nice_filesize(disk_size - disk_used) . '</span>') . '</div>'; echo '<div id="feed_buttons"><a href="rss' . $_SERVER['REQUEST_URI'] . '"><img src="' . skin_url . '/img/rss2.0.gif"></a></div>'; // Print the page footer require 'modules/_shared/tmpl/' . tmpl . '/footer.php';
function metadata() { global $Category_String; return array('intid' => $this->intid, 'img' => '<img width="' . $this->cover_scaled_width . '" height="' . $this->cover_scaled_height . '" alt="' . t('Missing Cover') . '"' . ($_SESSION["show_video_covers"] && file_exists($this->cover_url) ? ' src="data/video_covers/' . basename($this->cover_file) . '"' : '') . '>', 'title' => '<a href="' . $this->url . '">' . $this->title . '</a>', 'subtitle' => $this->subtitle, 'season' => $this->season, 'episode' => $this->episode, 'playtime' => nice_length($this->length * 60), 'category' => strlen($Category_String[$this->category]) ? $Category_String[$this->category] : t('Uncategorized'), 'imdb' => $this->inetref != '00000000' ? '<a href="http://www.imdb.com/Title?' . $this->inetref . '">' . $this->inetref . '</a>' : '', 'plot' => $this->plot, 'rating' => $this->rating, 'director' => $this->director, 'inetref' => $this->inetref, 'year' => $this->year, 'userrating' => $this->userrating, 'length' => $this->length, 'showlevel' => $this->showlevel); }
alt="<?php echo t('Missing Cover'); ?> "></div> <div id="<?php echo $video->intid; ?> -category"> <?php echo $Category_String[$video->category]; ?> </div> <div id="<?php echo $video->intid; ?> _playtime"> <?php echo nice_length($video->length * 60); ?> </div> <div id="<?php echo $video->intid; ?> _imdb"> <?php if ($video->inetref != '00000000') { ?> <a href="<?php echo makeImdbWebUrl($video->inetref); ?> "><?php echo $video->inetref; ?> </a><?php
function print_shows() { global $this_channel; // No search was performed, just return if (!is_array($this_channel->programs)) { return; } // Display the results $row = 0; foreach ($this_channel->programs as $show) { if (strlen($show->title) <= 0 && strlen($show->subtitle) <= 0) { continue; } // Print the content ?> <?php echo strftime($_SESSION['time_format'], $show->starttime); ?> - <?php echo strftime($_SESSION['time_format'], $show->endtime); ?> <br /> <?php if (strlen($show->subtitle) <= 0) { echo '<b><a href="tv/detail/' . $show->chanid . '/' . $show->starttime . '">' . $show->title . '</a></b><br />'; } else { echo '<a href="tv/detail/' . $show->chanid . '/' . $show->starttime . '">' . $show->title . '</a><br />'; } if (strlen($show->subtitle)) { echo '<b>' . $show->subtitle . '</b><br />'; } // if(strlen($show->description)) // echo $show->description.'<br />'; echo nice_length($show->length) . '<br /><br />'; $row++; } }
?> "> <img src="<?php echo skin_url; ?> /img/video_sm.png"><?php echo t('Direct Download'); ?> </a></li> </ul> </td> <?php } ?> </tr><?php $prev_group = $cur_group; // Keep track of how many shows are visible in each section $row_count[$section]++; // Keep track of which shows are in which section $row_section[$row] = $section; // Increment row last $row++; } ?> </table> <?php echo '<p align="right" style="padding-right: 75px">' . t('$1 programs, using $2 ($3) out of $4 ($5 free).', '<span id="programcount">' . t($Total_Programs) . '</span>', '<span id="diskused">' . nice_filesize($Total_Used) . '</span>', '<span id="totaltime">' . nice_length($Total_Time) . '</span>', '<span id="disksize">' . nice_filesize(disk_size) . '</span>', '<span id="diskfree">' . nice_filesize(disk_size - disk_used) . '</span>') . '</p>'; // Print the page footer require 'modules/_shared/tmpl/' . tmpl . '/footer.php';
$row = 0; foreach ($All_Shows as $show) { if (strlen($show->subtitle) > 1) { echo $show->title . "<br />"; } else { echo "<b>" . $show->title . "</b><br />"; } echo $show->channame . "<br />"; if (strlen($show->subtitle) > 1) { echo "<b>" . $show->subtitle . "</b><br />"; } if (strlen($show->description) > 1) { echo $show->description . "<br />"; } echo date('D, M j, Y', $show->starttime) . ' (' . strftime($_SESSION['time_format'], $show->starttime) . ")<br />"; echo nice_length($show->length) . " " . nice_filesize($show->filesize) . "<br />"; if ($show->endtime > time()) { ?> <font color="#FF0000">currently recording - </font> <?php } ?> <b><a id="delete_<?php echo $row; ?> " href="tv/recorded?delete=yes&chanid=<?php echo $show->chanid; ?> &starttime=<?php echo $show->starttime; ?>