mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-12-15 00:21:17 -08:00
6759ce0595
* Some enhancements in default template * Updated * Updated * Updated * Updated * Updated * Updated * Update admin_user_search.tpl * Updated * Updated * Update admin_attachments.tpl * Updated * Updated * Update posting_smilies.tpl * Updated * Update CHANGELOG.md
47 lines
1.7 KiB
Smarty
47 lines
1.7 KiB
Smarty
<script type="text/javascript">
|
|
function emoticon(text) {
|
|
text = ' ' + text + ' ';
|
|
if (opener.document.forms['post'].message.createTextRange && opener.document.forms['post'].message.caretPos) {
|
|
var caretPos = opener.document.forms['post'].message.caretPos;
|
|
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
|
|
opener.document.forms['post'].message.focus();
|
|
} else {
|
|
opener.document.forms['post'].message.value += text;
|
|
opener.document.forms['post'].message.focus();
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<table width="100%" cellpadding="10">
|
|
<tr>
|
|
<td>
|
|
<table class="forumline">
|
|
<tr>
|
|
<th>{L_EMOTICONS}</th>
|
|
</tr>
|
|
<tr>
|
|
<td class="row1">
|
|
<table class="borderless w100" cellpadding="5">
|
|
<!-- BEGIN smilies_row -->
|
|
<tr class="tCenter">
|
|
<!-- BEGIN smilies_col -->
|
|
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
|
|
<!-- END smilies_col -->
|
|
</tr>
|
|
<!-- END smilies_row -->
|
|
<!-- BEGIN switch_smilies_extra -->
|
|
<tr class="tCenter">
|
|
<td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies" class="nav">{L_MORE_EMOTICONS}</a></td>
|
|
</tr>
|
|
<!-- END switch_smilies_extra -->
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="row2 tCenter"><br /><span class="med"><a href="javascript:window.close();" class="med">{L_CLOSE_WINDOW}</a></span></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|