<script type="text/javascript">VERHASH = 'MVN', charset = 'utf-8'</script>
<script src="<?php echo $GLOBALS['path'];?>js/editor/bbeditor.js" type="text/javascript"></script>
<style type="text/css">
* {
	word-wrap:break-word;
}
body {	
	text-align:center;
}
body, td, input, textarea, select, button {
	color:#444;
	font:12px/1.6em Verdana, Helvetica, Arial, sans-serif;
}
input, select, button {
	vertical-align:middle;
}
body, ul, li, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset {
	margin:0;
	padding:0;
}
h1, h2, h3, h4, h5, h6 {
	font-size:1em;
}
ul li {
	list-style:none;
}
a {
	text-decoration:none;
	color:#000;
}
a:hover {
	text-decoration:underline;
}
.lightlink, .lightlink a {
	color:#09C;
}
a img {
	border:none;
}
em, cite, strong, th {
	text-align:left;
	font-style:normal;
}
.emfont {
	color:#F60;
}
table {
	empty-cells:show;
	border-collapse:collapse;
}
th {
	font-weight:400;
}
.txt, .txtarea {
	padding:2px;
*padding:0 2px;
	height:16px;
*height:20px;
	border:1px solid;
	border-color:#999 #CCC #CCC #999;
	background:#FFF;
}
.txtarea {
	height:auto;
}
.checkbox, .radio {
	margin:0;
	width:15px;
}
.pipe {
	margin:0 5px;
}
.lighttxt, .lighttxt a, .pipe {
	color:#999;
}
.smalltext {
	font-size:0.83em;
	font-family:Verdana, Helvetica, Arial, sans-serif;
}
.noborder, .noborder td {
	border:none !important;
}
.nobg {
	background:none !important;
}
.right {
	float:right;
}
.left {
	float:left;
}
#ajaxwaitid {
	display:none;
	position:absolute;
	z-index:100;
	top:0;
	right:0;
	width:100px;
	height:1.6em;
	background:#D00;
	line-height:1.6em;
	color:#FFF;
	overflow:hidden;
}
#checksecanswer img, #checksecanswer3 img, #checkseccodeverify img, #checkseccodeverify3 img, .warning img {
	vertical-align:middle;
}
.autosave {
	behavior:url(#default#userdata);
}
.s_clear:after {
	content:".";
	display:block;
	height:0;
	clear:both;
	visibility:hidden;
}
.s_clear {
	zoom:1;
}
hr {
	clear:both;
	margin:1em 0;
	border:0 solid #E6E7E1;
	background:transparent;
}
.solidline {
	border-top:1px solid #FFF;
	border-bottom-width:1px;
}
.dashline {
	height:0px;
	border-bottom-width:1px;
	border-style:dashed;
}
.shadowline {
*margin:2px 0;
	border-width:1px 0;
	border-top-color:#C8DCEC;
	border-bottom-color:#FFF;
}
.side .shadowline {
	margin:5px 0;
*margin:2px 0;
}
.cornerlayger {
	padding:6px 8px;
	border:1px solid #09C;
	background:#EBF2F8;
	line-height:1.6em;
}
.wrap {
	text-align:left;
	margin:0 auto;
}
#wrap {
	min-height:440px;
	border:0 solid;
	background-color:#FFF;
	clear:both;
}
* html #wrap {
	height:450px;
}
.wrap, #nav {
	width:960px;
}

.content {
	padding:2px 25px;
}
.content h1 {
	margin-bottom:10px;
	font-size:16px;
	font-weight:400;
}

.postbtn, .replybtn {
	width:67px;
	height:30px;
	font-size:14px;
	font-weight:700;
	line-height:28px;
*line-height:32px;
	text-align:center;
	overflow:hidden;
}

.postbtn a, .replybtn a {
	display:block;
	padding-left:5px;
	color:#FFF;
	letter-spacing:5px;
}
.postbtn a:hover, .replybtn a:hover {
	text-decoration:none;
}
.smilieslist {
	text-align:center;
	padding:10px;
	border:1px solid #7FCAE2;
	background:#FEFEFE;
}
.smilieslist td {
	padding:8px;
	border:none;
	cursor:pointer;
}
.smilieslist_page {
	text-align:right;
}
.smilieslist_page a {
	display:inline;
	margin:0 4px;
	color:#09C;
	text-decoration:underline;
}
.smilieslist_table {
	position:absolute;
	left:-100px;
	top:0;
	*top:-1px;
	width:100px !important;
	height:100px;
	border:1px solid #E6E7E1;
	background:#FFF;
}
.smilieslist_preview {
	text-align:center;
	vertical-align:middle;
}
.smiliesgroup {
	height:33px;
*height:34px;
	overflow:hidden;
width:expression(this.parentNode.offsetWidth);
}
.smiliesgroup ul, .imguptype {
	margin:6px 0;
	padding:0 0 26px 8px;
	border-bottom:1px solid #D3E8F2;
}
.smiliesgroup li, .imguptype li {
	display:inline;
}
.smiliesgroup li a, .imguptype li a {
	float:left;
	margin:2px 6px 0 0;
	padding:2px 10px;
	height:24px;
	he\ight:19px;
	border:1px solid #D3E8F2;
	color:#09C;
}
.smiliesgroup li a:focus, .imguptype li a:focus {
	outline:none;
}
.smiliesgroup li a.current, .imguptype li a.current {
	border-bottom-color:#FEFEFE;
	font-weight:700;
	color:#444;
}

.popupmenu_popup {
	overflow:hidden;
	padding:10px;
	text-align:left;
	line-height:1.4em;
	border:1px solid #7FCAE2;
	background:#FEFEFE;
}

#editor {
	border:solid;
	border-color:#E3EDF5;
	border-width:1px 1px 0;
	background:#F7F7F7;
}
#editor td {
	border:none;
	padding:2px;
}
.editortoolbar table {
	width:auto;
}
.editortoolbar a, .editortoolbar .a {
	display:block;
	cursor:pointer;
}
.editortoolbar a.hover, .editortoolbar a:hover, .editortoolbar .a1 {
background-color:;
	text-decoration:none;
}
.editor_switcher_bar {
	position:relative;
}
.editor_switcher_bar a {
	float:right;
	padding:0 3px;
	margin-right:5px;
}
.editor_switcher_bar button {
	border:1px solid;
	border-color:#E3EDF5 #E3EDF5 #FFF #E3EDF5;
	font-weight:bold;
	height:30px;
	he\ight:28px;
	line-height:28px;
	background:#FFF;
	margin:0 2px;
	position:relative;
	cursor:pointer;
}
*+html .editor_switcher_bar button {
	top:1px;
}
* html .editor_switcher_bar button {
	top:1px;
}
.editor_switcher_bar .editor_switcher {
	border-bottom-color:#E3EDF5;
	font-weight:normal;
}
.editor_text {
	border:1px solid;
	border-color:#E3EDF5 #E3EDF5 #E3EDF5 #E3EDF5;
}
.editor_text textarea {
	border:none;
	width:99%;
	font:14px/1.6em Verdana, Helvetica, Arial, sans-serif;
}
.editor_button {
	background:#F7F7F7;
	border:solid #E3EDF5;
	border-width:0 1px 0;
margin-bottom:;
}
.editor_button button {
	background:transparent;
	border-width:0 0 0 1px;
	color:#09C;
}
.editor_attach {
	border:1px solid #E3EDF5;
}

.fontname_menu {
	width:97px;
}
.fontsize_menu {
	width:27px;
	line-height:normal;
}
.fontsize_menu ul li {
	line-height:normal;
}
#e_popup_table_menu {
	width:220px;
}
.fontname_menu li, .fontsize_menu li {
	cursor:pointer;
}
.editor_colornormal, .editor_colorhover {
	border:none !important;
	padding:2px !important;
}
.editor_colornormal div {
	width:10px;
	height:10px;
	overflow:hidden;
	cursor:pointer;
	border:1px solid #FFF;
}
.editor_colorhover div {
	width:10px;
	height:10px;
	overflow:hidden;
	cursor:pointer;
	border:1px solid #444;
}
.swfwin {
	border:3px solid #7FCAE2;
}
#e_iframe {
	width:100%;
	border:none;
	margin:0;
	padding:0;
}
#e_textarea {
	width:100%;
	padding:0;
}
.editorrow {
	margin-top:5px;
	padding:3px;
	height:21px;
	overflow:hidden;
	line-height:18px;
	border:1px solid;
	border-color:#999 #CCC #CCC #999;
	clear:both;
	background:#F7F7F7;
}
.editor {
	text-align:left;
}
.editorbtn {
	margin-right:50px;
}
.editor em {
	margin:0 5px;
	float:left;
	display:block;
	height:20px;
	width:3px;
	background:url(<?php echo getImageFile('editor.gif');?>) no-repeat 0 -701px;
	border:1px solid #F7F7F7;
}
.editor a {
	margin:1px 0;
	float:left;
	text-align:left;
	text-decoration:none;
	display:block;
	height:21px;
	width:20px;
	background:url(<?php echo getImageFile('editor.gif');?>) no-repeat 0 30px;
	text-indent:-9999px;
	overflow:hidden;
	border:1px solid #F7F7F7;
}
a.oneditor, .editor a:hover {
	background:#FEFEFE url(<?php echo getImageFile('editor.gif');?>) no-repeat 0 21px;
	border:1px solid #7FCAE2;
}
#e_cmd_bold {
	background-position:0 0;
}
#e_popup_simple {
	background:url(<?php echo getImageFile('newarow.gif');?>) -7px -2px;
	width:8px;
}
#e_popup_fontname {
	background-position:0 -21px;
}
#e_popup_fontsize {
	background-position:0 -41px;
}
#e_popup_forecolor {
	background-position:0 -81px;
}
#e_popup_justify {
	background-position:0 -61px;
}
#e_cmd_createlink {
	background-position:0 -121px;
}
#e_cmd_email {
	background-position:0 -141px;
}
#e_cmd_insertimage {
	background-position:0 -161px;
}
#e_popup_media {
	background-position:0 -541px;
}
#e_cmd_quote {
	background-position:0 -441px;
}
#e_cmd_code {
	background-position:0 -461px;
}
#e_popup_list {
	background-position:0 -261px;
}
#e_popup_dent {
	background-position:0 -301px;
}
#e_popup_float {
	background-position:0 -341px;
}
#e_cmd_table {
	background-position:0 -381px;
}
#e_cmd_free {
	background-position:0 -401px;
}
#e_cmd_hide {
	background-position:0 -421px;
}
#e_popup_smilies {
	background-position:0 -101px;
}
#e_popup_tools {
	background-position:0 -181px;
}
a.editormode {
	float:right;
	right:20px;
	width:50px;
	background:#F7F7F7;
	text-align:right;
	text-decoration:none !important;
}
*html a.editormode {
	right:50px;
}
a.plugeditor {
	text-indent:0;
	background-position:0 40px;
}
a.editormode:hover {
	background:#FEFEFE;
	border-color:#7FCAE2;
}
a.upmedia {
	width:68px;
}
#e_cmd_bold {
	font-weight:700;
	text-decoration:none;
}
#e_cmd_italic {
	font-style:italic;
	text-decoration:none;
}
#e_cmd_underline {
	text-decoration:underline;
}
.newediter {
	border-style:solid;
	border-color:#999 #CCC #CCC #999;
	border-width:0px 1px 1px;
	padding:0px 0px 0px 4px;
	background:#FFF;
}
.newediter .autosave {
	padding:0 2px;
	width:562px;
	height:87px;
	border-width:1px;
	border:none;
	background:#FFF;
}
.newediter .max {
	height:257px;
}
a.customedit {
	text-indent:0 !important;
}
.popupfix {
	min-width:330px;
	white-space:nowrap;
}
*+html .popupfix {
	min-width:280px;
}
#e_cmd_table_menu {
	width:220px !important;
	min-width:220px !important;
}
#e_cmd_insertimage_menu {
*width:380px;
}
#e_cmd_insertimage_menu li {
	clear:none;
}
* html .content {height: auto !important;}
.nojs {position: relative;left: auto;}
* html .nojs {left: 0;}
* html .nojs .sim_upfile .sitenote {bottom: 161px;}
* html .nojs .sim_upfile .upfile_special {bottom: 301px;}
* html .nojs .sim_upfile .upfile {bottom: 356px;}
.nojs .float {margin: 0 auto;zoom: 1;}
.nojs .moreconf {position: relative;left: 0;width: auto;}
#floatwinnojs {position: static;}
.nojs .floatboxswf {width: 600px !important;}
.nojs .floatboxswf div {margin: 0 0 10px 11px;}
.nojs .floatbox1 {width: 100%;height: auto;}
#custominfoarea {right: 10px;left: auto;}
.nojs .specialinfo, .nojs .upfilelist {overflow-y: visible;height: auto !important;}
.popupmenu_popup, #e_popup_smilies_menu {*margin-top: 22px;}
* html .popupmenu_popup li {clear: both;float: left;}
* html .fontstyle_menu {overflow: hidden;width: 35px;}
* html .fontstyle_menu ul {width: 70px;}
* html .fontname_menu li {float: none;}
.main { overflow: hidden; }
.content { margin: 5px; min-height: 400px; background: #F1F5FA; }
* html .content { height: 400px; overflow: auto; }
.fixedbtn { position: static; }
</style>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<form method="post" id="postform" action="<?php echo $this->actionUrl;?>" enctype='multipart/form-data'>
<table>
	<tr>
		<td>
			<table>
				<tr><td></td></tr>
				<tr>
					<td>
						<div id="wrap" class="wrap s_clear">
  <div class="main">
    <div class="content">
      <div class="nojs">
        <div id="floatwinnojs">
<script type="text/javascript" reload="1">
var infloat = 0;
var InFloat_Editor = 'floatlayout_newthread';
var editoraction = 'newthread';
</script>
          <div class="float" id="floatlayout_newthread" style="">
            <!-- <form method="post" id="postform"
action="" onsubmit="return validate(this)">-->
              <input type="hidden" name="wysiwyg" id="e_mode" value="0" />
              <div style="clear:both;">
                <div class="floatbox floatbox1" id="editorbox">
                  <div class="postbox" id="postbox">
                    
                    <div class="float_postinfo s_clear"><?php $this->getOwner()->widget('bbs.widgets.ThreadTypeWidget',array('fid'=>$fid,'select'=>$thread['type']));?> <input title="请输入标题" tabindex="1" id="atc_title" name="subject" size="50" class="basic-input" value="<?php echo $thread['subject'];?>">
                    </div>
                    
                    <div id="e_controls" class="editorrow">
                      <div class="editor"> <a id="e_switcher" class="plugeditor editormode">
                        <input type="checkbox" name="checkbox" value="0" checked="checked" onclick="switchEditor(this.checked?0:1)" />
                        源码</a>
                        <div class="editorbtn"><a id="e_cmd_bold" title="粗体"></a> <a id="e_popup_simple" title="粗体 斜体 下划线"></a> <a id="e_popup_fontname" title="字体"></a> <a id="e_popup_fontsize" title="大小"></a> <a id="e_popup_forecolor" title="颜色"></a> <a id="e_popup_justify" title="对齐"></a> <a id="e_cmd_createlink" title="链接"></a> <a id="e_cmd_insertimage" title="图片"></a> <!-- <a id="e_popup_media" title="多媒体"></a> <a id="e_cmd_quote" title="引用"></a> <a id="e_cmd_code" title="代码"></a> <a id="e_popup_list" title="列表"></a> --><a id="e_popup_dent" title="缩进"></a> <!-- <a id="e_cmd_table" title="表格"></a> --><a id="e_cmd_hide" title="隐藏内容"></a> <a id="e_popup_smilies" title="表情"></a> <a id="e_popup_tools" title="工具"></a> </div>
                      </div>
                      <div class="editortoolbar">
                        <div class="popupmenu_popup fontstyle_menu" id="e_popup_simple_menu" style="display: none">
                          <ul unselectable="on">
                            <li><a id="e_cmd_italic" title="斜体">斜体</a></li>
                            <li><a id="e_cmd_underline" title="下划线">下划线</a></li>
                          </ul>
                        </div>
                        <div class="popupmenu_popup fontname_menu" id="e_popup_fontname_menu" style="display: none">
                          <ul unselectable="on">
                            <li onclick="discuzcode('fontname', '仿宋_GB2312')" style="font-family: 仿宋_GB2312" unselectable="on">仿宋_GB2312</li>
                            <li onclick="discuzcode('fontname', '黑体')" style="font-family: 黑体" unselectable="on">黑体</li>
                            <li onclick="discuzcode('fontname', '楷体_GB2312')" style="font-family: 楷体_GB2312" unselectable="on">楷体_GB2312</li>
                            <li onclick="discuzcode('fontname', '宋体')" style="font-family: 宋体" unselectable="on">宋体</li>
                            <li onclick="discuzcode('fontname', '新宋体')" style="font-family: 新宋体" unselectable="on">新宋体</li>
                            <li onclick="discuzcode('fontname', '微软雅黑')" style="font-family: 微软雅黑" unselectable="on">微软雅黑</li>
                            <li onclick="discuzcode('fontname', 'Trebuchet MS')" style="font-family: Trebuchet MS" unselectable="on">Trebuchet MS</li>
                            <li onclick="discuzcode('fontname', 'Tahoma')" style="font-family: Tahoma" unselectable="on">Tahoma</li>
                            <li onclick="discuzcode('fontname', 'Arial')" style="font-family: Arial" unselectable="on">Arial</li>
                            <li onclick="discuzcode('fontname', 'Impact')" style="font-family: Impact" unselectable="on">Impact</li>
                            <li onclick="discuzcode('fontname', 'Verdana')" style="font-family: Verdana" unselectable="on">Verdana</li>
                            <li onclick="discuzcode('fontname', 'Times New Roman')" style="font-family: Times New Roman" unselectable="on">Times New Roman</li>
                          </ul>
                        </div>
                        <div class="popupmenu_popup fontsize_menu" id="e_popup_fontsize_menu" style="display: none">
                          <ul unselectable="on">
                            <li onclick="discuzcode('fontsize', 1)" unselectable="on"><font size="1" unselectable="on">1</font></li>
                            <li onclick="discuzcode('fontsize', 2)" unselectable="on"><font size="2" unselectable="on">2</font></li>
                            <li onclick="discuzcode('fontsize', 3)" unselectable="on"><font size="3" unselectable="on">3</font></li>
                            <li onclick="discuzcode('fontsize', 4)" unselectable="on"><font size="4" unselectable="on">4</font></li>
                            <li onclick="discuzcode('fontsize', 5)" unselectable="on"><font size="5" unselectable="on">5</font></li>
                            <li onclick="discuzcode('fontsize', 6)" unselectable="on"><font size="6" unselectable="on">6</font></li>
                            <li onclick="discuzcode('fontsize', 7)" unselectable="on"><font size="7" unselectable="on">7</font></li>
                          </ul>
                        </div>
                        <div class="popupmenu_popup" id="e_popup_forecolor_menu" style="display: none">
                          <table cellpadding="0" cellspacing="0" border="0" unselectable="on" style="width: auto;">
                            <tr>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Black')" unselectable="on"><div style="background-color: Black" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Sienna')" unselectable="on"><div style="background-color: Sienna" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkOliveGreen')" unselectable="on"><div style="background-color: DarkOliveGreen" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkGreen')" unselectable="on"><div style="background-color: DarkGreen" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkSlateBlue')" unselectable="on"><div style="background-color: DarkSlateBlue" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Navy')" unselectable="on"><div style="background-color: Navy" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Indigo')" unselectable="on"><div style="background-color: Indigo" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkSlateGray')" unselectable="on"><div style="background-color: DarkSlateGray" unselectable="on"></div></td>
                            </tr>
                            <tr>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkRed')" unselectable="on"><div style="background-color: DarkRed" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkOrange')" unselectable="on"><div style="background-color: DarkOrange" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Olive')" unselectable="on"><div style="background-color: Olive" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Green')" unselectable="on"><div style="background-color: Green" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Teal')" unselectable="on"><div style="background-color: Teal" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Blue')" unselectable="on"><div style="background-color: Blue" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'SlateGray')" unselectable="on"><div style="background-color: SlateGray" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DimGray')" unselectable="on"><div style="background-color: DimGray" unselectable="on"></div></td>
                            </tr>
                            <tr>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Red')" unselectable="on"><div style="background-color: Red" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'SandyBrown')" unselectable="on"><div style="background-color: SandyBrown" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'YellowGreen')" unselectable="on"><div style="background-color: YellowGreen" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'SeaGreen')" unselectable="on"><div style="background-color: SeaGreen" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'MediumTurquoise')" unselectable="on"><div style="background-color: MediumTurquoise" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'RoyalBlue')" unselectable="on"><div style="background-color: RoyalBlue" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Purple')" unselectable="on"><div style="background-color: Purple" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Gray')" unselectable="on"><div style="background-color: Gray" unselectable="on"></div></td>
                            </tr>
                            <tr>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Magenta')" unselectable="on"><div style="background-color: Magenta" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Orange')" unselectable="on"><div style="background-color: Orange" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Yellow')" unselectable="on"><div style="background-color: Yellow" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Lime')" unselectable="on"><div style="background-color: Lime" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Cyan')" unselectable="on"><div style="background-color: Cyan" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DeepSkyBlue')" unselectable="on"><div style="background-color: DeepSkyBlue" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'DarkOrchid')" unselectable="on"><div style="background-color: DarkOrchid" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Silver')" unselectable="on"><div style="background-color: Silver" unselectable="on"></div></td>
                            </tr>
                            <tr>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Pink')" unselectable="on"><div style="background-color: Pink" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Wheat')" unselectable="on"><div style="background-color: Wheat" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'LemonChiffon')" unselectable="on"><div style="background-color: LemonChiffon" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'PaleGreen')" unselectable="on"><div style="background-color: PaleGreen" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'PaleTurquoise')" unselectable="on"><div style="background-color: PaleTurquoise" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'LightBlue')" unselectable="on"><div style="background-color: LightBlue" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'Plum')" unselectable="on"><div style="background-color: Plum" unselectable="on"></div></td>
                              <td class="editor_colornormal" onclick="discuzcode('forecolor', 'White')" unselectable="on"><div style="background-color: White" unselectable="on"></div></td>
                            </tr>
                            <tr></tr>
                          </table>
                        </div>
                        <div class="popupmenu_popup" id="e_popup_justify_menu" style="display: none">
                          <ul unselectable="on">
                            <li><a id="e_cmd_justifyleft" title="居左">居左</a></li>
                            <li><a id="e_cmd_justifycenter" title="居中">居中</a></li>
                            <li><a id="e_cmd_justifyright" title="居右">居右</a></li>
                          </ul>
                        </div>
                        <div class="smilies" id="e_popup_smilies_menu" style="display: none">
                          <div class="smilieslist">
                            <div id="smiliesdiv"></div>
<script type="text/javascript" reload="1">
smilies_show('smiliesdiv', 8, 1);
function smilies_onload_smiliesdiv() {
	loadselect('smiliesdiv_seltype', 0, 'floatlayout_newthread');
}
</script>
                          </div>
                        </div>
                        <div class="popupmenu_popup" id="e_popup_dent_menu" style="display: none">
                          <ul unselectable="on">
                            <li><a id="e_cmd_indent" title="增加缩进">增加缩进</a></li>
                            <li><a id="e_cmd_outdent" title="减少缩进">减少缩进</a></li>
                          </ul>
                        </div>
                        <div class="popupmenu_popup" id="e_popup_float_menu" style="display: none">
                          <ul unselectable="on">
                            <li><a id="e_cmd_floatleft" title="左浮动">左浮动</a></li>
                            <li><a id="e_cmd_floatright" title="右浮动">右浮动</a></li>
                          </ul>
                        </div>
                        <div class="popupmenu_popup" id="e_popup_list_menu" style="display: none">
                          <ul unselectable="on">
                            <li><a id="e_cmd_insertorderedlist" title="排序的列表">排序的列表</a></li>
                            <li><a id="e_cmd_insertunorderedlist" title="未排序列表">未排序列表</a></li>
                          </ul>
                        </div>
                        <div class="popupmenu_popup" id="e_popup_hide_menu" style="display: none">
                          <ul unselectable="on">
                            <li><a id="e_popup_hide" title="插入隐藏内容">插入隐藏内容</a></li>
                            <li><a id="e_cmd_table" title="插入表格">插入表格</a></li>
                            <li><a id="e_cmd_free" title="插入免费信息">插入免费信息</a></li>
                          </ul>
                        </div>
                        <div class="popupmenu_popup" id="e_popup_tools_menu" style="display: none">
                          <ul unselectable="on">
                            <a id="e_cmd_removeformat" title="清除文本格式">清除文本格式</a> <a id="e_cmd_unlink" title="移除链接">移除链接</a> <a id="e_cmd_undo" title="撤销">撤销</a> <a id="e_cmd_redo" title="重做">重做</a> <a id="e_cmd_checklength" title="字数检查">字数检查</a> <a id="e_cmd_clearcontent" title="清空内容">清空内容</a> <br />
                            <a id="e_cmd_autosave" title="自动保存">自动保存<em id="autsavet">(已停止)</em></a> <a id="e_cmd_saveData" title="保存数据">保存数据</a> <a id="e_cmd_loadData" title="恢复数据">恢复数据</a>
                          </ul>
                        </div>
                      </div>
                    </div>
                    <div class="newediter">
                      <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed">
                        <tr>
                          <td><textarea  name="content" id="e_textarea" tabindex="1" class="txt" style="height:300px"><?php echo $thread['content'];?>
                            </textarea></td>
                        </tr>
                      </table>
                    </div>
                  </div>
                  <div class="popupmenu_popup" id="imgpreview_menu" style="position:absolute;width:180px;height:150px;padding:0px;display: none;"></div>
                  <div id="img_hidden" alt="1" style="position:absolute;top:-100000px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image');width:400px;height:300px"></div>
                </div>
              </div>
          </div>
          <div class="popupmenu_popup" id="e_popup_media_menu" style="width: 280px;display: none" unselectable="on">
            <input type="hidden" id="e_mediatype" value="ra">
            <table cellpadding="4" cellspacing="0" border="0">
              <tr class="popupmenu_option">
                <td nowrap> 请输入多媒体文件的地址:<br />
                  <input id="e_mediaurl" style="width: 98%" value="" onkeyup="setmediatype('e')" />
                </td>
              </tr>
              <tr class="popupmenu_option">
                <td nowrap><label style="float: left; width: 32%">
                  <input type="radio" name="e_mediatyperadio" id="e_mediatyperadio_ra" onclick="$d('e_mediatype').value = 'ra'" checked="checked">
                  RA</label>
                  <label style="float: left; width: 32%">
                  <input type="radio" name="e_mediatyperadio" id="e_mediatyperadio_wma" onclick="$d('e_mediatype').value = 'wma'">
                  WMA</label>
                  <label style="float: left; width: 32%">
                  <input type="radio" name="e_mediatyperadio" id="e_mediatyperadio_mp3" onclick="$d('e_mediatype').value = 'mp3'">
                  MP3</label>
                  <label style="float: left; width: 32%">
                  <input type="radio" name="e_mediatyperadio" id="e_mediatyperadio_rm" onclick="$d('e_mediatype').value = 'rm'">
                  RM/RMVB</label>
                  <label style="float: left; width: 32%">
                  <input type="radio" name="e_mediatyperadio" id="e_mediatyperadio_wmv" onclick="$d('e_mediatype').value = 'wmv'">
                  WMV</label>
                  <label style="float: left; width: 32%">
                  <input type="radio" name="e_mediatyperadio" id="e_mediatyperadio_mov" onclick="$d('e_mediatype').value = 'mov'">
                  MOV</label>
                </td>
              </tr>
              <tr class="popupmenu_option">
                <td nowrap><label style="float: left; width: 32%">宽:
                  <input id="e_mediawidth" size="5" value="400" />
                  </label>
                  <label style="float: left; width: 32%">高:
                  <input id="e_mediaheight" size="5" value="300" />
                  </label>
                </td>
              </tr>
              <tr class="popupmenu_option">
                <td align="center" colspan="2"><input type="button" value="提交" onclick="setmediacode('e')">
                  &nbsp;
                  <input type="button" onclick="hideMenu()" value="取消" /></td>
              </tr>
            </table>
          </div>          
          <div class="popupmenu_popup" id="e_cmd_insertimage_menu" style="display: none" unselectable="on">
            <ul class="imguptype">
              <li><a href="javascript:;" hidefocus="true" class="current" id="insertimage_www">网络图片</a></li>
            </ul>
            <div class="popupmenu_option" unselectable="on" id="insertimage_www_div"> 请输入图片地址:<br />
              <input id="e_cmd_insertimage_param_url" style="width: 300px;" value="" class="txt" type="text" onkeydown="editorMenuEvent_onkeydown(this);" />
              <br />
              <center>
                <input id="e_cmd_insertimage_submit" value="提交" type="button" onclick="insertimagesubmit()" />
                &nbsp;
                <input onclick="hideMenu();" value="取消" type="button" />
              </center>
            </div>
          </div>
          <span id="attachbtnhidden" style="display:none"></span> <span id="attachbtn"></span> <span id="attachbodyhidden" style="display:none"></span><span id="attachbody"></span> <span id="uploadlist"></span>
<script type="text/javascript" reload="1">
var pagescroll = new pagescroll_class('floatlayout_newthread', 600, 410);
$d('floatlayout_newthread').scrollLeft = 600;
var postminchars = parseInt('10');
var postmaxchars = parseInt('10000');
var disablepostctrl = parseInt('1');
var seccodecheck = parseInt('');
var secqaacheck = parseInt('');
var typerequired = parseInt('');
var special = parseInt('0');
var isfirstpost = 1;
var allowposttrade = parseInt('1');
var allowpostreward = parseInt('1');
var allowpostactivity = parseInt('1');
var sortid = '';
var special = parseInt('0');

var editorid = 'e';
var textobj = $d(editorid + '_textarea');
var wysiwyg = (is_ie || is_moz || (is_opera >= 9)) && parseInt('0') == 1 ? 1 : 0;
var allowswitcheditor = parseInt('1');
var allowhtml = parseInt('0');
var forumallowhtml = parseInt('0');
var allowsmilies = parseInt('1');
var allowbbcode = parseInt('1');
var allowimgcode = parseInt('1');
var allowpostattach = parseInt('1');
var TABLEBG = '#FFF';
var uid = parseInt('1');
var swfhash = '214bfd89f297f8e915f9a1f19a9e184e';

var thumbwidth = parseInt(400);
var thumbheight = parseInt(300);
var extensions = '';

var fontoptions = new Array("仿宋_GB2312", "黑体", "楷体_GB2312", "宋体", "新宋体", "微软雅黑", "Trebuchet MS", "Tahoma", "Arial", "Impact", "Verdana", "Times New Roman");
var custombbcodes = new Array();

function messagehandle_newthread(key) {
	if(!Editorwin) {
		$d('floatlayout_newthread').scrollTop = 0;
		$d('more_1').style.display='none';pagescroll.up(1, '$d(\'more_2\').style.display=\'\';$d(\'custominfoarea\').style.display=\'\'');
	}
}

function messagehandle() {
	messagehandle_newthread();
}

function submithandle_newthread(locationhref, message) {
	var hastid = locationhref.lastIndexOf('tid=');
	if(hastid == -1) {
		dnotice(message, "location.href='" + locationhref + "'", 390, 130);
	} else {
	location.href = locationhref;
	}

	floatwinreset = 1;
	closeEditorwin();
}

function openEditor() {
	try {
		newEditor(wysiwyg);
		if(editbox) {
			editbox.className = 'autosave max';
		}
	} catch(e) {
		setTimeout('openEditor()', 100);
		return;
	}
	if(!$d('floatlayout_newthread').scrollLeft) {
		$d('floatlayout_newthread').scrollLeft = 600;
	}
	if(!getcookie('disableautosave')) {
		clearInterval(autosaveDatai);
		autosaveData(1);
	}
	if(is_ie >= 5 || is_moz >= 2) {
		window.onbeforeunload = function () {
			try {
				saveData(wysiwyg ? editdoc.body.innerHTML : textobj.value);
			} catch(e) {}
		};
	}
}

</script>
          <script src="<?php echo $GLOBALS['path'];?>js/editor/post.js" type="text/javascript" reload="1"></script>
          <script src="<?php echo $GLOBALS['path'];?>js/editor/bbcode.js" type="text/javascript" reload="1"></script>
        </div>
      </div>
    </div>
  </div>
</div>
					</td>
				</tr>
				<?php if ($this->isAllowUpload):?>
<script type="text/javascript">
var id = 1;
var initAtt = '<tr><td><input type="file" name="attachment_'+id+'" /></td><td><input type="text" name="name_'+id+'" /></td><td><input type="text" name="remark_'+id+'" size="30" /></td><td><input type="text" name="price_'+id+'" size="4" /></td><td>[<a href="javascript:void(0)" onClick="deleteSelf(this);">删除</a>][<a href="javascript:void(0);" onClick="insertText(\'[upload='+id+']\');">插入</a>]</td></tr>';

$(function() {
	$('#attbody').html(initAtt);
});

function addAtt() {
	id++;
	var attHtml = '<tr><td><input type="file" name="attachment_'+id+'" /></td><td><input type="text" name="name_'+id+'" /></td><td><input type="text" name="remark_'+id+'" size="30" /></td><td><input type="text" name="price_'+id+'" size="4" /></td><td>[<a href="javascript:void(0)" onClick="deleteSelf(this);">删除</a>][<a href="javascript:void(0);" onClick="insertText(\'[upload='+id+']\');">插入</a>]</td></tr>';
	$('#attbody').append(attHtml);
}

function deleteSelf(self) {
	$(self).parent().parent().remove();
}

function insertNewAttach(id) {
	
}
</script>
				<tr>
					<td>
						<div id="new_attach">
							<table>
								<tbody>
									<?php if (!empty($attachments)):?>
									<?php foreach ($attachments as $attachment):?>
									<tr>
										<td>ID：<?php echo $attachment['id'];?></td>
										<td>名字：<?php echo $attachment['filename'];?></td>
										<td>大小：<?php echo round($attachment['filesize'] / 1024, 2);?>KB</td>
										<td>[<a href="javascript:void(0)" onclick="insertText('[attachment=<?php echo $attachment['id'];?>]')">插入</a>]</td>
										<td></td>
									</tr>
									<?php endforeach;?>
									<?php endif;?>
									<tr style="height:20px;">
										<td><input type="checkbox" name="attreply" />隐藏附件(回复可见)</td>
										<td></td>
										<td></td>
										<td></td>
										<td></td>
									</tr>
									<tr>
										<td width="200">上传附件 (图片、文件等) [<a href="javascript:void(0);" onclick="addAtt();">+</a>]</td>
										<td width="100">附件名称</td>
										<td width="140">描述</td>
										<td width="60">售价</td>
										<td width="70"></td>
									</tr>
								</tbody>
								<tbody id="attbody"></tbody>
							</table>
						</div>
					</td>
				</tr>
				<?php endif;?>
				<tr><td><input type="submit" tabindex="4" class="btn-submit" name="reply" value="发布"></td></form></tr>
			</table>
		</td>
		<td style="width:240px;"></td>
	</tr>
</table>
</form>