コメント入力フォーム

<form method="post" action="<$mt:CGIPath$><$mt:CommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
<fieldset>
<legend>コメントする</legend>
<input type="hidden" name="static" value="1">
<input type="hidden" name="armor" value="1">
<input type="hidden" name="entry_id" value="<$mt:EntryID$>">
<input type="hidden" name="__lang" value="<$mt:BlogLanguage$>">
<input type="hidden" name="parent_id" value="<$mt:CommentParentID escape="html"$>" id="comment-parent-id">
<input type="hidden" name="preview" value="<mt:if name="comment_preview">1</mt:if>">
<input type="hidden" name="sid" value="">

<p id="comment-form-reply" style="display:none">
<input type="checkbox" id="comment-reply" name="comment_reply" value="" onclick="mtSetCommentParentID()" /> <label for="comment-reply" id="comment-reply-label">返信する</label>
</p>

<div id="comments-open-text">
<label for="comment-text">コメント<mt:IfAllowCommentHTML> (スタイル用のHTMLタグを使えます)</mt:IfAllowCommentHTML></label>
<textarea name="text" id="comment-text" class="text" onfocus="mtCommentFormOnFocus()"><mt:If name="comment_preview"><$mt:CommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></mt:If></textarea>
</div>

<div id="comments-open-data">
<ul>
<li>
<label for="comment-author">名前</label> <input type="text" id="comment-author" class="text" name="author" value="<mt:If name="comment_preview"><$mt:CommentAuthor encode_html="1"$></mt:If>" onfocus="mtCommentFormOnFocus()" />
</li>
<li>
<label for="comment-email">電子メール</label> <input type="text" id="comment-email" class="text" name="email" value="<mt:If name="comment_preview"><$mt:CommentEmail encode_html="1"$></mt:If>" onfocus="mtCommentFormOnFocus()" />
</li>
<li>
<label for="comment-url">URL</label> <input type="text" id="comment-url" class="text" name="url" value="<mt:If name="comment_preview"><$mt:CommentURL encode_html="1"$></mt:If>" onfocus="mtCommentFormOnFocus()" />
</li>
</ul>
<mt:Unless name="comment_preview">
<p>
<input type="checkbox" id="comment-bake-cookie" name="bakecookie" onclick="mtRememberMeOnClick(this)" value="1" accesskey="r" /> <label for="comment-bake-cookie">サインイン情報を記憶</label>
</p>
</mt:Unless>
</div>

<div id="comments-open-footer" class="actions-bar">
<div id="comments-open-captcha"></div>
<mt:If name="comment_preview">
<input type="submit" accesskey="s" name="post" id="comment-submit" class="primary button" value="投稿">
<input type="submit" accesskey="v" name="preview_button" id="comment-preview" class="button" value="プレビュー" onclick="this.form.preview.value='1';">
<input type="button" name="cancel" id="comment-cancel" class="button" value="キャンセル" onclick="window.location='<$mt:EntryPermalink abs2rel="1"$>#comments-form'">
<mt:Else>
<input type="submit" accesskey="s" name="post" id="comment-submit" class="primary button" value="投稿">
<input type="submit" accesskey="v" name="preview_button" id="comment-preview" class="button" value="プレビュー" onclick="this.form.preview.value='1';">
</mt:If>
</div>
</fieldset>
</form>

<script type="text/javascript">
mtAttachEvent("load", mtEntryOnLoad);
mtAttachEvent("unload", mtEntryOnUnload);
</script>