<script type="text/javascript"><!--//
	function doSmilie(addSmilie) {
	var currentMessage = window.opener.xoopsGetElementById("<{$targetName}>").value;
    window.opener.xoopsGetElementById("<{$targetName}>").value=currentMessage+addSmilie;
    return;
    }
    //-->
</script>

<table width="100%" class="outer">
  <tr>
    <th colspan="3"><{$smarty.const._MD_BASE_LANG_SMILIES}></th>
  </tr>
  <tr class="head">
    <td><{$smarty.const._MD_BASE_LANG_CODE}></td>
    <td><{$smarty.const._MD_BASE_LANG_EMOTION}></td>
    <td><{$smarty.const._MD_BASE_LANG_IMAGE}></td>
  </tr>
  <{foreach item=obj from=$objects}>
    <tr class="<{cycle values="even,odd"}>">
      <td><{$obj->getShow('code')}></td>
      <td><{$obj->getShow('emotion')}></td>
      <td>
        <img onmouseover='style.cursor="hand"' onclick='doSmilie(" <{$obj->getShow('code')}> ");' src='<{$smarty.const.XOOPS_UPLOAD_URL}>/<{$obj->getShow('smile_url')}>' alt='<{$obj->getShow('emotion')}>' title='<{$obj->getShow('emotion')}>' />
      </td>
    </tr>
  <{/foreach}>
</table>
<br />
<div style="text-align:center;"><{xoops_pagenavi pagenavi=$pageNavi}></div>

<{$smarty.const._MD_BASE_LANG_CLICKASMILIE}>
