<?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 to this file
defined('_JEXEC') or die('Restricted Access');
$listOrder	= $this->state->get('list.ordering');
$listDirn	= $this->state->get('list.direction');
$canOrder	= $this->user->authorise('core.edit.published', 'com_jegroupbuy.products');
$saveOrder	= $listOrder == 'p.ordering';
?>
<tr>
     <th width="4%" class="hidden-phone" style="text-align:center;">
    	<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
    </th>
	<th width="40%" align="left" style="text-align:left;">
		<?php echo JHtml::_('grid.sort',  'JE_SHOP_NAME', 's.shop_name', $listDirn, $listOrder); ?>
	</th>
	<th width="20%" style="text-align:center;">
		<?php echo JHtml::_('grid.sort', 'JE_SHOP_OWNER_LABEL', 's.owner', $listDirn, $listOrder); ?>
	</th>
	<th width="10%" style="text-align:center;">
		<?php echo JHtml::_('grid.sort', 'JE_EMAIL_LABEL', 's.email', $listDirn, $listOrder); ?>
	</th>
	<th width="10%" style="text-align:center;">
		<?php echo JHtml::_('grid.sort', 'JE_SHOP_CONTACTNUMBER_LABEL', 's.contact_number', $listDirn, $listOrder); ?>
	</th>
	<th width="5%" style="text-align:center;">
		<?php echo JHtml::_('grid.sort', 'JPUBLISHED', 'p.published', $listDirn, $listOrder); ?>
	</th>
	<th width="10%" style="text-align:center;">
		<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'p.access', $listDirn, $listOrder); ?>
	</th>
	<th width="5%" style="text-align:center;">
		<?php echo JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'p.language', $listDirn, $listOrder); ?>
	</th>
	<th width="5" style="text-align:center;">
		<?php echo JText::_('JE_ID'); ?>
	</th>
</tr>
