xw_lookOneNews.aspx.cs
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:3k
源码类别:
OA系统
开发平台:
C#
- 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;
- public partial class linminchao_xw_lookOneNews : 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
- {
- if (!IsPostBack)
- {
- int id = Int32.Parse(this.Request.QueryString["newsid"]);
- news ss = newsBLL.Select(id);
- users uu = usersBLL.Select(ss.n_u_id);
- 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'> </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'> </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>");
- }
- }
- }
- }