<?
#################################################################
## Deatils.php ##
##-------------------------------------------------------------##
## Copyright 2012. All rights reserved. ##
##-------------------------------------------------------------##
#################################################################
if ( !defined('INCLUDED') ) { die("Access Denied"); }
?>
<?=$auction_print_header;?>
<SCRIPT LANGUAGE="JavaScript"><!--
myPopup = '';
function openPopup(url) {
myPopup = window.open(url,'popupWindow','width=640,height=150,status=yes');
if (!myPopup.opener) myPopup.opener = self;
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE = "JavaScript">
function converter_open(url) {
output = window.open(url,"popDialog","height=220,width=700,toolbar=no,resizable=yes,scrollbars=yes,left=10,top=10");
}
</SCRIPT>
<? if ($ad_display == 'live') { ?>
<form name="hidden_form" action="auction_details.php" method="get" style="margin:0px;">
<input type="hidden" name="option" />
<input type="hidden" name="auction_id" />
<input type="hidden" name="message_content" />
<input type="hidden" name="question_id" />
</form>
<? } ?>
<? if ($print_button == 'show') { ?>
<table align="center" border="0" cellpadding="3" cellspacing="1" class="errormessage">
<tr>
<td class="contentfont"><a href="#" onclick="javascript:window.print(this);">
<?=GMSG_PRINT_THIS_PAGE;?>
</a></td>
</tr>
</table>
<? } ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="60%"><div class="itemid"><?=$item_details['name'];?></div>
<div class="itemidend">
<?=MSG_AUCTION_ID;?>: <b><?=$item_details['auction_id'];?></b>
<? if ($ad_display == 'live') { ?>
| <b><?=MSG_STATUS;?></b>: <?=item::item_status($item_details['closed']); ?>
<? } ?>
<? if ($ad_display == 'live') { ?>
| <?=MSG_ITEM_VIEWED;?>
<span class="redfont"><?=($item_details['nb_clicks']+1); ?> <?=GMSG_TIMES;?></span>
<? } ?>
</div>
<div><img src='themes/<?=$setts['default_theme'];?>"/img/pixel.gif' width='1' height='3'></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<? if ($ad_display == 'live') { ?>
<td nowrap valign="top">
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td class="contentfont" nowrap style="padding-right: 10px;"><img src="themes/<?=$setts['default_theme'];?>/img/arrow.gif" align="absmiddle" border="0" hspace="5"> <a href="<?=process_link('index');?>"><?=MSG_BACK_TO_HP;?></a></td>
</tr>
<? if (!empty($search_url)) { ?>
<tr>
<td class="contentfont" nowrap style="padding-right: 10px;"><img src="themes/<?=$setts['default_theme'];?>/img/arrow.gif" align="absmiddle" border="0" hspace="5"> <a href="<?=$search_url;?>"><?=MSG_BACK_TO_SEARCH_PAGE;?></a></td>
</tr>
<? } ?>
<? if ($user_details['shop_active']) { ?>
<tr>
<td class="contentfont" nowrap style="padding-right: 10px;"><img src="themes/<?=$setts['default_theme'];?>/img/arrow.gif" align="absmiddle" border="0" hspace="5"> <a href="<?=process_link('shop', array('user_id' => $item_details['owner_id']));?>"><?=MSG_VIEW_STORE;?></a></td>
</tr>
<? } ?>
</table>
</td>
<? } ?>
<td width="100%" valign="top"><table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td nowrap><b>
<?=MSG_MAIN_CATEGORY;?>
:</b></td>
<td class="contentfont" width="100%"><?=$main_category_display;?></td>
</tr>
<? if ($item_details['addl_category_id']) { ?>
<tr>
<td nowrap><b>
<?=MSG_ADDL_CATEGORY;?>
:</b></td>
<td class="contentfont"><?=$addl_category_display;?></td>
</tr>
<? } ?>
</table></td>
</tr>
</table></td>
<td class="contentfont">
<div class="errormessage">
<? if ($ad_display == 'live') { ?>
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr valign="top">
<? if ($session->value('user_id')) { ?>
<td nowrap width="100%" class="contentfont">
<div style="padding-bottom: 3px;">
<b><?=MSG_WELCOME;?>, <?=$session->value('username');?></b>
</div>
<? if ($item_details['owner_id'] == $session->value('user_id')) { ?>
<a href="<?=process_link('sell_item', array('option' => 'sell_similar', 'auction_id' => $item_details['auction_id']));?>"><?=MSG_SELL_SIMILAR;?></a>
<? if (!$item->under_time($item_details)) { ?>
<? if ($item_details['nb_bids']==0 && $item_details['active']==1) { ?>
| <a href="edit_item.php?auction_id=<?=$item_details['auction_id'];?>&edit_option=new"><?=MSG_EDIT_AUCTION;?></a>
| <a href="members_area.php?do=delete_auction&auction_id=<?=$item_details['auction_id'];?>&page=selling§ion=open" onclick="return confirm('<?=MSG_DELETE_CONFIRM;?>');"><?=MSG_DELETE;?></a>
<? } else if ($item_details['nb_bids']>0 && $item_details['active']==1) { ?>
| <a href="edit_description.php?auction_id=<?=$item_details['auction_id'];?>"><?=MSG_EDIT_DESCRIPTION;?></a>
<? } ?>
<? } ?>
<? if ($item->can_close_manually($item_details, $session->value('user_id'))) { ?>
| <a href="members_area.php?do=close_auction&auction_id=<?=$item_details['auction_id'];?>&page=selling§ion=open" onclick="return confirm('<?=MSG_CLOSE_AUCTION_CONFIRM;?>');"><?=MSG_CLOSE_AUCTION;?></a>
<? } ?>
<? } else if ($session->value('user_id')) { ?>
| <a href="<?=process_link('members_area', array('page' => 'account', 'section' => 'abuse_report', 'auction_id' => $item_details['auction_id']));?>"><?=MSG_REPORT_AUCTION;?></a>
<? } ?>
</td>
<? } else { ?>
<td class="contentfont" ><?=MSG_STATUS_BIDDER_SELLER_A;?>
<a href="<?=process_link('login');?>">
<?=MSG_STATUS_BIDDER_SELLER_B;?>
</a>
<?=MSG_STATUS_BIDDER_SELLER_C;?></td>
<? } ?>
</tr>
</table>
<a href="javascript:popUp('<?=process_link('auction_print', array('auction_id' => $item_details['auction_id']));?>');"><img src="themes/<?=$setts['default_theme'];?>/img/system/print.gif" align="absmiddle" border="0" hspace="3"><?=MSG_PRINT_VIEW;?></a>
<a href="<?=process_link('auction_details', array('auction_id' => $item_details['auction_id'], 'option' => 'item_watch'));?>"><img src="themes/<?=$setts['default_theme'];?>/img/system/watch.gif" align="absmiddle" border="0" hspace="3"><?=MSG_WATCH_ITEM;?></a>
<a href="<?=process_link('auction_details', array('auction_id' => $item_details['auction_id'], 'option' => 'auction_friend'));?>"><img src="themes/<?=$setts['default_theme'];?>/img/system/tofriend.gif" align="absmiddle" border="0" hspace="3"><?=MSG_SEND_TO_FRIEND;?></a>
<? } ?>
</div>
</td>
</tr>
</table>
<br>
<?=$auction_friend_form;?>
<?=$msg_changes_saved;?>
<?=$block_reason_msg;?>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">
<a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_ITEM_DETAILS;?></a>
</li>
<!--
<li class="TabbedPanelsTab" tabindex="0">
<a href="#"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_SHIPPING;?></a>
</li>
-->
<li class="TabbedPanelsTab" tabindex="0">
<a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_PAYMENT_METHODS;?></a>
</li>
<? if ($ad_display == 'live') { ?>
<? if ($setts['enable_asq']) { ?>
<li class="TabbedPanelsTab" tabindex="0">
<a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_ASK_SELLER_QUESTION;?></a>
</li>
<? } ?>
<? if ($setts['enable_other_items_adp'] && $item->count_contents($other_items)) { ?>
<li class="TabbedPanelsTab" tabindex="0">
<a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_OTHER_ITEMS_FROM_SELLER;?></a>
</li>
<? } ?>
<? } ?>
</ul>
<div class="TabbedPanelsContentGroup" >
<div class="TabbedPanelsContent">
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr>
<td>
<? if (!empty($direct_payment_box)) { ?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="title"><?=MSG_DIRECT_PAYMENT;?></td>
</tr>
<? foreach ($direct_payment_box as $dp_box) { ?>
<tr>
<td><?=$dp_box;?></td>
</tr>
<? } ?>
</table>
<br>
<? } ?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr valign="top">
<? if (!empty($item_details['ad_image'][0])) { ?>
<td width="20%" align="center"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td align="center"><img src="<?=SITE_PATH;?>thumbnail.php?pic=<?=$item_details['ad_image'][0];?>&w=150&sq=Y&b=Y" border="0" alt="<?=$item_details['name'];?>"></td>
</tr>
</table></td>
<? } ?>
<td width="55%"><!-- Start Table for item details -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<? if ($ad_display == 'live' && !$buyout_only) { ?>
<tr>
<td nowrap><b>
<?=MSG_CURRENT_BID;?>
</b></td>
<td class="greenfont"><strong>
<?=$fees->display_amount((($item_details['auction_type'] == 'first_bidder') ? $item_details['fb_current_bid'] : $item_details['max_bid']), $item_details['currency']); ?>
</strong></td>
</tr>
<? } ?>
<? if (!$buyout_only) { ?>
<tr>
<td nowrap><b>
<?=MSG_START_BID;?>
</b></td>
<td class="redfont" width="100%"><b>
<?=$fees->display_amount($item_details['start_price'], $item_details['currency']); ?>
</b>
<? if ($ad_display == 'live') { ?>
<span class="contentfont">[ <a href="javascript:void(0);" onClick="converter_open('currency_converter.php?currency=<?=$item_details['currency'];?>&amount=<?=$item_details['start_price'];?>');">
<?=MSG_CONVERT;?>
</a> ]</span>
<? } ?></td>
</tr>
<? if ($your_bid>0) { ?>
<tr>
<td nowrap><b>
<?=MSG_YOUR_BID;?>
</b></td>
<td class="greenfont" width="100%"><b>
<?=$fees->display_amount($your_bid, $item_details['currency']); ?>
</b></td>
</tr>
<? } ?>
<? } ?>
<? if ($item_details['auction_type'] == 'first_bidder' || ($ad_display == 'preview' && $item_details['is_reserve'] && !$buyout_only)) { ?>
<tr>
<td nowrap><b>
<?=MSG_RES_PRICE;?>
</b></td>
<td width="100%"><b>
<?=$fees->display_amount($item_details['reserve_price'], $item_details['currency']); ?>
</b></td>
</tr>
<? } ?>
<? if ($item_details['quantity']) { ?>
<tr>
<td nowrap><b>
<?=GMSG_QUANTITY;?>
</b></td>
<td width="100%"><?=$item_details['quantity'];?></td>
</tr>
<? } ?>
<?php
echo '<tr class="c1">
<td><b>'. MSG_ITEM_CONDITION. '</b></td>
<td>';
if ($item_details['item_condition']==0) { echo MSG_ITEM_CHOOSE_CONDITION; }
else if ($item_details['item_condition']==1) { echo MSG_ITEM_NEW; }
else if ($item_details['item_condition']==2) { echo MSG_ITEM_VERY_GOOD; }
else if ($item_details['item_condition']==3) { echo MSG_ITEM_GOOD; }
else if ($item_details['item_condition']==4) { echo MSG_ITEM_AVERAGE; }
else if ($item_details['item_condition']==5) { echo MSG_ITEM_POOR; }
else if ($item_details['item_condition']==6) { echo MSG_ITEM_DEFECTIVE; }
echo '</td>
</tr>';
?>
<? if ($ad_display == 'live' && !$buyout_only && $item_details['auction_type'] != 'first_bidder') { ?>
<tr>
<td nowrap><b>
<?=MSG_NR_BIDS;?>
</b></td>
<td width="100%" class="contentfont"><?=$item_details['nb_bids'];?>
<? if ($item_details['nb_bids']) { ?>
[ <a href="<?=process_link('bid_history', array('auction_id' => $item_details['auction_id']));?>">
<?=MSG_VIEW_HISTORY;?>
</a> ]
<? } ?></td>
</tr>
<? } ?>
</table>
</td>
<? if ($show_buyout) { ?>
<td nowrap><?
if ($ad_display == 'preview' || $session->value('user_id') == $item_details['owner_id'] || $blocked_user)
{
echo '<img src="themes/' . $setts['default_theme'] . '/img/buyout.gif" border="0">';
}
else
{
echo '<a href="buy_out.php?auction_id=' . $item_details['auction_id'] . '"><img src="themes/' . $setts['default_theme'] . '/img/buyout.gif" border="0" style="margin-bottom: 5px;"></a>';
}
echo '<br><b>for</b> <b class="buyout">' . $fees->display_amount($item_details['buyout_price'], $item_details['currency']) . '</b>'.
'<br><span class="contentfont">[ <a href="javascript:void(0);" onClick="converter_open(\\'currency_converter.php?currency=' . $item_details['currency'] . '&amount=' . $item_details['buyout_price'] . '\\');">' . MSG_CONVERT . '</a> ]</span>';
?></td>
<? } ?>
</tr>
</table>
<? if ($item_can_bid['result']) { ?>
<br>
<table width="100%" border="0" cellpadding="1" cellspacing="8" class="border c1">
<form action="bid.php" method="post">
<input type="hidden" name="auction_id" value="<?=$item_details['auction_id'];?>">
<input type="hidden" name="action" value="bid_confirm">
<tr>
<td><? if ($item_can_bid['show_box']) { ?>
<? if ($item_details['auction_type'] != 'first_bidder') { ?>
<? if ($item_details['auction_type']=='dutch') { ?>
<div style="padding-bottom: 10px;">
<?=GMSG_QUANTITY;?>
<input name="quantity" type="text" id="quantity" value="1" size="8">
</div>
<? } ?>
<?=MSG_YOUR_MAXIMUM_BID;?>
<b>
<?=$item_details['currency'];?>
</b>
<input name="max_bid" type="text" id="max_bid" size="7" />
<div class="redfont" style="font-size: 10px;">
<?=MSG_MINIMUM_BID;?>
: <b><? echo $fees->display_amount($item->min_bid_amount($item_details), $item_details['currency']);?></b></div>
<? } ?>
<td><input class="placebid" name="form_place_bid" type="submit" id="form_place_bid" value="<?=MSG_PLACE_BID;?>" <? echo (!$item_can_bid['result'] || $blocked_user) ? 'disabled' : ''; ?>>
<? } ?>
</td>
</tr>
</form>
</table>
<br>
<? } ?>
<? if (!empty($item_can_bid['display'])) { ?>
<div class="errormessage">
<?=$item_can_bid['display'];?>
</div>
<br>
<? } ?>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td nowrap><b>
<?=MSG_LOCATION;?>
</b>:</td>
<td width="100%"><?=$auction_location;?></td>
</tr>
<tr>
<td nowrap><b>
<?=MSG_COUNTRY;?>
</b>:</td>
<td><?=$auction_country;?></td>
</tr>
<? if ($ad_display == 'live' && $item_details['start_time'] <= CURRENT_TIME && $item_details['auction_type'] != 'first_bidder') { // dont show if the auction is not started ?>
<tr>
<td nowrap><b>
<?=MSG_TIME_LEFT;?>
</b>:</td>
<td><?=time_left($item_details['end_time']); ?></td>
</tr>
<? } ?>
<tr>
<td nowrap><b>
<?=GMSG_START_TIME;?>
</b>:</td>
<td><? echo ($ad_display == 'live' || $item_details['start_time_type'] == 'custom') ? show_date($item_details['start_time']) : GMSG_NOW; ?></td>
</tr>
<? if ($item_details['auction_type'] == 'first_bidder') { ?>
<tr>
<td nowrap><b><?=MSG_FB_DECREMENT;?></b>:</td>
<td><?
$fb_decrement = $item->convert_fb_decrement($item_details, 'NTS');
echo $fees->display_amount($item_details['fb_decrement_amount'], $item_details['currency']) . ' ' . $fb_decrement['display']; ?></td>
</tr>
<? if ($ad_display == 'live' && $item_details['closed'] == 0) { ?>
<tr>
<td nowrap><b><?=MSG_NEXT_DECREMENT;?></b>:</td>
<td><?=show_date($item_details['fb_next_decrement']); ?></td>
</tr>
<? } ?>
<tr class="c5">
<td colspan="2"></td>
</tr>
<? } else { ?>
<? if ($ad_display == 'live' || $item_details['end_time_type'] == 'custom') { ?>
<tr>
<td nowrap><b>
<?=GMSG_END_TIME;?>
</b>:</td>
<td><?=show_date($item_details['end_time']); ?></td>
</tr>
<? } else { ?>
<tr>
<td><b>
<?=GMSG_DURATION;?>
</b>:</td>
<td><? echo $item_details['duration'] . ' ' . GMSG_DAYS; ?></td>
</tr>
<? } ?>
<? } ?>
<tr>
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
</tr>
<? if ($item_details['is_offer'] && $setts['makeoffer_process'] == 1) { ?>
<tr class="c1">
<td><b>
<?=GMSG_MAKE_OFFER;?>
</b></td>
<td class="c1"><?
if ($ad_display == 'preview' || $session->value('user_id') == $item_details['owner_id'] || $blocked_user)
{
echo '<img src="themes/' . $setts['default_theme'] . '/img/system/makeoffer25.gif" border="0">';
}
else
{
echo '<a href="make_offer.php?auction_id=' . $item_details['auction_id'] . '"><img src="themes/' . $setts['default_theme'] . '/img/system/makeoffer25.gif" border="0"></a>';
} ?></td>
</tr>
<? if ($ad_display != 'live' || $setts['makeoffer_private']) { ?>
<tr>
<td></td>
<td><?=MSG_OFFER_RANGE;?>: <?=$item->offer_range($item_details);?></td>
</tr>
<? } ?>
<tr class="c5">
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
</tr>
<? } ?>
<? if ($ad_display == 'live' && $item_details['reserve_price']>0) { ?>
<tr>
<td colspan="2"><b><? echo ($item_details['reserve_price']>$item_details['max_bid']) ? '<span class="redfont">' . MSG_RESERVE_NOT_MET . '</span>' : '<span class="greenfont">' . MSG_RESERVE_MET . '</span>'; ?></b></td>
</tr>
<tr class="c5">
<td colspan="2"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
</tr>
<? } ?>
<? if ($item_details['enable_swap'] && !$item_details['closed']) { ?>
<tr>
<td colspan="2" class="contentfont"><?=MSG_SWAP_OFFERS_ACCEPTED;?>
<? echo ($ad_display == 'live' && !$blocked_user) ? $swap_offer_link : '';?></td>
</tr>
<? } ?>
<? if ($ad_display == 'live' && !$buyout_only && !$item_details['closed'] && $item_details['auction_type'] != 'first_bidder') { ?>
<tr>
<td><b>
<?=MSG_HIGH_BID; ?>
</b></td>
<td><?=$high_bidders_content;?></td>
</tr>
<? } ?>
<? if ($ad_display == 'live' && !empty($winners_content)) { ?>
<tr>
<td><b>
<?=MSG_WINNER_S; ?>
</b></td>
<td><?=$winners_content;?></td>
</tr>
<? } ?>
<? if ($item_details['apply_tax']) { ?>
<tr>
<td colspan="2"><?=$auction_tax['display'];?></td>
</tr>
<? if ($auction_tax['display_buyer']) { ?>
<tr>
<td colspan="2"><?=$auction_tax['display_buyer'];?></td>
</tr>
<? } ?>
<? } ?>
<?=$winners_message_board;?>
<? if (!empty($item_watch_text)) { ?>
<tr>
<td colspan="2" class="c2"><?=$item_watch_text;?></td>
</tr>
<? } ?>
</table></td>
<td width="25%"><table width="100%" border="0" cellspacing="2" cellpadding="3" class="border">
<tr>
<td class="c4"><b>
<?=MSG_SELLER_INFORMATION;?>
</b></td>
</tr>
<tr>
<td><b><?=$user_details['username'];?></b> <?=user_pics($user_details['user_id']);?></td>
</tr>
<tr>
<td><?=MSG_REGISTERED_SINCE;?> <b><?=show_date($user_details['reg_date'], false);?></b><br>
<? echo GMSG_IN . ' <b>' . $seller_country . '</b>'; ?></td>
</tr>
<? if ($ad_display == 'live') { ?>
<? if ($user_details['shop_active']) { ?>
<tr>
<td class="contentfont"><a href="<?=process_link('shop', array('user_id' => $item_details['owner_id']));?>">
<?=MSG_VIEW_STORE;?>
</a></td>
</tr>
<? } ?>
<? } ?>
</table>
<br>
<div class="border">
<?=$reputation_table_small;?>
</div></td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="2" class="title"><?=GMSG_DESCRIPTION;?></td>
</tr>
<tr>
<td colspan="2"><?=database::add_special_chars($item_details['description']);?></td>
</tr>
</table>
<?=$custom_sections_table;?>
<? if (item::count_contents($item_details['ad_image'])) { ?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="title" colspan="2"><?=MSG_AUCTION_IMAGES;?></td>
</tr>
<tr>
<td class="border" colspan="2"><table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr align="center">
<td valign="top" class="picselect"><table cellpadding="3" cellspacing="1" border="0">
<tr align="center">
<td><b>
<?=MSG_SELECT_PICTURE;?>
</b></td>
</tr>
<tr align="center">
<td><?=$ad_image_thumbnails;?></td>
</tr>
</table></td>
<td width="100%" class="picselectmain" align="center"><img name="main_ad_image" src="<?=SITE_PATH;?>thumbnail.php?pic=<?=$item_details['ad_image'][0];?>&w=500&sq=N&b=N" border="0" alt="<?=$item_details['name'];?>"></td>
</tr>
</table></td>
</tr>
</table>
<? } ?>
<? if (item::count_contents($item_details['ad_video'])) { ?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="title" colspan="2"><?=MSG_AUCTION_MEDIA;?></td>
</tr>
<tr>
<td class="border" colspan="2"><table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr align="center">
<td valign="top" class="picselect"><table cellpadding="3" cellspacing="1" border="0">
<tr align="center">
<td><b>
<?=MSG_SELECT_VIDEO;?>
</b></td>
</tr>
<tr align="center">
<td><?=$ad_video_thumbnails; ?></td>
</tr>
</table></td>
<td width="100%" class="picselectmain"align="center"><?=$ad_video_main_box; ?></td>
</tr>
</table></td>
</tr>
</table>
<? } ?>
<? if (item::count_contents($item_details['ad_dd'])) { ?>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="title" colspan="2"><?=MSG_DIGITAL_MEDIA;?></td>
</tr>
<tr>
<td class="border" colspan="2"><?=$ad_dd_thumbnails; ?></td>
</tr>
</table>
<? } ?>
<!--
</div>
-->
<!-- Shipping Tab Content -->
<!--
<div class="TabbedPanelsContent"> <br>
-->
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td colspan="2" class="title"><?=MSG_SHIPPING;?></td>
</tr>
</table>
<br>
<? if ($ad_display == 'live') { ?>
<table width=100% border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" style="padding-right: 10px;" valign="top">
<? } ?>
<table width="100%" border="0" cellpadding="3" cellspacing="2" class="border">
<tr valign="top">
<td width="150" align="right"><b>
<?=MSG_SHIPPING_CONDITIONS;?>
</b></td>
<td><? echo ($item_details['shipping_method'] == 1) ? MSG_BUYER_PAYS_SHIPPING : MSG_SELLER_PAYS_SHIPPING; ?>
<? if ($item_details['shipping_int'] == 1) { ?>
<div class="greenfont">
<?=MSG_SELLER_SHIPS_INT;?>
</div>
<? } ?>
</td>
<? if ($item_details['shipping_details']) { ?>
<td rowspan="10" width="50%" valign="top"><b>
<?=MSG_SHIPPING_DETAILS;?>
</b><br>
<br>
<?=$item_details['shipping_details'];?></td>
<? } ?>
</tr>
<? if ($setts['enable_shipping_costs']) { ?>
<? if ($user_details['pc_postage_type'] == 'item') { ?>
<tr>
<td width="150" align="right"><?=MSG_POSTAGE;?></td>
<td><?=$fees->display_amount($item_details['postage_amount'], $item_details['currency']); ?></td>
</tr>
<? } ?>
<? if ($user_details['pc_postage_type'] == 'weight' && $item_details['item_weight']) { ?>
<tr>
<td width="150" align="right"><?=MSG_WEIGHT;?></td>
<td><?=$item_details['item_weight'];?> <?=$user_details['pc_weight_unit'];?></td>
</tr>
<? } ?>
<tr>
<td width="150" align="right"><b>
<?=MSG_INSURANCE;?>
</b></td>
<td><?=$fees->display_amount($item_details['insurance_amount'], $item_details['currency']); ?></td>
</tr>
<tr>
<td width="150" align="right"><b>
<?=MSG_SHIP_METHOD;?>
</b></td>
<td><?=$item_details['type_service'];?></td>
</tr>
<? } ?>
</table>
<? if ($ad_display == 'live') { ?>
</td>
<td style="padding-left: 10px;" valign="top"><?=$shipping_calculator_box;?></td>
</tr>
</table>
<? } ?>
</td>
</tr>
</table>
<br>
</div>
<!-- EOF Shipping Tab Content -->
<div class="TabbedPanelsContent"> <br>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<? if ($item_details['direct_payment']) { ?>
<td><table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td class="title" ><?=MSG_DIRECT_PAYMENT;?></td>
</tr>
<tr>
<td><?=$direct_payment_methods_display;?></td>
</tr>
</table></td>
<? } ?>
<td><? if ($item_details['payment_methods']) { ?>
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td class="title"><?=MSG_OFFLINE_PAYMENT;?></td>
</tr>
<tr>
<td><?=$offline_payment_methods_display;?></td>
</tr>
</table>
<? } ?>
</td>
</tr>
</table>
<br>
</div>
<? if ($ad_display == 'live') { ?>
<? if ($setts['enable_asq']) { ?>
<div class="TabbedPanelsContent"> <br>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr valign="top">
<td><table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td class="title" colspan="2"><?=MSG_ASK_SELLER_QUESTION;?></td>
</tr>
<?=$public_questions_content;?>
<? if ($session->value('adminarea') == 'Active') { ?>
<tr>
<td align="center" colspan="2"><?=MSG_QUESTIONS_LOGGED_AS_ADMIN;?></td>
</tr>
<? } else if (!$session->value('user_id')) { ?>
<tr>
<td align="center" colspan="2"><?=MSG_LOGIN_TO_ASK_QUESTIONS;?></td>
</tr>
<? } else if ($session->value('membersarea') != 'Active') { ?>
<tr>
<td align="center" colspan="2"><?=MSG_ACC_SUSPENDED_ASK_QUESTION;?></td>
</tr>
<? } else if ($session->value('user_id') == $item_details['owner_id']) { ?>
<tr>
<td align="center" colspan="2"><?=MSG_CANT_POST_QUESTION_OWNER;?></td>
</tr>
<? } else { ?>
<tr>
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
</tr>
<form action="auction_details.php" method="POST">
<input type="hidden" name="auction_id" value="<?=$item_details['auction_id'];?>">
<input type="hidden" name="option" value="post_question">
<tr>
<td nowrap><b>
<?=MSG_POST_QUESTION;?>
</b></td>
<td width="100%"><table>
<tr>
<td><textarea name="message_content" cols="40" rows="3" class="contentfont"></textarea></td>
<td><div style="padding: 2px;">
<select name="message_handle">
<? if ($user_details['default_public_questions']) { ?>
<option value="1" selected>
<?=MSG_POST_QUESTION_PUBLICLY;?>
</option>
<? } ?>
<option value="2">
<?=MSG_POST_QUESTION_PRIVATELY;?>
</option>
</select>
</div>
<div style="padding: 2px;">
<input name="form_post_question" type="submit" id="form_post_question" value="<?=GMSG_SUBMIT;?>" />
</div></td>
</tr>
</table></td>
</tr>
</form>
<? } ?>
</table>
<br>
</td>
and…
<?
#################################################################
## Mainpage.php ##
##-------------------------------------------------------------##
## Copyright 2012 . All rights reserved. ##
##-------------------------------------------------------------##
#################################################################
if ( !defined('INCLUDED') ) { die("Access Denied"); }
?>
<? if ($layout['hpfeat_nb']) { ?>
<?=$featured_auctions_header;?>
<table width="100%" border="0" cellpadding="0" cellspacing="3" >
<?
$counter = 0;
for ($i=0; $i<$featured_columns; $i++) { ?>
<tr>
<?
for ($j=0; $j<$layout['hpfeat_nb']; $j++) {
$width = 100/$layout['hpfeat_nb'] . '%'; ?>
<td width="<?=$width;?>" align="center" valign="top"><?
if (!empty($item_details[$counter]['name'])) {
$main_image = $db->get_sql_field("SELECT media_url FROM " . DB_PREFIX . "auction_media WHERE
auction_id='" . $item_details[$counter]['auction_id'] . "' AND media_type=1 AND upload_in_progress=0 ORDER BY media_id ASC LIMIT 0,1", 'media_url');
$auction_link = process_link('auction_details', array('name' => $item_details[$counter]['name'], 'auction_id' => $item_details[$counter]['auction_id']));?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f1.gif" width="4" height="4"></td>
<td width="100%" background="themes/<?=$setts['default_theme'];?>/img/fb1.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f2.gif" width="4" height="4"></td>
</tr>
<tr>
<td width="4" background="themes/<?=$setts['default_theme'];?>/img/fb4.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td width="100%" bgcolor="#f9fafb"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr height="<?=$layout['hpfeat_width']+12;?>">
<td align="center"><a href="<?=$auction_link;?>"><img src="<? echo ((!empty($main_image)) ? 'thumbnail.php?pic=' . $main_image . '&w=' . $layout['hpfeat_width'] . '&sq=Y' : 'themes/' . $setts['default_theme'] . '/img/system/noimg.gif');?>" border="0" alt="<?=$item_details[$counter]['name'];?>"></a></td>
</tr>
<tr>
<td class="c1feat">» <a href="<?=$auction_link;?>"><?=title_resize($item_details[$counter]['name']);?></a></td>
</tr>
<tr>
<td><b><?=MSG_START_BID;?>:</b> <? echo $feat_fees->display_amount($item_details[$counter]['start_price'], $item_details[$counter]['currency']);?> <br>
<b><?=MSG_CURRENT_BID;?>:</b> <? echo $feat_fees->display_amount($item_details[$counter]['max_bid'], $item_details[$counter]['currency']);?> <br>
<b><?=MSG_ENDS;?>:</b> <? echo show_date($item_details[$counter]['end_time']); ?> </td>
</tr>
</table></td>
<td width="4" background="themes/<?=$setts['default_theme'];?>/img/fb2.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
</tr>
<tr>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f4.gif" width="4" height="4"></td>
<td width="100%" background="themes/<?=$setts['default_theme'];?>/img/fb3.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f3.gif" width="4" height="4"></td>
</tr>
</table>
<? $counter++;
} ?></td>
<? } ?>
</tr>
<? } ?>
</table>
<div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="10"></div>
<? } ?>
<? if ($layout['r_hpfeat_nb'] && $setts['enable_reverse_auctions']) { ?>
<?=$featured_reverse_auctions_header;?>
<table width="100%" border="0" cellpadding="3" cellspacing="3" >
<?
$counter = 0;
for ($i=0; $i<$featured_ra_columns; $i++) { ?>
<tr>
<?
for ($j=0; $j<$layout['r_hpfeat_nb']; $j++) {
$width = 100/$layout['r_hpfeat_nb'] . '%'; ?>
<td width="<?=$width;?>" align="center" valign="top"><?
if (!empty($ra_details[$counter]['name'])) {
$auction_link = process_link('reverse_details', array('name' => $ra_details[$counter]['name'], 'reverse_id' => $ra_details[$counter]['reverse_id']));?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f1.gif" width="4" height="4"></td>
<td width="100%" background="themes/<?=$setts['default_theme'];?>/img/fb1.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f2.gif" width="4" height="4"></td>
</tr>
<tr>
<td width="4" background="themes/<?=$setts['default_theme'];?>/img/fb4.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td width="100%" bgcolor="#f9fafb"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="c1feat">» <a href="<?=$auction_link;?>"><?=title_resize($ra_details[$counter]['name']);?></a></td>
</tr>
<tr>
<td><b><?=MSG_BUDGET;?>:</b> <? echo $feat_fees->budget_output($ra_details[$counter]['budget_id'], null, $ra_details[$counter]['currency']);?> <br>
<b><?=MSG_NR_BIDS;?>:</b> <? echo $ra_details[$counter]['nb_bids'];?> <br>
<b><?=MSG_ENDS;?>:</b> <? echo show_date($ra_details[$counter]['end_time']); ?> </td>
</tr>
</table></td>
<td width="4" background="themes/<?=$setts['default_theme'];?>/img/fb2.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
</tr>
<tr>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f4.gif" width="4" height="4"></td>
<td width="100%" background="themes/<?=$setts['default_theme'];?>/img/fb3.gif"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="1"></td>
<td width="4"><img src="themes/<?=$setts['default_theme'];?>/img/f3.gif" width="4" height="4"></td>
</tr>
</table>
<? $counter++;
} ?></td>
<? } ?>
</tr>
<? } ?>
</table>
<div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="5"></div>
<? } ?>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<? if ($layout['nb_recent_auct']) { ?>
<li class="TabbedPanelsTab" tabindex="0"><a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_RECENTLY_LISTED_AUCTIONS;?></a></li>
<? } ?>
<? if ($layout['nb_ending_auct']) { ?>
<li class="TabbedPanelsTab" tabindex="0"><a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_ENDING_SOON_AUCTIONS;?></a></li>
<? } ?>
<? if ($layout['nb_popular_auct'] && $is_popular_items) { ?>
<li class="TabbedPanelsTab" tabindex="0"><a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_MM_POPULAR;?></a></li>
<? } ?>
<? if ($setts['enable_wanted_ads'] && $layout['nb_want_ads']) { ?>
<li class="TabbedPanelsTab" tabindex="0"><a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_MM_WANTED_ADS;?></a></li>
<? } ?>
<? if ($setts['enable_reverse_auctions'] && $layout['r_recent_nb']) { ?>
<li class="TabbedPanelsTab" tabindex="0"><a href="javascript:void(0);"><div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="9" border="0"></div><?=MSG_MM_REVERSE_AUCTIONS;?></a></li>
<? } ?>
</ul>
<div class="TabbedPanelsContentGroup" >
<? if ($layout['nb_recent_auct']) { ?>
<div class="TabbedPanelsContent">
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<?
$columns = 3;
$nb_recent = $db->num_rows($sql_select_recent_items);
for($i = 0; $i < $nb_recent; $i++)
{
$item_details = mysql_fetch_array($sql_select_recent_items);
$main_image = $db->get_sql_field("SELECT media_url FROM " . DB_PREFIX . "auction_media WHERE auction_id='" . $item_details['auction_id'] . "' AND media_type=1 AND upload_in_progress=0 ORDER BY media_id ASC LIMIT 0,1", 'media_url');
$background = ($item_details['bold']) ? ' bold_item' : '';
$background .= ($item_details['hl']) ? ' hl_item1' : '';
if($i % $columns == 0) { ?>
<tr height="15" valign="top">
<? } ?>
<td width="33%"><table width="100%" border="0" cellpadding="3" cellspacing="1" class="border <? if(CURRENT_TIME - $item_details['start_time'] <= 86400) { echo "today"; } ?>">
<tr height="215">
<td align="center" class="<?=$background;?>"><a href="<?=process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id']));?>"><img src="<? echo ((!empty($main_image)) ? 'thumbnail.php?pic=' . $main_image . '&w=' . $layout['hpfeat_width'] . '&sq=Y' : 'themes/' . $setts['default_theme'] . '/img/system/noimg.gif');?>" border="0" width="100" alt="<?=title_resize($item_details['name']);?>"></a> <br>
<div class="c1feat"><a href="<?=process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id']));?>"><?=title_resize($item_details['name']);?></a></div>
<br>
<?=GMSG_START_TIME;?>: <?=show_date($item_details['start_time']);?>
<br>
<?=MSG_START_BID;?>: <?=$fees->display_amount($item_details['start_price'], $item_details['currency']);?>
<br>
<br>
<?=item_pics1($item_details);?>
</td>
</tr>
</table></td>
<? if(($i % $columns) == ($columns - 1) || ($i + 1) == $nb_recent) { ?>
</tr>
<? } ?>
<? } ?>
</table>
<div align="right" style="padding: 5px;" class="contentfont"><a href="<?=process_link('auctions_show', array('option' => 'recent'));?>"><?=MSG_VIEW_ALL;?></a></div>
</div>
<? } ?>
<? if ($layout['nb_ending_auct']) { ?>
<div class="TabbedPanelsContent">
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<?
$columns = 3;
$nb_ending = $db->num_rows($sql_select_ending_items);
for($i = 0; $i < $nb_ending; $i++)
{
$item_details = mysql_fetch_array($sql_select_ending_items);
$main_image = $db->get_sql_field("SELECT media_url FROM " . DB_PREFIX . "auction_media WHERE auction_id='" . $item_details['auction_id'] . "' AND media_type=1 AND upload_in_progress=0 ORDER BY media_id ASC LIMIT 0,1", 'media_url');
$item_details['max_bid'] = ($item_details['max_bid'] > 0) ? $item_details['max_bid'] : $item_details['start_price'];
$background = ($item_details['bold']) ? ' bold_item' : '';
$background .= ($item_details['hl']) ? ' hl_item1' : '';
if($i % $columns == 0) { ?>
<tr height="15" valign="top">
<? } ?>
<td width="33%"><table width="100%" border="0" cellpadding="3" cellspacing="1" class='border
<? if((($item_details['end_time'] - CURRENT_TIME) <= 86400) && $item_details['auction_type'] != 'first_bidder') /* 1day = 86400 sec */ { echo "day"; }?>
<? if((($item_details['end_time'] - CURRENT_TIME) <= 3600) && $item_details['auction_type'] != 'first_bidder') /* 1hour = 3600 sec */ { echo "hour"; }?>'>
<tr height="215">
<td align="center" class="<?=$background;?>"><a href="<?=process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id']));?>"><img src="<? echo ((!empty($main_image)) ? 'thumbnail.php?pic=' . $main_image . '&w=100&sq=Y' : 'themes/' . $setts['default_theme'] . '/img/system/noimg.gif');?>" border="0" width="100" alt="<?=title_resize($item_details['name']);?>"></a> <br>
<div class="c1feat"><a href="<?=process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id']));?>"><?=title_resize($item_details['name']);?></a></div>
<br>
<?=MSG_TIME_LEFT;?>: <?=time_left($item_details['end_time']);?>
<br>
<?=MSG_CURRENTLY;?>: <?=$fees->display_amount($item_details['max_bid'], $item_details['currency']);?>
<br>
<br>
<?=item_pics1($item_details);?>
</td>
</tr>
</table></td>
<? if(($i % $columns) == ($columns - 1) || ($i + 1) == $nb_ending) { ?>
</tr>
<? } ?>
<? } ?>
</table>
<div align="right" style="padding: 5px;" class="contentfont"><a href="<?=process_link('auctions_show', array('option' => 'ending'));?>"><?=MSG_VIEW_ALL;?></a></div>
</div>
<? } ?>
<? if ($layout['nb_popular_auct'] && $is_popular_items) { ?>
<div class="TabbedPanelsContent">
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<?
$columns = 3;
$nb_popular = $db->num_rows($sql_select_popular_items);
for($i = 0; $i < $nb_popular; $i++)
{
$item_details = mysql_fetch_array($sql_select_popular_items);
$main_image = $db->get_sql_field("SELECT media_url FROM " . DB_PREFIX . "auction_media WHERE auction_id='" . $item_details['auction_id'] . "' AND media_type=1 AND upload_in_progress=0 ORDER BY media_id ASC LIMIT 0,1", 'media_url');
$background = ($item_details['bold']) ? ' bold_item' : '';
$background .= ($item_details['hl']) ? ' hl_item1' : '';
if($i % $columns == 0) { ?>
<tr height="15" valign="top">
<? } ?>
<td width="33%"><table width="100%" border="0" cellpadding="3" cellspacing="1" class="border">
<tr height="215">
<td align="center" class="<?=$background;?>"><a href="<?=process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id']));?>"><img src="<? echo ((!empty($main_image)) ? 'thumbnail.php?pic=' . $main_image . '&w=100&sq=Y' : 'themes/' . $setts['default_theme'] . '/img/system/noimg.gif');?>" border="0" width="100" alt="<?=title_resize($item_details['name']);?>"></a> <br>
<div class="c1feat"><a href="<?=process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id']));?>"><?=title_resize($item_details['name']);?></a></div>
<br>
<?=MSG_MAX_BID;?>: <?=$fees->display_amount($item_details['max_bid'], $item_details['currency']);?>
<br>
<br>
<?=item_pics1($item_details);?>
</td>
</tr>
</table></td>
<? if(($i % $columns) == ($columns - 1) || ($i + 1) == $nb_popular) { ?>
</tr>
<? } ?>
<? } ?>
</table>
<div align="right" style="padding: 5px;" class="contentfont"><a href="<?=process_link('auctions_show', array('option' => 'popular'));?>"><?=MSG_VIEW_ALL;?></a></div>
</div>
<? } ?>
<? if ($setts['enable_wanted_ads'] && $layout['nb_want_ads']) { ?>
<div class="TabbedPanelsContent"> <br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<?
$columns = 3;
$nb_wanted = $db->num_rows($sql_select_recent_wa);
for($i = 0; $i < $nb_wanted; $i++)
{
$item_details = mysql_fetch_array($sql_select_recent_wa);
$main_image = $db->get_sql_field("SELECT media_url FROM " . DB_PREFIX . "auction_media WHERE wanted_ad_id='" . $item_details['wanted_ad_id'] . "' AND media_type=1 AND upload_in_progress=0 ORDER BY media_id ASC LIMIT 0,1", 'media_url');
if($i % $columns == 0) { ?>
<tr height="15" valign="top">
<? } ?>
<td width="33%"><table width="100%" border="0" cellpadding="3" cellspacing="1" class="border">
<tr height="215">
<td align="center"><a href="<?=process_link('wanted_details', array('name' => $item_details['name'], 'wanted_ad_id' => $item_details['wanted_ad_id']));?>"><img src="<? echo ((!empty($main_image)) ? 'thumbnail.php?pic=' . $main_image . '&w=100&sq=Y' : 'themes/' . $setts['default_theme'] . '/img/system/noimg.gif');?>" border="0" width="100" alt="<?=title_resize($item_details['name']);?>"></a> <br>
<div class="c1feat"><a href="<?=process_link('wanted_details', array('name' => $item_details['name'], 'wanted_ad_id' => $item_details['wanted_ad_id']));?>">
<?=title_resize($item_details['name']);?>
</a></div>
<br>
<?=GMSG_START_TIME;?>: <?=show_date($item_details['start_time']);?>
<br>
</td>
</tr>
</table></td>
<? if(($i % $columns) == ($columns - 1) || ($i + 1) == $nb_wanted) { ?>
</tr>
<? } ?>
<? } ?>
</table>
<div align="right" style="padding: 5px;" class="contentfont"><a href="<?=process_link('wanted_ads');?>"><?=MSG_VIEW_ALL;?></a></div>
</div>
<? } ?>
<? if ($setts['enable_reverse_auctions'] && $layout['r_recent_nb']) { ?>
<div class="TabbedPanelsContent"> <br>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<?
$columns = 3;
$nb_reverse = $db->num_rows($sql_select_recent_reverse);
for($i = 0; $i < $nb_reverse; $i++)
{
$item_details = mysql_fetch_array($sql_select_recent_reverse);
if($i % $columns == 0) { ?>
<tr height="15" valign="top">
<? } ?>
<td width="33%"><table width="100%" border="0" cellpadding="3" cellspacing="1" class="border">
<tr height="215">
<td align="center">
<div class="c1feat"><a href="<?=process_link('reverse_details', array('name' => $item_details['name'], 'reverse_id' => $item_details['reverse_id']));?>">
<?=title_resize($item_details['name']);?>
</a></div>
<br>
<?=GMSG_START_TIME;?>: <?=show_date($item_details['start_time']);?><br>
<?=MSG_BUDGET;?>: <? echo $feat_fees->budget_output($item_details['budget_id'], null, $item_details['currency']);?> <br>
<?=MSG_NR_BIDS;?>: <? echo $item_details['nb_bids'];?> <br>
</td>
</tr>
</table></td>
<? if(($i % $columns) == ($columns - 1) || ($i + 1) == $nb_reverse) { ?>
</tr>
<? } ?>
<? } ?>
</table>
<div align="right" style="padding: 5px;" class="contentfont"><a href="<?=process_link('reverse_auctions');?>"><?=MSG_VIEW_ALL;?></a></div>
</div>
<? } ?>
</div>
</div>
</td>
<td width="10"><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="10" height="1"></td>
<td><? if ($is_news && $layout['d_news_box']) { ?>
<?=$news_box_header;?>
<?=$news_box_content;?>
<div><img src='themes/<?=$setts['default_theme'];?>/img/pixel.gif' width='1' height='10'></div>
<? } ?>
<? if ($is_announcements && $member_active == 'Active') { ?>
<?=$announcements_box_header;?>
<div id="exp1102170555">
<?=$announcements_box_content;?>
</div>
<div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="1" height="10"></div>
<? } ?>
<noscript>
<?=MSG_JS_NOT_SUPPORTED;?>
</noscript>
<? if ($setts['enable_header_counter']) { ?>
<?=$header_site_status;?>
<table width='100%' border='0' cellpadding='2' cellspacing='1' class='border'>
<tr class='c1'>
<td width='20%' align='center'><b>
<?=$nb_site_users;?>
</b></td>
<td width='80%'>
<?=MSG_REGISTERED_USERS;?></td>
</tr>
<tr class='c2'>
<td width='20%' align='center'><b>
<?=$nb_live_auctions;?>
</b></td>
<