| 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_djclassifieds/views/userofferssub/tmpl/ |
Upload File : |
<?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');
JHTML::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');
$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="offers_submitted">
<div class="title_top"><h1><?php echo $this->page_heading ? $this->page_heading : JText::_("COM_DJCLASSIFIEDS_OFFERS_SUBMITTED"); ?></h1></div>
<div class="dj-items-table2">
<?php foreach($this->offers as $offer){ ?>
<div class="item_row">
<?php
if($offer->i_name){
echo '<div class="item_col icon first">';
echo '<a href="'.$offer->item_uri.'">';
if(count($offer->images)){
echo '<img src="'.JURI::base().$offer->images[0]->thumb_offers_sub.'"';
echo ' alt="'.str_ireplace('"', "'", $offer->images[0]->caption).'" ';
echo '/>';
}else{
echo '<img class="no-image" style="'.DJClassifiedsImage::getThumbStyle(DJClassifiedsImage::getThumbType('offers_sub'),$par).'" src="'.JURI::base(true).'/'.DJClassifiedsTheme::getImgAssetPath('no-image.svg').'" ';
echo ' alt="'.str_ireplace('"', "'", $offer->i_name).'" ';
echo '/>';
}
echo '</a>';
echo '</div>';
echo '<div class="item_col name">';
echo '<h3><a class="title" href="'.$offer->item_uri.'">'.$offer->i_name.'</a></h3>';
echo '</div>';
}else{
echo '<div class="item_col icon first">';
echo '<img class="no-image" style="'.DJClassifiedsImage::getThumbStyle(DJClassifiedsImage::getThumbType('offers_sub'),$par).'" src="'.JURI::base(true).'/'.DJClassifiedsTheme::getImgAssetPath('no-image.svg').'" ';
echo ' alt="'.str_ireplace('"', "'", $offer->item_name).'" ';
echo '/>';
echo '</div>';
echo '<div class="item_col name">';
echo '<h3>'.$offer->item_name.'</a></h3>';
echo '</div>';
}
?>
</div>
</div>
<div class="dj-items-table2 dj-items-table2-offer-msg">
<div class="item_row item_row_msg">
<div class="item_col first">
<div class="item_message_title">
<?php echo JText::_('COM_DJCLASSIFIEDS_YOUR_OFFER'); ?>
</div>
<div class="item_message">
<?php echo $offer->message; ?>
</div>
<br />
<div class="djcf_prow_desc_row djcf_prow_price">
<span class="djcf_prow_desc_label"><b><?php echo JText::_("COM_DJCLASSIFIEDS_PRICE");?>:</b></span><br />
<span class="djcf_prow_desc_value"><?php echo DJClassifiedsTheme::priceFormat($offer->price,$offer->currency);?></span>
<div class="clear_both"></div>
</div>
<br />
<?php if($offer->quantity>0){?>
<div class="djcf_prow_desc_row djcf_prow_quantity">
<span class="djcf_prow_desc_label"><b><?php echo JText::_("COM_DJCLASSIFIEDS_QUANTITY");?>:</b></span><br />
<span class="djcf_prow_desc_value"><?php echo $offer->quantity;?></span>
<div class="clear_both"></div>
</div>
<br />
<?php } ?>
<div class="djcf_prow_desc_row djcf_prow_date">
<span class="djcf_prow_desc_label"><b><?php echo JText::_("COM_DJCLASSIFIEDS_OFFER_DATE");?>:</b></span><br />
<span class="djcf_prow_desc_value"><?php echo DJClassifiedsTheme::formatDate(strtotime($offer->date));?></span>
<div class="clear_both"></div>
</div>
<br />
<?php
echo '<a class="profile_name" href="'.$offer->profile_uri.'">'.$offer->username;
if($offer->i_user_items_count){
echo ' <span>('.$offer->i_user_items_count.')</span>';
}
echo '</a>';
echo '<div class="profile_email_outer"><a class="profile_email" href="mailto:'.$offer->email.'">'.$offer->email.'</a></div>';
?>
</div>
<div class="item_col status<?php echo $offer->status; ?>">
<div class="item_status">
<span><?php echo JText::_('COM_DJCLASSIFIEDS_STATUS'); ?>: </span>
<?php
if($offer->status==2){
echo JText::_('COM_DJCLASSIFIEDS_OFFER_DECLINED');
}else if($offer->status==1 || $offer->status==3){
echo JText::_('COM_DJCLASSIFIEDS_OFFER_ACCEPTED');
if($offer->paid==0 && $offer->i_user_id && DJClassifiedsPayment::getUserPaypal($offer->i_user_id) && $par->get('buynow_direct_payment',0)){
$payment_link = DJClassifiedsSEO::getViewUri('payment')."&type=offer&id=".$offer->id;
echo '<a class="payment_button button" href="'.$payment_link.'">'.JText::_('COM_DJCLASSIFIEDS_PAY').'</a>';
}
}else{
echo JText::_('COM_DJCLASSIFIEDS_WAITING_FOR_RESPONSE');
}
?>
</div>
<?php if($offer->status==1 && $offer->i_user_id && DJClassifiedsPayment::getUserPaypal($offer->i_user_id) && $par->get('buynow_direct_payment',0)){ ?>
<div class="item_status">
<span><?php echo JText::_('COM_DJCLASSIFIEDS_PAYMENT_STATUS'); ?>: </span>
<?php
if($offer->paid==1){
echo JText::_('COM_DJCLASSIFIEDS_PAID');
}else{
echo JText::_('COM_DJCLASSIFIEDS_PENDING');
}
?>
</div>
<?php } ?>
<?php if($offer->status==1 && $offer->i_user_id && DJClassifiedsPayment::getUserPaypal($offer->i_user_id) && $par->get('buynow_direct_payment',0)){ ?>
<div class="item_status">
<span><?php echo JText::_('COM_DJCLASSIFIEDS_SERVICE_COMPLETE_STATUS'); ?>: </span>
<?php
if($offer->paid==1){
if($offer->confirmed==1){
echo JText::_('COM_DJCLASSIFIEDS_OFFER_CONFIRMED');
}else{
$confirm_link = JURI::base()."index.php?option=com_djclassifieds&view=payment&task=confirmoffer&id=".$offer->id;
echo '<a class="payment_button button" href="'.$confirm_link.'">'.JText::_('COM_DJCLASSIFIEDS_CONFIRM_SERVICE').'</a>';
}
}else{
echo JText::_('COM_DJCLASSIFIEDS_WAITING_FOR_PAYMENT');
}
?>
</div>
<?php } ?>
<?php if($offer->status){ ?>
<div class="item_response">
<?php echo $offer->response; ?>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="dj-items-table2">
<?php } ?>
</div>
<?php
if(!$this->offers){
echo '<div class="no_results">';
echo JText::_('COM_DJCLASSIFIEDS_USEROFFERSSUB_NO_RESULTS');
echo '</div>';
}
?>
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
</div>
</div>