AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nice2/components/com_djcatalog2/views/orders/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice2/components/com_djcatalog2/views/orders/tmpl/default_table.php
<?php
/**
 * @package DJ-Catalog2
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

defined ('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;
$user = Factory::getUser();
?>
<table width="100%" cellpadding="0" cellspacing="0" class="djc_orders_table jlist-table category table table-condensed" id="djc_orders_table">
	<thead>
		<tr>
			<?php if ($user->authorise('djcatalog2.filedownload', 'com_djcatalog2') && (isset($this->showCheckAll) && $this->showCheckAll)) : ?>
				<th width="1%" class="hidden-phone">
					<input type="checkbox" name="checkall-toggle" value="" title="<?php echo Text::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
				</th>
			<?php endif; ?>

			<th class="djc_thead djc_thead_order_no">
				<?php echo Text::_('COM_DJCATALOG2_ORDER_NUMBER'); ?>
			</th>
			<th class="djc_thead djc_thead_order_date">
				<?php echo Text::_('COM_DJCATALOG2_ORDER_DATE'); ?>
			</th>
			<th class="djc_thead djc_thead_order_status">
				<?php echo Text::_('COM_DJCATALOG2_ORDER_STATUS'); ?>
			</th>
			<th class="djc_thead djc_thead_order_total">
				<?php echo Text::_('COM_DJCATALOG2_ORDER_FINAL_PRICE'); ?>
			</th>
		</tr>
	</thead>
	<tbody>
		<?php 
		$k = 1;
		$original_currency = $this->params->get('price_unit');
		foreach($this->items as $item) {
			$k = 1 - $k; 
			$order_url = Route::_(DJCatalogHelperRoute::getOrderRoute($item->id));
			
			$currency = Djcatalog2HelperPrice::getCurrencyByCode($item->currency);
			if ($currency) {
				$this->params->set('price_unit', $currency->symbol);
				$this->params->set('price_unit_fixed', $currency->symbol);
			} else {
				$this->params->set('price_unit', $item->currency);
				$this->params->set('price_unit_fixed', $item->currency);
			}
			
		?>
			<tr class="cat-list-row<?php echo $k;?> djc_row<?php echo $k;?>">
				<?php if ($user->authorise('djcatalog2.filedownload', 'com_djcatalog2') && (isset($this->showCheckAll) && $this->showCheckAll)) : ?>
					<td class="center">
						<?php echo Joomla\CMS\HTML\HTMLHelper::_('grid.id',$k, $item->id); ?>
					</td>
				<?php endif; ?>
				<td class="djc_td_order_no">
					<a href="<?php echo $order_url;?>"><strong><?php echo str_pad($item->order_number, 5, '0', STR_PAD_LEFT); ?></strong></a>
					<?php 
					$invoice = false;
					if (!empty($item->invoice_number) && $this->params->get('cart_invoices', false)) {
						$invoice = true;
					}
					if ($invoice) {?>
						<a href="<?php echo Route::_(DJCatalogHelperRoute::getOrderRoute($item->id).'&task=getInvoice'); ?>" class="btn btn-primary button btn-small "><span class="icon-download"></span> <?php echo Text::_('COM_DJCATALOG2_GET_INVOICE'); ?></a>
					<?php } ?>
					<a href="<?php echo Route::_(DJCatalogHelperRoute::getOrderRoute($item->id).'&task=cart.reorder'); ?>" class="btn btn-primary button btn-small btn-success"><span class="icon-refresh"></span> <?php echo Text::_('COM_DJCATALOG2_REORDER'); ?></a>
				</td>
				<td class="djc_td_order_date">
					<a href="<?php echo $order_url;?>"><?php echo Joomla\CMS\HTML\HTMLHelper::_('date', $item->created_date, $this->params->get('date_format_date', Text::_('DATE_FORMAT_LC3'))); ?></a>
				</td>
				<td class="djc_td_order_status">
					<?php //echo Text::_('COM_DJCATALOG2_ORDER_STATUS_'.$item->status); ?>
					<?php echo DJCatalog2HtmlHelper::getOrderStatusName($item->status); ?>
				</td>
				<td class="djc_td_order_total">
					<?php echo DJCatalog2HtmlHelper::formatPrice($item->grand_total, $this->params); ?>
				</td>
			</tr>
		<?php } ?>
		<?php 
		$this->params->set('price_unit', $original_currency);
		$this->params->set('price_unit_fixed', null);
		?>
	</tbody>
</table>

Anon7 - 2022
AnonSec Team