<!--#include virtual="/includes/topofpage.asp"-->
<%	
    	Session("Default_Page") = "default-entities.asp"

	Dim SQL1
	Dim Conn, RS
	
	Dim Page 
	Page = "0"

	Set Conn = Server.CreateObject("ADODB.Connection")
	Conn.Open Application("conn_string")
	
	SQL1 = "Get_Groups_By_Realm @Realm_ID='" & Session("Admin_Realm") & "', @Brand='0'"
	
	Set RS=Conn.Execute(SQL1)	
%>


<html>
<STYLE>
BODY {SCROLLBAR-FACE-COLOR: #5e5ebe; SCROLLBAR-HIGHLIGHT-COLOR: #5e5ebe; SCROLLBAR-SHADOW-COLOR: #5e5ebe; SCROLLBAR-3DLIGHT-COLOR: #5e5ebe; SCROLLBAR-ARROW-COLOR:  #6666CC; SCROLLBAR-TRACK-COLOR: #E3E3E3; SCROLLBAR-DARKSHADOW-COLOR: #666666; }
</STYLE>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../Style-sheets/no-underline.css" type="text/css">
<link rel="stylesheet" href="../Style-sheets/headline.css" type="text/css">
<link rel="stylesheet" href="../Style-sheets/no-underline.css" type="text/css">
<link rel="stylesheet" href="../Style-sheets/no-underline.css" type="text/css">


<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Submit_Form_BrWindow(theURL,winName,features) {
  window.open('',winName,features);
  form1.target = winName;
  form1.action = theURL;
  form1.submit();
}

function Submit_Form(win) {
  form1.action = win;
  form1.target = "";
  form1.submit();
}

//-->
</SCRIPT>
</head>

<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<FORM action="" method=POST id=form1 name=form1>
<INPUT type="hidden" id=page name=page value="<%=Page%>">
  <table width="525" border="0" cellspacing="0" cellpadding="2" align="center">
    <tr> 
      <td colspan="2" align="center" height="11" bgcolor="#ffffff">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2" align="center" class="headline-ffffff" height="11" bgcolor="#5e5ebe">Entity Administration Menu</td>
    </tr>
    <tr> 
      <td colspan="2"  align="center"> 
        <SELECT id="Admin_Group_ID" name="Admin_Group_ID">
          <OPTION value="">Select an Entity to Edit</OPTION>
          <% Do until RS.EOF %>
          <OPTION value="<%=RS("Group_ID")%>" <% If CStr(Session("Admin_Group_ID")) = CStr(RS("Group_ID")) Then Response.Write("selected")%>><%=RS("Name")%></OPTION>
          <% RS.Movenext()
		  Loop
          RS.Close
       %>
        </SELECT>
      </td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
<!--    <tr> 
      <td colspan="2" class="manage-menu-bold"><a class=manage-menu-bold href="javascript:Submit_Form_BrWindow('entity_create.asp?Redir=contacts_admin.asp&From=default-entities.asp','entity','scrollbars=yes,resizable=yes,width=800,top=100,left=100')">Create a New Entity</a></td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>-->
    <tr> 
      <td colspan="2" class="manage-menu-bold">Entity and Staff Information</td>
    </tr>
    <tr> 
      <td width="6%" ></td>
      <td width="32%" ><a class=manage-menu href="javascript:Submit_Form_BrWindow('entity_create-frame.asp?Redir=contacts_admin.asp&From=default-entities.asp','entity','scrollbars=yes,resizable=yes,width=800,top=100,left=100')">Address 
        and Phone Information</a></span></td>
    </tr>
    <tr> 
      <td width="6%" ></td>
      <td width="32%" ><A class=manage-menu href="javascript:Submit_Form('contacts_admin.asp');">Contacts 
        Information</a></td>
    </tr>
<!--    <tr> 
      <td width="6%" class="manage-menu" >&nbsp;</td>
      <td width="32%" ><A  href="javascript:Submit_Form('images-brands_admin.asp');" class="manage-menu">Brand Logos</a></td>
    </tr>
-->
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2" class="manage-menu-bold">Attribute Management</td>
    </tr>
        <tr>
	  <td width="6%" ></td>
          <td class="manage-menu"><a href="javascript:Submit_Form('entity-attributes_admin.asp');" class="manage-menu">Manage Attributes</a></td>
        </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2" class="manage-menu-bold">Realm Management - Administration Realm</td>
    </tr>
        <tr>
	  <td width="6%" ></td>
          <td class="manage-menu"><a href="realm-list.asp?Realm_ID=<%= Session("Admin_Realm")%>&From=default-entities.asp" class="manage-menu">List Entities in your Administration Realm</a></td>
        </tr>
        <tr>
<!--	  <td width="6%" ></td>
          <td class="manage-menu"><a href="entity_search.asp" class="manage-menu" target="_blank">Add an Entity to your Administration Realm</a></td>
        </tr>
-->        
        <tr>
	  <td width="6%" ></td>
          <td class="manage-menu"><a href="#" onClick="MM_openBrWindow('entity_create.asp?Redir=contacts_admin.asp&From=default-entities.asp','entity','scrollbars=yes,resizable=yes,width=800,top=100,left=100')" class="manage-menu">Create an Entity for your Administration Realm</a></td>
        </tr>
        <tr>
	  <td width="6%" ></td>
          <td class="manage-menu"><a href="realm-remove.asp?Realm_ID=<%= Session("Admin_Realm")%>" class="manage-menu" target="content">Remove an Entity from your Administration Realm</a></td>
        </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2" class="manage-menu-bold">Realm Management - Web Site Realm(s)</td>
    </tr>
    <tr> 
      <td width="6%" class="manage-menu" ></td>
      <td><A  href="javascript:Submit_Form('realm-add.asp');" class="manage-menu">Include on Site</a></td>
    </tr>
    <tr> 
      <td width="6%" class="manage-menu" ></td>
      <td><A  href="javascript:Submit_Form('realm-remove.asp?Realm_ID=<%= Session("Site_Realm")%>');" class="manage-menu">Remove from Site</a></td>
    </tr>
    <tr> 
      <td width="6%" class="manage-menu" ></td>
      <td><A  href="javascript:Submit_Form('realm-list.asp?Realm_ID=<%=Session("Site_Realm")%>&Lookup=1&From=default.asp');" class="manage-menu">List Active Entities</a></td>
    </tr>

    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr> 
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
    <tr> 
      <td width="6%">&nbsp;</td>
      <td width="32%">&nbsp;</td>
    </tr>
  </table>
</FORM>
</body>
</html>
<% Session("Admin_Group_ID") = "" %>