<!--#include file="../conn/conn_other.asp"-->
<!--#include file="check.asp"-->
<%
	useflag=1
%>
<!--#include file="flag.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
	action=Trim(Request.Form("action"))
	
	if action="add" then
		title=Trim(Request.Form("title"))						'标题题目
		zhuangtai=Trim(Request.Form("zhuangtai"))
		content=trim(request("content")) 
		
		if title ="" or content="" then
			response.write"<SCRIPT language=JavaScript>alert('请填写完整关于我们的标题和内容！');"
			response.write"javascript:history.go(-1)</SCRIPT>"
			response.end
		end if
		
		set rs=server.createobject("adodb.recordset")
		sql="select * from aboutus"
		rs.open sql,conn,2,3
		rs.addnew
		rs("title")=title
		rs("zhuangtai")=zhuangtai
		rs("content")=content
		rs("stime")=date()
		rs.update
		rs.close
		set rs=nothing
		response.write"<script language=JavaScript>alert('关于我们信息添加成功');"    
		response.write"this.location.href='aboutus_all.asp';</script>"
		response.End
	end if
%>
<HTML>
<HEAD>
<TITLE>添加关于我们信息内容</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<link href='Include/Admin_Style.CSS' rel='stylesheet' type='text/css'>
</HEAD>
<body topmargin="0">
<table width="100%" border="3" cellpadding="1" align="center" bordercolor="#FFFFFF" cellspacing="0">
  <tr>
    <td>
      <FORM name="searchForm" action="" method=post>
	  <input name="key" type="hidden" value="<%= id %>">
	  <input name="action" type="hidden" value="add">
        <TABLE width="100%" border="0" align=center cellpadding="0" cellspacing="1"  class="sortbutton">
          <tr>
            <td height=25 colspan="2" align="center"><b>添加关于我们信息</b></td>
          </tr>
          <TR ALIGN="center">
            <TD>
	<TABLE width="100%" border="0" cellpadding="5" cellspacing="2" bordercolorlight="#CEE7FF" bordercolordark="#CEE7FF" style="border-collapse: collapse">
                <TR>
                  <TD width="131" align="right"><b>信息标题：</b></td>
                  <TD width="739" valign="middle"><input type="text" name="title" class="smallInput" size="50"></TD>
                </TR>
                <TR>
                  <TD align="right"><b>是否显示：</b></td>
                  <TD valign="middle"><input type="radio" name="zhuangtai" id="zhuangtai" value="0" checked>
                    显示 
                      <input type="radio" name="zhuangtai" id="zhuangtai" value="1">
                    隐藏</TD>
                </TR>
                <TR>
                  <TD align="right"><b>详细信息：</b></TD>
                  <TD><textarea name="content" style="display:none"></textarea>
                     <iframe ID="eWebEditor1" src="editor/ewebeditor.asp?id=content" frameborder="0" scrolling="no" width="617" HEIGHT="450"></iframe></TD>
                </TR>
				<TR height="40">
                  <TD colspan="2" align="center" height="40"><input type="submit" name="Submit" value=" 提　交 保 存">
                  &nbsp;&nbsp;&nbsp;<input type="reset" name="Submit2" value=" 重　新 添 写"></TD></TR>
            </TABLE></TD>
          </TR>
        </TABLE>
      </form>
    </td>
  </tr>
</table>
</BODY>
</HTML>
<% call closeconn() %>
