📄 shoutbox.tpl
字号:
{strip}
{* JS Counter *}
<script type="text/javascript">
var sb_error = "{lang mkey='sb_error'}";
var shout_text_max = 250;
var shoutbox_refresh_interval = {$config.shoutbox_refresh_interval};
var sb_msg_blank = "{lang mkey='sb_msg_blank'}";
var shoutbox_prog = "{$DOC_ROOT}shoutbox.php";
{literal}
<!--
function CountMax()
{
var wert,max;
max=shout_text_max;
wert = max-document.frmSB.shout_text.value.length;
if (wert < 0) {
alert(sb_error);
document.frmSB.shout_text.value = document.frmSB.shout_text.value.substring(0,max);
wert = max-document.frmSB.shout_text.value.length;
document.frmSB.rv_counter.value = wert;
} else {
document.frmSB.rv_counter.value = max - document.frmSB.shout_text.value.length;
}
}
function SmilieInsert(Smilie)
{
document.frmSB.shout_text.value += Smilie+" ";
document.frmSB.shout_text.focus();
}
//-->
{/literal}
</script>
{* ENDE JS Counter *}
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="leftside_detail" width="100%" valign="top">
{assign var="leftcolumn_item_hdr_text" value="{lang mkey='sb_hdr'}"}
{include file="leftcolumn_item_hdr.tpl"}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="99%">
<table width="100%" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tr>
<td>
{* if $smarty.session.expired != 1 and $smarty.session.active == '1' and ( $smarty.session.status == $lang.status_enum.active or $smarty.session.status == 'Active') *}
<form name="frmSB" action="" method="post">
<input type="hidden" name="frmsb" value="frmSB" />
<input type="hidden" name="username" value="{$smarty.session.UserName}" />
<input type="hidden" name="userid" value="{$smarty.session.UserId}" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td><input name="shout_text" id="shout_text" type="text" onfocus="CountMax();" onkeydown="CountMax();" value="" size="25" /></td>
</tr>
<tr>
<td><input name="rv_counter" type="text" size="2" maxlength="3" value="" readonly />
<a href="javascript:SmilieInsert(':-)')"><img border="0" src="{$DOC_ROOT}images/smilies/lucky.gif" title="{lang mkey='gb_insert_smilie'}" alt="" /></a>
<a href="javascript:SmilieInsert(';-)')"><img border="0" src="{$DOC_ROOT}images/smilies/wink.gif" title="{lang mkey='gb_insert_smilie'}" alt="" /></a>
<a href="javascript:SmilieInsert('8-)')"><img border="0" src="{$DOC_ROOT}images/smilies/cool.gif" title="{lang mkey='gb_insert_smilie'}" alt="" /></a>
<a href="javascript:SmilieInsert(':-(')"><img border="0" src="{$DOC_ROOT}images/smilies/worse.gif" title="{lang mkey='gb_insert_smilie'}" alt="" /></a>
<a href="javascript:SmilieInsert(':-P')"><img border="0" src="{$DOC_ROOT}images/smilies/p.gif" title="{lang mkey='gb_insert_smilie'}" alt="" /></a>
<input type="button" class="formbutton" name="Submit" value="{lang mkey='sb_send'}" onclick="javascript:sendSBMsg();" /></td>
</tr>
</table>
</form>
{*/if*}
<div id="SBmsgArea" style="width:170px; height:65px; overflow:auto;">
{* {foreach item=item row=row from=$shoutbox_data}
<tr>
<td width="100%" style="border-bottom: 1 solid #9C9C9C" bgcolor="#E5E5E5">{if $item.from_user != '-1'}
{if $config.enable_mod_rewrite == 'Y'}
<a href="javascript:popUpScrollWindow2('{$docroot}{if $config.seo_username == 'Y'}{$item.username}{else}{$item.from_user}.htm{/if}','top',650,600)">
{else}
<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?{if $config.seo_username == 'Y'}username={$item.username}{else}id={$item.from_user}{/if}','top',650,600)">
{/if}
{$item.username}</a>
{else}
{$item.username}
{/if} - <b><font color="#9C9C9C">{$item.act_time|date_format:$smarty.const.SHOUTBOX_TIME_FORMAT}</font></b>
</td>
</tr>
<tr>
<td width="100%">{$item.message|wordwrap:25:"\n":true}
</td>
</tr>
<tr><td height="5"></td></tr>
{/foreach}
*}
</div>
<br />
<input type="button" value="{lang mkey='sb_show_all'}" class="formbutton" onclick="getSBMsg('all');" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript">
document.frmSB.rv_counter.value = shout_text_max;
getSBMsg('0');
</script>
{/strip}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -