<?php
if(!defined('IN_GATEWEI')){
	exit('Access Denied'); 
}
?>
	<link rel="stylesheet" type="text/css" href="<?php echo $templatedir?>editor.css" />
	<script language=javascript src="./engine/js/attach.js"></script>
	<script language=javascript src="./engine/js/editor.js"></script>
	<script language=javascript src="./engine/js/menu.js"></script>
<div id="g_editor_toolbar">
<a id="g_editor_cmd_bold" title="字体加粗"><img src="images/editor/g_editor_bold.gif"/></a>
<a id="g_editor_cmd_italic" title="斜体字"><img src="images/editor/g_editor_italic.gif"/></a>
<a id="g_editor_cmd_underline" title="下划线"><img src="images/editor/g_editor_underline.gif"/></a>
<a id="g_editor_cmd_url_link" title="插入URL链接"><img src="images/editor/g_editor_url_link.gif"/></a>
<a id="g_editor_cmd_insert_image" title="插入图片"><img src="images/editor/g_editor_image.gif"/></a>
<a id="g_editor_cmd_float_left" title="向左浮动"><img src="images/editor/g_editor_float_left.gif"/></a>
<a id="g_editor_cmd_float_right" title="向右浮动"><img src="images/editor/g_editor_float_right.gif"/></a>
<a id="g_editor_cmd_flash" title="插入flash视频"><img src="images/editor/g_editor_flash.gif"/></a>
<a id="g_editor_cmd_align_left" title="左对齐"><img src="images/editor/g_editor_align_left.gif"/></a>
<a id="g_editor_cmd_align_center" title="中间对齐"><img src="images/editor/g_editor_align_center.gif"/></a>
<a id="g_editor_cmd_align_right"  title="右对齐"><img src="images/editor/g_editor_align_right.gif"/></a>
<a id="g_editor_cmd_indent" title="首行缩进"><img src="images/editor/g_editor_indent.gif"/></a>
<select id="g_editor_cmd_font_name"> 
<option value="0">字体</option> 
<option value="黑体">黑体</option> 
<option value="楷体_GB2312">楷体</option>
<option value="宋体">宋体</option> 
<option value="新宋体">新宋体</option> 
<option value="仿宋_GB2312">仿宋</option> 
<option value="华文行楷">华文行楷</option> 
<option value="Arial">Arial</option> 
<option value="Tohoma">Tahoma</option> 
<option value="Verdana">Verdana</option>
<option value="Times New Roman">Times New Roman</option> 
</select> <select id="g_editor_cmd_font_size"> 
<option value="0">字体大小</option> 
<option value="1">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="4">4</option> 
<option value="5">5</option> 
<option value="6">6</option> 
<option value="7">7</option> 
</select> 
<select id="g_editor_cmd_font_color"> 
<option value="0">字体颜色</option> 
<option value="Red" style="background-color:Red">红</option> 
<option value="Orange" style="background-color:Orange">橙</option> 
<option value="Yellow" style="background-color:Yellow">黄</option> 
<option value="LimeGreen" style="background-color:LimeGreen">绿</option> 
<option value="RoyalBlue" style="background-color:RoyalBlue">蓝</option> 
<option value="Pink" style="background-color:Pink">粉</option> 
<option value="Brown" style="background-color:Brown">褐</option> 
<option value="Purple" style="background-color:Purple">紫</option> 
</select> 
<a id="g_editor_cmd_font_total" title="字符数统计"><img src="images/editor/g_editor_font_total.gif"/></a>
</div>
<div id="g_editor_body">
<textarea id="g_editor_doc" name="g_editor_doc"><?php if($modifyinfo['content']){ echo $modifyinfo['content'];}?></textarea>
</div>
<?php if($allowedattachload){?>
<table>
    <tr>
          <td>
              <span>&nbsp;附件上传</span>(<span class="font_12">最大附件:<?php echo $attachmaxsize?>MB&nbsp;&nbsp;附件类型:<?php echo $attachallowedextname?></span>)
         </td>
   </tr>
  <tbody id="attachbodyhidden" style="display:none"><tr><td>
           <input type="file" name="attach[]" class="postmsgattach">
		   <input type="hidden" name="attachid[]">
           <span id="localfile[]"></span>
       </td>
     </tr>
  </tbody>
  <tbody id="attachbody"></tbody>
  </table>
<SCRIPT LANGUAGE="JavaScript">
	addAttach();
</SCRIPT>
<?php }?>
<SCRIPT LANGUAGE="JavaScript">
	initEditor();
</SCRIPT>
