<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../inc/conn.asp"-->
<!-- #include file="../session.asp"-->
<!-- #include file="../vippass.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	color: #0590D3;
}
-->
</style>
<link href="../tgy_css.css" rel="stylesheet" type="text/css" />
</head>
<%
if request("s")="s" then
set rs=server.CreateObject("Adodb.recordset")
  rs.open "select ns from tgy where username='"&session("username")&"'",conn,1,3
  rs("ns")=request("flag")
  rs.update
  rs.close
  set rs=nothing
  response.write"<script>alert('设置成功!')</script>"
  end if
  %>
<body>
<%
set rs=server.CreateObject("Adodb.recordset")
  rs.open "select ns from tgy where username='"&session("username")&"'",conn,1,1
  %>
<table width="555" border="0" cellpadding="0" cellspacing="1" align="center" class="border_line">
  <!--DWLayoutTable-->
  <tr>
    <td height="26" colspan="2" align="center" valign="middle" bgcolor="#0590D3" class="font_color">显示设置</td>
  </tr>
  <tr>
    <td width="111" height="43">&nbsp;</td>
    <td width="444">&nbsp;</td>
  </tr>
  <form action="news_set.asp?s=s" method="post" name="Form1">
  <tr>
    <td height="26" align="right" valign="middle">显示模式：</td>
    <td valign="middle"><input type="radio" name="flag" value="1" <%if rs("ns")=1 then%> checked="checked" <%end if%>/>显示总站新闻&nbsp;&nbsp;
        <input type="radio" name="flag" value="2"  <%if rs("ns")=2 then%> checked="checked" <%end if%>/>显示自行添加的新闻&nbsp;&nbsp;
<input type="radio" name="flag" value="3" <%if rs("ns")=3 then%> checked="checked" <%end if%> />混合显示新闻</td>
  </tr>
  <tr>
    <td height="60" colspan="2" align="center" valign="middle"><input type="submit" name="Submit" value="确定" /></td>
  </tr>
  </form>
</table>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</body>
</html>
