178 lines
7.5 KiB
Smarty
178 lines
7.5 KiB
Smarty
{include file='imobile_header.tpl'}
|
|
|
|
|
|
|
|
<div id="tributton">
|
|
<div class="links">
|
|
<a href="javascript: iMobile_profileSwitchTab('profile');">{lang_print id=11340094}</a><a href="javascript: iMobile_profileSwitchTab('comments');">{lang_print id=11340095}</a><a href="javascript: iMobile_profileSwitchTab('friends');">{lang_print id=11340096}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<div id="profile_overview">
|
|
{if $jobpost->jobpostowner_level_info.level_jobpost_photo && $jobpost->jobpost_info.jobpost_photo}
|
|
<img src='{$jobpost->jobpost_photo("./images/nophoto.gif")}' border='0' width="90" />
|
|
{/if}
|
|
<div>
|
|
<span class="name">{$jobpost->jobpost_info.jobpost_title}</span>
|
|
<div class="status">
|
|
<em>{lang_print id=11250085}</em>
|
|
|
|
<span class="jobpost_info_company">
|
|
{if $jobpost->jobpost_info.jobpost_url}
|
|
<a href="{$jobpost->jobpost_info.jobpost_url}">{$jobpost->jobpost_info.jobpost_company}</a>
|
|
{else}
|
|
{$jobpost->jobpost_info.jobpost_company}
|
|
{/if}
|
|
</span>
|
|
|
|
<em>{lang_print id=11250096}</em>
|
|
|
|
<span class="jobpost_info_location">
|
|
<a href="browse_jobposts.php?l={$jobpost->jobpost_info.jobpost_location}">{$jobpost->jobpost_info.jobpost_location}</a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<span>{lang_print id=$jobpost->jobpost_info.jobposttype_title}
|
|
|
|
|
{assign var=jobpost_dateapproved value=$datetime->timezone($jobpost->jobpost_info.jobpost_dateapproved, $global_timezone)}
|
|
{lang_sprintf id=11250202 1=$datetime->cdate($setting.setting_dateformat, $jobpost_dateapproved)}
|
|
{lang_sprintf id=11250216 1=$jobpost->jobpost_owner->user_displayname 2=$url->url_create("profile", $jobpost->jobpost_owner->user_info.user_username)}
|
|
</span>
|
|
|
|
</div>
|
|
</div>
|
|
<div style="clear: both"></div>
|
|
|
|
|
|
|
|
<div id="profile_profile" style="display: {if empty($v) || $v == "profile"}block{else}none{/if}">
|
|
<ul class="pageitem">
|
|
<li class="key_value">
|
|
<span class="key">{lang_print id=11250134}</span>
|
|
<span class="value">{if $jobpost->jobpost_info.jobpostcat_parent_title}
|
|
<a href="browse_jobposts.php?jobpostcat_id={$jobpost->jobpost_info.jobpostcat_dependency}">{lang_print id=$jobpost->jobpost_info.jobpostcat_parent_title}</a>
|
|
»
|
|
{/if}
|
|
<a href="browse_jobposts.php?jobpostcat_id={$jobpost->jobpost_info.jobpostcat_id}">{lang_print id=$jobpost->jobpost_info.jobpostcat_title}</a></span>
|
|
</li>
|
|
{assign var=tags value=$jobpost->jobpost_tag_array()}
|
|
{if !empty($tags)}
|
|
<li class="key_value">
|
|
<span class="key">{lang_print id=11250118}</span>
|
|
<span class="value">
|
|
{foreach from=$tags item=tag}
|
|
<a href="browse_jobposts.php?k={$tag}">{$tag}</a>
|
|
{/foreach}
|
|
</span>
|
|
</li>
|
|
{/if}
|
|
|
|
</ul>
|
|
|
|
|
|
{section name=cat_loop loop=$cats}
|
|
{if $cats[cat_loop].fields|@count}<ul class="pageitem">{/if}
|
|
{section name=field_loop loop=$cats[cat_loop].fields}
|
|
<li class="key_value">
|
|
<span class="key">{lang_print id=$cats[cat_loop].fields[field_loop].field_title}:</span>
|
|
<span class="value">{$cats[cat_loop].fields[field_loop].field_value_formatted}</span>
|
|
</li>
|
|
{/section}
|
|
{if $cats[cat_loop].fields|@count}</ul>{/if}
|
|
{/section}
|
|
|
|
{* SHOW PROFILE CATS AND FIELDS *}
|
|
{if $jobpost->jobpost_info.jobposttype_profile > 0 && $jobpost->get_jobpostprofilecat_id()}
|
|
{section name=profilecat_loop loop=$profilecats}
|
|
{section name=subprofilecat_loop loop=$profilecats[profilecat_loop].subcats}
|
|
<span class="graytitle">{lang_print id=$profilecats[profilecat_loop].subcats[subprofilecat_loop].subcat_title}</span>
|
|
<ul class="pageitem">
|
|
{* LOOP THROUGH FIELDS IN TAB, ONLY SHOW FIELDS THAT HAVE BEEN FILLED IN *}
|
|
{section name=field_loop loop=$profilecats[profilecat_loop].subcats[subprofilecat_loop].fields}
|
|
<li class="key_value">
|
|
<span class="key">{lang_print id=$profilecats[profilecat_loop].subcats[subprofilecat_loop].fields[field_loop].field_title}</span>
|
|
<span class="value">{$profilecats[profilecat_loop].subcats[subprofilecat_loop].fields[field_loop].field_value_formatted}
|
|
{if $profilecats[profilecat_loop].subcats[subprofilecat_loop].fields[field_loop].field_special == 1 && $profilecats[profilecat_loop].subcats[subprofilecat_loop].fields[field_loop].field_value|substr:0:4 != "0000"} ({lang_sprintf id=852 1=$datetime->age($profilecats[profilecat_loop].subcats[subprofilecat_loop].fields[field_loop].field_value)}){/if}
|
|
</span>
|
|
</li>
|
|
{/section}
|
|
</ul>
|
|
{/section}
|
|
{/section}
|
|
{/if}
|
|
{* END PROFILE TABS AND FIELDS *}
|
|
|
|
{if $jobpost->jobpost_info.jobpost_howtoapply}
|
|
<span class="graytitle">{lang_print id=11250161}</span>
|
|
<ul class="pageitem">
|
|
<li class="textbox">
|
|
{$jobpost->jobpost_info.jobpost_howtoapply|@nl2br}
|
|
</li>
|
|
</ul>
|
|
{/if}
|
|
</div>
|
|
<!-- /profile_info -->
|
|
|
|
<div id="profile_comments" style="display: {if $v == "comments"}block{else}none{/if}">
|
|
|
|
<span class="graytitle">{lang_sprintf id=11340100 1=$comments|@count}
|
|
|
|
</span>
|
|
<ul class="pageitem">
|
|
{if $allowed_to_comment && $user->user_exists}
|
|
<li class="feed">
|
|
<img src='./images/icons/action_postcomment.gif' border='0' class='icon'/ >
|
|
<div class="action"><a href="javascript: iMobile_toggle('#post_comment_form');" style="color: #666; font-style: italic;">{lang_print id=11340036}</a></div>
|
|
</li>
|
|
|
|
<li class="textbox" id="post_comment_form" style="display: none;">
|
|
<form action="imobile.php" method="POST" onSubmit="return iMobile_postComment();" name="comment_form"><input id="submit" type="hidden" />
|
|
<textarea id="comment_body" name="comment_body" rows="4"></textarea>
|
|
<input name="submit" type="submit" value="Post Comment" class="iPush" />
|
|
|
|
<input name="task" value="user_post_comment" type="hidden">
|
|
|
|
<input type="hidden" value="jobpost" name="type">
|
|
<input type="hidden" value="jobpost_id" name="iden">
|
|
<input type="hidden" value="{$jobpost->jobpost_info.jobpost_id}" name="value">
|
|
<input type="hidden" value="jobpost" name="object_owner">
|
|
<input type="hidden" value="{$jobpost->jobpost_info.jobpost_id}" name="object_owner_id">
|
|
<input type="hidden" value="jobposts" name="tab">
|
|
<input type="hidden" value="jobpost" name="col">
|
|
|
|
</form>
|
|
</li>
|
|
{/if}
|
|
{foreach from=$comments item=comment_data}
|
|
<li class="uitem">
|
|
<img src='{$comment_data.comment_author->user_photo('./images/nophoto.gif')}' border='0' class='icon' alt='' />
|
|
<div class="data">
|
|
<span class="name"><a href="{$url->url_create('profile',$comment_data.comment_author->user_info.user_username)}">{$comment_data.comment_author->user_displayname}</a></span>
|
|
<span class="comment">{$comment_data.comment_body}</span>
|
|
<span class="date">{$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $datetime->timezone($comment_data.comment_date, $global_timezone))}</span>
|
|
</div>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
<!-- /profile_activity -->
|
|
|
|
|
|
<div id="profile_friends" style="display: {if $v == "friends"}block{else}none{/if}">
|
|
|
|
<span class="graytitle">{lang_print id=11290161}</span>
|
|
<ul class="pageitem">
|
|
<li class="textbox">
|
|
{$jobpost->jobpost_info.jobpost_desc}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
{include file='imobile_footer.tpl'}
|