PageRenderTime 66ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/tv/tmpl/wap/detail.php

https://github.com/jjohns63/mythweb
PHP | 121 lines | 93 code | 9 blank | 19 comment | 22 complexity | 6eab4e01923ceb079223ba54ac29a807 MD5 | raw file
  1. <?php
  2. /**
  3. * Program detail
  4. *
  5. * @url $URL$
  6. * @date $Date$
  7. * @version $Revision$
  8. * @author $Author$
  9. * @license GPL
  10. *
  11. * @package MythWeb
  12. *
  13. /**/
  14. // Print the main page header
  15. $page_title = "Prog Detail";
  16. require_once 'modules/_shared/tmpl/'.tmpl.'/header.php';
  17. // Print the page contents
  18. ?>
  19. <a href="<?php echo root_url ?>tv/channel/<?php echo $this_channel->chanid ?>" >
  20. <?php echo $_SESSION["prefer_channum"] ? $this_channel->channum : $this_channel->callsign ?> &nbsp;
  21. <?php echo $_SESSION["prefer_channum"] ? $this_channel->callsign : $this_channel->channum ?></a><br />
  22. <?php
  23. if (strlen($program->subtitle))
  24. echo $program->title;
  25. else
  26. echo "<b>".$program->title."</b>";
  27. ?><BR>
  28. <?php echo date('D m/d/y', $program->starttime) ?><br />
  29. <?php echo strftime($_SESSION['time_format'], $program->starttime) ?> to <?php echo strftime($_SESSION['time_format'], $program->endtime) ?> (<?php echo (int)($program->length/60) ?> minutes)<BR>
  30. <?php
  31. if ($program->previouslyshown)
  32. echo '(Rerun) ';
  33. // if ($program->category_type == 'movie')
  34. // echo " (<a href='http://www.themoviedb.org/search/movies?search%5btext%5d=".urlencode($schedule->title).echo "'>".echo t('Search $1', 'themoviedb').echo "</a>";
  35. // else
  36. // echo " (<a href='http://www.thetvdb.com/?string=".urlencode($schedule->title).echo "&searchseriesid=&tab=listseries&function=Search'>".echo t('Search $1', 'TheTVDB').echo "</a>)";
  37. ?>
  38. <?php if (strlen($program->subtitle)) { ?>
  39. Episode: <b><?php echo $program->subtitle ?></b><br />
  40. <?php }
  41. if (strlen($program->description)) { ?>
  42. <?php echo t('Description').": ".$program->description ?><br />
  43. <?php } ?>
  44. <?php if (strlen($program->category)) { ?>
  45. <?php echo t('Category').": ".$program->category ?><br />
  46. <?php }
  47. if (strlen($program->airdate)) { ?>
  48. Orig. Airdate: <?php echo $program->airdate ?><br />
  49. <?php }
  50. if (strlen($program->rating)) { ?>
  51. <?php echo strlen($program->rater) > 0 ? "$program->rater " : '' ?>Rating: <?php echo $program->rating ?><br />
  52. <?php
  53. if (strlen($program->starstring) > 0)
  54. echo ", $program->starstring";
  55. ?><br />
  56. <?php } ?>
  57. <form name="program_detail" method="post" action="<?php echo root_url ?>tv/detail<?php
  58. if ($_GET['recordid'])
  59. echo '?recordid='.urlencode($_GET['recordid']);
  60. else
  61. echo '/'.urlencode($_GET['chanid']).'/'.urlencode($_GET['starttime'])
  62. ?>">
  63. <center><?php echo t('Schedule Options') ?>:</center>
  64. <input type="radio" class="radio" name="record" value="record_never" id="record_never"<?php echo $schedule->recordid ? '' : ' CHECKED' ?>></input>
  65. <a><?php
  66. if ($schedule->recordid)
  67. echo 'Cancel';
  68. else
  69. echo 'Don\'t record';
  70. ?>
  71. </a><br />
  72. <input type="radio" class="radio" name="record" value="<?php echo rectype_once ?>" id="record_once"<?php echo $schedule->type == rectype_once ? ' CHECKED' : '' ?>></input>
  73. <a>Record this showing</a><br />
  74. <input type="radio" class="radio" name="record" value="<?php echo rectype_daily ?>" id="record_daily"<?php echo $schedule->type == rectype_daily ? ' CHECKED' : '' ?>></input>
  75. <a>Record every day</a> at this time<br />
  76. <input type="radio" class="radio" name="record" value="<?php echo rectype_weekly ?>" id="record_weekly"<?php echo $schedule->type == rectype_weekly ? ' CHECKED' : '' ?>></input>
  77. <a>Record every week</a> at this time<br />
  78. <input type="radio" class="radio" name="record" value="<?php echo rectype_findone ?>" id="record_findone"<?php echo $schedule->type == rectype_findone ? ' CHECKED' : '' ?>></input>
  79. <a>Find one episode</a><br />
  80. <input type="radio" class="radio" name="record" value="<?php echo rectype_finddaily ?>" id="record_finddaily"<?php echo $schedule->type == rectype_finddaily ? ' CHECKED' : '' ?>></input>
  81. <a>Find one episode every day</a><br />
  82. <input type="radio" class="radio" name="record" value="<?php echo rectype_findweekly ?>" id="record_findweekly"<?php echo $schedule->type == rectype_findweekly ? ' CHECKED' : '' ?>></input>
  83. <a>Find one episode every week</a><br />
  84. <input type="radio" class="radio" name="record" value="<?php echo rectype_channel ?>" id="record_channel"<?php echo $schedule->type == rectype_channel ? ' CHECKED' : '' ?>></input>
  85. <a>Always record on this channel</a><br />
  86. <input type="radio" class="radio" name="record" value="<?php echo rectype_always ?>" id="record_always"<?php echo $schedule->type == rectype_always ? ' CHECKED' : '' ?>></input>
  87. <a>Always record on any channel</a><br />
  88. <br />
  89. <?php echo t('Recording Profile') ?><br />
  90. <?php profile_select($schedule->profile) ?><br />
  91. <input type="checkbox" class="radio" name="autocommflag"<?php if ($schedule->autocommflag) echo ' CHECKED' ?> value="1" />
  92. <a><?php echo t('Auto-flag commercials') ?></a><br />
  93. <input type="checkbox" class="radio" name="autoexpire"<?php if ($schedule->autoexpire) echo ' CHECKED' ?> value="1" />
  94. <a><?php echo t('Auto-expire recordings') ?></a><br />
  95. <input type="checkbox" class="radio" name="maxnewest"<?php if ($schedule->maxnewest) echo ' CHECKED' ?> value="1" />
  96. <a><?php echo t('Record new and expire old') ?></a><br />
  97. <input type="checkbox" class="radio" name="inactive"<?php if ($schedule->inactive) echo ' CHECKED' ?> value="1" />
  98. <a><?php echo t('Inactive') ?></a><br />
  99. <?php echo t('No. of recordings to keep') ?>:
  100. <input type="input" class="quantity" name="maxepisodes" value="<?php echo html_entities($schedule->maxepisodes) ?>" size="2"/><br />
  101. <?php echo t('Start Early') ?>:
  102. <input type="input" class="quantity" name="startoffset" value="<?php echo html_entities($schedule->startoffset) ?>" size="2"/>
  103. <?php echo t('minutes') ?><br />
  104. <?php echo t('End Late') ?>:
  105. <input type="input" class="quantity" name="endoffset" value="<?php echo html_entities($schedule->endoffset) ?>" size="2"/>
  106. <?php echo t('minutes') ?><br />
  107. <center><input type="submit" class="submit" name="save" value="<?php echo t('Update Recording Settings') ?>"></center>
  108. <br />
  109. </form>
  110. <?php
  111. // Print the main page footer
  112. require_once 'modules/_shared/tmpl/'.tmpl.'/footer.php';