<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<%qx=4%>
<!--#include file="../store/top.asp"-->
<!--#include file="../leaguer/check.asp"-->
<!--#include file="../../include/conn.asp"-->
<% 
if request("x")="yes" then
 conn.execute("Update gwzn set lbid ="&shopnet("lbid")&",bt ='"&replace(replace(shopnet("bt"),"&gt;",">"),"&lt;","<")&"',nr='"&shopnet("nr")&"' where id="&shopnet("id")&"")
Response.redirect "gwznedit.asp" 
end if

function judge(a,b)
  dim res 
  if instr(a,b)>0 then
   res ="checked"
  end if
  judge = res
end function
function judges(a,b)
  dim ress 
  if (a=b) then
   ress ="selected"
  end if
  judges = ress
end function
set rsnews = conn.execute("Select * From gwzn where id="&shopnet("id")&"")
lbid=rsnews("lbid")
lx=rsnews("lx")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../include/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="?x=yes" method="post" name="form" id="form">

    <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder">
    <tr valign="middle" bgcolor="#CCCCCC"> 
      <td height="21" colspan="2" align="center" background="../images/admin_bg_4.gif" bgcolor="#FFFFFF"><font color="#FF3333" size="2"><strong>&nbsp; 
        </strong></font><strong>    <span style="color: #FFFFFF">修改新闻内容</span></strong></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="102" height="25" align="center" bgcolor="#FFFFFF">类别</td>
      <td height="25" bgcolor="#FFFFFF"> <select name="lbid" id="lbid">
          <option value="0"  <%=judges(lbid,0)%>> 分类不限 </option>
          <% set rs = conn.execute("select * from gwzn_lb order by id")
		 do while not rs.eof%>
          <option value="<%=rs("id")%>"  <%=judges(lbid,rs("id"))%>><%=rs("lb")%></option>
          <%rs.movenext
loop
rs.close%>
      </select></td>
      </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="102" height="25" align="center" bgcolor="#FFFFFF">标题</td>
      <td height="25" bgcolor="#FFFFFF"> <input name="bt" type="text" class="wenbenkuang" id="bt" value="<%=rsnews("bt")%>" size="67" maxlength="100"></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td height="25" colspan="2" align="center" bgcolor="#FFFFFF"><script src=../../edit/ubb//code.js></script> 
              <div id="ubbDiv"></div>
      <iframe name="ubbFrame" width=0 height=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=no src="../../edit/ubb/ubb.htm" ></iframe>      </td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td height="25" align="center" bgcolor="#FFFFFF">内容 </td>
      <td height="25" bgcolor="#FFFFFF"> <textarea name="nr" cols="80" rows="10" class="wenbenkuang" id="nr"><%=rsnews("nr")%></textarea></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td height="21" colspan="2" align="center" bgcolor="#FFFFFF"> <input type="submit" value="确定" class="go-wenbenkuang">  &nbsp;&nbsp;&nbsp;
        <input type="reset" value="取消" class="go-wenbenkuang">&nbsp;&nbsp;&nbsp; <input name="reset" type="button" class="go-wenbenkuang" value="返回" onClick="window.location='gwznedit.asp'">
      <input name="id" type="hidden" id="id" value="<%=request("id")%>"></td>
    </tr>
  </table>
</form>
</body>
</html>
<%rsnews.close
set rsnews=nothing
conn.close
set conn=nothing
%>
