<?php
/* @package Joomla
 * @copyright Copyright (C) Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @extension Phoca Extension
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
defined('_JEXEC') or die();
$group 	= PhocacartUtilsSettings::getManagerGroup($this->manager);

if ($this->manager == 'filemultiple') {

	$checked 	= Joomla\CMS\HTML\HTMLHelper::_('grid.id', $this->folderi, $this->folders[$this->folderi]->path_with_name_relative_no, 0, 'foldercid' );
	$link		= 'index.php?option=com_phocacart&amp;view=phocacartmanager'
		 .'&amp;manager='.$this->manager
		 .$group['c']
		 .'&amp;folder='.$this->_tmp_folder->path_with_name_relative_no
		 .'&amp;field='. $this->field;

	echo '<tr>'
	.' <td>'. $checked .'</td>'
	.' <td class="ph-img-table"><a href="'. JRoute::_( $link ).'">'
	. Joomla\CMS\HTML\HTMLHelper::_( 'image', $this->t['i'].'icon-16-folder-small.png', '').'</a></td>'
	.' <td><a href="'. JRoute::_( $link ).'">'. $this->_tmp_folder->name.'</a></td>'
	.'</tr>';

} else {

	$link		= 'index.php?option=com_phocacart&amp;view=phocacartmanager'
		 .'&amp;manager='. PhocacartText::filterValue($this->manager, 'alphanumeric')
		 . $group['c']
		 .'&amp;folder='.PhocacartText::filterValue($this->_tmp_folder->path_with_name_relative_no, 'folderpath')
		 .'&amp;field='. PhocacartText::filterValue($this->field, 'alphanumeric2');

	echo '<tr>'
	.' <td></td>'
	.' <td class="ph-img-table"><a href="'. JRoute::_( $link ).'">'
	. Joomla\CMS\HTML\HTMLHelper::_( 'image', $this->t['i'].'icon-16-folder-small.png', JText::_('COM_PHOCACART_OPEN')).'</a></td>'
	.' <td><a href="'. JRoute::_( $link ).'">'. $this->_tmp_folder->name.'</a></td>'
	.'</tr>';
}
?>
