<!-- Auction details -->

{include file='blocks'|cat:$smarty.const.RL_DS|cat:'m_block_start.tpl'}

	{if $status_info.shc_auction_won}
		<fieldset class="light">
			<legend id="legend_search_settings" class="up" onclick="fieldset_action('search_settings');">{$lang.shc_order_details}</legend>
			<table class="list">
				<tr>
					<td class="name">
						<a href="" title="">
							<img alt="" src="{if empty($auction_info.item_details.Main_photo)}{$rlTplBase}img/no-picture.jpg{else}{$smarty.const.RL_URL_HOME}files/{$auction_info.item_details.Main_photo}{/if}" />
						</a>
					</td>
					<td class="value">
						<table class="table">
							<tr>
								<td class="name">{$lang.shc_item}:</td>
								<td class="value"><b>{$auction_info.item_details.title}</b></td>
							</tr>
							<tr>
								<td class="name">{$lang.shc_auction_status}:</td> 	
								{assign var='shc_auction_status' value='shc_'|cat:$auction_info.item_details.shc_auction_status}
								<td class="value">{$lang[$shc_auction_status]}</td>
							</tr>
							<tr>
								<td class="name">{$lang.shc_txn_id}:</td>
								<td class="value">{$auction_info.Txn_ID}</td>
							</tr>
							<tr>
								<td class="name">{$lang.shc_total_cost}:</td>
								<td class="value"><b>{if $config.system_currency_position == 'before'}{$config.system_currency}{/if} <span id="total">{$auction_info.Total|number_format:2:'.':','}</span> {if $config.system_currency_position == 'after'}{$config.system_currency}{/if}</b></td>
							</tr>
							<tr>      
								<td class="name">{$lang.shc_payment_status}:</td> 
								<td class="value">
									{assign var='pStatus' value='shc_'|cat:$auction_info.pStatus}
									<span class="item_{$auction_info.pStatus}">{$lang[$pStatus]}</span>
								</td>
							</tr>
						</table>
					</td>           
				</tr>
				<tr>
					<td class="name">{$lang.shc_buyer}:</td>
					<td class="value">
						{if $auction_info.bOwn_address}
							<a target="_blank" href="{$rlBase}{$auction_info.bUsername}/">{$auction_info.bUsername}</a>
						{else}
							{$auction_info.bUsername}
						{/if}
					</td>
				</tr>
				<tr>
					<td class="name">{$lang.shc_dealer}:</td>
					<td class="value">
						{if $auction_info.dOwn_address}
							<a target="_blank" href="{$rlBase}{$auction_info.dOwn_address}/">{$auction_info.dUsername}</a>
						{else}
			   				{$auction_info.dUsername}		
						{/if}
					</td>
				</tr>
				{if $auction_info.pStatus == 'paid'}
					<tr>
						<td class="name">{$lang.shc_gateway}:</td>
						<td class="value">{$auction_info.Gateway}</td>
					</tr>
					<tr>
						<td class="name">{$lang.shc_pay_date}:</td>
						<td class="value">{$auction_info.Pay_date|date_format:$smarty.const.RL_DATE_FORMAT}</td>
					</tr>
				{/if}
			</table>
		</fieldset>
	{else}
		<fieldset class="light">
			<legend id="legend_search_settings" class="up" onclick="fieldset_action('search_settings');">{$lang.shc_details}</legend>
			<table class="list">
				<tr>
					<td class="name">
						<a href="" title="">
							<img alt="" src="{if empty($auction_info.Main_photo)}{$rlTplBase}img/no-picture.jpg{else}{$smarty.const.RL_URL_HOME}files/{$auction_info.Main_photo}{/if}" />
						</a>
					</td>
					<td class="value">
						<table class="table">
							<tr>
								<td class="name">{$lang.shc_item}:</td>
								<td class="value"><b>{$auction_info.title}</b></td>
							</tr>
							<tr>
								<td class="name">{$lang.shc_auction_status}:</td> 	
								{assign var='shc_auction_status' value='shc_'|cat:$auction_info.shc_auction_status}
								<td class="value">{$lang[$shc_auction_status]}</td>
							</tr>
							{if $auction_info.shc_auction_status == 'closed'}
							<tr>
								<td class="name">{$lang.shc_auction_date_close}:</td>
								<td class="value">{$auction_info.shc_end_time|date_format:$smarty.const.RL_DATE_FORMAT}</td>
							</tr>
							{/if}
							<tr>
								<td class="name">{$lang.shc_dealer}:</td>
								<td class="value">
									{if $auction_info.dOwn_address}
										<a target="_blank" href="{$rlBase}{$auction_info.dOwn_address}/">{$auction_info.dUsername}</a>
									{else}
			   							{$auction_info.dUsername}		
									{/if}
								</td>
							</tr>
						</table>
					</td>           
				</tr>
			</table>
		</fieldset>
	{/if}
	         
	{if $auction_info.Shipping_method}
		<fieldset class="light">
			<legend id="legend_search_settings" class="up" onclick="fieldset_action('shipping_details');">{$lang.shc_shipping_details}</legend>
			<table class="list">
				<tr>
					<td class="name">{$lang.shc_shipping_method}:</td>
					<td class="value">{$auction_info.Shipping_method}</td>
				</tr>
				<tr>
					<td class="name">{$lang.shc_shipping_status}:</td>
					<td class="value"><b>{$auction_info.Shipping_status}</b></td>
				</tr>
				{if $auction_info.Weight}
				<tr>
					<td class="name">{$lang.shc_weight}:</td>
					<td class="value">{$auction_info.Weight}</td>
				</tr>
				{/if}
				<tr>
					<td class="name">{$lang.shc_country}:</td>
					<td class="value">{$auction_info.Country}</td>
				</tr>
				<tr>
					<td class="name">{$lang.shc_zip}:</td>
					<td class="value">{$auction_info.Zip_code}</td>
				</tr>
				<tr>
					<td class="name">{$lang.shc_city}:</td>
					<td class="value">{$auction_info.City}</td>
				</tr>
				<tr>
					<td class="name">{$lang.shc_address}:</td>
					<td class="value">{$auction_info.Address}</td>
				</tr>
				<tr>
					<td class="name">{$lang.shc_name}:</td>
					<td class="value">{$auction_info.Name}</td>
				</tr>
				<tr>
					<td class="name">{$lang.shc_phone}:</td>
					<td class="value">{$auction_info.Phone}</td>
				</tr>
				<tr>
					<td class="name">{$lang.mail}:</td>
					<td class="value">{$auction_info.Mail}</td>
				</tr>
			</table>
		</fieldset>
	{/if}

{include file='blocks'|cat:$smarty.const.RL_DS|cat:'m_block_end.tpl'} 

<!-- end Auction details -->