<%@ Page Language="c#" Codebehind="GroupsIndex.aspx.cs" AutoEventWireup="false" Inherits="edu.jhu.Cas.Web.GroupsIndex" %>
<%@ Import Namespace="System.IO" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<%@ Import Namespace="edu.jhu.Cas.Util" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Pragma" content="no-cache" />
    <link href="cjobs.css" rel="stylesheet">
    <base target="content">
</head>
<body>
    <h4>
        Groups</h4>
    <table>
        <tr>
            <td>
                <%	if (allGroups.Count == 0) {%>
                <i>No group memberships</i>
                <%}
    else foreach (object o in allGroups) {
            string css = "normal";
            if (adminGroups.Contains(o)) {
                css = "group";
            }
		%>
                <a href="groupscontent.aspx?groupName=<%=o.ToString()%>" target="content">
                    <%=o.ToString()%>
                </a>
            </td>
        </tr>
        <tr>
            <td>
                <%}%>
            </td>
        </tr>
    </table>
</body>
</html>