<?php
/**
 * @package		SP Transfer
 * @subpackage	Components
 * @copyright	SP CYEND - All rights reserved.
 * @author		SP CYEND
 * @link		http://www.cyend.com
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
JHtml::_('behavior.modal');
?>
<?php foreach ($this->items_remote as $i => $item): ?>
    <tr class="row<?php echo $i % 2; ?>">
        <td>
            <?php if ($item->name != '..') : ?>
                <?php echo JHtml::_('grid.id', $i, $item->type.$item->name); ?>
            <?php endif; ?>
        </td>
        <td>
            <a href="#" onclick="browse_remote('<?php echo $item->path; ?>');" >
                <?php echo JHtml::_('image', $item->icon_16, $item->name, null, true, true) ? JHtml::_('image', $item->icon_16, $item->name, array('width' => 16, 'height' => 16), true) : JHtml::_('image', 'com_sptransfer/con_info.png', $item->name, array('width' => 16, 'height' => 16), true); ?> 
            </a>
        </td>	
        <td class="left">
            <?php if ($item->type == 1) : ?>
                <a href="#" onclick="browse_remote('<?php echo $item->path; ?>');" >
                    <?php echo $item->name; ?>
                </a>
            <?php else : ?>
                <?php echo JText::_($item->name); ?>
            <?php endif; ?>
        </td>
        <td class="center">            
            <?php if ($item->type == 0) : ?>
                <?php echo SPTransferHelper::parseSize($item->size); ?>
            <?php endif; ?>
        </td>
    </tr>
<?php endforeach; ?>

