📄 xw_glnews.aspx.cs
字号:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.BLL;
using COM.OA.Entity;
using System.Collections.Generic;
public partial class linminchao_xw_glNews : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
users loginuser = Session["loginuser"] as users;
if (loginuser == null)
{
this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../../login.aspx"));
}
else
{
this.Response.Write("<body><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td><form name='form1' method='post' action=''><table width='96%' border='0' cellspacing='0' cellpadding='0'><tr><td width='32%' valign='middle'> </td><td width='47%' valign='middle'><div align='right'><input name='q' type='text' id='q'><span class='bg'><span class='bg style2'><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><input name='submit' type=submit id='submit' style='FONT-SIZE: 12px; HEIGHT: 24px' value=' 查 询 '></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></span></span> </div></td><td width='4%'><div align='right'><span class='style4'><img src='../img/txl/16.gif' width='16' height='16'></span></div></td><td width='7%'><a href='xw_addNews.aspx'>发布新闻</a></td><td width='2%'><img src='../img/txl/12.gif' width='16' height='16'/></td><td width='8%'><div align='center' ><a href='xw_lookNews.aspx'>浏览新闻</a></div></td></tr></table></form></td></tr></table>");
this.Response.Write("<div align='center'><table width='98%' border='0' cellpadding='0' cellspacing='0'><tr><td><div class='RoundedCorner'><div align='center'><b class='rtop'><b class='r1'></b><b class='r2'></b><b class='r3'></b><b class='r4'></b></b> <span class='style1'>新 闻 管 理</span></div></div></td></tr></table><table width='98%' border='0' cellpadding='3' cellspacing='1' bgcolor='#5AAE18'><tr bgcolor='#FFFFFF'><td width='57%'><div align='left' class='style8'><strong> 标 题</strong></div></td><td width='22%'><div align='center' class='style8 style4'><div align='center'>时 间</div></div></td><td width='5%'><div align='center' class='style7'><strong>开 关</strong></div></td><td width='5%'><div align='center' class='style8'><strong>修 改</strong></div></td><td width='5%'><div align='center'><strong>删 除 </strong></div></td></tr>");
IList<news> newslist = newsBLL.Select();
foreach (news n in newslist)
{
this.Response.Write("<tr bgcolor='#FFFFFF'><td><div align='left'> <img src='../img/icon1.gif' width='8' height='10'> <a href='xw_lookOneNews.aspx?newsid=" + n.n_id + "'>" + n.n_title + "</a></div></td><td class='style21'><div align='center'><span class='style12'>2007-11-21 16:53:17</span> <span class='style12'></span></div></td><td><div align='center'>");
if (n.n_state == 1)
{
this.Response.Write("<a href='closenews.aspx?newsid=" + n.n_id + "&state=2'>已开通</a>");
}
else
{
this.Response.Write("<a href='closenews.aspx?newsid=" + n.n_id + "&state=1'>已关闭</a>");
}
this.Response.Write("</div></td><td><div align='center'><A HREF='xw_updateNews.aspx?newsid=" + n.n_id + "' class='style9'>修改</A></div></td><td><div align='center'><A HREF='xw_shanchu.aspx?newsid=" + n.n_id + "' onClick='return confirm('您确定要删除 行业新形势转载 新闻吗?')'>删除</A></div></td></tr>");
}
this.Response.Write("</table><br><img src='../img/up.gif' width='17' height='12'><a href='javascript:history.go(-1)'>返 回 </a>");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -