Размер файла: 4.46Kb
<script language="JavaScript" type="text/javascript">
<!--
function update_mood(newimage)
{
document.mood_image.src = "{PHPURL}images/weblog/" + newimage;
}
function update_currently(newimage)
{
document.action_image.src = "{PHPURL}images/weblog/" + newimage;
}
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 align="right"><big><b>{WEBLOG_NAME}</b></big></div>
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" enctype="multipart/form-data">
<div class="tab"><span class="cattitle">{MODE}</span></div>
<!-- BEGIN switch_username_select -->
<div class="row1"><span class="cattitle">{L_USERNAME}</span>
<input type="text" tabindex="1" name="username" style="width: 235px;" maxlength="15" value="{USERNAME}" /></div>
<!-- END switch_username_select -->
<!-- BEGIN switch_post_entry -->
<div class="row1">{L_SUBJECT} <input type="text" name="subject" style="width: 235px;" maxlength="30" tabindex="2" value="{SUBJECT}" /></div>
<!-- END switch_post_entry -->
<div class="row1"><span class="cattitle">{L_MESSAGE_BODY}</span>
<div id="format-buttons">
<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)" />
</div>
<div id="smiley-box">
<script type="text/javascript">
// <![CDATA[
colorPalette('h', 3, 2);
// ]]>
</script>
<br/>
<!-- BEGIN switch_post_entry -->
<span class="cattitle">{L_CATEGORY}</span> {CATEGORY_SELECT}<br/>
<span class="cattitle">{L_MOOD}</span> <img name="mood_image" src="{PHPURL}images/weblog/{MOOD_IMG}" alt="{L_MOOD}" /> {SELECT_MOOD}<br/>
<span class="cattitle">{L_ACTION}</span> <img name="action_image" src="{PHPURL}images/weblog/{ACTION_IMG}" alt="{L_ACTION}" /> {ACTION_SELECT}<br/>
<!-- END switch_post_entry -->
<!-- BEGIN switch_post_entry -->
<span class="cattitle">{L_ENTRY_ACCESS}</span> {ENTRY_AUTH_SELECT}<br/>
<input type="checkbox" name="disable_replies" {S_DISABLE_REPLIES_CHECKED} /> {L_DISABLE_REPLIES}<br/>
<input type="checkbox" name="memorable" {S_MEMORABLE_CHECKED} /> {L_MEMORABLE_ENTRY}
<!-- END switch_post_entry -->
</div>
<div id="message-box">
<textarea name="message" rows="10" cols="55" tabindex="6" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
</div>
</div>
{S_HIDDEN_FORM_FIELDS}
<div align="center"><input type="submit" tabindex="8" accesskey="s" name="submit" class="button" value="{L_SUBMIT}" /></div>
</form>