[mythtv-commits] Ticket #605: Patch to allow edit of channel xmltvid

MythTV mythtv at cvs.mythtv.org
Mon Nov 7 09:07:14 EST 2005


#605: Patch to allow edit of channel xmltvid
----------------------------------+-----------------------------------------
 Reporter:  emil.gruno at gmail.com  |       Owner:  xris
     Type:  patch                 |      Status:  new 
 Priority:  minor                 |   Milestone:      
Component:  mythweb               |     Version:      
 Severity:  low                   |  
----------------------------------+-----------------------------------------
This is a patch that allows you to edit the xmltvid of a channel via
 mythweb. Why not share? =)

 - Emil

 Index: mythweb/themes/Default/settings_channels.php
 ===================================================================
 --- mythweb/themes/Default/settings_channels.php        (revision 7777)
 +++ mythweb/themes/Default/settings_channels.php        (working copy)
 @@ -27,6 +27,7 @@
  <tr class="menu" align="center">
      <td width="4%"><?php  echo t('delete') ?></td>
      <td width="4%"><?php  echo t('sourceid') ?></td>
 +    <td width="5%"><?php  echo t('xmltvid') ?></td>
      <td width="5%"><?php  echo t('channum') ?></td>
      <td width="12%"><?php echo t('callsign') ?></td>
      <td width="25%"><?php echo t('name') ?></td>
 @@ -46,6 +47,7 @@
  ?><tr class="settings" align="center">
      <td><input type="checkbox" name="delete_<?php echo $channel['chanid']
 ?>" id="delete_<?php echo $channel['chanid'] ?>" value="true"></td>
      <td><?php echo htmlentities($channel['sourceid']) ?></td>
 +    <td><input type="text" size="10" name="xmltvid_<?php echo
 $channel['chanid'] ?>" id="channum_<?php echo $channel['chanid'] ?>"
 value="<?php echo htmlentities($channel['xmltvid']) ?>"></td>
      <td><input type="text" size="3" name="channum_<?php echo
 $channel['chanid'] ?>" id="channum_<?php echo $channel['chanid'] ?>"
 value="<?php echo htmlentities($channel['channum']) ?>"></td>
      <td><input type="text" size="15" name="callsign_<?php echo
 $channel['chanid'] ?>" id="callsign_<?php echo $channel['chanid'] ?>"
 value="<?php echo htmlentities($channel['callsign']) ?>"></td>
      <td><input type="text" size="27" name="name_<?php echo
 $channel['chanid'] ?>" id="name_<?php echo $channel['chanid'] ?>"
 value="<?php echo htmlentities($channel['name'], ENT_COMPAT, 'UTF-8')
 ?>"></td>
 Index: mythweb/settings_channels.php
 ===================================================================
 --- mythweb/settings_channels.php       (revision 7777)
 +++ mythweb/settings_channels.php       (working copy)
 @@ -26,6 +26,7 @@
              // Not deleting so grab values that can be empty
                  $query = 'UPDATE channel SET
 freqid='.escape($_POST['freqid_'.$chanid])      .','
 .'finetune='.escape($_POST['finetune_'.$chanid])    .','
 +
 .'xmltvid='.escape($_POST['xmltvid_'.$chanid])    .','
 .'videofilters='.escape($_POST['videofilters_'.$chanid]).','
 .'brightness='.escape($_POST['brightness_'.$chanid])  .','
 .'contrast='.escape($_POST['contrast_'.$chanid])    .','

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/605>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list