#!/usr/bin/env python




##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
    import builtins as builtin
except ImportError:
    import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
from Cheetah.Version import MinCompatibleVersionTuple as RequiredCheetahVersionTuple
from Cheetah.Template import Template
from Cheetah.DummyTransaction import *
from Cheetah.NameMapper import NotFound, valueForName, valueFromSearchList, valueFromFrameOrSearchList
from Cheetah.CacheRegion import CacheRegion
import Cheetah.Filters as Filters
import Cheetah.ErrorCatchers as ErrorCatchers
from Plugins.Extensions.OpenWebif.controllers.i18n import tstrings

##################################################
## MODULE CONSTANTS
VFFSL=valueFromFrameOrSearchList
VFSL=valueFromSearchList
VFN=valueForName
currentTime=time.time
__CHEETAH_version__ = '2.4.4'
__CHEETAH_versionTuple__ = (2, 4, 4, 'development', 0)
__CHEETAH_genTime__ = 1644596120.748313
__CHEETAH_genTimestamp__ = 'Fri Feb 11 16:15:20 2022'
__CHEETAH_src__ = '/home/nonsolosat/openpli-dreambox-oe-core/build/tmp/work/dm520-oe-linux/enigma2-plugin-extensions-openwebif/gitAUTOINC+81b15e17ab-r0/git/plugin/controllers/views/ajax/current.tmpl'
__CHEETAH_srcLastModified__ = 'Fri Feb 11 15:59:45 2022'
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'

if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
    raise AssertionError(
      'This template was compiled with Cheetah version'
      ' %s. Templates compiled before version %s must be recompiled.'%(
         __CHEETAH_version__, RequiredCheetahVersion))

##################################################
## CLASSES

class current(Template):

    ##################################################
    ## CHEETAH GENERATED METHODS


    def __init__(self, *args, **KWs):

        super(current, self).__init__(*args, **KWs)
        if not self._CHEETAH__instanceInitialized:
            cheetahKWArgs = {}
            allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split()
            for k,v in KWs.items():
                if k in allowedKWs: cheetahKWArgs[k] = v
            self._initCheetahInstance(**cheetahKWArgs)
        

    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<!-- OSD -->
<style>
.ib,.id{float:left;position:relative;margin:0 0 3px 3px;height:26px;}
.id{width:64px;background-image:url(/images/osd/icon_64x26.png);}
.ib{width:44px;background-image:url(/images/osd/icon_44x26.png);}
.iconadl{float:left;position:relative;top:6px;left:15px;height:26px;}
.d14 { position:relative;height:14px;font-size:13px;left:0px;top:0px;}
.d24 { position:relative;font-size:13px;left:0px;top:10px;}
.d120 { float:left;display:block;width:120px;}
.dh24 { float:left;height:24px;}
.dh20 { float:left;height:20px;}
.dh14 { float:left;height:14px;}
</style>
<div id="dcurrent" class="ui-widget-content">
\t<div style="float:left;width:120px;height:137px;">
\t\t<div class=\'d120\' style="height:37px;">
\t\t\t<div style="position:relative;top:10px;left:18px;font-size:13px;font-weight:bold;">''')
        _v = VFFSL(SL,"info.date",True) # u'$info.date' on line 18, col 87
        if _v is not None: write(_filter(_v, rawExpr=u'$info.date')) # from line 18, col 87.
        write(u'''</div>
\t\t</div>
\t\t<div class=\'d120\' style="height:60px;">
\t\t\t<div style="position:relative;top:0px;left:15px;"><img border=\'0\' width="100px" height="60px" src=\'''')
        _v = VFFSL(SL,"getVar",False)("info.picon", "images/default_picon.png") # u'$getVar("info.picon", "images/default_picon.png")' on line 21, col 103
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.picon", "images/default_picon.png")')) # from line 21, col 103.
        write(u'''\' onclick="open_epg_dialog(\'''')
        _v = VFFSL(SL,"info.ref",True) # u'$info.ref' on line 21, col 180
        if _v is not None: write(_filter(_v, rawExpr=u'$info.ref')) # from line 21, col 180.
        write(u"""','""")
        _v = VFFSL(SL,"info.name",True) # u'$info.name' on line 21, col 192
        if _v is not None: write(_filter(_v, rawExpr=u'$info.name')) # from line 21, col 192.
        write(u'''\');" style="cursor:pointer;" title="''')
        _v = VFFSL(SL,"tstrings",True)['show_epg_for'] # u"$tstrings['show_epg_for']" on line 21, col 238
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['show_epg_for']")) # from line 21, col 238.
        write(u''' ''')
        _v = VFFSL(SL,"info.name",True) # u'$info.name' on line 21, col 264
        if _v is not None: write(_filter(_v, rawExpr=u'$info.name')) # from line 21, col 264.
        write(u'''" border="0" alt=\'\' /></div>
 \t\t</div>
\t\t<div class=\'d120\' style="height:40px;">
\t\t\t<div style="position:relative;top:8px;left:0px;text-align:center;font-size:11px;font-weight:bold;">''')
        _v = VFFSL(SL,"info.provider",True) # u'$info.provider' on line 24, col 103
        if _v is not None: write(_filter(_v, rawExpr=u'$info.provider')) # from line 24, col 103.
        write(u'''</div>
\t\t</div>
\t</div>
\t<div style="float:left;width:560px;height:137px;">
\t\t<div style="float:left;width:560px;height:25px;">
\t\t\t<div style="float:left;position:relative;top:5px;left:0px;width:480px;text-align:center;font-size:18px;"><a target="_blank" title="''')
        _v = VFFSL(SL,"tstrings",True)['stream'] # u"$tstrings['stream']" on line 29, col 135
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['stream']")) # from line 29, col 135.
        write(u''' ''')
        _v = VFFSL(SL,"getVar",False)('now.title', '') # u"$getVar('now.title', '')" on line 29, col 155
        if _v is not None: write(_filter(_v, rawExpr=u"$getVar('now.title', '')")) # from line 29, col 155.
        write(u''' from ''')
        _v = VFFSL(SL,"info.name",True) # u'$info.name' on line 29, col 185
        if _v is not None: write(_filter(_v, rawExpr=u'$info.name')) # from line 29, col 185.
        write(u'''" href=\'web/stream.m3u?ref=''')
        _v = VFFSL(SL,"info.ref",True) # u'$info.ref' on line 29, col 222
        if _v is not None: write(_filter(_v, rawExpr=u'$info.ref')) # from line 29, col 222.
        write(u'''&name=''')
        _v = VFFSL(SL,"info.name",True) # u'$info.name' on line 29, col 237
        if _v is not None: write(_filter(_v, rawExpr=u'$info.name')) # from line 29, col 237.
        write(u"""'>""")
        _v = VFFSL(SL,"info.name",True) # u'$info.name' on line 29, col 249
        if _v is not None: write(_filter(_v, rawExpr=u'$info.name')) # from line 29, col 249.
        write(u'''</a></div>
\t\t</div>
\t\t<div style="float:left;width:560px;height:24px;">
\t\t\t<div class=\'dh24\' style="width:70px;">
\t\t\t\t<div class=\'d24\' style="left:15px;">''')
        _v = VFFSL(SL,"getVar",False)("now.begin", " ") # u'$getVar("now.begin", " ")' on line 33, col 41
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.begin", " ")')) # from line 33, col 41.
        write(u'''</div>
\t\t\t</div>
\t\t\t<div class=\'dh24\' style="width:360px;-o-text-overflow: ellipsis;text-overflow: ellipsis;white-space: nowrap;">
\t\t\t\t<div class=\'d24\'>''')
        _v = VFFSL(SL,"getVar",False)("now.title", " ") # u'$getVar("now.title", " ")' on line 36, col 22
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.title", " ")')) # from line 36, col 22.
        write(u'''</div>
\t\t\t</div>
\t\t\t<div class=\'dh24\' style="width:130px;">
\t\t\t\t<div class=\'d24\'>+''')
        _v = VFFSL(SL,"getVar",False)("now.tleft", " ") # u'$getVar("now.tleft", " ")' on line 39, col 23
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.tleft", " ")')) # from line 39, col 23.
        write(u''' min</div>
\t\t\t</div>
\t\t</div>
\t\t<div style="float:left;width:560px;height:16px;">
\t\t\t<div style="float:left;position:relative;top:2px;left:15px;width:400px;height:14px;background-image:url(images/osd/chan_bar_back.png);">
\t\t\t\t<div class=\'dh14\' style="width:400px;"><img border=\'0\' height=\'14px\' width=\'''')
        _v = VFFSL(SL,"getVar",False)("now.progress", "0") # u'${getVar("now.progress", "0")}' on line 44, col 81
        if _v is not None: write(_filter(_v, rawExpr=u'${getVar("now.progress", "0")}')) # from line 44, col 81.
        write(u'''px\' src=\'images/osd/chan_bar.png\' alt=\'\' /></div>
\t\t\t</div>
\t\t</div>
\t\t<div class=\'dh14\' style="width:560px;">
\t\t\t<div class=\'dh14\' style="width:70px;">
\t\t\t\t<div class=\'d14\' style="left:15px;">''')
        _v = VFFSL(SL,"getVar",False)("next.begin", " ") # u'$getVar("next.begin", " ")' on line 49, col 41
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("next.begin", " ")')) # from line 49, col 41.
        write(u'''</div>
\t\t\t</div>
\t\t\t<div class=\'dh14\'style="width:360px;-o-text-overflow: ellipsis;text-overflow: ellipsis;white-space: nowrap;">
\t\t\t\t<div class=\'d14\'>''')
        _v = VFFSL(SL,"getVar",False)("next.title", " ") # u'$getVar("next.title", " ")' on line 52, col 22
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("next.title", " ")')) # from line 52, col 22.
        write(u'''</div>
\t\t\t</div>
\t\t\t<div class=\'dh14\' style="width:130px;">
\t\t\t\t<div class=\'d14\'>&nbsp; ''')
        _v = VFFSL(SL,"getVar",False)("next.duration", " ") # u'$getVar("next.duration", " ")' on line 55, col 29
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("next.duration", " ")')) # from line 55, col 29.
        write(u''' min</div>
\t\t\t</div>
\t\t</div>
\t\t<div class=\'dh20\' style="width:560px;">
\t\t\t<div class=\'dh20\' style="width:100px;">
\t\t\t\t<div class=\'d14\' style="top:6px;left:15px;">''')
        _v = VFFSL(SL,"getVar",False)("info.tunertype", " ") # u'$getVar("info.tunertype", " ")' on line 60, col 49
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.tunertype", " ")')) # from line 60, col 49.
        write(u'''</div>
\t\t\t</div>
\t\t\t<div class=\'dh20\' style="width:80px;">
\t\t\t\t<div class=\'d14\' style="float:left;top:6px;">Snr: ''')
        _v = VFFSL(SL,"getVar",False)("info.snr", "0") # u'$getVar("info.snr", "0")' on line 63, col 55
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.snr", "0")')) # from line 63, col 55.
        write(u''' % </div>
\t\t\t</div>
\t\t\t<div class=\'dh20\' style="width:100px;">
\t\t\t\t<div class=\'dh14\' style="position:relative;top:8px;left:0px;width:100px;background-image:url(images/osd/snr_bar_back.png);">
\t\t\t\t\t<div class=\'dh14\' style="width:100px;"><img border=\'0\' height=\'14px\' width=\'''')
        _v = VFFSL(SL,"getVar",False)("info.snr", "0") # u'${getVar("info.snr", "0")}' on line 67, col 82
        if _v is not None: write(_filter(_v, rawExpr=u'${getVar("info.snr", "0")}')) # from line 67, col 82.
        write(u'''px\' src=\'images/osd/chan_bar.png\' alt=\'\' /></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\'dh20\' style="width:100px;">
\t\t\t\t<div class=\'d14\' style="float:left;top:6px;left:7px;"> Ber: ''')
        _v = VFFSL(SL,"getVar",False)("info.ber", "N/A") # u'$getVar("info.ber", "N/A")' on line 71, col 65
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.ber", "N/A")')) # from line 71, col 65.
        write(u''' </div>
\t\t\t</div>
\t\t\t<div class=\'dh20\' style="width:125px;">
\t\t\t\t<div class=\'d14\' style="top:6px;">''')
        _v = VFFSL(SL,"info.width",True) # u'$info.width' on line 74, col 39
        if _v is not None: write(_filter(_v, rawExpr=u'$info.width')) # from line 74, col 39.
        write(u''' x ''')
        _v = VFFSL(SL,"info.height",True) # u'$info.height' on line 74, col 53
        if _v is not None: write(_filter(_v, rawExpr=u'$info.height')) # from line 74, col 53.
        write(u'''</div>
\t\t\t</div>
\t\t</div>
\t\t<div style="float:left;width:560px;height:60px">
\t\t\t<div style="float:left;width:auto;height:26px;padding-top:8px">
\t\t\t\t<div id="currenttuners">
''')
        tnum = 0
        for tuner in VFFSL(SL,"info.tuners",True): # generated from line 81, col 1
            if VFFSL(SL,"info.tunernumber",True) == VFFSL(SL,"tnum",True): # generated from line 82, col 2
                write(u'''\t\t<span style="opacity:1">''')
                _v = VFFSL(SL,"tuner",True) # u'$tuner' on line 83, col 27
                if _v is not None: write(_filter(_v, rawExpr=u'$tuner')) # from line 83, col 27.
                write(u'''</span>
''')
            else: # generated from line 84, col 2
                write(u'''\t\t<span>''')
                _v = VFFSL(SL,"tuner",True) # u'$tuner' on line 85, col 9
                if _v is not None: write(_filter(_v, rawExpr=u'$tuner')) # from line 85, col 9.
                write(u'''</span>
''')
            tnum = VFFSL(SL,"tnum",True) + 1
        write(u'''\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div style="float:left;height:32px;">
\t\t\t\t<div class="iconadl" style="left:10px">
''')
        ta = '44px'
        if VFFSL(SL,"info.crypt",True) == 1: # generated from line 94, col 1
            ta = '0px'
        write(u'''\t\t\t\t\t<div class="ib" style="background-position: -''')
        _v = VFFSL(SL,"ta",True) # u'$ta' on line 97, col 51
        if _v is not None: write(_filter(_v, rawExpr=u'$ta')) # from line 97, col 51.
        write(u''' 0px"></div>
''')
        ta = '64px'
        if VFFSL(SL,"info.dolby",True) == True: # generated from line 99, col 1
            ta = '0px'
        write(u'''\t\t\t\t\t<div class="id" style="background-position: -''')
        _v = VFFSL(SL,"ta",True) # u'$ta' on line 102, col 51
        if _v is not None: write(_filter(_v, rawExpr=u'$ta')) # from line 102, col 51.
        write(u''' 0px"></div>
''')
        ta = '132px'
        if VFFSL(SL,"info.wide",True) == True: # generated from line 104, col 1
            ta = '88px'
        write(u'''\t\t\t\t\t<div class="ib" style="background-position: -''')
        _v = VFFSL(SL,"ta",True) # u'$ta' on line 107, col 51
        if _v is not None: write(_filter(_v, rawExpr=u'$ta')) # from line 107, col 51.
        write(u''' 0px"></div>
''')
        ta = '220px'
        if VFFSL(SL,"info.width",True) != "N/A" and VFFSL(SL,"info.width",True) > 1900: # generated from line 109, col 1
            ta = '176px'
        write(u'''\t\t\t\t\t<div class="ib" style="background-position: -''')
        _v = VFFSL(SL,"ta",True) # u'$ta' on line 112, col 51
        if _v is not None: write(_filter(_v, rawExpr=u'$ta')) # from line 112, col 51.
        write(u''' 0px"></div>
''')
        ta = '220px'
        if VFFSL(SL,"info.txtpid",True) != "N/A": # generated from line 114, col 1
            ta = '176px'
        write(u'''\t\t\t\t\t<div class="ib" style="background-position: -''')
        _v = VFFSL(SL,"ta",True) # u'$ta' on line 117, col 51
        if _v is not None: write(_filter(_v, rawExpr=u'$ta')) # from line 117, col 51.
        write(u''' -26px"></div>
''')
        ta = '132px'
        if VFFSL(SL,"info.subs",True) == True: # generated from line 119, col 1
            ta = '88px'
        write(u'''\t\t\t\t\t<div class="ib" style="background-position: -''')
        _v = VFFSL(SL,"ta",True) # u'$ta' on line 122, col 51
        if _v is not None: write(_filter(_v, rawExpr=u'$ta')) # from line 122, col 51.
        write(u''' -26px"></div>
''')
        ta = '44px'
        if VFFSL(SL,"info.rec_state",True) == True: # generated from line 124, col 1
            ta = '0px'
        write(u'''\t\t\t\t\t<div class="ib" style="background-position: -''')
        _v = VFFSL(SL,"ta",True) # u'$ta' on line 127, col 51
        if _v is not None: write(_filter(_v, rawExpr=u'$ta')) # from line 127, col 51.
        write(u''' -26px"></div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</div>

<!-- /END OSD -->

<br />
<table class="ui-widget-content tcurrent" width="100%" border="0" cellspacing="1" cellpadding="5" style="background-image:none;">
\t<tr style="background-color:initial;" >
\t\t<th colspan="3" class="ui-widget-header">''')
        _v = VFFSL(SL,"tstrings",True)['service'] # u"$tstrings['service']" on line 139, col 44
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['service']")) # from line 139, col 44.
        write(u'''</th>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['name'] # u"$tstrings['name']" on line 142, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['name']")) # from line 142, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.name",True) # u'$info.name' on line 142, col 26
        if _v is not None: write(_filter(_v, rawExpr=u'$info.name')) # from line 142, col 26.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['provider'] # u"$tstrings['provider']" on line 143, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['provider']")) # from line 143, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.provider",True) # u'$info.provider' on line 143, col 30
        if _v is not None: write(_filter(_v, rawExpr=u'$info.provider')) # from line 143, col 30.
        write(u'''</td>
\t\t<td id="ns" data-ns="''')
        _v = VFFSL(SL,"info.namespace",True) # u'$info.namespace' on line 144, col 24
        if _v is not None: write(_filter(_v, rawExpr=u'$info.namespace')) # from line 144, col 24.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['namespace'] # u"$tstrings['namespace']" on line 144, col 41
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['namespace']")) # from line 144, col 41.
        write(u''': ''')
        _v = VFFSL(SL,"info.namespace",True) # u'$info.namespace' on line 144, col 65
        if _v is not None: write(_filter(_v, rawExpr=u'$info.namespace')) # from line 144, col 65.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['video_width'] # u"$tstrings['video_width']" on line 147, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['video_width']")) # from line 147, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.width",True) # u'$info.width' on line 147, col 33
        if _v is not None: write(_filter(_v, rawExpr=u'$info.width')) # from line 147, col 33.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['video_height'] # u"$tstrings['video_height']" on line 148, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['video_height']")) # from line 148, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.height",True) # u'$info.height' on line 148, col 34
        if _v is not None: write(_filter(_v, rawExpr=u'$info.height')) # from line 148, col 34.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['video_wide'] # u"$tstrings['video_wide']" on line 149, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['video_wide']")) # from line 149, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.wide",True) # u'$info.wide' on line 149, col 32
        if _v is not None: write(_filter(_v, rawExpr=u'$info.wide')) # from line 149, col 32.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['encrypted'] # u"$tstrings['encrypted']" on line 152, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['encrypted']")) # from line 152, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.crypt",True) # u'$info.crypt' on line 152, col 31
        if _v is not None: write(_filter(_v, rawExpr=u'$info.crypt')) # from line 152, col 31.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['dolby'] # u"$tstrings['dolby']" on line 153, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['dolby']")) # from line 153, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.dolby",True) # u'$info.dolby' on line 153, col 27
        if _v is not None: write(_filter(_v, rawExpr=u'$info.dolby')) # from line 153, col 27.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['subservices'] # u"$tstrings['subservices']" on line 154, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['subservices']")) # from line 154, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.subs",True) # u'$info.subs' on line 154, col 33
        if _v is not None: write(_filter(_v, rawExpr=u'$info.subs')) # from line 154, col 33.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['teletext'] # u"$tstrings['teletext']" on line 157, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['teletext']")) # from line 157, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.txtpid",True) # u'$info.txtpid' on line 157, col 30
        if _v is not None: write(_filter(_v, rawExpr=u'$info.txtpid')) # from line 157, col 30.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['rec_status'] # u"$tstrings['rec_status']" on line 158, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['rec_status']")) # from line 158, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.rec_state",True) # u'$info.rec_state' on line 158, col 32
        if _v is not None: write(_filter(_v, rawExpr=u'$info.rec_state')) # from line 158, col 32.
        write(u'''</td>
\t\t<td id="pmtpid" data-pmtpid="''')
        _v = VFFSL(SL,"info.pmtpid",True) # u'$info.pmtpid' on line 159, col 32
        if _v is not None: write(_filter(_v, rawExpr=u'$info.pmtpid')) # from line 159, col 32.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['pmt_pid'] # u"$tstrings['pmt_pid']" on line 159, col 46
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['pmt_pid']")) # from line 159, col 46.
        write(u''': ''')
        _v = VFFSL(SL,"info.pmtpid",True) # u'$info.pmtpid' on line 159, col 68
        if _v is not None: write(_filter(_v, rawExpr=u'$info.pmtpid')) # from line 159, col 68.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td id="apid" data-apid="''')
        _v = VFFSL(SL,"info.apid",True) # u'$info.apid' on line 162, col 28
        if _v is not None: write(_filter(_v, rawExpr=u'$info.apid')) # from line 162, col 28.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['a_pid'] # u"$tstrings['a_pid']" on line 162, col 40
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['a_pid']")) # from line 162, col 40.
        write(u''': ''')
        _v = VFFSL(SL,"info.apid",True) # u'$info.apid' on line 162, col 60
        if _v is not None: write(_filter(_v, rawExpr=u'$info.apid')) # from line 162, col 60.
        write(u'''</td>
\t\t<td id="vpid" data-vpid="''')
        _v = VFFSL(SL,"info.vpid",True) # u'$info.vpid' on line 163, col 28
        if _v is not None: write(_filter(_v, rawExpr=u'$info.vpid')) # from line 163, col 28.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['v_pid'] # u"$tstrings['v_pid']" on line 163, col 40
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['v_pid']")) # from line 163, col 40.
        write(u''': ''')
        _v = VFFSL(SL,"info.vpid",True) # u'$info.vpid' on line 163, col 60
        if _v is not None: write(_filter(_v, rawExpr=u'$info.vpid')) # from line 163, col 60.
        write(u'''</td>
\t\t<td id="pcrpid" data-pcrpid="''')
        _v = VFFSL(SL,"info.pcrpid",True) # u'$info.pcrpid' on line 164, col 32
        if _v is not None: write(_filter(_v, rawExpr=u'$info.pcrpid')) # from line 164, col 32.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['pcr_pid'] # u"$tstrings['pcr_pid']" on line 164, col 46
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['pcr_pid']")) # from line 164, col 46.
        write(u''': ''')
        _v = VFFSL(SL,"info.pcrpid",True) # u'$info.pcrpid' on line 164, col 68
        if _v is not None: write(_filter(_v, rawExpr=u'$info.pcrpid')) # from line 164, col 68.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td id="tsid" data-tsid="''')
        _v = VFFSL(SL,"info.tsid",True) # u'$info.tsid' on line 167, col 28
        if _v is not None: write(_filter(_v, rawExpr=u'$info.tsid')) # from line 167, col 28.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['ts_id'] # u"$tstrings['ts_id']" on line 167, col 40
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['ts_id']")) # from line 167, col 40.
        write(u''': ''')
        _v = VFFSL(SL,"info.tsid",True) # u'$info.tsid' on line 167, col 60
        if _v is not None: write(_filter(_v, rawExpr=u'$info.tsid')) # from line 167, col 60.
        write(u''' </td>
\t\t<td id="onid" data-onid="''')
        _v = VFFSL(SL,"info.onid",True) # u'$info.onid' on line 168, col 28
        if _v is not None: write(_filter(_v, rawExpr=u'$info.onid')) # from line 168, col 28.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['on_id'] # u"$tstrings['on_id']" on line 168, col 40
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['on_id']")) # from line 168, col 40.
        write(u''': ''')
        _v = VFFSL(SL,"info.onid",True) # u'$info.onid' on line 168, col 60
        if _v is not None: write(_filter(_v, rawExpr=u'$info.onid')) # from line 168, col 60.
        write(u'''</td>
\t\t<td id="sid" data-sid="''')
        _v = VFFSL(SL,"info.sid",True) # u'$info.sid' on line 169, col 26
        if _v is not None: write(_filter(_v, rawExpr=u'$info.sid')) # from line 169, col 26.
        write(u'''">''')
        _v = VFFSL(SL,"tstrings",True)['s_id'] # u"$tstrings['s_id']" on line 169, col 37
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['s_id']")) # from line 169, col 37.
        write(u''': ''')
        _v = VFFSL(SL,"info.sid",True) # u'$info.sid' on line 169, col 56
        if _v is not None: write(_filter(_v, rawExpr=u'$info.sid')) # from line 169, col 56.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['s_ref'] # u"$tstrings['s_ref']" on line 172, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['s_ref']")) # from line 172, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"info.sref",True) # u'$info.sref' on line 172, col 27
        if _v is not None: write(_filter(_v, rawExpr=u'$info.sref')) # from line 172, col 27.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"getVar",False)("info.srefv2", "") # u'$getVar("info.srefv2", "")' on line 173, col 7
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.srefv2", "")')) # from line 173, col 7.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"getVar",False)("info.orbital_position", "") # u'$getVar("info.orbital_position", "")' on line 174, col 7
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.orbital_position", "")')) # from line 174, col 7.
        write(u'''</td>
\t</tr>
\t<tr style="background-color:initial;" >
\t\t<th colspan="3" class="ui-widget-header">''')
        _v = VFFSL(SL,"tstrings",True)['tuner_signal'] # u"$tstrings['tuner_signal']" on line 177, col 44
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['tuner_signal']")) # from line 177, col 44.
        write(u'''</th>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['tuner_type'] # u"$tstrings['tuner_type']" on line 180, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['tuner_type']")) # from line 180, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"getVar",False)("info.tunertype", "N/A") # u'$getVar("info.tunertype", "N/A")' on line 180, col 32
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.tunertype", "N/A")')) # from line 180, col 32.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['tuner_number'] # u"$tstrings['tuner_number']" on line 181, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['tuner_number']")) # from line 181, col 7.
        write(u''':  ''')
        _v = VFFSL(SL,"getVar",False)("info.tunernumber", "N/A") # u'$getVar("info.tunernumber", "N/A")' on line 181, col 35
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.tunernumber", "N/A")')) # from line 181, col 35.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['tuner_signal_snr'] # u"$tstrings['tuner_signal_snr']" on line 182, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['tuner_signal_snr']")) # from line 182, col 7.
        write(u''':  ''')
        _v = VFFSL(SL,"getVar",False)("info.snr", "N/A") # u'$getVar("info.snr", "N/A")' on line 182, col 39
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.snr", "N/A")')) # from line 182, col 39.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['tuner_signal_snr_db'] # u"$tstrings['tuner_signal_snr_db']" on line 185, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['tuner_signal_snr_db']")) # from line 185, col 7.
        write(u''':  ''')
        _v = VFFSL(SL,"getVar",False)("info.snr_db", "N/A") # u'$getVar("info.snr_db", "N/A")' on line 185, col 42
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.snr_db", "N/A")')) # from line 185, col 42.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['tuner_signal_agc'] # u"$tstrings['tuner_signal_agc']" on line 186, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['tuner_signal_agc']")) # from line 186, col 7.
        write(u''':  ''')
        _v = VFFSL(SL,"getVar",False)("info.agc", "N/A") # u'$getVar("info.agc", "N/A")' on line 186, col 39
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.agc", "N/A")')) # from line 186, col 39.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['tuner_ber'] # u"$tstrings['tuner_ber']" on line 187, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['tuner_ber']")) # from line 187, col 7.
        write(u''':  ''')
        _v = VFFSL(SL,"getVar",False)("info.ber", "N/A") # u'$getVar("info.ber", "N/A")' on line 187, col 32
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("info.ber", "N/A")')) # from line 187, col 32.
        write(u'''</td>
\t</tr>
\t<tr style="background-color:initial;" >
\t\t<th colspan="3" class="ui-widget-header">''')
        _v = VFFSL(SL,"tstrings",True)['current_event'] # u"$tstrings['current_event']" on line 190, col 44
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['current_event']")) # from line 190, col 44.
        write(u'''</th>
\t</tr>
\t<tr>
\t\t<td colspan="3">''')
        _v = VFFSL(SL,"tstrings",True)['title'] # u"$tstrings['title']" on line 193, col 19
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['title']")) # from line 193, col 19.
        write(u''': ''')
        _v = VFFSL(SL,"getVar",False)("now.title", " ") # u'$getVar("now.title", " ")' on line 193, col 39
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.title", " ")')) # from line 193, col 39.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['begin'] # u"$tstrings['begin']" on line 196, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['begin']")) # from line 196, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"getVar",False)("now.begin", " ") # u'$getVar("now.begin", " ")' on line 196, col 27
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.begin", " ")')) # from line 196, col 27.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['end'] # u"$tstrings['end']" on line 197, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['end']")) # from line 197, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"getVar",False)("now.end", " ") # u'$getVar("now.end", " ")' on line 197, col 25
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.end", " ")')) # from line 197, col 25.
        write(u'''</td>
\t\t<td>''')
        _v = VFFSL(SL,"tstrings",True)['duration'] # u"$tstrings['duration']" on line 198, col 7
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['duration']")) # from line 198, col 7.
        write(u''': ''')
        _v = VFFSL(SL,"getVar",False)("now.duration", " ") # u'$getVar("now.duration", " ")' on line 198, col 30
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.duration", " ")')) # from line 198, col 30.
        write(u'''</td>
\t</tr>
\t<tr>
\t\t<td colspan="3">''')
        _v = VFFSL(SL,"tstrings",True)['description'] # u"$tstrings['description']" on line 201, col 19
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['description']")) # from line 201, col 19.
        write(u''':  ''')
        _v = VFFSL(SL,"getVar",False)("now.shortdesc", " ") # u'$getVar("now.shortdesc", " ")' on line 201, col 46
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.shortdesc", " ")')) # from line 201, col 46.
        write(u'''
\t\t<br>''')
        _v = VFFSL(SL,"getVar",False)("now.longdesc", " ") # u'$getVar("now.longdesc", " ")' on line 202, col 7
        if _v is not None: write(_filter(_v, rawExpr=u'$getVar("now.longdesc", " ")')) # from line 202, col 7.
        write(u'''
\t\t</td>
\t</tr>
</table>
<script type="text/javascript">
function PrintDH(i)
{
var result = "0000";
if (i >= 0 && i <= 15) {result="000"+i.toString(16);}
else if (i >= 16 && i <= 255) {result="00"+i.toString(16);}
else if (i >= 256 && i <= 4095) {result="0"+i.toString(16);}
else if (i >= 4096 && i <= 65535) {result=i.toString(16);}
else {result=i.toString(16);}
return " (" + result + ")";
}
var v = parseInt($("#pmtpid").data("pmtpid"));
$("#pmtpid").html($("#pmtpid").html() + PrintDH(v));
v = parseInt($("#apid").data("apid"));
$("#apid").html($("#apid").html() + PrintDH(v));
v = parseInt($("#vpid").data("vpid"));
$("#vpid").html($("#vpid").html() + PrintDH(v));
v = parseInt($("#pcrpid").data("pcrpid"));
$("#pcrpid").html($("#pcrpid").html() + PrintDH(v));
v = parseInt($("#tsid").data("tsid"));
$("#tsid").html($("#tsid").html() + PrintDH(v));
v = parseInt($("#onid").data("onid"));
$("#onid").html($("#onid").html() + PrintDH(v));
v = parseInt($("#sid").data("sid"));
$("#sid").html($("#sid").html() + PrintDH(v));
v = parseInt($("#ns").data("ns"));
$("#ns").html($("#ns").html() + PrintDH(v));

</script>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
        
    ##################################################
    ## CHEETAH GENERATED ATTRIBUTES


    _CHEETAH__instanceInitialized = False

    _CHEETAH_version = __CHEETAH_version__

    _CHEETAH_versionTuple = __CHEETAH_versionTuple__

    _CHEETAH_genTime = __CHEETAH_genTime__

    _CHEETAH_genTimestamp = __CHEETAH_genTimestamp__

    _CHEETAH_src = __CHEETAH_src__

    _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__

    _mainCheetahMethod_for_current= 'respond'

## END CLASS DEFINITION

if not hasattr(current, '_initCheetahAttributes'):
    templateAPIClass = getattr(current, '_CHEETAH_templateClass', Template)
    templateAPIClass._addCheetahPlumbingCodeToClass(current)


# CHEETAH was developed by Tavis Rudd and Mike Orr
# with code, advice and input from many other volunteers.
# For more information visit http://www.CheetahTemplate.org/

##################################################
## if run from command line:
if __name__ == '__main__':
    from Cheetah.TemplateCmdLineIface import CmdLineIface
    CmdLineIface(templateObj=current()).run()


