Current File : /home/pacjaorg/public_html/km/components/com_djclassifieds/views/ordershistory/tmpl/default.php
<?php
/**
 * @package DJ-Classifieds
 * @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');

$app = JFactory::getApplication();
$par = $this->par;

?>
<div id="dj-classifieds" class="djcftheme-<?php echo $par->get('theme','default');?> <?php echo $par->get('pageclass_sfx'); ?>">
	<div class="orders_history">
		<div class="title_top"><h1><?php echo $this->page_heading ? $this->page_heading : JText::_("COM_DJCLASSIFIEDS_ORDERS_HISTORY"); ?></h1></div>
		<div class="dj-items-table2">
		<?php foreach($this->orders as $order){	
				$event_results = trim(implode("\n", $app->triggerEvent('onAfterDJClassifiedsDisplaySalesItem', array (&$order, &$par, 'ordershistory'))));
				echo '<div class="item_row">';
					if($order->i_name){
						echo '<div class="item_col icon first">';						
							echo '<a href="'.$order->item_uri.'">';
							if(count($order->images)){
								echo '<img src="'.JURI::base().$order->images[0]->thumb_orders.'"'; 
								echo ' alt="'.str_ireplace('"', "'", $order->images[0]->caption).'" ';
								echo  '/>';
							}else{
								echo '<img style="'.DJClassifiedsImage::getThumbStyle(DJClassifiedsImage::getThumbType('orders'),$par).'" src="'.JURI::base(true).'/'.DJClassifiedsTheme::getImgAssetPath('no-image.svg').'" ';						
								echo ' alt="'.str_ireplace('"', "'", $order->i_name).'" ';
								echo '/>';
							}
							echo '</a>';
						echo '</div>';
						echo '<div class="item_col name">';					
							echo '<h3><a class="title" href="'.$order->item_uri.'">'.$order->i_name.'</a></h3>';
							if($order->is_auction){
								echo '<span class="auction_icon" title="'.JText::_('COM_DJCLASSIFIEDS_AUCTION').'"></span>';
							}
						echo '</div>';
					}else{
						echo '<div class="item_col icon first">';
							echo '<img style="'.DJClassifiedsImage::getThumbStyle(DJClassifiedsImage::getThumbType('orders'),$par).'" src="'.JURI::base(true).'/'.DJClassifiedsTheme::getImgAssetPath('no-image.svg').'" ';
							echo ' alt="'.str_ireplace('"', "'", $order->item_name).'" ';
							echo '/>';
						echo '</div>';
						echo '<div class="item_col name">';
							echo '<h3>'.$order->item_name.'</h3>';
							if($order->is_auction){
								echo '<span class="auction_icon" title="'.JText::_('COM_DJCLASSIFIEDS_AUCTION').'"></span>';
							}
						echo '</div>';
					} ?>
					<div class="item_col"> 
						<div class="djcf_prow_desc_row djcf_prow_price">
							<span class="djcf_prow_desc_label"><?php echo JText::_("COM_DJCLASSIFIEDS_PRICE");?>:</span>
							<span class="djcf_prow_desc_value"><?php echo DJClassifiedsTheme::priceFormat($order->price,$order->currency);?></span>
							<div class="clear_both"></div>
						</div>
						<div class="djcf_prow_desc_row djcf_prow_quantity">
							<span class="djcf_prow_desc_label"><?php echo JText::_("COM_DJCLASSIFIEDS_QUANTITY");?>:</span>
							<span class="djcf_prow_desc_value"><?php echo $order->quantity;?></span>
							<div class="clear_both"></div>
						</div>
						<div class="djcf_prow_desc_row djcf_prow_date">
							<span class="djcf_prow_desc_label"><?php echo JText::_("COM_DJCLASSIFIEDS_ORDER_DATE");?>:</span>
							<span class="djcf_prow_desc_value"><?php echo DJClassifiedsTheme::formatDate(strtotime($order->date));?></span>
							<div class="clear_both"></div>
						</div>
					</div>
					<?php echo trim(implode("\n", $app->triggerEvent('onDJClassifiedsDisplaySalesRow', array(&$order, &$par, 'ordershistory')))); ?>
					<div class="item_col"> 
						<?php 
							if($order->username){
								echo '<a class="profile_name" href="'.$order->profile_uri.'">'.$order->username;
									if($order->i_user_items_count){
										echo ' <span>('.$order->i_user_items_count.')</span>';
									}
								echo '</a>';
								echo '<div class="profile_email_outer">';
									echo '<a class="profile_email button modal" title="'.JText::_('COM_DJCLASSIFIEDS_CONTACT_SELLER').'" data-bs-toggle="modal" data-toggle="modal" data-target="#user_pd_'.$order->id.'" href="#user_pd_'.$order->id.'">'.JText::_('COM_DJCLASSIFIEDS_CONTACT_SELLER').'</a>';
									echo JHtmlBootstrap::renderModal('user_pd_'.$order->id, array('bodyHeight' => '60', 'modalWidth' => '40', 'url' => JRoute::_('index.php?option=com_djclassifieds&view=contact&taskname=purchaseMessage&user_id='.$order->i_user_id.'&item_id='.$order->item_id.'&tmpl=component', false), 'title'=> JText::_('COM_DJCLASSIFIEDS_CONTACT_SELLER')));
								echo '</div>';
							}
							if($event_results){
								echo '<div class="results-box">'.$event_results.'</div>';
							}
						?>
					</div>
					<?php 
				echo '</div>';
			} ?>
			<?php 
				if(!$this->orders){
					echo '<div class="no_results">';
						echo JText::_('COM_DJCLASSIFIEDS_ORDERSHISTORY_NO_RESULTS');
					echo '</div>';
				}
			?>
		</div>
		<div class="pagination">
			<?php echo $this->pagination->getPagesLinks(); ?> 
		</div>	
	</div>
</div>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!