<?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_ORDER_DETAILS' ); ?></legend>

		<table class="admintable" width="100%">
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_PRODUCT_ORDER_ID' ); ?> * :
				</label>
			</td>
			<td >
				<?php echo JHTML::_( 'select.genericlist', $this->productlist, 'p_id', '' ,'value','text' ); ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_USER_ID' ); ?> * :
				</label>
			</td>
			<td >
				<?php echo JHTML::_( 'select.genericlist', $this->userlist, 'user_id', '' ,'value','text' ); ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_PAYMENT_METHOD' ); ?> * :
				</label>
			</td>
			<td >
				<?php echo JHTML::_( 'select.genericlist', $this->paymentlist, 'method', '' ,'value','text' ); ?>
			</td>
		</tr>
		<tr>
			<td class="key">
				<label for="name">
					<?php echo JText::_( 'JE_GROUPBUY_TRANSACTION_ID' ); ?> * :
				</label>
			</td>
			<td >
				<input class="required" type="text" name="transaction_id" id="transaction_id" size="60" maxlength="255" value="<?php echo $this->row->transaction_id; ?>" />
				<span id="transaction_id-error"></span>
			</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->status : 1;
					echo JHTML::_('select.booleanlist',  'status', '', $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="pdate" value="<?php echo $this->row->pdate; ?>" />
<input type="hidden" name="controller" id="controller" value="orders" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<p class="copyright" align="center">
	<?php require_once( JPATH_COMPONENT . DS . 'copyright' . DS . 'copyright.php' ); ?>
</p>