<?php
/**
 * jeGroupBuy package
 * @author J-Extension <contact@jextn.com>
 * @link http://www.jextn.com
 * @copyright (C) 2010 - 2011 J-Extension
 * @license GNU/GPL, see LICENSE.php for full license.
**/
// no direct access
defined('_JEXEC') or die('Restricted access');
$doc 		= & JFactory::getDocument();
$editor		= & JFactory::getEditor();
$js  		= JURI::base().'components/com_jegroupbuy/assets/js/validate.js';
$doc->addScript($js);
?>
<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">

<div class="col width-60">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'JE_GROUPBUY_DETAILS' ); ?></legend>

		<table class="admintable" width="100%">
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_SHOP_NAME' ); ?> * :
				</label>
			</td>
			<td >
				<input class="required" type="text" name="shop_name" id="shop_name" size="60" maxlength="255" value="<?php echo $this->row->shop_name; ?>" />
				<span id="shop_name-error"></span>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_SHOP_OWNER_NAME' ); ?> * :
				</label>
			</td>
			<td >
				<input class="required" type="text" name="owner" id="owner" size="60" maxlength="255" value="<?php echo $this->row->owner; ?>" />
				<span id="owner-error"></span>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_SHOP_CONTACT_NUMBER' ); ?> * :
				</label>
			</td>
			<td >
				<input class="required" type="text" name="contact_number" id="contact_number" size="60" maxlength="255" value="<?php echo $this->row->contact_number; ?>" />
				<span id="contact_number-error"></span>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_SHOP_EMAIL' ); ?> * :
				</label>
			</td>
			<td >
				<input  class="required" type="text" name="email" id="email" size="60" maxlength="255" value="<?php echo $this->row->email; ?>" />
				<span id="email-error"></span>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_SHOP_URL' ); ?>  :
				</label>
			</td>
			<td >
				<input  type="text" name="shop_url" id="shop_url" size="60" maxlength="255" value="<?php echo $this->row->shop_url; ?>" />
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_SHOP_ADDRESS' ); ?>  :
				</label>
			</td>
			<td >
				<textarea class="inputbox" rows="5" cols="30" id="address" name="address"><?php echo $this->row->address; ?></textarea>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_STORE_LOGO' ); ?>:
				</label>
			</td>
			<td >
				<?php echo $this->lists["store_logo"]; ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_STATE' ); ?>:
				</label>
			</td>
			<td >
				<?php
					$published = ($this->row->id) ? $this->row->published : 1;
					echo JHTML::_('select.booleanlist',  'published', '', $published );
				?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_SHOP_ID' ); ?>  :
				</label>
			</td>
			<td >
				<?php echo $this->row->id; ?>
			</td>
		</tr>
		</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_jegroupbuy" />
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" id="controller" value="stores" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<p class="copyright" align="center">
	<?php require_once( JPATH_COMPONENT . DS . 'copyright' . DS . 'copyright.php' ); ?>
</p>