📄 im.tpl
字号:
<script type="text/javascript">
var cleared = false;
var im_refresh_interval = {$config.im_refresh_interval};
var im_msg_length = {$config.message_length};
var im_msg_long = "{lang mkey='im_msg_long'}";
function clearInput(obj) {ldelim}
if ( cleared != true ) {ldelim}
obj.value = '';
cleared = true;
{rdelim}
{rdelim}
</script>
<script type="text/javascript" src="{$DOC_ROOT}javascript/im.js"></script>
{strip}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" class="leftside_detail">
{assign var="leftcolumn_item_hdr_text" value="{lang mkey='instant_messenger'}"}
{include file="leftcolumn_item_hdr.tpl"}
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td width="100%" height="60" valign=top align=left >
<div id="userList" style="overflow:auto; width:175px; height:60px; " align=left>
</div>
</td>
</tr>
<tr>
<td width="100%" height="100" valign="top" >
{* the rows of this table would be generated using a foreach loop *}
{* NOTE: the colors of the text in each row should match the color of the
username in the userlist; thus, we know which message is from which
user more easily, by simply looking at the colors. *}
<div id="msgArea" style="overflow:auto; width:175px; height:100px;" align=left>
</div>
</td>
</tr>
<tr>
<td width="100%" height="57" valign="top" >
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td height="6" id="im_refuname" width="80%">{lang mkey='To1'}: <b> </b>
</td>
<td height="6" id="msg_chrs_cnt" width="20%">
</td>
</tr>
<tr>
<td id="newMsg" height="44" width="80%">
<textarea onFocus="javascript:clearInput(this);" style="height:100%;width:100%;overflow:auto;border:0;" name="im_msg" id="im_msg" onkeypress="keyHandler(event);"><your message></textarea>
</td>
<td height="44" id="sendBtn" width="20%">
<input type=hidden name="im_refuid" id="im_refuid" />
<input type="button" style="height:80%;" name="submit_btn" class="formbutton" value="{lang mkey='send'}" onClick="javascript: if (im_refuid=='') {ldelim}alert('{lang mkey='select_user_to_send_message'}'); return false;{rdelim} else sendMsg();"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/strip}
<script type="text/javascript">
getUserList();
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -