{include file="$gentemplates/$header_tpl"}
	{include file="$gentemplates/classified_menu.tpl"}
    <div class="club_content">	
        <h3 class="p-b5">{$cat.name}
        	{if isset($edit_link)}
        	<ins onclick="javascript: if(window.confirm('{$lang.confirm.del_object|escape:javascript}')) location.href='{$del_link}'" class="delete-icon sub_icon" title="{$lang.button.delete}">&nbsp;</ins>
        	<ins onclick="javascript:location.href='{$edit_link}';" class="edit-icon sub_icon" title="{$lang.button.edit}">&nbsp;</ins>
			{/if}
        </h3>
        <div class="content_header">
            <h3>{$lang.classified.posted_by}:</h3>
            <div class="club" style="display:table;width:100%;">
                <div {if $form.user == $user.id}class="imgcanvas_container ad-user-photo"{/if}  style=" position: relative; float:{$default_left};" valign="top">
                    {if $form.user != $user.id}<a class="imgcanvas_container ad-user-photo" href="{$user.profile_link}" style="position: relative;">{/if}
                        <img src="{$user.icon_path}" class="icon imgcanvas" alt="" onmouseover="javascript: CreateBigImage(this, event);">
                    {if $form.user != $user.id}</a>{/if}
                </div>
                <div>
                    <p>
						{if $form.user != $user.id}<a class="float_left" href="{$user.profile_link}">{/if}
						<font class="float_left">{$user.name}&nbsp;</font>{if $form.user != $user.id}</a>{/if}&nbsp;&nbsp;
						<font class="float_left status_{if $user.status eq $lang.status.on}link{else}text{/if}">{$user.status}</font>
    				</p>
					<p>
						{if $user.country!=''}
							{if $user.city}{$user.city}, {/if}{if $user.region}{$user.region}, {/if}{$user.country}<br />
						{/if}
						<font class="float_left">{$user.age}&nbsp;</font> <font class="float_left">{$lang.home_page.ans}</font>
    				</p>
                </div>
			</div>
            <p style="overflow:hidden;">
               <font class="float_left">{$lang.classified.date_posted}:&nbsp;&nbsp;</font><font class="float_left">{$object.date_created}</font>
            </p>
            <p style="overflow:hidden;">
                <font class="float_left">{$lang.common.subject}:&nbsp;&nbsp;</font><font class="float_left">{$object.name}</font>
            </p>
            {section name=s loop=$object.ado}
				<dl style="overflow:hidden;">
					<dt class="text_head float_left" style="width:180px;">{$object.ado[s].field}&nbsp;&nbsp;</dt>
					<dt>
						{if $object.ado[s].value eq ', '}...{else}
						{if $object.ado[s].value===false || !isset($object.ado[s].value)}
							{$lang.common.not_specified}
						{else}
							{if $object.ado[s].type=='checkbox'}
								{if $object.ado[s].value==1} {$lang.common.yes} {else} {$lang.common.no} {/if}
							{else}
								{$object.ado[s].value}
							{/if}
						{/if}
						{/if}
					</dt>
				</dl>
			{/section}	
             <p>
                {$lang.common.body}:<br />
             </p>
			<div class="wysiwyg_content">
                {$object.body}
			</div>
             {if $object.image_count>0}
				<h3 class="p-b5">{$lang.users.upload_1}</h3>				
				<div style="display:table;width:100%;">
					<dl>
						{foreach item=file key=id_attr from=$object.image}
							<dt>
								<!--href="{$seo_site_root}/ajax_class.php?sel=view_file&id_attr={$id_attr}&id_obj={$object.id}"
								onmouseover="javascript: CreateBigImage(this, event);"
								-->
								<a class="imgcanvas_container" onclick="launchWindow('{$seo_site_root}/ajax_class.php?sel=view_file&id_attr={$id_attr}&id_obj={$object.id}','',750,550); return false;" style="position:relative;cursor:pointer;" >
									<img class="icon imgcanvas" src="{$file.icon}">
								</a><br>
								<span>{$file.field}</span>
							</dt>
						{/foreach}
					</dl>
				</div>
			{/if}
			{if $object.audio_count>0}
				<h3 class="p-b5">{$lang.users.upload_2}</h3>
				<div style="display:table;width:100%;">
					<dl>
						{foreach item=file key=id_attr from=$object.audio}
							<dt align="center">
								<!--img class="icon" src="{$file.icon}" onclick="javascript: window.open(SEO_SITE_ROOT+'/ajax_class.php?sel=view_file&id_attr={$id_attr}&id_obj={$object.id}', 'view_img', 'height=300, resizable=yes, scrollbars=no, width=400, menubar=no,status=no, {$default_left}=200, top=20');" style="cursor: pointer;"-->
								<div class="one_audio" onclick="javascript: launchWindow('{$seo_site_root}/ajax_class.php?sel=view_file&id_attr={$id_attr}&id_obj={$object.id}', '', 535, 400); return false;" style="cursor: pointer;"></div>
								<span>{$file.field}</span>
							</dt>
						{/foreach}
					</dl>
				</div>
			{/if}
			{if $object.video_count>0}
				<h3 class="p-b5">{$lang.users.upload_3}</h3>
				<div style="display:table;width:100%;">
					<dl>
						{foreach item=file key=id_attr from=$object.video}
							<dt align="center">
								<!--img class="icon" src="{$file.icon}" onclick="javascript: window.open(SEO_SITE_ROOT+'/ajax_class.php?sel=view_file&id_attr={$id_attr}&id_obj={$object.id}', 'view_img', 'height=300, resizable=yes, scrollbars=no, width=400, menubar=no,status=no, {$default_left}=200, top=20');" style="cursor: pointer;"-->
								<div class="one_video" onclick="javascript: launchWindow('{$seo_site_root}/ajax_class.php?sel=view_file&id_attr={$id_attr}&id_obj={$object.id}', '', 505, 400); return false;" style="cursor: pointer;" ></div>
								<span>{$file.field}</span>
							</dt>
						{/foreach}
					</dl>
				</div>
			{/if}						
        </div>
    </div>
{include file="$gentemplates/$footer_tpl"}