xw_lookOneNews.aspx.cs
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:3k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using COM.OA.BLL;
  12. using COM.OA.Entity;
  13. public partial class linminchao_xw_lookOneNews : System.Web.UI.Page
  14. {
  15.     protected void Page_Load(object sender, EventArgs e)
  16.     {
  17.         users loginuser = Session["loginuser"] as users;
  18.         if (loginuser == null)
  19.         {
  20.             this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../../login.aspx"));
  21.         }
  22.         else
  23.         {
  24.             if (!IsPostBack)
  25.             {
  26.                 int id = Int32.Parse(this.Request.QueryString["newsid"]);
  27.                 news ss = newsBLL.Select(id);
  28.                 users uu = usersBLL.Select(ss.n_u_id);
  29.                 Response.Write("<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'>&nbsp;</td><td width='47%' valign='middle'><div align='right'><input name='q' type='text' id='q'><input name='submit' type=submit id='submit' style='FONT-SIZE: 12px; HEIGHT: 24px' value=' 查 询 '><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='../news/writejiaoxue.asp'  >发布新闻</a></td><td width='2%'><img src='../img/txl/12.gif' width='16' height='16'></td><td width='8%'><div align='center' ><a href='../news/listbwanglu.asp'>新闻管理</a></div></td></tr></table></form></td></tr></table><div align='center'></div><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='r4'></b></b> <span class='style1'>新 闻 动 态</span></div></div></td></tr></table><table width='98%' border='0' cellpadding='0' cellspacing='1' bgcolor='#5AAE18'><tr><td bgcolor='#FFFFFF'><table width='100%' border='0' cellpadding='0' cellspacing='1' style='word-break:break-all;Width:fixed'><tr bgcolor='#FFFFFF'><td valign='top'><table width='100%' border='0' cellpadding='0' cellspacing='0' ><tr><td height='6'></td></tr><tr><td><div align='center'><strong>" + ss.n_title + "</strong><br><span class='style21'>最后更新:" + ss.n_releasetime + "</span></div></td></tr><tr><td><hr width='96%' size='1' color='#5AAE18'></td></tr></table><p align='left'>" + ss.n_content + "</p><p align='right'>&nbsp;</p><p align='left'> <br>                                              <span class='style21'>发布人:" + uu.u_username + "    <br>                                                         2007-11-21 16:53:17</span></p></td></tr></table></td></tr></table><br><img src='../img/up.gif' width='17' height='12'><a href='javascript:history.go(-1)'>返 回 </a></div>");
  30.             }
  31.         }
  32.     }
  33. }