📄 guanlitongzhi.aspx
字号:
<%@ Page Language="C#" autoEventWireup="true" CodeFile="guanlitongzhi.aspx.cs" Inherits="tzManager_guanlitongzhi" %>
<!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 id="Head1" runat="server">
<title>通知管理</title>
<style type="text/css">
<!--
body {
margin-top: 2px;
}
-->
div.RoundedCorner{background: #5aaE18}
b.rtop, b.rbottom{display:block;background: #FFF}
b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5aaE18}
b.r1{margin: 0 4px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, {margin: 0 1px;height: 1px}
.style1 {
font-size: 13px;
color: #FFFFFF;
font-weight: bold;
}
</style>
<script language="javascript" type="text/javascript">
</script>
<link href="../css/link.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-top: 2px;
}
.style2 {color: #FF0000}
.style3 {color: #999999}
-->
</style>
</head>
<body>
<form action="" runat="server" method="post" name="form1" onsubmit="return dis()" id="Form2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" valign="middle"> </td>
<td width="47%" valign="middle"><div align="right">
<asp:TextBox ID="txtwhere" runat="server"></asp:TextBox>
<asp:Button ID="btnselect" runat="server" OnClick="btnselect_Click" Text="查 询" />
</div></td>
<td width="3%"><div align="center">
<img alt="" src="../images/huiyan/fabutongzhi.gif" /></div></td>
<td width="7%"><span class="style4"><a href="../tzManager/addtz.aspx" class="style4">发布通知</a></span></td>
<td width="2%"><span class="style4">
<img alt="" src="../images/huiyan/jieshoutongzhi.gif" /></span></td>
<td width="7%"><div align="center" class="style4"><a href="../tzManager/sendwordindex.aspx">通知列表</a> </div></td>
</tr>
</table>
</td>
</tr>
</table>
<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>
<div align="center">
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#5aaE18">
<tr bgcolor="#FFFFFF">
<td width="38%" height="21"><div align="left" style="text-align: center"><strong> 标 题 </strong></div></td>
<td width="6%"><div align="center"><strong><span class="style13">发布人</span></strong></div></td>
<td width="7%"><div align="center"><strong>部 门</strong></div></td>
<td width="15%"><div align="center"><strong>时 间</strong></div></td>
<td width="8%"><div align="center"><strong>浏览</strong></div></td>
<td width="5%"><div align="center" class="style6"><strong>状 态</strong></div></td>
<td width="5%"><div align="center" class="style7"><strong>开 关</strong></div></td>
<td width="8%"><div align="center"><strong>操 作</strong></div></td>
</tr>
<%
//从Seeion中取出loginuser
COM.OA.Entity.users user = Session["loginuser"] as COM.OA.Entity.users;
//判断如果为空跳回到登陆页面
if (user == null)
{
this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
return;
}
System.Collections.Generic.IList<COM.OA.Entity.sendword> list = null;
string name = user.u_username;
if (name == "admin")
{
list = COM.OA.BLL.sendwordBLL.Select(true, false);
}
else
{
//取出uid
int u_id = Int32.Parse(user.u_id.ToString());
//查询数据库
list = COM.OA.BLL.sendwordBLL.Select("sw_u_id = " + u_id, true, false);
}
//foreach循环输出到页面
%>
<% foreach(COM.OA.Entity.sendword sw in list) %><% { %>
<tr bgcolor="#FFFFFF" onmouseover ="this.style.backgroundColor='#EEEEEE'" onmouseout ="this.style.backgroundColor=''">
<td style="text-align: left"> <img alt="" src="../images/huiyan/biaoti.gif" /> <a href="tongzhineirong.aspx?sw_id=<%=sw.sw_id %>">
<%=sw.sw_title %>
</a> <span class="style3"><%=sw.sw_releasetime %></span></td>
<td><div align="center">
<% System.Collections.Generic.IList<COM.OA.Entity.employee> el = COM.OA.BLL.employeeBLL.Select("em_id="+sw.users.u_em_id);
COM.OA.Entity.employee e = el[0];
%><%=e.em_name %><%
%></div></td>
<td><div align="center"><%=sw.department.dept_department %></div></td>
<td><div align="center">
<div align="center">
<div align="center">
<%=sw.sw_releasetime %>
</div>
</div>
</div></td>
<td><div align="center"><%=sw.sw_reads %></div></td>
<td><div align="center">
<%
if (sw.sw_state == 1) {
%><img alt="" src="../images/huiyan/close.gif" /><%
}else{
%><img alt="" src="../images/huiyan/open.gif" /><%
}
%>
</div></td>
<td><div align="center">
<%
if (sw.sw_state == 0)
{
%><a href="close.aspx?sw_id=<%=sw.sw_id %>">关闭</a> <%
}
else
{
%><a href="open.aspx?sw_id=<%=sw.sw_id %>">开通</a><%
}
%>
</div></td>
<td><div align="center"><a href="updaz.aspx?sw_id=<%=sw.sw_id %>">修改</a> <a href="deltz.aspx?sw_id=<%=sw.sw_id %>" onclick="return confirm('您确定要删除 公司OA升级通知 吗?该过程将不可恢复。')">删除</a></div>
</td>
</tr>
<% } %>
</table>
<br/>
</div>
<table width="100%">
<tr>
<td></td>
<td align="center">
<% if (list.Count != 0)
{ %>
记录 1 到 <%=list.Count.ToString()%> (总共<%=list.Count.ToString()%> 个通知)
<% }else { %>
暂无通知
<%}%>
</td>
<td></td>
</tr>
<tr>
<td>
</td>
<td style="text-align: center" >
<img src="../images/huiyan/up.gif" /><a href="javascript:history.go(-1)">返 回</a>
</td>
<td>
</td>
</tr>
</table>
<table border="0" width="30%" align="center">
<tr>
<td width="23%" align="center">
</td>
<td width="31%" align="center">
</td>
<td width="23%" align="center">
</td>
<td width="23%" align="center">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -