How to add this code to this code?

One one page I have the code:

<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>

This displays the Country and Location.

On another page I have the code:

<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>

This displays the Start Bid, Current Bid and Ending Time.

What I am wanting to do is add/combine the 2 codes, so that I can see the Country & Location above the Start Bid.

I have tried several code combinations yet can not get the country ($auction_country) to display/show on the page.

<tr>
<td><b><?=MSG_COUNTRY;?>:</b> <?  echo ($auction_country); ?> <br>

<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>

I get this :slight_smile:

Country:
Start Bid: USD 10.00
Current Bid: -
Ends: Jun. 14, 2012 08:56:57

your help appreciated :slight_smile:

How are these variables being set? If you could show the entire code for each page it would be more helpful.

Hello doni, thank you for your reply, whole page is huge! yet here is more code included.

<? } ?>
 <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>
    <? 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>
 <? } ?>

<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">&raquo; <a href="<?=$auction_link;?>"><?=title_resize($item_details[$counter]['name']);?></a></td>
                     </tr>
                     <tr> ( I want to add the Country and Location code here, above the MSG_START_BID)
                        <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>

so that shows the 2 tables, I hope that helps :slight_smile:

The reason i asked for the whole code is because you said the code is from two seperate pages.

So my assumption is, that the page that has the country and location codes has something that is setting those variables. The other page probably doesn’t have this so this is the reason those variables aren’t printing anything.

Hello Doni,

appreciated your reply,

yes I understand what you are saying, I had the same thought, yet do not know what to look for,

and ideas on what code/variables I should be looking for?

Not really, I would need to see the code for the entire page maybe search for more instances of MSG_COUNTRY

<?
#################################################################
## 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') { ?>
            &nbsp;&nbsp;|&nbsp;&nbsp;<b><?=MSG_STATUS;?></b>: <?=item::item_status($item_details['closed']); ?>
            <? } ?>
            <? if ($ad_display == 'live') { ?>
            &nbsp;&nbsp;|&nbsp;&nbsp;<?=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)	{ ?>
                     &nbsp;|&nbsp; <a href="edit_item.php?auction_id=<?=$item_details['auction_id'];?>&edit_option=new"><?=MSG_EDIT_AUCTION;?></a>
                     &nbsp;|&nbsp; <a href="members_area.php?do=delete_auction&auction_id=<?=$item_details['auction_id'];?>&page=selling&section=open" onclick="return confirm('<?=MSG_DELETE_CONFIRM;?>');"><?=MSG_DELETE;?></a>
                     <? } else if ($item_details['nb_bids']>0 && $item_details['active']==1) { ?>
                     &nbsp;|&nbsp; <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'))) { ?>
                     &nbsp;|&nbsp; <a href="members_area.php?do=close_auction&auction_id=<?=$item_details['auction_id'];?>&page=selling&section=open" onclick="return confirm('<?=MSG_CLOSE_AUCTION_CONFIRM;?>');"><?=MSG_CLOSE_AUCTION;?></a>
                     <? } ?>
                     <? } else if ($session->value('user_id')) { ?>
                     &nbsp;|&nbsp; <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">&raquo; <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">&raquo; <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%'>&nbsp;
            <?=MSG_REGISTERED_USERS;?></td>
      </tr>
      <tr class='c2'>
         <td width='20%' align='center'><b>
            <?=$nb_live_auctions;?>
            </b></td>

      <

Sorry even with that I can’t really see how those variables are set.

You could try the code below. I noticed the code in your first post was a little different specifically this part:

you are using <? echo ($auction_country); ?> instead of <?=$auction_country;?>

don’t know if this will make any difference. Sorry i couldn’t be more help.


<tr>

    <td>

        <strong><?=MSG_COUNTRY;?>:</strong> <?=$auction_country;?> <br />
        
        <strong><?=MSG_LOCATION;?>:</strong> <?=$auction_location;?> <br />

        <strong><?=MSG_START_BID;?>:</strong> <? echo $feat_fees->display_amount($item_details[$counter]['start_price'], $item_details[$counter]['currency']);?> <br />

        <strong><?=MSG_CURRENT_BID;?>:</strong> <? echo $feat_fees->display_amount($item_details[$counter]['max_bid'], $item_details[$counter]['currency']);?> <br />

        <strong><?=MSG_ENDS;?>:</strong> <? echo show_date($item_details[$counter]['end_time']); ?> 
    
    </td>
    
</tr>

Hello doni,

thank you for your efforts, and the code,

tried your code, yet same results, Country yet no country :slight_smile:

Country:
Start Bid: USD 10.00
Current Bid: -
Ends: Jun. 14, 2012 08:56:57

What about using <?=$item_details[$counter][‘country’];?>

Hello cpradio

thank you for your code idea, much appreciated,

yet same results :frowning:

Country yet no country.

Country:
Start Bid: USD 10.00
Current Bid: -
Ends: Jun. 14, 2012 08:56:57

All coding ideas to solve this problem appreciated :slight_smile:

Can you put <?php print_r($item_details[$counter]); ?> on your page and send us the output? It will at least tell us what values are available for each $item_detail it is outputting.

Hello cpradio, thank you for your reply and information,

my knowledge is limited, yet I did paste your <?php print_r($item_details[$counter]); ?> onto the main_page.php (the page I am trying to add Country to)

I then reloaded the page, yet do not know where to look for values?? limited knowledge :slight_smile:

<?
#################################################################
## mainpage.tpl.php      					##
##-------------------------------------------------------------##
## Copyright &#65533;2012 All rights reserved.	                     ##
##-------------------------------------------------------------##
#################################################################

if ( !defined('INCLUDED') ) { die("Access Denied"); }
?>
<? if ($layout['hpfeat_nb']) { ?>
<?=$featured_auctions_header;?>

<?php print_r($item_details[$counter]); ?>

<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"><?

No worries, you just have it too high up in your document. Paste it after the <tr> tag. Then you will need to refresh the page (likely do a view source) so you can copy the output here.

Hello cpradio, ok all done, below is what is now shown on the top of the page, does that help?

or do you want the complete View Source

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title> … plus another 100 lines

your help appreciated :slight_smile:

Featured Auctions [ View All ]
Array ( [0] => 100025 [auction_id] => 100025 [1] => 100th Anniversary of Panyananda Bhikkhu Commemorative Stamps [name] => 100th Anniversary of Panyananda Bhikkhu Commemorative Stamps [2] => 10.00 [start_price] => 10.00 [3] => 0.00 [max_bid] => 0.00 [4] => USD [currency] => USD [5] => 1339689264 [end_time] => 1339689264 ) Array ( [0] => 100012 [auction_id] => 100012 [1] => Valentines Day Commenerative Stamps 2012 [name] => Valentines Day Commenerative Stamps 2012 [2] => 10.00 [start_price] => 10.00 [3] => 0.00 [max_bid] => 0.00 [4] => USD [currency] => USD [5] => 1339655532 [end_time] => 1339655532 )

Okay, well here is the bad news, the auction country is not part of the $item_details information. So without knowing how that data is being populated, I really can’t give you an answer. There has to be another php page or more code than what has been pasted here that tells me how $item_details is defined. Once I know that, I should be able to help you get country into that variable and out to the page. If you can find it, then paste that code here and I’ll help you get to the country information.

Hello cpradio, thank you :slight_smile:

would going direct to my site/page and looking at the Source code be best?

www.trade-th.com

you will see on the main page the:

Start Bid: USD 10.00
Current Bid: -
Ends: Jun. 14, 2012 08:56:57

and if you click on any main page Listing/Ad/Photo that will take you to its details page, showing Country & Location

what I am wanting is Country & Location to show on the main page Listings/Ads

if you need more info, please ask, your help greatly appreciated :slight_smile:

Unfortunately, you can’t look at the view source of a server side language to determine how the page was produced. The only way to do that is to have the file that build the page (the php files).

Most likely there is a section in auction_details.php contains code on retrieving content from the database. If you using MySQL then look for mysqlconnect() and mysql_select_db(), or something similar to those.

Copy and paste those code here for us to see. We might able to identify the problem by viewing the actual source code.