<?php
/**
 * @version		$Id: default.php 115 2009-06-17 07:20:36Z eddieajau $
 * @package		TAOJ.Quanta
 * @subpackage	com_quanta
 * @copyright	Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
 * @license		GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
 * @link		http://www.theartofjoomla.com
 */

// no direct access
defined('_JEXEC') or die;

JHTML::_('behavior.tooltip');
JHTML::addIncludePath(JPATH_COMPONENT.DS.'helpers'.DS.'html');
JHTML::stylesheet('default.css', 'administrator/components/com_quanta/media/css/');
?>

<form action="<?php echo JRoute::_('index.php?option=com_quanta');?>" method="post" name="adminForm" enctype="multipart/form-data" >
	<fieldset>
		<div style="float: right">
			<button type="button" onclick="submitbutton('import.upload');">
				<?php echo JText::_('Quanta_Button_Upload');?>
			</button>
			<button type="button" onclick="window.parent.document.getElementById('sbox-window').close();">
				<?php echo JText::_('Quanta_Button_Cancel');?>
			</button>
		</div>
		<div class="configuration" >
			<?php echo JText::_('Quanta_Page_Import'); ?>
		</div>
	</fieldset>

	<fieldset>
		<p>
			<label for="src_file">
				<?php echo JText::_('Quanta_CSV_File_label'); ?>
			</label>
			<br />
			<input type="file" name="src_file" id="src_file" value="" class="inputbox" size="60" />
			<br />
			<?php echo JText::sprintf('Quanta_Max_post_Max_upload', ini_get('post_max_size'), ini_get('upload_max_filesize')); ?>
		</p>

		<p>
			<label for="date_column" class="hasTip" title="<?php echo JText::_('Quanta_Import_Date_Column_Desc'); ?>">
				<?php echo JText::_('Quanta_Import_Date_Column_label'); ?>
			</label>
			<br />
			<input type="text" name="date_column" id="date_column" value="" class="inputbox" size="30" />
		</p>

		<p>
			<label for="value_column" class="hasTip" title="<?php echo JText::_('Quanta_Import_Value_Column_Desc'); ?>">
				<?php echo JText::_('Quanta_Import_Value_Column_label'); ?>
			</label>
			<br />
			<input type="text" name="value_column" id="value_column" value="" class="inputbox" size="30" />
		</p>

		<p>
			<label for="record_id" class="hasTip" title="<?php echo JText::_('Quanta_Import_Record_id_Desc'); ?>">
				<?php echo JText::_('Quanta_Import_Record_id_label'); ?>
			</label>
			<br />
			<select name="record_id" id="record_id" class="inputbox">
				<?php echo JHtml::_('quanta.recordOptions'); ?>
			</select>
		</p>

	</fieldset>

	<input type="hidden" name="task" value="" />
	<input type="hidden" name="option" value="com_quanta" />
	<?php echo JHTML::_('form.token'); ?>
</form>