<?php
if(!defined('IN_GATEWEI')) {
	exit('Access Denied');
}
function guesteditor($v="")
{
?>
<script language=javascript src="./engine/js/common.js"></script>
<script language=javascript src="./engine/js/menu.js"></script>
<script language=javascript src="./engine/js/editor.js"></script>
<link href="./engine/styles/editor.css" rel="stylesheet" type="text/css">
<div id="g_editor_toolbar">
<a id="g_editor_cmd_bold" title="字体加粗"><img src="editor/g_editor_bold.gif"/></a>
<a id="g_editor_cmd_italic" title="斜体字"><img src="editor/g_editor_italic.gif"/></a>
<a id="g_editor_cmd_underline" title="下划线"><img src="editor/g_editor_underline.gif"/></a>
<a id="g_editor_cmd_url_link" title="插入URL链接"><img src="editor/g_editor_url_link.gif"/></a>
<a id="g_editor_cmd_insert_image" title="插入图片"><img src="editor/g_editor_image.gif"/></a>
<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="editor/g_editor_font_total.gif"/></a>
</div>
<div id="g_editor_body">
<textarea id="g_editor_doc" name="g_editor_doc"><?=$v?></textarea>
</div>


<SCRIPT LANGUAGE="JavaScript">
	initEditor();
</SCRIPT>

 <?php
}

?> 

