<%@ LANGUAGE="VBSCRIPT" %> <% DbPath = SERVER.MapPath("../database/topboy-2002.mdb") Set conn = Server.CreateObject("ADODB.Connection") conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DbPath %> <% result=Instr(1,request.ServerVariables("http_referer"),request.servervariables("http_host"),1) if result = 0 or result = null then response.redirect "manager-login.asp" end if if session("sid") <> "top" then response.redirect "manager-login.asp" end if set rs=server.createobject("adodb.recordset") sqlp="select * from topboy_message where ccur(id) = '"&request("id")&"'" rs.open sqlp,conn,adOpenkeyset,adlockoptimistic,adcmdtext set rs1=server.createobject("adodb.recordset") sqltext="select * from topboy_type" rs1.open sqltext,conn,adOpenkeyset,adlockoptimistic,adcmdtext if request("hf") = "y" then insertnum=0 if rs.recordcount=0 then numb = "1" else numb = cstr(rs.recordcount)+1 end if vremark=replace(request("vremark"),vbcrlf,"
    ") vremark=replace(vremark,"'","’") sqltext="update topboy_message set buy='"&request("buy")&"',show='"&request("show")&"',mtype='"&request("mtype")&"',title='"&request("title")&"',copy='"&request("copy")&"',price='"&request("price")&"',content='"& vremark &"' where ccur(id) = '"&request("pid")&"'" conn.execute sqltext response.redirect session("baseadd") else session("baseadd") = request.ServerVariables("http_referer") %>


信息内容修改 ">

信息类别:
信息属性:
是否作为销售商品:: checked <% end if %> name="buy"> Y checked <% end if %> name="buy"> N / 是否显示于首页:: checked <% end if %> name="show"> Y checked <% end if %> name="show"> N
信息标题:
">
参考价格:
"> <% if rs("copy")="" then rs("copy")="数据暂缺" %>
成交价格:
"> <% if rs("price")="" then rs("price")="论坛短信联系" %>
信息内容:

   



在新闻内容中无需手动添加空格,程序会自动为您在每个段落开头添加空格;
在新闻内容中如果要加入图片则用以下格式: <img src="图片路径" width="宽度像素" height="高度像素" aligh="方向">
如: <img src="photos/news/test-1.jpg" align="right">
在新闻内容中如果要加入链接则用以下格式: <a href="链接地址" target="_blank">链接名称</a>
 
<% end if %>