<{if $user_ownpage == true && $user_candelete == true}>
  <div style="text-align:right;">
    <a href="<{$smarty.const.XOOPS_URL}>/user.php?op=delete"><{$smarty.const._US_DELACCOUNT}></a>
  </div>
<{elseif $xoops_isadmin == true}>
  <div style="text-align:right;">
    <a href="<{$smarty.const.XOOPS_URL}>/modules/user/admin/index.php?action=UserEdit&amp;uid=<{$thisUser->getShow('uid')}>"><{$smarty.const._US_EDITPROFILE}></a> - 
    <a href="<{$smarty.const.XOOPS_URL}>/modules/user/admin/index.php?action=UserDelete&amp;uid=<{$thisUser->getShow('uid')}>"><{$smarty.const._US_DELACCOUNT}></a>
  </div>
<{/if}>

<table width="100%" border="0" cellspacing="5">
  <tr valign="top">
    <td width="50%">

    <table class="outer" cellpadding="4" cellspacing="1" width="100%">
      <tr>
        <th colspan="2" style="text-align:center;">
          <{$smarty.const._US_ALLABOUT|replace:"%s":$thisUser->getShow('uname')}>
        </th>
      </tr>
      <{if $user_ownpage == true}>
      <tr>
        <td class="head" colspan="2" style="text-align:center;">
          <a href="<{$smarty.const.XOOPS_URL}>/modules/user/index.php?action=EditUser&amp;uid=<{$thisUser->getShow('uid')}>"><{$smarty.const._US_EDITPROFILE}></a>
        </td>
      </tr>
      <{/if}>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_AVATAR}></td>
        <td class="even" style="text-align:center;">
          <{if $thisUser->get('user_avatar') != "blank.gif" }>
            <img src="<{$smarty.const.XOOPS_UPLOAD_URL}>/<{$thisUser->getShow('user_avatar')}>" alt="Avatar" title="Avatar" />
          <{else}>
            <img src="<{$smarty.const.XOOPS_URL}>/modules/user/images/no_avatar.gif" alt="No Avatar" title="No Avatar" />
          <{/if}>
          <{if $user_ownpage == true}>
            <br /><a href="<{$smarty.const.XOOPS_URL}>/modules/user/index.php?action=AvatarEdit&amp;uid=<{$thisUser->getShow('uid')}>"><{$smarty.const._MD_USER_LANG_AVATAR_EDIT}></a>
          <{/if}>
        </td>
      </tr>
      <tr>
        <td class="head"><{$smarty.const._US_REALNAME}></td>
        <td class="odd" style="text-align:center;"><{$thisUser->getShow('name')}></td>
      </tr>
      <tr>
        <td class="head"><{$smarty.const._US_WEBSITE}></td>
        <td class="even"><a href="<{$thisUser->getShow('url')}>" target="_blank"><{$thisUser->getShow('url')}></a></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_EMAIL}></td>
        <td class="odd">
          <{if $thisUser->get('user_viewemail') == 1 || $user_ownpage == true || $xoops_isadmin == true }>
            <{mailto address=$thisUser->get('email') encode="javascript"}>
          <{/if}>
        </td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_PM}></td>
        <td class="even">
          <a href="javascript:openWithSelfMain('<{$smarty.const.XOOPS_URL}>/pmlite.php?send2=1&amp;to_userid=<{$thisUser->getShow('uid')}>', 'pmlite', 450, 380);">
          <img src="<{$smarty.const.XOOPS_URL}>/images/icons/pm.gif" alt="<{$smarty.const._SENDPMTO|replace:"%s":$thisUser->getShow('uname')}>" title="<{$smarty.const._SENDPMTO|replace:"%s":$thisUser->getShow('uname')}>" /></a>
          <{$user_pmlink}>
        </td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_ICQ}></td>
        <td class="odd"><{$thisUser->getShow('user_icq')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_AIM}></td>
        <td class="even"><{$thisUser->getShow('user_aim')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_YIM}></td>
        <td class="odd"><{$thisUser->getShow('user_yim')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_MSNM}></td>
        <td class="even"><{$thisUser->getShow('user_msnm')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_LOCATION}></td>
        <td class="odd"><{$thisUser->getShow('user_from')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_OCCUPATION}></td>
        <td class="even"><{$thisUser->getShow('user_occ')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_INTEREST}></td>
        <td class="odd"><{$thisUser->getShow('user_intrest')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_EXTRAINFO}></td>
        <td class="even"><{$thisUser->getShow('bio')}></td>
      </tr>
    </table>
    </td>
    <td width="50%">
    <table class="outer" cellpadding="4" cellspacing="1" width="100%">
      <tr valign="top">
        <th colspan="2" style="text-align:center;"><{$smarty.const._US_STATISTICS}></th>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_MEMBERSINCE}></td>
        <td class="even" style="text-align:center;"><{$thisUser->get('user_regdate')|xoops_formattimestamp:l}></td>
      </tr>
      <{if $rank != null}>
        <tr valign="top">
          <td class="head"><{$smarty.const._US_RANK}></td>
          <td class="odd" style="text-align:center;">
            <img src="<{$smarty.const.XOOPS_UPLOAD_URL}>/<{$rank->getShow('rank_image')}>" alt="<{$rank->getShow('rank_title')}>" title="<{$rank->getShow('rank_title')}>" /><br />
            <{$rank->getShow('rank_title')}>
          </td>
        </tr>
      <{/if}>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_POSTS}></td>
        <td class="even" style="text-align:center;"><{$thisUser->getShow('posts')}></td>
      </tr>
      <tr valign="top">
        <td class="head"><{$smarty.const._US_LASTLOGIN}></td>
        <td class="odd" style="text-align:center;"><{$thisUser->get('last_login')|xoops_formattimestamp:l}></td>
      </tr>
    </table>
    <br />
    <table class="outer" cellpadding="4" cellspacing="1" width="100%">
      <tr valign="top">
        <th colspan="2" style="text-align:center;"><{$smarty.const._US_SIGNATURE}></th>
      </tr>
      <tr valign="top">
        <td class="even"><{$user_signature}></td>
      </tr>
    </table>
    </td>
  </tr>
</table>

<!-- start module search results loop -->
<{foreach item=module from=$searchResults}>
  <p>
  <h4><{$module.name}></h4>

  <!-- start results item loop -->
  <{foreach item=result from=$module.results}>
    <img src="<{$result.image}>" alt="<{$module.name}>" title="<{$module.name}>" /><b><a href="<{$result.link}>"><{$result.title}></a></b><br /><small>(<{$result.time|xoops_formattimestamp:l}>)</small><br />
  <{/foreach}>
  <!-- end results item loop -->

  <{if $module.has_more}>
    <a href="<{$smarty.const.XOOPS_URL}>/search.php?action=showallbyuser&amp;mid=<{$module.mid|escape}>&amp;uid=<{$thisUser->getShow('uid')}>"><{$smarty.const._US_SHOWALL}></a>
  <{/if}>
  </p>
<{/foreach}>
<!-- end module search results loop -->