<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->

<!--#include file="fckeditorsoutayals/fckeditor.asp"-->
<%
id=request.QueryString("id")

if request.Form("add")="add" then
a_id=request.Form("a_id")
a_title=request.Form("a_title")
a_content=request.Form("content")
if a_content=""  then
response.Write("<script>alert('请将信息填写完整');history.go(-1);</script>")
response.End()
end if
Set rsa = server.CreateObject("adodb.recordset")
sql="select * from wtb_about where a_id="&a_id&" "
rsa.Open sql, conn, 1, 3
rsa("a_title")=a_title
rsa("a_content")=a_content
rsa.update
rsa.close
set rsa=nothing
response.write("<script>alert(""修改成功"");location.href(""about.asp?id="&a_id&""");</script>")
response.end
end if


set rs=conn.execute("select * from wtb_about where a_id="&id&" ")
a_title=rs("a_title")
a_content=rs("a_content")
rs.close
set rs=nothing

 %>
<!--#include file="conn.asp"-->
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
.STYLE1 {font-size: 12px}
-->
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">公司管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
   <!--内容开始--> 
  
  
   <form name="form1" method="post" action="">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td height="25" align="right">&nbsp;</td>
         <td align="left">&nbsp;</td>
       </tr>
       <tr>
         <td width="72" height="35" align="right" style="font-size:12px;">名称：</td>
         <td width="678" align="left"><input name="a_title" type="text" value="<%=a_title%>"></td>
       </tr>
	    <tr>
        <td height="35" align="right" style="font-size:12px;">内容：</td><td  ></td>
		</tr>
       <tr>
        <td></td><td  ><%

Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "fckeditorsoutayals/"
oFCKeditor.ToolbarSet = "Default"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "300"
oFCKeditor.Value = ""&a_content&""
oFCKeditor.Create "content"

%></td>
         </tr>
       
          <tr>
            <td height="25" align="right">&nbsp;</td>
            <td height="25" align="left">&nbsp;</td>
          </tr>
          <tr>
         <td height="25" align="right">&nbsp;</td>
         <td height="25" align="left"><input type="submit" name="button" id="button" value="确认修改" style="border:0px; width:100px; height:26px; background:url(images/submit_button.jpg); color:#FFFFFF; font-weight:bold;">
           <input name="add" type="hidden" id="add" value="add">           
           <input name="a_id" type="hidden" id="a_id" value="<%=id%>"></td>
       </tr>
     </table>
      </form>    
 
   <!--内容结束-->    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
