www.gusucode.com > 公寓出租网站整站源码 1.0程序 > admin/AdminAboutusModify.asp
<!--#include file="conn.asp"--> <!--#include file="admin.asp"--> <% ID=trim(Request("ID")) if Request.QueryString("mark")="southidc" then title=Trim(Request("title")) If title="" Then response.write "栏目名称不能为空!!<a href=""javascript:history.go(-1)""><font color=""#FF0000"">请返回重输</font></a>" response.end end if aboutusorder=Trim(Request("Aboutusorder")) If aboutusorder="" Then response.write "排序号不能为空!!<a href=""javascript:history.go(-1)""><font color=""#FF0000"">请返回重输</font></a>" response.end end if For i = 1 To Request.Form("Content").Count About = Content & Request.Form("Content")(i) Next set rs=server.createobject("adodb.recordset") sql="select * from Aboutus where id=" & Clng(ID) rs.open sql,conn,3,3 rs("Content")=About rs("Title")=title rs("Aboutusorder")=aboutusorder rs.update rs.close response.redirect "adminAboutus.asp" end if sql="select * from Aboutus where id=" & Clng(ID) Set rs_home= Server.CreateObject("ADODB.Recordset") rs_home.open sql,conn,1,1 %> <!-- #include file="Inc/Head.asp" --> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"> <br> <table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc"> <tr> <td class="back_southidc" height="25"> <div align="center"><strong>修改栏目<br> </strong></div></td> </tr> <tr> <form method="post" name="myform" action="AdminAboutusModify.asp?mark=southidc"> <input type=hidden name=id value="<%=rs_home("ID")%>"> <td><div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr bgcolor="#ECF5FF"> <td width="18%" height="25"> <div align="center">栏目名称:</div></td> <td width="45%" height="25" bgcolor="#ECF5FF"> <input type="text" name="title" maxlength="30" size="25" value="<%=rs_home("Title")%>"></td> <td width="15%" bgcolor="#ECF5FF"><div align="center">排序号:</div></td> <td width="22%" bgcolor="#ECF5FF"><input name="Aboutusorder" type="text" id="Aboutusorder" size="4" value="<%=rs_home("Aboutusorder")%>"></td> </tr> <tr bgcolor="#ECF5FF"> <td height="25" colspan="4"> <div align="center">栏目内容</div></td> </tr> <tr bgcolor="#ECF5FF"> <td height="300" colspan="4"> <textarea name="Content" style="display:none"><%=rs_home("content")%></textarea> <iframe ID="eWebEditor1" src="Southidceditor/ewebeditor.asp?id=content&style=southidc" frameborder="0" scrolling="no" width="550" HEIGHT="450"></iframe> </td> </tr> <tr bgcolor="#ECF5FF"> <td height="25" colspan="4"> <div align="center"> <input name="submit" type="submit" value="确定"> <input name="reset" type="reset" value="重来"> </div></td> </tr> </table> </div></td> </form> </tr> </table></td> </tr> </table> <!-- #include file="Inc/Foot.asp" --> <% rs.Close set rs=Nothing call CloseConn() %>