<table class="outer" width="100%" cellspacing="0">
<tr>
<td class="head" width="60%" align="left" valign="bottom">

<{if $link.flag_url == 1}>
  <a href="<{$module_url}>/visit.php?lid=<{$link.lid}>" target="_blank">
<{elseif $link.flag_url == 2}>
  <a href="<{$link.url}>" onmousedown="return weblinks_hardlink(this,<{$link.lid}>)" target="_blank">
<{/if}>

<{if $link.flag_url != 0}>
  <img src="<{$module_url}>/images/link.gif" border="0" alt="<{$lang_visit}>" />&nbsp;&nbsp;
<{/if}>

<font size='+2'><{$link.title}></font>

<{if $link.flag_url != 0}>
  </a>
<{/if}>

<{if $link.flag_new == 1}>
  <a href="<{$module_url}>/index.php">
  <img src="<{$module_url}>/images/new.gif" border="0" alt="<{$lang_image_new}>" /></a>
<{/if}>

<{if $link.flag_update == 1}>
  <a href="<{$module_url}>/index.php">
  <img src="<{$module_url}>/images/update.gif" border="0" alt="<{$lang_image_update}>" /></a>
<{/if}>

<{if $link.flag_pop == 1}>
  <a href="<{$module_url}>/topten.php?hit=1">
  <img src="<{$module_url}>/images/pop.gif" border="0" alt="<{$lang_image_popular}>" /></a>
<{/if}>

<{if $link.flag_recommend == 1}>
  <a href="<{$module_url}>/viewmark.php?mark=recommend">
  <img src="<{$module_url}>/images/cool.gif" border="0" alt="<{$lang_image_recommend}>" /></a>
<{/if}>

<{if $link.flag_mutual == 1}>
  <a href="<{$module_url}>/viewmark.php?mark=mutual">
  <img src="<{$module_url}>/images/hot.gif" border="0" alt="<{$lang_image_mutual}>" /></a>
<{/if}>

&nbsp;&nbsp;

<{if $link.rss_flag == 2}>
  <a href="<{$link.rss_url}>" target="_blank">
  <img src="<{$module_url}>/images/atom.png" border="0" alt="atom" /></a>
<{elseif $link.rss_flag == 1}>
  <a href="<{$link.rss_url}>" target="_blank">
  <img src="<{$module_url}>/images/rss.png" border="0" alt="rss" /></a>
<{/if}>

</td>
<td class="head" align="right" width="30%">
<b><{$lang_lastupdate}></b> <{$link.update}>
</td>
</tr>

<tr><td class="even" colspan="2" align="left" height="18">
<b><{$lang_category}></b>&nbsp;

<!-- Start path loop -->
<{section name=ii loop=$link.catpaths}>
  <{section name=j loop=$link.catpaths[ii]}>
      <a href="<{$module_url}>/viewcat.php?cid=<{$link.catpaths[ii][j].cid}>"><{$link.catpaths[ii][j].title}></a>
    <{if $smarty.section.j.last == false}>
      &nbsp;<img src="<{$module_url}>/images/arrow2.gif" border="0" alt="arrow" />&nbsp;
    <{/if}>
  <{/section}>
  <{if $smarty.section.ii.last == false}>
    &nbsp;:&nbsp;
  <{/if}>
<{/section}>
<!-- End path loop -->

</td></tr>

<{if $link.name_disp != "" or $link.mail_disp != "" or $link.company != ""}>
  <tr><td class="even" colspan="2" align="left">
  <b><{$lang_promoter}></b>&nbsp;
  
  <{if $link.name_disp != ""}>
    <{if $link.mail_disp != ""}>
      <a href="mailto:<{$link.mail_disp}>"><{$link.name_disp}></a>
    <{else}>
      <{$link.name_disp}>
    <{/if}>
    &nbsp;&nbsp;
  <{/if}>
  
  <{$link.company}>
  </td></tr>
<{/if}>

<{if $xoops_language == 'japanese'}>

  <{if $link.zip != ""}>
    <tr><td class="even" colspan="2" align="left">
    <b><{$lang_zip}></b> <{$link.zip}>
    </td></tr>
  <{/if}>

  <{if $link.flag_addr == 1 }>
    <tr><td class="even" align="left">
    <b><{$lang_addr}></b>&nbsp;

    <{if $link.state != ""}>
      <{$link.state}>&nbsp;
    <{/if}>
    <{if $link.city != ""}>
      <{$link.city}>&nbsp;
    <{/if}>

    <{$link.addr}> <{$link.addr2}>
    </td>
    <td class="even" align="right" valign="middle">    
    <a href="http://search.map.yahoo.co.jp/search?p=<{$link.addr_encode}>" target="_blank">
    <img src="<{$module_url}>/images/map.png" border="0" alt="map" /></a>

<!--
  <a href="http://www.mapfan.com/index.cgi?ADDR=<{$link.addr_encode}>" target="_blank">
  <img src="http://www.mapfan.com/images/55_20.gif" border="0" alt="mapfan" /></a>
-->

    </td></tr>
  <{/if}>

<{else}>

  <{if ($link.flag_addr == 1) || ($link.zip != "")}>
    <tr><td class="even" align="left">
    <b><{$lang_zip}></b> <{$link.zip}>
    </td>
    <td class="even" rowspan="2" align="right" valign="middle">

    <{if $country == 'usa'}>
      <form action="http://us.rd.yahoo.com/maps/home/submit_a/*-http://maps.yahoo.com/maps" target="_blank" method="get">
      <input type="hidden" name="addr" value="<{$link.addr}>" />
      <input type="hidden" name="csz"  value="<{$link.city}>, <{$link.state}> <{$link.zip}>" />
      <input type="hidden" name="country"  value="us" />
      <input type="hidden" name="srchtype" value="a" />
      <input type="submit" name="getmap"   value="MAP" />
      </form>
    <{/if}>

    </td></tr>
    <tr><td class="even" align="left">
    <b><{$lang_addr}></b>&nbsp;
    <{$link.addr2}> <{$link.addr}>

    <{if $link.city != ""}>
      , <{$link.city}>
    <{/if}>
    <{if $link.state != ""}>
      , <{$link.state}>
    <{/if}>

    </td></tr>
  <{/if}>

<{/if}>

<{if ($link.tel != "") || ($link.fax != "") }>
  <tr><td class="even" colspan="2" align="left">

  <{if $link.tel != ""}>
    <b><{$lang_tel}></b> <{$link.tel}>&nbsp;&nbsp;
  <{/if}>

  <{if $link.fax != ""}>
    <b><{$lang_fax}></b> <{$link.fax}>
  <{/if}>

  </td></tr>
<{/if}>

<tr><td class="odd" colspan="2" align="left">

<{if $link.flag_admin == 1}>
  <a href="<{$module_url}>/admin/link_manage.php?op=modLink&amp;lid=<{$link.lid}>">
  <img src="<{$module_url}>/images/editicon.gif" border="0" alt="<{$lang_editthislink}>" />
  </a>&nbsp;
<{/if}>

<b><{$lang_description}></b><br />

<{if ($link_image_use == 1) && $link.image_url != ""}>

  <{if $link.flag_url == 1}>
    <a href="<{$module_url}>/visit.php?lid=<{$link.lid}>" target="_blank">
  <{elseif $link.flag_url == 2}>
    <a href="<{$link.url}>" onmousedown="return weblinks_hardlink(this,<{$link.lid}>)" target="_blank">
  <{/if}>

  <{if ($link.image_link_width != "") && ($link.image_link_height != "")}>
    <img src="<{$link.image_url}>" border="0" width="<{$link.image_link_width}>"  height="<{$link.image_link_height}>" alt="banner" align="right" vspace="3" hspace="7" />
  <{else}>
    <img src="<{$link.image_url}>" border="0" alt="banner" align="right" vspace="3" hspace="7" />
  <{/if}>

  <{if $link.flag_url != 0}>
    </a>
  <{/if}>

<{/if}>

<div style="text-align: justify"><{$link.description}></div><br />

<{if $link.admincomment != ""}>
  <b><{$lang_admincommnet}></b><br />
  <div style="text-align: justify"><font color="#333333"><{$link.admincomment}></font></div><br />
<{/if}>

</td></tr>

<tr>
<td class="even" colspan="2" align="center">
<b><{$lang_hits}>:</b> <{$link.hits}>&nbsp;&nbsp;

<{if $ratelink_show == 1}>
  <b><{$lang_rating}>:</b> <{$link.rating_disp}> (<{$link.votes_disp}>)
<{/if}>

</td>
</tr>

<tr><td class="foot" colspan="2" align="center">

<{if $ratelink_post == 1}>
  <a href="<{$module_url}>/ratelink.php?lid=<{$link.lid}>"><{$lang_ratethissite}></a>
  &nbsp;|&nbsp;
<{/if}>

<a href="<{$module_url}>/modlink.php?lid=<{$link.lid}>"><{$lang_modify}></a>
&nbsp;|&nbsp;
<a href="<{$module_url}>/brokenlink.php?lid=<{$link.lid}>"><{$lang_reportbroken}></a>
&nbsp;|&nbsp;
<a target="_top" href="mailto:?subject=<{$link.mail_subject}>&amp;body=<{$link.mail_body}>"><{$lang_tellafriend}></a>
&nbsp;|&nbsp;
<a href="<{$module_url}>/singlelink.php?lid=<{$link.lid}>#comment"><{$lang_comments}> (<{$link.comments}>)</a>

<{if $link.rss_flag == 2}>
  &nbsp;|&nbsp;
  <a href="<{$module_url}>/singlelink.php?lid=<{$link.lid}>#rss">ATOM</a>
<{elseif $link.rss_flag == 1}>
  &nbsp;|&nbsp;
  <a href="<{$module_url}>/singlelink.php?lid=<{$link.lid}>#rss">RSS</a>
<{/if}>

</td></tr>
</table>
<br />
