<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>发表新贴 - {{bbs_name}} - {{class_name}} - {{bbs_title}}</title>
<link rel="stylesheet" href="{{template_css}}style.css" type="text/css" />
<script src="inc/nicEdit.js" type="text/javascript"></SCRIPT>
<script src="inc/clock.js" type="text/javascript"></SCRIPT>
<script src="inc/edit.js" type="text/javascript"></SCRIPT>

<script src="{{template_js}}smile_page.js" type="text/javascript"></SCRIPT>

<script type="text/javascript">
<!--
bkLib.onDomLoaded(function() {
	new nicEditor({buttonList : ['fontSize','fontFamily','bold','italic','underline','strikethrough','left','center','right','justify','subscript','superscript','hr','ol','ul','indent','outdent','image','upload','link','unlink','forecolor','bgcolor','removeformat']}).panelInstance('topic_content');
});

function show_vote()
{
	var vote_do = document.getElementById("vote")

	if (vote_do.style.display=="block")
	{
	vote_do.style.display = "none";
	}
	else
	{
	vote_do.style.display = "block";
	}
}

window.onload = function()
{
page = new Page(7,'smile_list','smile_group');
RemainTime();
};
//-->
</script>

<script src="{{template_js}}show_menu.js" type="text/javascript"></script>

</head>

<body>

<div style="display:none;position:absolute;z-index:1" id="upload_frame"></div>

<div class="page_global">
	<div class="page_body">

		{{global_head}}

		<div class="page_head">
			<div class="page_head_stay"><a href="./">论坛首页</a>&nbsp;&raquo;&nbsp;<a href="./?class_id={{class_id}}">{{class_name}}</a>&nbsp;&raquo;&nbsp;<a href="bbs_show.asp?bbs_id={{bbs_id}}">{{bbs_name}}</a>&nbsp;&raquo;&nbsp;发表新贴</div>
			<div class="page_head_menu">

			{{head_menu}}

			</div>
		</div>
	</div>
	<div>&nbsp;</div>
	<div>&nbsp;</div>

	<div class="page_body">

		<div class="fast_list">

			<form method="post" name="topic_new">
			<input type="hidden" name="action_form" value="new_topic_do" />
			<input type="hidden" name="bbs_id" value="{{bbs_id}}" />

				<TABLE cellspacing="5">
					<TR align="left">
						<TD width="180">发表新贴</TD>
						<TD align="right"><span id="DispRemainTime"></span></TD>
					</TR>
					<TR align="left">
						<TD><B>主题</B></TD>
						<TD><INPUT TYPE="text" NAME="topic_title" class="post_input" /></TD>
					</TR>
					<TR align="left" valign="top">
						<TD>
							<div><B>内容</B></div>
							<div>&nbsp;</div>

							{{smile_list}}

							<div>&nbsp;</div>
						</TD>
						<TD><TEXTAREA ID="topic_content" NAME="topic_content" ROWS="20" class="post_input"></TEXTAREA></TD>
					</TR>
					<TR align="left">
						<TD>&nbsp;</TD>
						<TD><A HREF="javascript:show_upload_frame();"><img src="{{template_image}}upload.gif" width="85" height="30" alt="上传文件" /></A></TD>
					</TR>
					<TR align="left" valign="top">
						<TD><B>选项</B></TD>
						<TD>
							<div><INPUT TYPE="checkbox" NAME="topic_show_sign" value="yes" checked /> 显示签名</div>
							<div><INPUT TYPE="checkbox" NAME="topic_lock" value="lock" /> 锁定贴子</div>
							<div><INPUT type="checkbox" name="vote_show" onclick="show_vote();" /> 显示投票选项</div>
						</TD>
					</TR>
				</table>
				<TABLE cellspacing="5" id="vote" style="DISPLAY:none">
					<TR align="left" valign="top">
						<TD width="180">
							<div><B>投票项目</B></div>
							<div>每行一个投票项目</div>
						</TD>
						<TD><TEXTAREA NAME="topic_vote" ROWS="10" class="post_input"></TEXTAREA></TD>
					</TR>
					<TR align="left">
						<TD><b>投票类型</b></TD>
						<TD>
							<input type="radio" name="topic_vote_type" value="radio" checked />
							单选
							&nbsp;
							<input type="radio" name="topic_vote_type" value="checkbox" />
							多选
						</TD>
					</TR>
				</table>
				<TABLE cellspacing="5">
					<TR align="left">
						<TD width="180">&nbsp;</TD>
						<TD>
							<INPUT TYPE="submit" value="发表" name="new_do" />
							<INPUT type="reset" onclick="{if(confirm('该项操作要清除全部的内容，您确定要清除吗?')){return true;}return false;}" value="重写" />
						</TD>
					</TR>
				</table>
			</form>

		</div>
		<div>&nbsp;</div>

	</div>

	{{global_foot}}

</div>

</body>
</html>