<!--#include file="../inc/Conn.asp"-->
<!--#include file="Inc/Admin.Asp"-->
<%
Const NeedCheckComeUrl = True   '是否需要检查外部访问
Const PurviewLevel = 2      '0--不检查，1--超级管理员，2--普通管理员
Const PurviewLevel_Channel = 0   '0--不检查，1--频道管理员，2--栏目总编，3--栏目管理员
Const PurviewLevel_Others = "Page"   '其他权限
if Request.QueryString("mark")="operate" then%>
<%
Title=Trim(Request("Title"))
Content=Request("Content")
Aboutusorder=Request("Aboutusorder")
Language=Request("Language")
%>
<%
If Title="" Then
response.write "SORRY <br>"
response.write "请输入栏目名称!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If Content="" Then
response.write "SORRY <br>"
response.write "请输入栏目内容!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from Aboutus"
rs.open sql,conn,1,3
rs.addnew
rs("Title")=Title
rs("Content")=Content
rs("Aboutusorder")=Aboutusorder
rs("Language")=Language
rs.update
rs.close
response.redirect "Admin_Aboutus.asp"
end if
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"><table width="560" border="0" cellpadding="0" cellspacing="1" class="border">
        <tr> 
          <td height="25" class="topbg"> 
            <strong>添加栏目            </strong></td>
        </tr>
        <tr> 
          <form method="post" name="myform" action="Admin_AboutusAdd.asp?mark=operate">
            <td> 
                <table width="100%" border="0" cellspacing="1" cellpadding="0">
                  <tr class=tdbg> 
                    <td width="22%" height="25" align="right" class=tdbgl> 栏目名称：</td>
                    <td width="78%" height="25"> <input type="text" name="Title" class="inputtext" maxlength="30" size="25">                    </td>
                  </tr>
                  <tr class=tdbg>
                    <td height="12" align="right" class="tdbgl">排序号：</td>
                    <td><input name="Aboutusorder" type="text" id="Aboutusorder" size="4"></td> 
                  </tr>
                  <tr class=tdbg>
                    <td height="12" align="right" class="tdbgl">语言：</td>
                    <td><select name="Language" id="Language">
                        <option value="1">中文</option>
                        <option value="0">英文</option>
                    </select></td>
                  </tr>
                  <tr class=tdbg>
                    <td height="25" align="right" class="tdbgl">栏目内容：</td>
                    <td height="25"><input type="hidden" name="content" value="">
                      <iframe id="eWebEditor1" src="Editor/ewebeditor.asp?id=content&style=orther" frameborder="0" scrolling="no" width="550" height="450"></iframe></td>
                  </tr>
                  
                  <tr class=tdbg> 
                    <td align="right" class="tdbgl">　</td>
                    <td><input name="submit" type="submit" value="确定">
&nbsp;
<input name="reset" type="reset" value="取消"></td>
                  </tr>
                </table>
            </td>
          </form>
        </tr>
      </table>
      <br> </td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
