Размер файла: 2.74Kb
<script language="JavaScript">
function checkBrowser()
{
this.ver=navigator.appVersion;
this.dom=document.getElementById?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ns6=(this.dom && parseInt(this.ver) >= 5)?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.opr=(navigator.userAgent.toLowerCase().indexOf("opera") != -1)?1:0;
return this
}
function paste_strinL(strinL,isQuote){
if (isQuote == 1) {
strinL = '[i]' + strinL + '[/i]' + '\\\n';
}
var isForm=document.forms["postMsg"];
if (isForm) {
var input=document.forms["postMsg"].elements["postText"];
input.value=input.value+strinL;
}
else alert('$l_topic_closed');
}
function getQuotation () {
var bw=new checkBrowser();
if (bw.ns6) {
document.writeln('<a href="#bottom" onClick="paste_strinL(window.document.getSelection(),1)">{$l_quoting}</a> ');
}
else if ((bw.ie5 || bw.ie6) && !bw.opr) {
document.writeln('<a href="VBScript:paste_strinL(document.selection.createRange().Text,1)">{$l_quoting}</a> ');
}
else if (bw.ns4) {
document.writeln('<input type=button class="quoteButton" onClick="paste_strinL(window.document.getSelection(),1);" value="{$l_quoting}"> ');
}
}
</script>
<center>
<table bgcolor="{$tableParam[1]}" width="{$tableParam[0]}" border={$tableParam[5]} cellspacing={$tableParam[7]} cellpadding={$tableParam[6]}>
<tr>
<td bgcolor="{$tableParam[4]}" width="100%">
<table width="100%" border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=16 valign=top><img src="./img/forum_icons/{$forumIcon}" width=16 height=16></td>
<td class=header width="100%"> <a href="?"><b>{$sitename}</b></a> <b class=bulletHead>—›</b> <a href="index.php?action=vtopic&forum=$forum"><b>{$forumName}</b></a> <b class=bulletHead>—›</b> {$topicName}<br><small>{$pageNav}</small></td>
</tr>
</table>
</td>
</tr>
</table>
<form onSubmit="return false;">
<table bgcolor="{$tableParam[1]}" width="{$tableParam[0]}" border={$tableParam[5]} cellspacing={$tableParam[7]} cellpadding={$tableParam[6]}>
<tr bgcolor={$tableParam[3]}>
<td width="15%"><small><b>{$l_author}</b></small></td>
<td width="85%"><small><b>{$l_message}</b></small></td>
</tr>
{$listPosts}
</table>
<table width="{$tableParam[0]}" border=0 cellspacing={$tableParam[7]} cellpadding={$tableParam[6]}>
<tr><td><p><small><b>{$pageNav}</b></small></td></tr>
</table>
</form>
</center>
<a name=newreply></a>
{$mainPostArea}
<br>
<center>
<table bgcolor="{$tableParam[4]}" width="{$tableParam[0]}" border=0 cellspacing={$tableParam[7]} cellpadding={$tableParam[6]}>
<tr><td class=cell1>
<small>{$closeTopic} {$moveTopic} {$deleteTopic}</small>
{$forumsList}
</td></tr></table></center>