Location: PHPKode > projects > HikaShop > front/views/order/tmpl/listing.php
<?php
/**
 * @package		HikaShop for Joomla!
 * @version		1.4.3
 * @author		hikashop.com
 * @copyright	(C) 2010 HIKARI SOFTWARE. All rights reserved.
 * @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>
<div id="hikashop_order_listing">
<fieldset>
	<div class="header" style="float: left;"><h1><?php echo JText::_('ORDERS');?></h1></div>
	<div class="toolbar" id="toolbar" style="float: right;">
		<table class="hikashop_no_border">
			<tr>
				<td>
					<a onclick="javascript:submitbutton('cancel'); return false;" href="#" >
						<span class="icon-32-cancel" title="<?php echo JText::_('HIKA_CANCEL'); ?>">
						</span>
						<?php echo JText::_('HIKA_CANCEL'); ?>
					</a>
				</td>
			</tr>
		</table>
	</div>
</fieldset>
<div class="iframedoc" id="iframedoc"></div>
<form action="<?php echo hikashop::completeLink('order'); ?>" method="post" name="adminForm">
	<table class="hikashop_no_border">
		<tr>
			<td width="100%">
				<?php echo JText::_( 'FILTER' ); ?>:
				<input type="text" name="search" id="hikashop_search" value="<?php echo $this->escape($this->pageInfo->search);?>" class="inputbox" onchange="document.adminForm.submit();" />
				<button onclick="this.form.submit();"><?php echo JText::_( 'GO' ); ?></button>
				<button onclick="document.getElementById('hikashop_search').value='';this.form.submit();"><?php echo JText::_( 'RESET' ); ?></button>
			</td>
		</tr>
	</table>
	<table class="hikashop_orders adminlist" cellpadding="1">
		<thead>
			<tr>
				<th class="title titlenum" align="center">
					<?php echo JText::_( 'HIKA_NUM' );?>
				</th>
				<th class="title" align="center">
					<?php echo JText::_('ORDER_NUMBER'); ?>
				</th>
				<th class="title" align="center">
					<?php echo JHTML::_('grid.sort', JText::_('DATE'), 'a.order_created', $this->pageInfo->filter->order->dir,$this->pageInfo->filter->order->value ); ?>
				</th>
				<th class="title" align="center">
					<?php echo JHTML::_('grid.sort',   JText::_('ORDER_STATUS'), 'a.order_status', $this->pageInfo->filter->order->dir, $this->pageInfo->filter->order->value ); ?>
				</th>
				<th class="title" align="center">
					<?php echo JHTML::_('grid.sort',   JText::_('HIKASHOP_TOTAL'), 'a.order_full_price', $this->pageInfo->filter->order->dir, $this->pageInfo->filter->order->value ); ?>
				</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="10">
					<div class="pagination">
						<?php echo $this->pagination->getListFooter(); ?>
						<?php echo $this->pagination->getResultsCounter(); ?>
					</div>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php
				$k = 0;
				for($i = 0,$a = count($this->rows);$i<$a;$i++){
					$row =& $this->rows[$i];
			?>
				<tr class="<?php echo "row$k"; ?>">
					<td align="center">
					<?php echo $this->pagination->getRowOffset($i);
					?>
					</td>
					<td align="center">
						<a href="<?php echo hikashop::completeLink('order&task=show&cid='.$row->order_id); ?>">
							<?php echo hikashop::encode($row); ?>
						</a>
					</td>
					<td align="center">
						<?php echo hikashop::getDate($row->order_created,'%Y-%m-%d %H:%M');?>
					</td>
					<td align="center">
						<span class="hikashop_order_listing_status">
						<?php 
							echo $this->order_statuses->trans($row->order_status); ?></span>
						<?php if(!empty($row->show_payment_button)){
								echo $this->cart->displayButton(JText::sprintf('PAY_WITH_X',ucfirst($row->order_payment_method)),'pay',$this->params,hikashop::completeLink('order&task=pay&order_id='.$row->order_id),'window.location=\''.hikashop::completeLink('order&task=pay&order_id='.$row->order_id,false,true).'\';return false;','class="hikashop_order_pay_button"');
							} ?>
					</td>
					<td align="center">
						<?php echo $this->currencyHelper->format($row->order_full_price,$row->order_currency_id);?>
					</td>
				</tr>
			<?php
					$k = 1-$k;
				}
			?>
		</tbody>
	</table>
	<input type="hidden" name="option" value="<?php echo HIKASHOP_COMPONENT; ?>" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="ctrl" value="<?php echo JRequest::getCmd('ctrl'); ?>" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>
</div>
<div class="clear_both"></div>
Return current item: HikaShop