Файл: templates/web/posting_body.tpl
Строк: 146
<script language="JavaScript"
type="text/javascript">
<!--
l_empty_message =
"{L_EMPTY_MESSAGE}";
l_no_text_selected =
"{L_NO_TEXT_SELECTED}";
//-->
</script>
<script
language="JavaScript"
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>
<script
language="JavaScript" type="text/javascript"
src="templates/quick_reply.js"></script>
<div
class="tab"><span class="cattitle">
<!--
BEGIN switch_not_privmsg -->
{L_POST_A}<br/>
<!-- END
switch_not_privmsg -->
<!-- BEGIN switch_privmsg
-->
Отправить личное
сообщение<br/>
<!-- END switch_privmsg -->
</span></div>
{ERROR_BOX}
<form
action="{S_POST_ACTION}" method="post"
name="post" onsubmit="return checkForm(this)"
{S_FORM_ENCTYPE}>
<!-- BEGIN switch_username_select -->
<div class="row1"><span
class="cattitle">{L_USERNAME}:</span> <input
type="text" name="username" /></div>
<!-- END switch_username_select -->
<!-- BEGIN
switch_privmsg -->
<div class="row1"><span
class="cattitle">{L_USERNAME}:</span> <input
type="text" name="username"
value="{USERNAME}" style="width:
235px;"/></div>
<!-- END switch_privmsg -->
<!-- BEGIN switch_allow_subject_on -->
<!-- END
switch_allow_subject_on -->
<div
class="row1"><span
class="cattitle">{L_SUBJECT}:</span> <input
type="text" name="subject" value="{SUBJECT}"
style="width: 235px;"/></div>
<div
class="row1">
<div
id="format-buttons">
<ul
class="linklist">
<!-- BEGIN
switch_type_toggle -->
<li>{S_TYPE_TOGGLE}</li>
<!-- END
switch_type_toggle -->
<li>
<script
type="text/javascript">
//
<![CDATA[
colorPalette('h', 15, 10);
// ]]>
</script>
</li>
<li>
<input type="button" class="button"
accesskey="b" name="addbbcode0" value=" B "
style="font-weight:bold; width:30px"
onclick="bbstyle(0)" />
<input type="button"
class="button" accesskey="i"
name="addbbcode2" value=" i "
style="font-style:italic; width:30px"
onclick="bbstyle(2)" />
<input type="button"
class="button" accesskey="u"
name="addbbcode4" value=" u "
style="text-decoration: underline; width:30px"
onclick="bbstyle(4)" />
<input type="button"
class="button" accesskey="q"
name="addbbcode6" value="Quote"
style="width:50px" onclick="bbstyle(6)"
/>
<input type="button" class="button"
accesskey="c" name="addbbcode8" value="Code"
style="width:40px" onclick="bbstyle(8)"
/>
<input type="button" class="button"
accesskey="l" name="addbbcode10" value="List"
style="width:40px" onclick="bbstyle(10)"
/>
<input type="button" class="button"
accesskey="o" name="addbbcode12"
value="List=" style="width:40px"
onclick="bbstyle(12)" />
<input type="button"
class="button" accesskey="p"
name="addbbcode14" value="Img"
style="width:40px" onclick="bbstyle(14)"
/>
<input type="button" class="button"
accesskey="w" name="addbbcode16" value="URL"
style="text-decoration: underline; width:40px"
onclick="bbstyle(16)" />
<input type="button"
class="button" accesskey="y"
name="addbbcode18" value="YT"
style="text-decoration: underline; width:40px"
onclick="bbstyle(18)" />
<!-- BEGIN
switch_bbcode_checkbox -->
<br/><br/><input
type="checkbox" name="disable_bbcode"
{S_BBCODE_CHECKED} /><a
href="rules.php?id=8">[!]</a>{L_DISABLE_BBCODE}
<!-- END switch_bbcode_checkbox -->
</li>
</ul>
</div>
<div id="smiley-box">
<span
class="cattitle">{L_EMOTICONS}</span><br/>
<!-- BEGIN smilies_row -->
<!-- BEGIN smilies_col
-->
<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>
<!-- END smilies_col -->
<!-- END
smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<p><a href="{U_MORE_SMILIES}"
onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=500,
resizable=yes, scrollbars=yes, WIDTH=500'); return false;"
target="_phpbbsmilies"
class="buttom">{L_MORE_SMILIES}</a></p>
<!-- END switch_smilies_extra -->
<!-- BEGIN
switch_smilies_checkbox -->
<input type="checkbox"
name="disable_smilies" {S_SMILIES_CHECKED} />
{L_DISABLE_SMILIES}<br/>
<!-- END switch_smilies_checkbox
-->
<!-- BEGIN switch_signature_checkbox -->
<input type="checkbox" name="attach_sig"
{S_SIGNATURE_CHECKED} /> {L_ATTACH_SIGNATURE}<br/>
<!-- END switch_signature_checkbox -->
<!-- BEGIN switch_delete_checkbox -->
<input type="checkbox" name="delete" />
{L_DELETE_POST}
<!-- END switch_delete_checkbox
-->
<input type="checkbox"
name="translit" /><a
href="rules.php?id=7">[!]</a>Транслит
</div>
<div id="message-box">
<textarea id="message" name="message"
rows="15" cols="76" class="post"
onselect="storeCaret(this);"
onclick="storeCaret(this);" onkeyup="storeCaret(this);"
onfocus="initInsertions();">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea><br/>
</div>
</div>
<p
align="center">{S_HIDDEN_FORM_FIELDS} <input
class="subbutton" type="submit" name="post"
value="{L_SUBMIT}" /></p>
{POLLBOX}
{ATTACHBOX}
{TOPIC_REVIEW_BOX}
</form>
<!--
BEGIN switch_not_privmsg -->
<div class="tab">- <a
href="{U_VIEW_FORUM}">{FORUM_NAME}</a></div>
<!--
END switch_not_privmsg -->