Ticket #4387: mythweb-wap.patch
File mythweb-wap.patch, 9.6 KB (added by , 15 years ago) |
---|
-
modules/tv/tmpl/wap/list.php
22 22 <p> 23 23 <form class="form" action="<?php echo root ?>tv/list" method="get"> 24 24 <center> 25 Currently Browsing<br /><?php echo t('Currently Browsing: $1', strftime($_SESSION['date_statusbar'], $list_starttime)) ?><br />26 Jump to<br />25 <br /><?php echo t('Currently Browsing: $1', strftime($_SESSION['date_statusbar'], $list_starttime)) ?><br /> 26 <?php echo t('Jump to') ?><br /> 27 27 <select name="daytime"><?php 28 28 $day=getdate($start_time); 29 29 $start=$start_time - $day['hours'] * 60 * 60 - $day['minutes'] * 60; … … 50 50 echo ">".date("D m/d/y" , $time)."</option>"; 51 51 } 52 52 ?></select><br /> 53 <input type="submit" class="submit" value=" Jump">53 <input type="submit" class="submit" value="<?php echo t('Jump') ?>"> 54 54 </center> 55 55 </form> 56 56 <br /><br /> … … 92 92 */ 93 93 function print_channel($channel, $start_time, $end_time) { 94 94 ?> 95 < a href="<?php echo root ?>tv/channel/<?php echo $channel->chanid ?>/<?php echo date('Ymd', $start_time) ?>">95 <b><a href="<?php echo root ?>tv/channel/<?php echo $channel->chanid ?>/<?php echo date('Ymd', $start_time) ?>"> 96 96 <?php echo prefer_channum ? $channel->channum : $chann->callsign ?> 97 <?php echo prefer_channum ? $channel->callsign : $channel->channum ?> </a> 97 <?php echo prefer_channum ? $channel->callsign : $channel->channum ?> </a></b> 98 98 <a href="<?php echo root ?>tv/detail/<?php echo $channel->chanid ?>/<?php echo $channel->programs[0]->starttime ?>"><?php echo $channel->programs[0]->title ?></a><br /> 99 99 <?php 100 100 } -
modules/tv/tmpl/wap/detail.php
23 23 <?php echo prefer_channum ? $this_channel->channum : $this_channel->callsign ?> 24 24 <?php echo prefer_channum ? $this_channel->callsign : $this_channel->channum ?></a><br /> 25 25 26 <?php echo $program->title ?><BR> 26 27 <?php 28 if (strlen($program->subtitle)) 29 echo $program->title; 30 else 31 echo "<b>".$program->title."</b>"; 32 ?><BR> 27 33 <?php echo date('D m/d/y', $program->starttime) ?><br /> 28 34 <?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> 29 35 <?php … … 38 44 Episode: <b><?php echo $program->subtitle ?></b><br /> 39 45 <?php } 40 46 if (strlen($program->description)) { ?> 41 Description: <?php echo$program->description ?><br />47 <?php echo t('Description').": ".$program->description ?><br /> 42 48 <?php } ?> 43 49 <?php if (strlen($program->category)) { ?> 44 Category: <?php echo$program->category ?><br />50 <?php echo t('Category').": ".$program->category ?><br /> 45 51 <?php } 46 52 if (strlen($program->airdate)) { ?> 47 53 Orig. Airdate: <?php echo $program->airdate ?><br /> … … 60 66 else 61 67 echo '/'.urlencode($_GET['chanid']).'/'.urlencode($_GET['starttime']) 62 68 ?>"> 63 <center> Schedule Options:</center>69 <center><?php echo t('Schedule Options') ?>:</center> 64 70 <input type="radio" class="radio" name="record" value="record_never" id="record_never"<?php echo $schedule->recordid ? '' : ' CHECKED' ?>></input> 65 71 <a><?php 66 72 if ($schedule->recordid) … … 86 92 <input type="radio" class="radio" name="record" value="<?php echo rectype_always ?>" id="record_always"<?php echo $schedule->type == rectype_always ? ' CHECKED' : '' ?>></input> 87 93 <a>Always record on any channel</a><br /> 88 94 <br /> 89 Recording Profile<br />95 <?php echo t('Recording Profile') ?><br /> 90 96 <?php profile_select($schedule->profile) ?><br /> 91 97 <input type="checkbox" class="radio" name="autocommflag"<?php if ($schedule->autocommflag) echo ' CHECKED' ?> value="1" /> 92 98 <a><?php echo t('Auto-flag commercials') ?></a><br /> … … 104 110 <?php echo t('End Late') ?>: 105 111 <input type="input" class="quantity" name="endoffset" value="<?php echo htmlentities($schedule->endoffset) ?>" size="2"/> 106 112 <?php echo t('minutes') ?><br /> 107 <center><input type="submit" class="submit" name="save" value=" Update Settings"></center>113 <center><input type="submit" class="submit" name="save" value="<?php echo t('Update Recording Settings') ?>"></center> 108 114 <br /> 109 115 110 116 </form> -
modules/tv/tmpl/wap/search.php
37 37 foreach ($Results as $show) { 38 38 // Print the content 39 39 echo $show->channel->name.'<br />'; 40 echo '<a href="'.root.'tv/detail/'.$show->chanid.'/'.$show->starttime.'"> '.$show->title.'</a><br />';40 echo '<a href="'.root.'tv/detail/'.$show->chanid.'/'.$show->starttime.'"><b>'.$show->title.'</b></a><br />'; 41 41 if(strlen($show->subtitle)) 42 42 echo $show->subtitle.'<br />'; 43 43 // echo $show->description.'<br />'; 44 echo date('D m/d/y', $show->starttime).'<br />';45 echo date('(g:i A)', $show->starttime).' '.nice_length($show->length).'<br /><br />';44 echo strftime($_SESSION['date_search'], $show->starttime).'<br />'; 45 echo nice_length($show->length).'<br /><br />'; 46 46 47 47 $row++; 48 48 } -
modules/tv/tmpl/wap/recorded.php
43 43 <?php 44 44 $row = 0; 45 45 foreach ($All_Shows as $show) { 46 echo $show->title."<br />"; 46 if(strlen($show->subtitle)>1) 47 echo $show->title."<br />"; 48 else 49 echo "<b>".$show->title."</b><br />"; 47 50 echo $show->channame."<br />"; 48 51 if(strlen($show->subtitle)>1) 49 52 echo "<b>".$show->subtitle."</b><br />"; … … 55 58 if ($show->endtime > time()) { ?> 56 59 <font color="#FF0000">currently recording - </font> 57 60 <?php } ?> 58 <b></b><a id="delete_<?php echo $row ?>" href="<?php echo root ?>tv/recorded?delete=yes& file=<?php echo urlencode($show->filename)?>">Delete </a></b>59 <b></b><a id="delete_<?php echo $row ?>" href="<?php echo root ?>tv/recorded?delete=yes& file=<?php echo urlencode($show->filename) ?>&forget_old">Rerecord</a></b><br />61 <b></b><a id="delete_<?php echo $row ?>" href="<?php echo root ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->starttime ?>">Delete </a></b> 62 <b></b><a id="delete_<?php echo $row ?>" href="<?php echo root ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->starttime ?>&forget_old=yes">Rerecord</a></b><br /> 60 63 <?php 61 64 echo "<br />"; 62 65 -
modules/tv/tmpl/wap/channel.php
23 23 <p> 24 24 <form id="program_listing" action="<?php echo root ?>tv/channel/<?php echo $_GET['chanid'] ?>" method="post"> 25 25 <center> 26 Channel <?php echo $this_channel->channum ?> <?php echo $this_channel->callsign ?><br />26 <?php echo t('Channel') ?> <?php $this_channel->channum ?> <b><?php echo $this_channel->callsign ?></b><br /> 27 27 <?php echo date('D m/d/y', $_SESSION['list_time']) ?><br /> 28 28 29 Jump to<br />29 <?php echo t('Jump to') ?><br /> 30 30 <select name="date"><?php 31 31 // Find out how many days into the future we should bother checking 32 32 $result = mysql_query('SELECT TO_DAYS(max(starttime)) - TO_DAYS(NOW()) FROM program') … … 42 42 echo ">".date("D m/d/y" , $time)."</option>"; 43 43 } 44 44 ?></select><br /> 45 <input type="submit" class="submit" value=" Jump"><br /><br />45 <input type="submit" class="submit" value="<?php echo t('Jump') ?>"><br /><br /> 46 46 </center> 47 47 </form> 48 48 </p> … … 60 60 // Display the results 61 61 $row = 0; 62 62 foreach ($this_channel->programs as $show) { 63 64 if(strlen($show->title) <= 0 && strlen($show->subtitle) <= 0) 65 continue; 66 63 67 // Print the content 64 68 ?> 65 69 <?php echo strftime($_SESSION['time_format'], $show->starttime) ?> - 66 70 <?php echo strftime($_SESSION['time_format'], $show->endtime) ?><br /> 67 71 <?php 68 echo '<a href="'.root.'tv/detail/'.$show->chanid.'/'.$show->starttime.'">'.$show->title.'</a><br />'; 72 if(strlen($show->subtitle) <= 0) 73 echo '<b><a href="'.root.'tv/detail/'.$show->chanid.'/'.$show->starttime.'">'.$show->title.'</a></b><br />'; 74 else 75 echo '<a href="'.root.'tv/detail/'.$show->chanid.'/'.$show->starttime.'">'.$show->title.'</a><br />'; 76 69 77 if(strlen($show->subtitle)) 70 78 echo '<b>'.$show->subtitle.'</b><br />'; 71 79 // if(strlen($show->description))