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/components/com_djcatalog2/views/questions/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/components/com_djcatalog2/views/questions/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();

$price_auth = ($this->params->get('price_restrict', '0') == '1' && $user->guest) ? false : true;
$show_prices = (bool)($price_auth && (int)$this->params->get('cart_show_prices', 0) == 1);

$salesman = $user->authorise('djcatalog2.salesman', 'com_djcatalog2');

?>
<table width="100%" cellpadding="0" cellspacing="0" class="djc_questions_table jlist-table category table table-condensed" id="djc_questions_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_date">
				<?php echo Text::_('COM_DJCATALOG2_ORDER_DATE'); ?>
			</th>
			<?php if ($salesman) {?>
				<th><?php echo Text::_('COM_DJCATALOG2_USER_PROFILE'); ?></th>
			<?php } ?>
			<th class="djc_thead djc_thead_order_status">
				<?php echo Text::_('COM_DJCATALOG2_MESSAGE'); ?>
			</th>
			<?php if ($show_prices) {?>
			<th class="djc_thead djc_thead_order_total">
				<?php echo Text::_('COM_DJCATALOG2_TOTAL_VALUE'); ?>
			</th>
			<?php } ?>
		</tr>
	</thead>
	<tbody>
		<?php 
		$k = 1;
		foreach($this->items as $item) {
			$k = 1 - $k; 
			$order_url = Route::_(DJCatalogHelperRoute::getQuestionRoute($item->id));
			
			$name = array();
			if (!empty($item->firstname)) {
				$name[] = $item->firstname;
			}
			if (!empty($item->lastname)) {
				$name[] = $item->lastname;
			}
			
			$item->_name = (count($name) > 0) ? implode(' ', $name) : '';
			
		?>
			<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_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>
				<?php if ($salesman) {?>
					<td class="djc_td_order_info">
						<?php if ($item->company) { ?>
							<strong><?php echo $item->company?></strong><br />
						<?php }?>
						<?php if (!empty($item->_name)) {?>
						<strong><?php echo $item->_name; ?></strong><br />
						<?php } ?>
						
						<a href="mailto:<?php echo $item->email; ?>"><?php echo $item->email; ?></a><br />
						
						<?php 
							$addr = array();
							if (!empty($item->address)) {
								$addr['address'] = $item->address;
							}
							if (!empty($item->postcode)) {
								$addr['postcode'] = $item->postcode;
							}
							if (!empty($item->city)) {
								$addr['city'] = $item->city;
							}
							if (!empty($item->country)) {
								$addr['country'] = $item->country;
							}
							if (!empty($item->state)) {
								$addr['state'] = $item->state;
							}
							if (count($addr) > 0) {
								echo implode(', ', $addr).'<br />';
							}
						?>
					</td>
				<?php } ?>
				<td class="djc_td_order_status">
					<?php echo nl2br($item->customer_note); ?>
				</td>
				<?php if ($show_prices) {?>
				<td class="djc_td_order_total">
					<?php echo DJCatalog2HtmlHelper::formatPrice($item->grand_total, $this->params); ?>
				</td>
				<?php } ?>
			</tr>
		<?php } ?>
	</tbody>
</table>

Anon7 - 2022
AnonSec Team