<?php
/**
 * JE GroupBuy package
 * @author J-Extension <contact@jextn.com>
 * @link http://www.jextn.com
 * @copyright (C) 2011 - 2012 J-Extension
 * @license GNU/GPL, see LICENSE.php for full license.
**/

// No direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
$params = $this->form->getFieldsets('params');
$path = JURI::root();
?>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>

<form action="<?php echo JRoute::_('index.php?option=com_jegroupbuy&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="category-form" class="form-validate">
	<div class="width-60 fltlft">
		<fieldset class="adminform">
			<legend><?php echo JText::_( 'JE_PRODUCT_DETAILS' ); ?></legend>
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('title'); ?>
				<?php echo $this->form->getInput('title'); ?></li>

				<li><?php echo $this->form->getLabel('alias'); ?>
				<?php echo $this->form->getInput('alias'); ?></li>

				<li>
					<?php echo $this->form->getLabel('catid'); ?>
					<?php echo $this->form->getInput('catid'); ?>
				</li>

				<li><?php echo $this->form->getLabel('store_id'); ?>
				<?php echo $this->form->getInput('store_id'); ?></li>

				<li><?php echo $this->form->getLabel('published'); ?>
				<?php echo $this->form->getInput('published'); ?></li>

				<li><?php echo $this->form->getLabel('featured'); ?>
				<?php echo $this->form->getInput('featured'); ?></li>

				<li><?php echo $this->form->getLabel('access'); ?>
				<?php echo $this->form->getInput('access'); ?></li>

				<li><?php echo $this->form->getLabel('language'); ?>
				<?php echo $this->form->getInput('language'); ?></li>

				<li><?php echo $this->form->getLabel('imageurl'); ?>
				<?php echo $this->form->getInput('imageurl'); ?></li>

				<li><?php echo $this->form->getLabel('id'); ?>
				<?php echo $this->form->getInput('id'); ?></li>

			</ul>
			<div class="clr"></div>
			<?php echo $this->form->getLabel('description'); ?>
			<div class="clr"></div>
			<?php echo $this->form->getInput('description'); ?>
	</div>

	<div class="width-40 fltrt">

		<?php echo JHtml::_('sliders.start', 'product-slider'); ?>
		<?php echo JHtml::_('sliders.panel', JText::_("JE_PRODUCT_EXTRA_FIELDS"), 'extrafields');?>
		<fieldset class="panelform" >
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('product_price'); ?>
				<?php echo $this->form->getInput('product_price'); ?></li>
				
				<li><?php echo $this->form->getLabel('currencysymbol'); ?>
				<?php echo $this->form->getInput('currencysymbol'); ?></li>

				<li><?php echo $this->form->getLabel('product_discount'); ?>
				<?php echo $this->form->getInput('product_discount'); ?></li>

				<li><?php echo $this->form->getLabel('you_save'); ?>
				<?php echo $this->form->getInput('you_save'); ?></li>

				<li><?php echo $this->form->getLabel('coupon_code'); ?>
				<?php echo $this->form->getInput('coupon_code'); ?></li>

				<li><?php echo $this->form->getLabel('deal_price'); ?>
				<?php echo $this->form->getInput('deal_price'); ?></li>


			</ul>
		</fieldset>
		<?php echo JHtml::_('sliders.end'); ?>


		<?php echo JHtml::_('sliders.start', 'dealtime-slider'); ?>
		<?php echo JHtml::_('sliders.panel', JText::_("JE_DEAL_TIME_FIELDS"), 'dealtime');?>
		<fieldset class="panelform" >
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('deal_to_date'); ?>
				<?php echo $this->form->getInput('deal_to_date'); ?></li>

				<li><?php echo $this->form->getLabel('total_bought'); ?>
				<?php echo $this->form->getInput('total_bought'); ?></li>
			</ul>
		</fieldset>
		<?php echo JHtml::_('sliders.end'); ?>

		<?php echo JHtml::_('sliders.start', 'gmap-slider'); ?>
		<?php echo JHtml::_('sliders.panel', JText::_("JE_GOOGLE_MAP_FIELDS"), 'gmap');?>
		<fieldset class="panelform" >
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('gmap_width'); ?>
				<?php echo $this->form->getInput('gmap_width'); ?></li>

				<li><?php echo $this->form->getLabel('gmap_height'); ?>
				<?php echo $this->form->getInput('gmap_height'); ?></li>

				<li><?php echo $this->form->getLabel('gmap_latitude'); ?>
				<?php echo $this->form->getInput('gmap_latitude'); ?></li>

				<li><?php echo $this->form->getLabel('gmap_longitude'); ?>
				<?php echo $this->form->getInput('gmap_longitude'); ?></li>

				<li><?php echo $this->form->getLabel('gmap_zoom'); ?>
				<?php echo $this->form->getInput('gmap_zoom'); ?></li>
			</ul>
		</fieldset>
		<?php echo JHtml::_('sliders.end'); ?>


		<?php echo JHtml::_('sliders.start', 'helloworld-slider'); ?>

<?php foreach ($params as $name => $fieldset): ?>
		<?php echo JHtml::_('sliders.panel', JText::_($fieldset->label), 'params');?>
	<?php if (isset($fieldset->description) && trim($fieldset->description)): ?>
		<p class="tip"><?php echo $this->escape(JText::_($fieldset->description));?></p>
	<?php endif;?>
		<fieldset class="panelform" >
			<ul class="adminformlist">
	<?php foreach ($this->form->getFieldset($name) as $field) : ?>
				<li><?php echo $field->label; ?><?php echo $field->input; ?></li>
	<?php endforeach; ?>
			</ul>
		</fieldset>
<?php endforeach; ?>

		<?php echo JHtml::_('sliders.end'); ?>
	</div>

	<div>
		<input type="hidden" name="task" value="product.edit" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
	<input type="hidden" name="site_path" id="site_path" value="<?php echo $path; ?>"/>
</form>
<tr>
	<td>&nbsp;</td>
</tr>
<tr>
<td>
<p class="copyright" align="center">
	<?php require_once( JPATH_COMPONENT . DS . 'copyright' . DS . 'copyright.php' ); ?>
</p>
</td>
</tr>
</table>


