<{include file="db:`$mydirname`_header.html"}>


<h3><{$smarty.const._MD_RATETHISSITE}></h3>

<div style="margin:30px 0; border:1px solid #999; padding:6px; width:70%;">
  <h4><{$link.title}></h4>

  <{if $link.url}>
    <{$link.url}><br />
    <{if $link.adult}>
      <img src="<{$myurl}>/images/warning128.gif" alt="<{$link.title}>" />
    <{else}>
      <{if $link.capture}>
        <img src="<{$cache_url}>/<{$link.lid}>.jpg" width="128" height="128" />
      <{else}>
        <{if $screenshotservice}>
          <img src="<{$screenshotservice}><{$link.url}>" width="128" height="128" />
        <{else}>
          <img src="<{$myurl}>/images/cancel128.gif" width="128" height="128" />
        <{/if}>
      <{/if}>
    <{/if}>
  <{/if}>

  <{if $link.murl}>
    <div style="margin:20px 0 0 0;">[Mobile]&nbsp;<{$link.murl}></div>
  <{/if}>
</div>

<ul style="margin:10px;">
  <{if $rating_type == 1}>
    <li><{$smarty.const._MD_VOTEONCE}></li>
    <li><{$smarty.const._MD_RATINGSCALE}></li>
    <li><{$smarty.const._MD_BEOBJECTIVE}></li>
  <{/if}>
  <li><{$smarty.const._MD_DONOTVOTE}></li>
</ul>

<form method="post" action="<{my_make_uri option=$uri_options mydirname=$mydirname controller=rating method=post}>" name="rating_form">
  <input type="hidden" name="lid" value="<{$link.lid}>" />
  <{if $rating_type == 1}>
    <select name="rating">
      <option>--</option>
      <option>10</option>
      <option>9</option>
      <option>8</option>
      <option>7</option>
      <option>6</option>
      <option>5</option>
      <option>4</option>
      <option>3</option>
      <option>2</option>
      <option>1</option>
      <option>0</option>
    </select>&nbsp;&nbsp;
  <{/if}>

  <{if $xoops_isuser}>
    <input type="submit" name="submit" value="<{if $rating_type == 1}><{$smarty.const._MD_RATEIT}><{elseif $rating_type == 2}><{$smarty.const._MD_RATING_TYPE_2_LANG}><{/if}>" />
  <{else}>
    <input type="hidden" name="CP" value="YES" />
    <input type="submit" name="submit" value="<{if $rating_type == 1}><{$smarty.const._MD_RATEIT}><{elseif $rating_type == 2}><{$smarty.const._MD_RATING_TYPE_2_LANG}><{/if}>" onclick="rating_form.CP.value='';" />
  <{/if}>

  <input type=button value="<{$smarty.const._CANCEL}>" onClick="history.back(); return false;" />
  <{$gticket}>
</form>


<{include file="db:`$mydirname`_footer.html"}>
