<?php defined('PHPNEW_STATIC_TPL') === false && exit('PHPnew blog');?>
<script type="text/javascript">
var charset = 'utf-8';
var InFloat_Editor = 'floatlayout_newthread';
var encty="{eval echo fun_getcookie('http_user')}";
</script>

<script src="./Source/Default_data/editor/common.js?{GET_RAND}" type="text/javascript"></script>
<!--{if $user_posts == 1}-->
<script type="text/javascript" src="./Source/Default_data/swfupload/swfupload.js?{GET_RAND}"></script>
<!--{/if}-->
<link href="./Source/Default_data/editor/style.css?{GET_RAND}" rel="stylesheet" type="text/css" />
<style type="text/css">
/*  文件上传选择图片 */
.uploadpic{background:#f0f0ee; border:1px solid #CCC; width:700px; padding:40px; margin:0; background-color: red; margin-top:2px;}

/* 批量上传 */
.upbatch {clear:both;margin-top:-1px;padding:10px;border:1px solid #D4E3B3;background:#FFF;zoom:1; z-index: 100;}
.upbatch_cpic, .upbatch_list  {width:100%;}
.uppicinfo{display:none}

.upbatch_cpic {position:relative;width:100%;overflow:hidden; background-color: #EBF2F8;}
.upbatch_cpic input, .upbatch_cpic .upbatch_flash ,.upbatch p {float:left;}
.upbatch_cpic input {width:235px;height:23px;}
.upload_normal {position:absolute;z-index:0;left:245px;right:0;width:60px;height:25px;opacity:0;filter:alpha(opacity:0);cursor:pointer;overflow:hidden;}
.upload_normal .inp_file {position:absolute;left:-154px;*left:-5px;width:60px;height:25px;cursor:default;}
.upbatch_cpic .upbatch_flash {margin:0 6px;height:25px;width:64px;overflow:hidden;cursor:pointer;background:url(./Source/Default_data/swfupload/swfupload.png) no-repeat 0 0;}
.upbatch_cpic p {height:25px;overflow:hidden;overflow:hidden;}
.upbatch_header {display:none;height:22px;line-height:22px;border-bottom:1px dotted #D4DCDF;color:#334F67;background:#F5F5F5;overflow:hidden;}
.pic_name, .pic_size, .pic_option, .pic_percent, .pic_tag{float:left;}
.pic_name {position:relative;width:350px;text-indent:15px;}
.pic_tag {width:150px;text-align: left;position:relative;}
.pic_size {width:100px;text-align:center;}
.pic_option {width:60px;}
.pic_percent {width:80px;text-indent:20px;}
.upbatch_main {width:100%; zoom:1; padding: 0px; margin: 0px;}
.upbatch_main li {padding:0; margin: 0px; height:30px;line-height:30px; border-bottom:1px dotted #D4DCDF;}
.upbatch_main .pic_name {position:relative;z-index:2;}
.upbatch_main .pic_name a, .upbatch_main .pic_name em {display:block;height:22px;width:340px;overflow:hidden;}
.upbatch_main .pic_name span {position:absolute;bottom:5px;left:0;display:none;}
.upbatch_main .pic_name span img {border:1px solid #B5CE85;}
.upbatch_main li a {vertical-align:middle;}
.pic_name .uploaded_pic {display:none;position:absolute;bottom:30px;left:0;}
.uploaded_pic img {border:1px solid #B5CE85;}
.upbatch_main .pic_percent {position:relative;height:30px;}
.upbatch_main .pic_percentbg {float:left;position:relative;left:3px;top:7px; border: 1px solid silver; margin-right:5px;width:102px;height:11px;background:#F1F1F1;overflow:hidden;}
.upbatch_main .pic_percenttxt {position:absolute;top:5px;left:45px;display:none;line-height:normal;text-indent:0;} 
.pic_percentbg span {float:left;height:11px;overflow:hidden;}
.pic_percentbg span em {float:left;padding-top:9px;height:0;width:0px;border:1px solid #A7CA65;background:url(./Source/Default_data/swfupload/bg_repeat.png) repeat-x 0 -114px;overflow:hidden;}
.pic_option span {float:left;height:30px;line-height:30px;overflow:hidden;}
.pic_option input, .pic_option select {float:left;margin-top:4px;}
.pic_option input {width:150px;height:19px;line-height:19px;overflow:hidden;}
.pic_option select {margin-top:5px;margin-right:5px;height:21px;}
.pic_del a {margin:0 auto;margin-top:6px;padding-top:16px;width:17px;height:0;overflow:hidden;}
.uppic_yet {display:none;clear:both;margin-top:10px;line-height:27px;}
.uppic_yet .iblock {margin-right:10px;width:64px;height:25px;vertical-align:text-bottom;}
.uppic_yet .btn_sphpnew_m {margin-right:10px;vertical-align:text-bottom}
#setnone{display: {$open}; width: 634px; margin-bottom: 9px; margin-top: 8px; background-color: #F5F8F3; line-height: 25px; border: 3px solid silver;}
#setnone ul li{border-bottom: 1px dotted silver; margin-left: 20px;}
#setnone input{vertical-align: middle;}
.tag_mess{width: 435px; height: 100px; margin: 3px; margin-bottom: 0px; padding-bottom: 0px;}
.pic_name_img{display: block; line-height: 30px; height: 30px;}
</style>
<script type="text/javascript">
    var tem_i = 0;
    function tem_show(){
        if(tem_i == 0){
            $('#setnone').show();
            $('.stus').val(1);
            tem_i = 1;
        }else if(tem_i == 1){
           $('#setnone').hide();
           $('.stus').val(0);
           tem_i = 0;
        }
    }
    
    
    function tem_checkbox(obj){
        var tem_n = $(obj).attr('name');
        if($(obj).attr('checked')){
            $('input[name="'+tem_n+'"]').attr('checked',false);
            $(obj).attr('checked',true);
        }else{
            $(obj).attr('checked',false);
        }
    }
    var tem_z= tem_sid = 0;
    function show_tag(aid){
        if(aid == tem_sid){
          $('.hide_'+aid).hide();
          tem_sid = 0;
        }else{
            $('.hide_'+aid).show(); 
            $('.hide_'+aid).css({'position':"absolute",'text-align': 'left','bottom':"30px",'display':'block','left':"0",'width':'450px','height':'140px','background-color': '#F5F8F3','border': '3px solid silver'});
            $('.hide_'+aid).click(function(){
                tem_z++;
                $(this).css('z-index',tem_z);
            })
            tem_sid = aid;
        }
    }
    $(function(){
        $('.upbatch_main li').mousemove(function (){
            $('.upbatch_main li').css('background-color','#F5F8F3');
            $(this).css('background-color','#E2E9E8');
        });
    })

</script>
<form method="post" name="postform" id="postform" enctype="application/x-www-form-urlencoded" action="{ADM_GET_URL}" onsubmit="return validate(this);">
<div style=" overflow: hidden;">
<h3 style="font-weight: bolder; font-size: 14px; line-height: 2em; color: white; background-color: #0080FF;">投稿主题: </h3>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="wrap" class="wrap s_clear">
  <div class="main">
    <div class="content" style="margin: 0; padding: 0;">
      <div class="nojs">
        <div id="floatwinnojs">
          <div class="float" id="floatlayout_newthread">
            <input type="hidden" name="formhash" id="formhash" value="fda203fb" />
              <input type="hidden" name="wysiwyg" id="e_mode" value="1" />
              <div style="clear:both;">
                <div class="floatbox floatbox1" id="editorbox">
                  <div class="popupmenu_popup" id="imgpreview" style="position:absolute;width:180px;height:150px;display: none;"></div>
                  <div class="postbox" id="postbox">
                    <div class="s_clear" style="line-height: 3em;">
                    <span style="cursor: pointer; margin-left: 6px;" onclick="tem_show();" title="相关设置">
                      <img src="./Static/Images/bots.jpg" style="margin-top: 3px; vertical-align: middle;" />
                      </span>				
                      <select class="clsselect" style="padding: 1px;" name="scat">
                                                <!--{loop $cat_array $val}-->
                                               <option value="{$val[c_id]}"<!--{if $thread[thread_fid]==$val[c_id]}--> selected="selected"<!--{/if}-->>{$val[c_name]}</option>
                                                <!--{/loop}-->
                                            </select>
                      
                      <input name="title" id="subject" value="{$thread[thread_title]}" style="line-height: 17px; height: 17px;" tabindex="1" />
                    </div>
<div id="setnone">
        <ul style="margin: 6px;">
            <input type="hidden" class="stus" name="stus" value="{$opens}" />
            <h3 style="border-bottom: 2px solid #FF8040; color: #FF8040; overflow: hidden;"><span style="float: left;">主题相关设置</span>{if $edit}<span style="float: right; font-size: 12px;"><input type="checkbox" onclick="settingclick(this);" name="setting" value="1" />仅改配置</span>{/if}</h3>
            <li style="clear: both;">附件查阅: <input type="checkbox" onclick="tem_checkbox(this);" name="TFG[th_user]" value="1" {if $thread[thread_history][th_user] === '1'}checked="checked"{/if} /> 会员 <input type="checkbox" onclick="tem_checkbox(this)" name="TFG[th_user]" value="2" {if $thread[thread_history][th_user] === '2'}checked="checked"{/if} /> 回复 <input type="checkbox" onclick="tem_checkbox(this)" name="TFG[th_user]" value="0" {if $thread[thread_history][th_user] === '0'}checked="checked"{/if} /> 游客</li>
            <li>主题优化: <input type="checkbox" onclick="tem_checkbox(this);" name="TFG[th_sync]" value="1" {if $thread[thread_history][th_sync] === '1'}checked="checked"{/if} /> 图片同步 / <input type="checkbox" name="TFG[th_replay]" value="0" {if $thread[thread_history][th_replay] === '0'}checked="checked"{/if} /> 禁止回复 / <input type="checkbox" name="TFG[th_admread]" value="1" {if $thread[thread_history][th_admread] === '1'}checked="checked"{/if} /> 管理员查看</li>
            <li>主题审核: 
            <input type="checkbox" onclick="tem_checkbox(this);" name="th_status" value="2" {if $thread[thread_state] === '2'}checked="checked"{/if} /> 精华 
            <input onclick="tem_checkbox(this);" type="checkbox" name="th_status" value="4" {if $thread[thread_state] === '4'}checked="checked"{/if} /> 推荐 
            <input type="checkbox" onclick="tem_checkbox(this);" name="th_status" value="3" {if $thread[thread_state] === '3'}checked="checked"{/if} /> 热贴 
            <input onclick="tem_checkbox(this);" type="checkbox" name="th_status" value="1" {if $thread[thread_state] === '1'}checked="checked"{/if} /> 置顶 
            <input onclick="tem_checkbox(this);" type="checkbox" name="th_status" value="5" {if $thread[thread_state] === '5'}checked="checked"{/if} /> 编辑采用 </li>
           <li>主题高亮: 
                <input type="checkbox" name="TFG[th_color]" onclick="tem_checkbox(this);" value="red" {if $thread[thread_history][th_color] === 'red'}checked="checked" {/if}/> <span style="color: red;">红色</span>
                <input type="checkbox" name="TFG[th_color]" onclick="tem_checkbox(this);" value="green" {if $thread[thread_history][th_color] === 'green'}checked="checked" {/if}/> <span style="color: green;">绿色</span>
                <input type="checkbox" name="TFG[th_color]" onclick="tem_checkbox(this);" value="blue" {if $thread[thread_history][th_color] === 'blue'}checked="checked" {/if}/> <span style="color: blue;">蓝色</span>
                <input type="checkbox" name="TFG[th_color]" onclick="tem_checkbox(this);" value="fuchsia" {if $thread[thread_history][th_color] === 'fuchsia'}checked="checked" {/if}/> <span style="color: fuchsia;">粉色</span>
                <input type="checkbox" name="TFG[th_color]" onclick="tem_checkbox(this);" value="brown" {if $thread[thread_history][th_color] === 'brown'}checked="checked" {/if}/> <span style="color: brown;">褐色</span>
                <input type="checkbox" name="TFG[th_color]" onclick="tem_checkbox(this);" value="purple" {if $thread[thread_history][th_color] === 'purple'}checked="checked" {/if}/> <span style="color: purple;">紫色</span> 
                <input type="checkbox" name="TFG[th_color]" onclick="tem_checkbox(this);" value="Gray" {if $thread[thread_history][th_color] === 'Gray'}checked="checked" {/if}/> <span style="color: Gray;">灰色</span> 
                <input type="checkbox" name="TFG[th_weight]" value="1" {if $thread[thread_history][th_weight] === '1'}checked="checked" {/if}/> <span style="font-weight: bolder;">加粗</span>
            </li>
            <li>关键字词: <input type="text" style="width: 320px;" name="TFG[th_keyword]" value="{$thread[thread_history][th_keyword]}" /> (以,分开)</li>
            
            <li>回复限期: <input type="text" name="TFG[th_replays]" style="width: 140px;" value="{$thread[thread_history][th_replays]}" />  发表时间: <input type="text" style="width: 140px;" name="thread_date" value="{$thread[thread_date]}" />  阅读人气: <input type="text" style="width: 60px;" name="thread_view" value="{$thread[thread_view]}" /> </li>
            
            
            
            <h3 style="border-bottom: 2px solid #FF8040; color: #FF8040;">商品购买设置</h3>
            <li>商品原价: <input type="text" name="TFG[los_pay]" style="width: 130px;" value="{$thread[thread_history][los_pay]}" /> <span style="font-weight: bolder;">现价:</span> <input type="text" name="TFG[th_pay]" value="{$thread[thread_history][th_pay]}" /> </li>
            <li>购买链接: <input type="text" style="width: 320px;" name="TFG[th_url]" value="{$thread[thread_history][th_url]}" /></li>
            <li style="color: gray;"> * 主题设置中所有项目均为可选, 系统自动会识别用户操作.</li>
        </ul>
    </div>
                    <div id="e_controls" class="editorrow" style="margin-left: 6px;">
                      <div class="editor">
										  <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_email" title="Email"></a>
											<a id="e_cmd_insertimage" 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_popup_float" title="浮动"></a>
											<a id="e_cmd_table" title="表格"></a>
											<!--a id="e_cmd_free" title="免费信息"></a-->
											<!--a id="e_cmd_hide" title="隐藏内容"></a-->
											<a id="e_popup_smilies" title="表情"></a>
											<a id="e_cmd_custom1_fly" class="customedit" title="使内容横向滚动，这个效果类似 HTML 的 marquee 标签，注意：这个效果只在 Internet Explorer 浏览器下有效。"><img src="./Source/Default_data/editor/images/bb_fly.gif" title="使内容横向滚动，这个效果类似 HTML 的 marquee 标签，注意：这个效果只在 Internet Explorer 浏览器下有效。" alt="fly" /></a>
											<a id="e_cmd_custom1_flash" class="customedit" title="嵌入多媒体播放信息"><img src="./Source/Default_data/editor/images/bb_play.gif" title="嵌入多媒体播放信息" alt="flash" /></a>
											<a id="e_cmd_custom1_qq" class="customedit" title="显示 QQ 在线状态，点这个图标可以和他（她）聊天"><img src="./Source/Default_data/editor/images/bb_qq.gif" title="显示 QQ 在线状态，点这个图标可以和他（她）聊天" alt="qq" /></a>
											<a id="e_cmd_custom1_sup" class="customedit" title="上标"><img src="./Source/Default_data/editor/images/bb_sup.gif" title="上标" alt="sup" /></a>
											<a id="e_cmd_custom1_sub" class="customedit" title="下标"><img src="./Source/Default_data/editor/images/bb_sub.gif" title="下标" alt="sub" /></a>
											<a id="e_popup_tools" title="工具"></a>
											<a id="e_switcher" class="plugeditor editormode" style="border: none; background: none;"><input type="checkbox" name="checkbox" value="0"  onclick="switchEditor(this.checked?0:1)" />源码</a>
											</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_bold" title="粗体">粗体</a></li>
                            <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" unselectable="on" style="width: auto; border: none;">
                            <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>
                          </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>
                          </ul>
                        </div>
                      </div>
                      
                    </div>
                    
                    <div class="newediter" style="margin-left: 6px;">
                      <div style="border: none; padding: 0; margin: 0; overflow: hidden;">
                        <textarea class="autosave max" id="e_textarea" style="height:420px; line-height: 1.6em; font-size: 14px;" name="message"></textarea>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
          </div>
          <script src="./Source/Default_data/editor/bbcode.js?{GET_RAND}" type="text/javascript"></script>
          <script type="text/javascript">	
						var pagescroll = new pagescroll_class('floatlayout_newthread', 834, 410);
						getid('floatlayout_newthread').scrollLeft = 834;						
						var postminchars = 0;
						var postmaxchars = 0;
						var disablepostctrl = 1;
						var seccodecheck = 0;
						var secqaacheck = 0;
						var typerequired = 0;
						var special = 0;
						var isfirstpost = 1;
						var allowposttrade = 1;
						var allowpostreward = 1;
						var allowpostactivity = 1;
						var sortid = '';
						var special = 0;
						
						var editorid = 'e';
						var textobj = getid(editorid + '_textarea');
						var wysiwyg = (is_ie || is_moz || (is_opera >= 9)) && parseInt('1') == 1 ? 1 : 0;
						var allowswitcheditor = 1;
						var allowhtml         = 0;
						var forumallowhtml    = 0;
						var allowsmilies      = 1;
						var allowbbcode       = 1;
						var allowimgcode      = 1;
						var allowpostattach   = 1;
						var editorcss = './Source/Default_data/editor/style.css?{GET_RAND}';
						var editorcss_editor = null;
						var TABLEBG = '#FFF';
						var thread_message = {eval echo strlen($thread[thread_message])};
						var fontoptions = new Array("仿宋_GB2312", "黑体", "楷体_GB2312", "宋体", "新宋体", "微软雅黑", "Trebuchet MS", "Tahoma", "Arial", "Impact", "Verdana", "Times New Roman");
						var custombbcodes = new Array();
						custombbcodes["fly"] = {'prompt' : '请输入滚动显示的文字:'};
						custombbcodes["flash"] = {'prompt' : '请输入多媒体的信息(支持youku地址解析):'};
						custombbcodes["qq"] = {'prompt' : '请输入显示在线状态 QQ 号码:'};
						custombbcodes["sup"] = {'prompt' : '请输入上标文字:'};
						custombbcodes["sub"] = {'prompt' : '请输入下标文字:'};
var smilies = new Array();
	smilies[1] = {'code' : '[d:01]', 'url' : 'default/smile.gif'};
    smilies[2] = {'code' : '[d:02]', 'url' : 'default/sad.gif'};
    smilies[3] = {'code' : '[d:03]', 'url' : 'default/biggrin.gif'};
    smilies[4] = {'code' : '[d:04]', 'url' : 'default/cry.gif'};
    smilies[5] = {'code' : '[d:05]', 'url' : 'default/huffy.gif'};
    smilies[6] = {'code' : '[d:06]', 'url' : 'default/shocked.gif'};
    smilies[7] = {'code' : '[d:07]', 'url' : 'default/tongue.gif'};
    smilies[8] = {'code' : '[d:08]', 'url' : 'default/shy.gif'};
    smilies[9] = {'code' : '[d:09]', 'url' : 'default/titter.gif'};
    smilies[10] = {'code' : '[d:10]', 'url' : 'default/sweat.gif'};
    smilies[11] = {'code' : '[d:11]', 'url' : 'default/mad.gif'};
    smilies[12] = {'code' : '[d:12]', 'url' : 'default/lol.gif'};
    smilies[13] = {'code' : '[d:13]', 'url' : 'default/loveliness.gif'};
    smilies[14] = {'code' : '[d:14]', 'url' : 'default/funk.gif'};
    smilies[15] = {'code' : '[d:15]', 'url' : 'default/curse.gif'};
    smilies[16] = {'code' : '[d:16]', 'url' : 'default/dizzy.gif'};
    smilies[17] = {'code' : '[d:17]', 'url' : 'default/shutup.gif'};
    smilies[18] = {'code' : '[d:18]', 'url' : 'default/sleepy.gif'};
    smilies[19] = {'code' : '[d:19]', 'url' : 'default/hug.gif'};
    smilies[20] = {'code' : '[d:20]', 'url' : 'default/victory.gif'};
    smilies[21] = {'code' : '[d:21]', 'url' : 'default/time.gif'};
    smilies[22] = {'code' : '[d:22]', 'url' : 'default/kiss.gif'};
    smilies[23] = {'code' : '[d:23]', 'url' : 'default/handshake.gif'};
    smilies[24] = {'code' : '[d:24]', 'url' : 'default/call.gif'};
    
	smilies[25] = {'code' : '[m:01]', 'url' : 'monkey/01.gif'};
	smilies[26] = {'code' : '[m:02]', 'url' : 'monkey/02.gif'};
	smilies[27] = {'code' : '[m:03]', 'url' : 'monkey/03.gif'};
	smilies[28] = {'code' : '[m:04]', 'url' : 'monkey/04.gif'};
	smilies[29] = {'code' : '[m:05]', 'url' : 'monkey/05.gif'};
	smilies[30] = {'code' : '[m:06]', 'url' : 'monkey/06.gif'};
	smilies[31] = {'code' : '[m:07]', 'url' : 'monkey/07.gif'};
	smilies[32] = {'code' : '[m:08]', 'url' : 'monkey/08.gif'};
	smilies[33] = {'code' : '[m:09]', 'url' : 'monkey/09.gif'};
	smilies[34] = {'code' : '[m:10]', 'url' : 'monkey/10.gif'};
	smilies[35] = {'code' : '[m:11]', 'url' : 'monkey/11.gif'};
	smilies[36] = {'code' : '[m:12]', 'url' : 'monkey/12.gif'};
	smilies[37] = {'code' : '[m:13]', 'url' : 'monkey/13.gif'};
	smilies[38] = {'code' : '[m:14]', 'url' : 'monkey/14.gif'};
	smilies[39] = {'code' : '[m:15]', 'url' : 'monkey/15.gif'};
	smilies[40] = {'code' : '[m:16]', 'url' : 'monkey/16.gif'};
	smilies[41] = {'code' : '[g:01]', 'url' : 'grapeman/01.gif'};
	smilies[42] = {'code' : '[g:02]', 'url' : 'grapeman/02.gif'};
	smilies[43] = {'code' : '[g:03]', 'url' : 'grapeman/03.gif'};
	smilies[44] = {'code' : '[g:04]', 'url' : 'grapeman/04.gif'};
	smilies[45] = {'code' : '[g:05]', 'url' : 'grapeman/05.gif'};
	smilies[46] = {'code' : '[g:06]', 'url' : 'grapeman/06.gif'};
	smilies[47] = {'code' : '[g:07]', 'url' : 'grapeman/07.gif'};
	smilies[48] = {'code' : '[g:08]', 'url' : 'grapeman/08.gif'};
	smilies[49] = {'code' : '[g:09]', 'url' : 'grapeman/09.gif'};
	smilies[50] = {'code' : '[g:10]', 'url' : 'grapeman/10.gif'};
	smilies[51] = {'code' : '[g:11]', 'url' : 'grapeman/11.gif'};
	smilies[52] = {'code' : '[g:12]', 'url' : 'grapeman/12.gif'};
	smilies[53] = {'code' : '[g:13]', 'url' : 'grapeman/13.gif'};
	smilies[54] = {'code' : '[g:14]', 'url' : 'grapeman/14.gif'};
	smilies[55] = {'code' : '[g:15]', 'url' : 'grapeman/15.gif'};
	smilies[56] = {'code' : '[g:16]', 'url' : 'grapeman/16.gif'};
	smilies[57] = {'code' : '[g:17]', 'url' : 'grapeman/17.gif'};						
						function cedit() {
							try {
								loadData(1);
							} catch(e) {
								setTimeout('cedit()', 1000);
							}
						}

						function openEditor(){
                            if(thread_message){ //编辑
                                newEditor(wysiwyg);
                                switchEditor(0);
                                switchEditor(1);
                            }else{ // 初始化.
                                newEditor(wysiwyg);
                            }
                            
							if(editbox) {
								editbox.className = 'autosave max';
							}
							
							if(!getid('floatlayout_newthread').scrollLeft) {
								getid('floatlayout_newthread').scrollLeft = 834;
							}
							if(is_ie >= 5 || is_moz >= 2) {
								window.onbeforeunload = function () {};
							}
						}
						
                        var sLinkFieldName = 'e_textarea';
						var oLinkField = window.document.postform;
						var oForm = oLinkField.form;
                        var obj_this, i; 
                        var datsss = 0;
                        $(function (){
                                smilies_show('smiliesdiv', 8, 1);
								setLinkedField();
                                openEditor();
                                
                                // 附件显示.
                                $('.pic_name_img').click(function (){
                                    imgshow(this);
                                })
                        }); 
                        
                        function imgshow(obj){
                                $(obj).next().show();
                                $(obj).next().click(function (){
                                    $(this).hide();
                                    obj_this = 0;
                                });
                                if(obj_this != obj){
                                    $(obj_this).next().hide();
                                    obj_this = obj;
                                }else{
                                   $(obj_this).next().hide();
                                   obj_this = 0;
                                }
                        }
                        
						// 设置所属表单的提交
						function setLinkedField() {
							if (!oLinkField) return;
							var oForm = oLinkField.form ;
							if (!oForm) return ;
							_attachEvent(oForm, 'submit', AttachSubmit);
						}
						// 提交表单
						function AttachSubmit() {
							var txt = wysiwyg ? html2bbcode(getEditorContents()) : parseurl(getid('postform').message.value);
							oLinkField.value = txt;
						}
                    // 检测功能, 保留功能.
                    function looks(){
                        alert(getEditorContents());
                        return false;
                    }
                    var streditstatue = 0;
                    function parsestr(obj){
                        switchEditor(0);
                        switchEditor(1);
                        if(streditstatue == 0){
                            streditstatue = 1;
                            $(obj).css({'background-color':'red','color':'#FFFFFF'});
                        }else{
                           streditstatue = 0;
                           $(obj).removeAttr('style');
                           
                        }
                        return false;
                    }// TODO: fsfsdfsd
     			</script>
                <script src="./Source/Default_data/editor/editor.js?{GET_RAND}" type="text/javascript"></script>
                <div class="upbatch" style="border: 1px solid silver; clear: both;margin-left: 6px; padding: 0; background-color: #F5F8ED;">
        <div class="upbatch_list">
          <div id="upbatch_header" class="upbatch_header">
          	<span class="pic_name">附件[<span class="lNum">{$intattcount}</span>]</span>
            <span class="pic_tag">描述/缩略</span>
            <span class="pic_size">大小</span>
            <span class="pic_option">操作</span>
            <span class="pic_percent">上传进度</span>
          </div>
          <ul id="upbatchbox" class="upbatch_main"></ul>
    	  <!--图片上传[over]-->	         
          <div class="uppic_yet" id="uppic_yet" style="margin-left: 5px;">
    	      <span id="spanButtonPlace_iblock" class="iblock">
    	      	<span id="spanButtonPlace"><!--等待第二次载入--></span>
    	      </span>
    	      <span class="c_weak"></span>
          </div>
        </div>
  </div>
  <!--{if $user_posts == 1}-->
  <div style="color: green; margin-left: 6px;"> * 你的账号许可投稿主题,谢谢你的参与.</div><br />
<!--{else}-->
        <div style="color: red;margin-left: 6px;"> * 请勿随意编辑信息提交, 你的投稿权限不足!!!</div><br />
<!--{/if}-->
      <input type="submit" style="margin-left: 6px;" value=" 投 稿 " /> <br /><br />
      <div style="line-height: 2em; margin-left: 6px;">
        <strong>说明</strong>: <br />
      　1: 主题设置中所有项目均为可选, 系统自动会识别用户操作.<br />
      </div>
        </div>
      </div>
    </div>
  </div>

</div>
</div>
</form>