<?php
/**
 * Import path options
 *
 * @package 	CSVIVirtueMart
 * @subpackage 	Export
 * @author 		Roland Dalmulder
 * @link 		http://www.csvimproved.com
 * @copyright 	Copyright (C) 2006 - 2012 RolandD Cyber Produksi
 * @license 	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * @version 	$Id: default_path.php 1892 2012-02-11 11:01:09Z RolandD $
 */
 
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
$base = JPath::clean(JPATH_SITE, '/');
?>
<fieldset class="adminform">
	<legend><?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_PATH_OPTIONS'); ?></legend>
	<table class="admintable">
		<tbody>
			<!-- File location product images -->
			<tr>
				<td class="key">
					<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_PRODUCT_IMAGES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_PRODUCT_IMAGES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_PRODUCT_IMAGES_LABEL'); ?></span>
				</td>
				<td>
					<input class="template_input longtext" type="text" id="file_location_product_images" name="jform[path][file_location_product_images]" size="255" value="<?php echo $this->template->getValue('file_location_product_images', 'path');?>">
					<br />
					<?php echo sprintf(JText::_('COM_CSVIVIRTUEMART_SUGGESTED_PATH'), '<span id="pathsuggest_product_images">'.$base.'/components/com_virtuemart/shop_image/product</span>');?> | 
					<a href="#" onclick="document.getElementById('file_location_product_images').value=document.getElementById('pathsuggest_product_images').innerHTML; return false;"><?php echo JText::_('COM_CSVIVIRTUEMART_PASTE');?></a> | 
					<a href="#" onclick="document.getElementById('file_location_product_images').value=''; return false;"><?php echo JText::_('COM_CSVIVIRTUEMART_CLEAR');?></a>
				</td>
			</tr>
			
			<!-- File location category images -->
			<tr>
				<td class="key">
					<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_CATEGORY_IMAGES_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_CATEGORY_IMAGES_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_CATEGORY_IMAGES_LABEL'); ?></span>
				</td>
				<td>
					<input class="template_input longtext" type="text" id="file_location_category_images" name="jform[path][file_location_category_images]" size="255" value="<?php echo $this->template->getValue('file_location_category_images', 'path'); ?>">
					<br />
					<?php echo sprintf(JText::_('COM_CSVIVIRTUEMART_SUGGESTED_PATH'), '<span id="pathsuggest_category_images">'.$base.'/components/com_virtuemart/shop_image/category</span>');?> | 
					<a href="#" onclick="document.getElementById('file_location_category_images').value=document.getElementById('pathsuggest_category_images').innerHTML; return false;"><?php echo JText::_('COM_CSVIVIRTUEMART_PASTE');?></a> | 
					<a href="#" onclick="document.getElementById('file_location_category_images').value=''; return false;"><?php echo JText::_('COM_CSVIVIRTUEMART_CLEAR');?></a>
				</td>
			</tr>
			
			<!-- File location media -->
			<tr>
				<td class="key">
					<span class="hasTip" title="<?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_MEDIA_LABEL'); ?> :: <?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_MEDIA_DESC'); ?>"><?php echo JText::_('COM_CSVIVIRTUEMART_IMPORT_FILE_LOCATION_MEDIA_LABEL'); ?></span>
				</td>
				<td>
					<input class="template_input longtext" type="text" id="file_location_media" name="jform[path][file_location_media]" size="255" value="<?php echo $this->template->getValue('file_location_media', 'path');?>">
					<br />
					<?php echo JText::sprintf('COM_CSVIVIRTUEMART_SUGGESTED_PATH', '<span id="pathsuggest_media">'.$base.'/media</span>');?> | 
					<a href="#" onclick="document.getElementById('file_location_media').value=document.getElementById('pathsuggest_media').innerHTML; return false;"><?php echo JText::_('COM_CSVIVIRTUEMART_PASTE');?></a> | 
					<a href="#" onclick="document.getElementById('file_location_media').value=''; return false;"><?php echo JText::_('COM_CSVIVIRTUEMART_CLEAR');?></a>
				</td>
			</tr>
		</tbody>
	</table>
</fieldset>
