<!--#include file="../../here99login/0.asp"--><!--#include file="../../conn/zkconn.asp"-->
<% 
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
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<% set rsnews = conn.execute("Select * From kefu where id="&request("id")&"")%>
<form action="?x=yes" method="post" name="form" id="form">
  <p>&nbsp;</p>
  <table width="650" align="center">
    <tr valign="middle" bgcolor="#CCCCCC"> 
      <td height="25" colspan="2"><font color="#FF3333" size="2"><strong>&nbsp; 
        &gt;&gt;修改新闻内容</strong></font></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1">
      <td width="99" height="25" align="center">新闻归类</td>
      <td height="25"><%places=rsnews("lb")%><select name="lb" id="lb">
         <% set rs = conn.execute("select * from kefu_lb order by id")
		 do while not rs.eof%><option value="<%=rs("lb")%>"  <%=judges(places,rs("lb"))%>><%=rs("lb")%></option><%rs.movenext
loop
rs.close
set rs=nothing%> </select></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="99" height="25" align="center">新闻标题</td>
      <td width="339" height="25"> <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"><script src=code.js></script>
        <div id="ubbDiv"></div>
        <IFRAME NAME="ubbFrame" width=0 height=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=no SRC="ubb.htm" ></IFRAME> 
      </td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td height="25" align="center">新闻内容 </td>
      <td height="25"> <textarea name="nr" cols="65" rows="8" class="wenbenkuang" id="nr"><%=rsnews("nr")%></textarea></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td height="25" colspan="2" align="center"> <input type="submit" value="确定" class="go-wenbenkuang"> 
        <input type="reset" value="取消" class="go-wenbenkuang">
        <input name="reset" type="button" class="go-wenbenkuang" value="返回" onclick="window.location='edit.asp'"> 
        <input name="id" type="hidden" id="id" value="<%=request("id")%>"> </td>
    </tr>
  </table>
</form>
</body>
</html>
<%if request("x")="yes" then
 conn.execute("Update kefu set lb ='"&request("lb")&"',bt ='"&request("bt")&"',nr='"&request("nr")&"' where id="&request("id")&"")
Response.redirect "edit.asp" 
end if%>
