📄 qunzu.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="qunzu.aspx.cs" Inherits="qunzu" %>
<!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 runat="server">
<title>群组页</title>
<style type="text/css">
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>
<style type="text/css">
<!--
a:link {
font-size: 12px;
color: #5C9948;
text-decoration: none;
}
a:visited {
font-size: 12px;
color: #5C9948;
text-decoration: none;
}
a:hover {
color: #6699FF;
}
BODY {
font-size: 12px;
}
td {
font-size: 12px;
line-height: 15px;
}
body {
margin-top: 2px;
}
-->
</style>
<script type="text/javascript">
function isnodelete(id){
if(confirm("确定要删除本组么")){
document.location="deletegroups.aspx?deletequnid="+id;
}
}
</script>
</head>
<body>
<br />
<br />
<form id="form1" runat="server">
<div style="text-align: center">
<table border="1" style="width: 614px; height: 55px; border-right: #5aae18 1px solid; border-top: #5aae18 1px solid; border-left: #5aae18 1px solid; border-bottom: #5aae18 1px solid;" cellpadding="0" cellspacing="0" bgcolor="#5AAE18">
<tr bgcolor="#ffffff">
<td colspan="5" align="center">
<div class="RoundedCorner">
<div align="center"><b class="rtop"><b class="r1"></b></b> <span class="style1">我 的 群 组</span></div>
</div></td>
</tr>
<tr bgcolor="#ffffff">
<td style="width: 88px; height: 22px;" align="center">
<%
//取登陆人信息
COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
//如果取不到跳转到登陆页
if (loginuser == null)
{
this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
}
else
{
//取群ID
int group = loginuser.u_g_id;
//设置where语句
String where = "g_id='{0}'";
where = string.Format(where, group);
//查询
System.Collections.Generic.IList<COM.OA.Entity.groups> list = COM.OA.BLL.groupsBLL.Select(where);
COM.OA.Entity.groups gps;
if (list.Count != 0)
{
gps = list[0];
this.Response.Write(gps.g_groupname);
%>
</td>
<td align="center" style="width: 125px; height: 22px;">
<a href="updatezuming.aspx?groupname=<%=gps.g_groupname %>">修改组名</a></td>
<td align="center" style="width: 125px; height: 22px;">
<a href="javascript:isnodelete(<%=gps.g_id %>)">删除本组</a></td>
<td align="center" style="width: 125px; height: 22px;">
<a href="insertchengyuan.aspx?qunming=<%=gps.g_groupname %>&qunid=<%=gps.g_id %>">增加成员</a></td>
<td align="center" style="width: 125px; height: 22px;">
<a href="deletechengyuan.aspx?<%=gps.g_groupname %>&qunid=<%=gps.g_id %>">删除成员</a></td>
<% }
}%>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -