Пример #1
0
                    <div class="n1">&nbsp;</div>
                    <div class="n2">Item</div>
                    <div class="n3">Offers</div>
                    <div class="n4">Time Left</div>
                    <div class="n5">Actions</div>
                    <div class="clear"></div>
                </div>
                
                
                <?php 
    foreach ($view['items'] as $itemData) {
        $thumbFileUrl = buckys_trade_get_item_thumb($itemData['images']);
        if ($view['type'] == 'expired') {
            $timeLeftStr = 'Expired';
        } else {
            $timeLeftStr = buckys_trade_get_item_time_left($itemData['createdDate']);
        }
        $editLink = '/trade/edititem.php?id=' . $itemData['itemID'];
        $relistLink = '/trade/edititem.php?id=' . $itemData['itemID'] . '&type=relist';
        $offerViewLink = '/trade/offer_received.php?targetID=' . $itemData['itemID'];
        $viewLink = '/trade/view.php?id=' . $itemData['itemID'];
        ?>
                
                    <div class="node">
                        <div class="n1"><a href="<?php 
        echo $viewLink;
        ?>
"><img src="<?php 
        echo $thumbFileUrl;
        ?>
" /></a></div>
Пример #2
0
             
             
             <?php 
 foreach ($offerMade as $offerData) {
     $userIns = new BuckysUser();
     $offerData['basicInfo'] = $userIns->getUserBasicInfo($offerData['targetUserID']);
     $myItemImage = buckys_trade_get_item_thumb($offerData['offeredImages']);
     $theirItemImage = buckys_trade_get_item_thumb($offerData['targetImages']);
     $sendMessageLink = '/messages_compose.php?to=' . $offerData['targetUserID'];
     $theirID = $offerData['targetUserID'];
     $dateOffered = date('n/j/y', strtotime($offerData['offerCreatedDate']));
     $strTimeLeft = '';
     if (strtotime($offerData['targetCreatedDate']) > strtotime($offerData['offeredCreatedDate'])) {
         $strTimeLeft = buckys_trade_get_item_time_left($offerData['offeredCreatedDate']);
     } else {
         $strTimeLeft = buckys_trade_get_item_time_left($offerData['targetCreatedDate']);
     }
     $targetItemLink = '/trade/view.php?id=' . $offerData['targetItemID'];
     $offeredItemLink = '/trade/view.php?id=' . $offerData['offeredItemID'];
     $totalRating = 'No';
     $positiveRating = '';
     if (isset($offerData['totalRating']) && $offerData['totalRating'] > 0) {
         $totalRating = $offerData['totalRating'];
         if (is_numeric($offerData['positiveRating'])) {
             $positiveRating = number_format($offerData['positiveRating'] / $offerData['totalRating'] * 100, 2, '.', '') . '% Positive';
         }
     }
     ?>
             
                 <div class="node">
                     
Пример #3
0
echo $itemData['offer'];
?>
 <br />
						<a href="/trade/search.php?cat=<?php 
echo urlencode($itemData['categoryName']);
?>
"><?php 
echo $itemData['categoryName'];
?>
</a><br />
						<?php 
echo $itemData['locationName'];
?>
 <br />
						<span style="color:#cc0000;"><?php 
echo buckys_trade_get_item_time_left($itemData['createdDate']);
?>
</span>
					</dd>					
                    
                </dl>
                <div class="clear"></div>
            </div>
            
            <div class="action-cont">
                <div><span class="titles">Action</span></div>
                
                <?php 
if ($itemData['status'] != BuckysTradeItem::STATUS_ITEM_TRADED) {
    ?>
                        <?php