Ticket #4387: mythweb-wap.patch

File mythweb-wap.patch, 9.6 KB (added by otto at kolsi dot fi, 14 years ago)
  • modules/tv/tmpl/wap/list.php

     
    2222<p>
    2323    <form class="form" action="<?php echo root ?>tv/list" method="get">
    2424    <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 />
    2727            <select name="daytime"><?php
    2828                $day=getdate($start_time);
    2929                $start=$start_time - $day['hours'] * 60 * 60 - $day['minutes'] * 60;
     
    5050                    echo ">".date("D m/d/y" , $time)."</option>";
    5151                }
    5252                ?></select><br />
    53             <input type="submit" class="submit" value="Jump">
     53            <input type="submit" class="submit" value="<?php echo t('Jump') ?>">
    5454            </center>
    5555        </form>
    5656        <br /><br />
     
    9292    */
    9393    function print_channel($channel, $start_time, $end_time) {
    9494        ?>
    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) ?>">
    9696        <?php echo prefer_channum ? $channel->channum : $chann->callsign ?>&nbsp;
    97         <?php echo prefer_channum ? $channel->callsign : $channel->channum ?> </a>
     97        <?php echo prefer_channum ? $channel->callsign : $channel->channum ?> </a></b>
    9898        <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 />
    9999        <?php
    100100    }
  • modules/tv/tmpl/wap/detail.php

     
    2323<?php echo prefer_channum ? $this_channel->channum : $this_channel->callsign ?> &nbsp;
    2424<?php echo prefer_channum ? $this_channel->callsign : $this_channel->channum ?></a><br />
    2525
    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>
    2733<?php echo date('D m/d/y', $program->starttime) ?><br />
    2834<?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>
    2935                <?php
     
    3844            Episode: <b><?php echo $program->subtitle ?></b><br />
    3945        <?php }
    4046           if (strlen($program->description)) { ?>
    41                 Description: <?php echo $program->description ?><br />
     47                <?php echo t('Description').": ".$program->description ?><br />
    4248        <?php } ?>
    4349        <?php if (strlen($program->category)) { ?>
    44                 Category: <?php echo $program->category ?><br />
     50                <?php echo t('Category').": ".$program->category ?><br />
    4551        <?php }
    4652           if (strlen($program->airdate)) { ?>
    4753                Orig. Airdate: <?php echo $program->airdate ?><br />
     
    6066            else
    6167                echo '/'.urlencode($_GET['chanid']).'/'.urlencode($_GET['starttime'])
    6268            ?>">
    63         <center>Schedule Options:</center>
     69        <center><?php echo t('Schedule Options') ?>:</center>
    6470                    <input type="radio" class="radio" name="record" value="record_never" id="record_never"<?php echo $schedule->recordid ? '' : ' CHECKED' ?>></input>
    6571        <a><?php
    6672        if ($schedule->recordid)
     
    8692        <input type="radio" class="radio" name="record" value="<?php echo rectype_always ?>" id="record_always"<?php echo $schedule->type == rectype_always ? ' CHECKED' : '' ?>></input>
    8793            <a>Always record on any channel</a><br />
    8894            <br />
    89             Recording Profile<br />
     95            <?php echo t('Recording Profile') ?><br />
    9096            <?php profile_select($schedule->profile) ?><br />
    9197        <input type="checkbox" class="radio" name="autocommflag"<?php if ($schedule->autocommflag) echo ' CHECKED' ?> value="1" />
    9298           <a><?php echo t('Auto-flag commercials') ?></a><br />
     
    104110        <?php echo t('End Late') ?>:
    105111        <input type="input" class="quantity" name="endoffset" value="<?php echo htmlentities($schedule->endoffset) ?>" size="2"/>
    106112        <?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>
    108114        <br />
    109115
    110116    </form>
  • modules/tv/tmpl/wap/search.php

     
    3737    foreach ($Results as $show) {
    3838// Print the content
    3939    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 />';
    4141    if(strlen($show->subtitle))
    4242        echo $show->subtitle.'<br />';
    4343//  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 />';
    4646
    4747        $row++;
    4848    }
  • modules/tv/tmpl/wap/recorded.php

     
    4343<?php
    4444    $row = 0;
    4545    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 />";
    4750        echo $show->channame."<br />";
    4851        if(strlen($show->subtitle)>1)
    4952            echo "<b>".$show->subtitle."</b><br />";
     
    5558        if ($show->endtime > time()) { ?>
    5659            <font color="#FF0000">currently recording - </font>
    5760<?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 />
    6063<?php
    6164        echo "<br />";
    6265
  • modules/tv/tmpl/wap/channel.php

     
    2323<p>
    2424            <form id="program_listing" action="<?php echo root ?>tv/channel/<?php echo $_GET['chanid'] ?>" method="post">
    2525            <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 />
    2727            <?php echo date('D m/d/y', $_SESSION['list_time']) ?><br />
    2828
    29             Jump to<br />
     29            <?php echo t('Jump to') ?><br />
    3030            <select name="date"><?php
    3131            // Find out how many days into the future we should bother checking
    3232                $result = mysql_query('SELECT TO_DAYS(max(starttime)) - TO_DAYS(NOW()) FROM program')
     
    4242                    echo ">".date("D m/d/y" , $time)."</option>";
    4343                }
    4444                ?></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 />
    4646            </center>
    4747            </form>
    4848</p>
     
    6060    // Display the results
    6161        $row = 0;
    6262        foreach ($this_channel->programs as $show) {
     63
     64        if(strlen($show->title) <= 0 && strlen($show->subtitle) <= 0)
     65            continue;
     66
    6367    // Print the content
    6468    ?>
    6569    <?php echo strftime($_SESSION['time_format'], $show->starttime) ?> -
    6670    <?php echo strftime($_SESSION['time_format'], $show->endtime) ?><br />
    6771<?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
    6977        if(strlen($show->subtitle))
    7078            echo '<b>'.$show->subtitle.'</b><br />';
    7179//      if(strlen($show->description))