<%dbdns="../../"%>
<!--#include file="../../inc/conn.asp"-->
<!--#include file="../cook.asp"-->
<%if fla15<>1 then
response.write "<script>alert('操作权限出错，您没有权限操作些功能');history.go(-1);</Script>"
Response.End 
end if%>
<%
if request("action")="save" then
'--------------------取数据-----------------------------
key1=request("key1")
if key1="" then key1=0
key2=request("key2")
if key2="" then key2=1
key3=request("key3")
if key3="" then key3=0
'--------------------存数据-----------------------------
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from dlxf_xxnews where dlxf_id="&request("id")
rs.open sql,conn,1,3
rs("dlxf_key1")=key1
rs("dlxf_key2")=key2
rs("dlxf_key3")=key3
rs.update
rs.close
set rs=nothing

response.write"<script>parent.mm.rows='20,0,10,*';</script>"
response.write"<script>parent.main.document.location.reload();</script>"

end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<%=citycss%>
<body style="margin:5">
<%set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from dlxf_xxnews where dlxf_id="&request("id")
rs.open sql,conn,1,1
key1=rs("dlxf_key1")
key2=rs("dlxf_key2")
key3=rs("dlxf_key3")%>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
<!--================-->
<table width="500" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#6C90D1" bordercolordark="#FFFFFF">
<form name="form1" method="post" action="lx.asp">
<input name="id" type="hidden" value="<%=request("id")%>">
<input name="action" type="hidden" value="save">
<tr bgcolor=#D6DFF7><td height=25 colspan="2">&nbsp;新闻管理 - <strong><%=rs("dlxf_title")%></strong></td></tr>
<tr>
    <td height=25 width=50%>　　<input name="key1" type="checkbox" style="border:0" value=1<%if key1=1 then%> checked<%end if%>> 审核(选择则通过)</td>
    <td width=50%>　　<input name="key2" type="checkbox" style="border:0" value=0<%if key2=0 then%> checked<%end if%>> 控制开关(选择则关闭)</td>
</tr>
<tr>
    <td height=25 width=50%>　　<input name="key3" type="checkbox" style="border:0" value=1<%if key3=1 then%> checked<%end if%>> 推荐(选择则推荐)</td>
    <td width=50%>　　</td>
</tr>
<tr align=center><td height=25 colspan="2"><input type="submit" name="Submit" value=" 提 交 "></td></tr>
</form>
</table>
<!--================-->	
	</td>
  </tr>
</table>
<%rs.close
set rs=nothing%>