Spade
Mini Shell
| Directory:~$ /home/lmsyaran/www/administrator/components/com_invoices/views/templateitems/tmpl/ |
| [Home] [System Details] [Kill Me] |
<?php
/*------------------------------------------------------------------------
# com_invoices - Invoice Manager for Joomla
# ------------------------------------------------------------------------
# author Germinal Camps
# copyright Copyright (C) 2012 - 2016 JoomlaThat.com. All Rights
Reserved.
# @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.joomlathat.com
# Technical Support: Forum - http://www.joomlathat.com/support
-------------------------------------------------------------------------*/
//no direct access
defined('_JEXEC') or die('Restricted access.'); ?>
<?php
include(JPATH_COMPONENT_ADMINISTRATOR.DS.'views'.DS.'invoices'.DS.'tmpl'.DS.'default_menu.php');
?>
<div id="" class="wrap push shrink
invoice-manager">
<form action="index.php" method="post"
name="adminForm" id="adminForm">
<?php echo $this->loadTemplate('filter'); ?>
<table class="table table-striped">
<thead>
<tr>
<th width="5"> <?php echo JHTML::_(
'grid.sort', 'ID', 'tei.id',
$this->lists['order_Dir'],
$this->lists['order']); ?> </th>
<th width="20"> <input
type="checkbox" name="toggle" value=""
onclick="Joomla.checkAll(this);" />
</th>
<th> <?php echo JHTML::_( 'grid.sort',
'SKU', 'tei.sku',
$this->lists['order_Dir'],
$this->lists['order']); ?> </th>
<th> <?php echo JHTML::_( 'grid.sort',
'NAME', 'tei.name',
$this->lists['order_Dir'],
$this->lists['order']); ?> </th>
<th> <?php echo JHTML::_( 'grid.sort',
'DESCRIPTION', 'tei.desc',
$this->lists['order_Dir'],
$this->lists['order']); ?> </th>
<th> <?php echo JHTML::_( 'grid.sort',
'VALUE', 'tei.value',
$this->lists['order_Dir'],
$this->lists['order']); ?> </th>
<th> <?php echo JHTML::_( 'grid.sort',
'QUANTITY', 'tei.amount',
$this->lists['order_Dir'],
$this->lists['order']); ?> </th>
<th> <?php echo JHTML::_( 'grid.sort',
'TAX', 'tei.tax',
$this->lists['order_Dir'],
$this->lists['order']); ?> </th>
</tr>
</thead>
<?php
$k = 0;
for ($i=0, $n=count( $this->items ); $i < $n; $i++) {
$row = &$this->items[$i];
$checked = JHTML::_('grid.id', $i, $row->id );
$link = JRoute::_(
'index.php?option=com_invoices&controller=templateitem&task=edit&cid[]='.
$row->id );
?>
<tr class="<?php echo "row$k"; ?>">
<td><?php echo $row->id; ?></td>
<td><?php echo $checked; ?></td>
<td><?php echo $row->sku; ?></td>
<td><a href="<?php echo $link;
?>"><?php echo $row->name; ?></a></td>
<td><?php echo $row->desc; ?></td>
<td><?php echo InvoicesHelper::format($row->value,
$this->params->get('currency_before'),
$this->params->get('currency_after')); ?></td>
<td><?php echo $row->amount; ?></td>
<td><?php echo InvoicesHelper::format($row->tax,
"", "%"); ?></td>
</tr>
<?php
$k = 1 - $k;
}
?>
<tfoot>
<tr>
<td colspan="8"><?php echo
$this->pagination->getListFooter(); ?></td>
</tr>
</tfoot>
</table>
</div>
<input type="hidden" name="option"
value="com_invoices" />
<input type="hidden" name="task"
value="" />
<input type="hidden" name="boxchecked"
value="0" />
<input type="hidden" name="controller"
value="templateitem" />
<input type="hidden" name="filter_order"
value="<?php echo $this->lists['order']; ?>"
/>
<input type="hidden" name="filter_order_Dir"
value="<?php echo $this->lists['order_Dir'];
?>" />
</form>