echo ResizeableColumn('Queue Processor', ConversionQueue::IsRunning() ? 'Running' : 'Stopped'); ?> <?php echo ResizeableColumn('Last Started', $stats[ConversionQueue::STAT_LAST_STARTED]); ?> <?php echo ResizeableColumn('Videos Processed', $stats[ConversionQueue::STAT_PROCESSED_ITEMS], true); ?> <?php echo ResizeableColumn('Failed', $stats[ConversionQueue::STAT_FAILED_ITEMS], true); ?> <?php echo ResizeableColumn('Average Time', $stats[ConversionQueue::STAT_AVERAGE_TIME]); ?> <?php echo ResizeableColumn('Average Wait', $stats[ConversionQueue::STAT_AVERAGE_WAIT]); ?> <script language="JavaScript" type="text/javascript"> $(function() { $('#dialog-button-start').attr('disabled', '<?php echo ConversionQueue::IsStartable() ? '' : 'disabled'; ?> '); $('#dialog-button-stop').attr('disabled', '<?php echo ConversionQueue::IsRunning() ? '' : 'disabled'; ?> '); $('#dialog-button-clear').attr('disabled', '<?php
<?php echo ResizeableColumn('Videos Watched', array($item['today_videos_watched'], $item['week_videos_watched'], $item['month_videos_watched'], $item['total_videos_watched']), true, ' / '); ?> <?php echo ResizeableColumn('Bandwidth Used', array(Format::BytesToString($item['today_bandwidth_used'], '', 1), Format::BytesToString($item['week_bandwidth_used'], '', 1), Format::BytesToString($item['month_bandwidth_used'], '', 1), Format::BytesToString($item['total_bandwidth_used'], '', 1)), false, ' / '); ?> <?php echo ResizeableColumn('Uploads', array($item['today_videos_uploaded'], $item['week_videos_uploaded'], $item['month_videos_uploaded'], $item['total_videos_uploaded']), true, ' / '); ?> <?php foreach ($custom_schema as $field) { echo ResizeableColumn($field['label'], $item[$field['name']], false, null, $field['type']); } ?> <?php } ?> </div> </td> <td valign="top" class="search-result-icons"> <img src="images/enable-22x22.png" class="item-icon" title="Enable" <?php if ($item['status'] != STATUS_DISABLED) { ?> style="display: none;"<?php } ?> meta="{t: 'action', r: 'tbxGenericAction(user,enable)'}" />
echo ResizeableColumn('Queue Processor', ThumbQueue::IsRunning() ? 'Running' : 'Stopped'); ?> <?php echo ResizeableColumn('Last Started', $stats[ThumbQueue::STAT_LAST_STARTED]); ?> <?php echo ResizeableColumn('Videos Processed', $stats[ThumbQueue::STAT_PROCESSED_ITEMS], true); ?> <?php echo ResizeableColumn('Failed', $stats[ThumbQueue::STAT_FAILED_ITEMS], true); ?> <?php echo ResizeableColumn('Average Time', $stats[ThumbQueue::STAT_AVERAGE_TIME]); ?> <?php echo ResizeableColumn('Average Wait', $stats[ThumbQueue::STAT_AVERAGE_WAIT]); ?> <script language="JavaScript" type="text/javascript"> $(function() { $('#dialog-button-start').attr('disabled', '<?php echo ThumbQueue::IsStartable() ? '' : 'disabled'; ?> '); $('#dialog-button-stop').attr('disabled', '<?php echo ThumbQueue::IsRunning() ? '' : 'disabled'; ?> '); $('#dialog-button-clear').attr('disabled', '<?php echo !ThumbQueue::IsRunning() ? '' : 'disabled';
echo $item['sponsor_id']; ?> "> <td class="selectable" style="width: 40px;" title="Select"> </td> <td> <?php echo $item['name']; ?> </td> <td> <?php echo ResizeableColumn('Main', $item['url']); ?> <?php echo ResizeableColumn('2257', $item['us2257_url']); ?> </td> <td> <?php echo NumberFormatInteger($item['videos']); ?> </td> <td> <?php $banners = $DB->QueryCount('SELECT COUNT(*) FROM `tbx_banner` WHERE `sponsor_id`=?', array($item['sponsor_id'])); echo NumberFormatInteger($banners); ?> </td> <td valign="top" class="search-result-icons"> <img src="images/video-22x22.png" class="item-icon" title="Videos" meta="{t: 'link', u: 'index.php?r=tbxGenericShowSearch(video)&pds=sponsor&name=<?php
</span> <?php } else { ?> <iframe src="index.php?r=tbxBannerDisplay&id=<?php echo $item['banner_id']; ?> " class="banner-container" frameborder="0" border="0"></iframe> <?php } ?> <div style="margin-top: 10px;"> <?php echo ResizeableColumn('Sponsor', empty($item['sponsor_id']) ? '-' : $sponsors[$item['sponsor_id']]['name']); ?> <?php echo ResizeableColumn('Zone', $item['zone']); ?> <?php echo ResizeableColumn('Tags', $item['tags']); ?> <?php echo ResizeableColumn('Displayed', $item['times_displayed'], true); ?> </div> </td> <td valign="top" class="search-result-icons"> <img src="images/edit-22x22.png" class="item-icon" title="Edit" meta="{t: 'dialog', r: 'tbxGenericShowEdit(banner)'}" /> <img src="images/delete-22x22.png" class="item-icon" title="Delete" meta="{t: 'action', r: 'tbxGenericAction(banner,delete)'}" /> </td> </tr>