<%
if Request.Cookies("admindj")<>"1" then
   Response.Write "<BR><BR><BR><BR><center>权限不足，你没有此功能的管理权限"
   Response.end
end if
%>
<!--#include file = admin_chk.asp -->
<!--#include file = admin_conn.asp -->

<head>
<!--#include file = language.asp -->
<STYLE type="text/css">
<!--
a:link       {text-decoration: none; font-family: AdobeSm; color: #000000 }
a:visited    {text-decoration: none; color: #000000 }
A:hover      {COLOR: green; FONT-FAMILY: "宋体,MingLiU"; TEXT-DECORATION: underline}
body         {font-size: 9pt; font-family: 宋体,MingLiU, Arial;color: #000000}
TD           {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000;table-layout:fixed;word-break:break-all}
p            {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
input        {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
body         {margin-top: 0; margin-bottom: 0;margin-left:0;margin-right:0; color: #000000}
select       {FONT-SIZE: 9PT;}
option       {FONT-SIZE: 9pt;}
textarea     {FONT-SIZE: 9pt;}
-->
</STYLE>
</head>
<body bgcolor="#ffffff">
<%
htmledit=trim(request("htmledit"))
if htmledit<>"" then 
   conn.Execute "update [config] set tghtmledit="&htmledit
   conn.close
   set conn=nothing
   Response.Redirect "admin_tg.asp"
end if

Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open "select tghtmledit from [config]",conn,1,1
tghtmledit=rs("tghtmledit")
%>
<p align="center">
<BR><a href=javascript:history.back();>返回</a><BR>
</p>
<form method="POST" action="admin_tg_config.asp">
	<div align="center">
		<table border="1" cellpadding="3" width="700" id="table1" style="border-collapse: collapse" bordercolor="#C0C0C0" cellspacing="0">
			<tr>
				<td width="118" align="center">是否使用HTML编辑器</td>
				<td width="567"><select size="1" name="htmledit">
				<option value="0" <% if tghtmledit="0" then response.write " selected "%> >不使用</option>
				<option value="1" <% if tghtmledit="1" then response.write " selected "%>>使用</option>
				</select>　如果使用HTML可能会有一些安全问题，请慎用。</td>
			</tr>
			</table>
	</div>
	<p align="center"><input type="submit" value="提交" name="B1">　　<input type="reset" value="重置" name="B2"></p>
</form>

<%
conn.close:set conn=nothing
%>