Permalink
Browse files

Now uses the Midd 2D theme.

  • Loading branch information...
1 parent d242f2d commit 60d866cfaa1f4a8bbbe97a6e3f5a864560768a82 @adamfranco adamfranco committed Sep 3, 2009
Showing with 70 additions and 36 deletions.
  1. +0 −6 actions/list.php
  2. +0 −6 actions/list_all.php
  3. +0 −6 actions/list_web.php
  4. +3 −0 config.inc.php-sample
  5. +4 −0 public/index.php
  6. +4 −3 theme/footer.php
  7. +59 −15 theme/header.php
View
@@ -1,9 +1,3 @@
-<ul class='menu'>
- <li>My Web Groups</li>
- <li><a href="<?php echo getUrl('list_web'); ?>">All Web Groups</a></li>
- <li><a href="<?php echo getUrl('list_all'); ?>">All Groups</a></li>
-</ul>
-
<div id='groups'>
<?php
View
@@ -1,9 +1,3 @@
-<ul class='menu'>
- <li><a href="<?php echo getUrl('list'); ?>">My Web Groups</a></li>
- <li><a href="<?php echo getUrl('list_web'); ?>">All Web Groups</a></li>
- <li>All Groups</li>
-</ul>
-
<ul id='group_tree'>
<?php
View
@@ -1,9 +1,3 @@
-<ul class='menu'>
- <li><a href="<?php echo getUrl('list'); ?>">My Web Groups</a></li>
- <li>All Web Groups</li>
- <li><a href="<?php echo getUrl('list_all'); ?>">All Groups</a></li>
-</ul>
-
<div id='groups'>
<?php
View
@@ -5,6 +5,9 @@ define('CAS_HOST', 'login.middlebury.edu');
define('CAS_PORT', 443);
define('CAS_PATH', '/cas');
+// Define $getUserDisplayName as a custom callback function for accessing the current user's name.
+// $getUserDisplayName = create_function('', " return phpCAS::getAttribute('FirstName').' '.phpCAS::getAttribute('LastName');");
+
// Configure the first LDAP Server.
$ldapConfig = array();
$ldapConfig['LDAPHost'] = 'ad.middlebury.edu';
View
@@ -43,6 +43,10 @@
require_once(MYDIR.'/lib/phpcas/source/CAS.php');
+if (!isset($getUserDisplayName)) {
+ $getUserDisplayName = create_function('', 'return phpCAS::getUser();');
+}
+
// initialize phpCAS
phpCAS::client(CAS_VERSION_2_0, CAS_HOST, CAS_PORT, CAS_PATH, false);
// no SSL validation for the CAS server
View
@@ -1,4 +1,5 @@
-</div>
-
-</body>
+
+ </div>
+ </div>
+ </body>
</html>
View
@@ -1,17 +1,61 @@
<!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>
- <title>Group Manager</title>
- <link rel="stylesheet" type="text/css" href="group_manager.css" />
-
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
-
- <script type='text/javascript' src='jquery-autocomplete/jquery.autocomplete.js'></script>
- <link rel="stylesheet" type="text/css" href="jquery-autocomplete/jquery.autocomplete.css" />
-
- <script type="text/javascript" src="group_manager.js"></script>
-</head>
-<body>
-
-
- <div class='content'>
+ <head>
+ <title>Group Manager</title>
+
+ <!-- Start Midd 2D -->
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <meta name="robots" content="follow,index" />
+ <link rel="stylesheet" media="screen" type="text/css" href="http://web.middlebury.edu/development/tools/2d/Stylesheets/2d.css" />
+ <link rel="stylesheet" media="screen" type="text/css" href="http://web.middlebury.edu/development/tools/2d/Stylesheets/2dFlex.css" title="flex" />
+ <link rel="alternate stylesheet" media="screen" type="text/css" href="http://web.middlebury.edu/development/tools/2d/Stylesheets/2dFixed.css" title="fixed" />
+ <link rel="stylesheet" media="screen" type="text/css" href="http://web.middlebury.edu/development/tools/2d/StyleSheets/Menu.css" />
+ <link rel="stylesheet" media="screen" type="text/css" href="http://web.middlebury.edu/development/tools/2d/StyleSheets/MenuStyle.css" />
+ <script type="text/javascript" src="http://web.middlebury.edu/development/tools/2d/JavaScript/StyleSwitcher.js"></script>
+ <!-- End Midd 2D -->
+
+ <link rel="stylesheet" type="text/css" href="group_manager.css" />
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
+ <script type='text/javascript' src='jquery-autocomplete/jquery.autocomplete.js'></script>
+ <link rel="stylesheet" type="text/css" href="jquery-autocomplete/jquery.autocomplete.css" />
+ <script type="text/javascript" src="group_manager.js"></script>
+ </head>
+ <body>
+ <div class="main">
+ <div class="header">
+ <div class="headerWelcome">
+ Welcome <?php print call_user_func($getUserDisplayName); ?> &#160; | &#160;
+ <a href="<?php echo getUrl('logout'); ?>">Logout</a> &#160; | &#160;
+ <a href="#" onclick="setActiveStyleSheet('fixed'); return false;">Fixed</a> or
+ <a href="#" onclick="setActiveStyleSheet('flex'); return false;">Flex</a>
+ </div>
+ <div class="clear">&#160;</div>
+ <a href="http://www.middlebury.edu">
+ <img class="headerLogo" src="https://web.middlebury.edu/development/tools/2d/Images/mclogo.gif" alt="Click here to return to Middlebury College home page" />
+ </a>
+ <div class="headerSite">
+ <h1>Group Manager</h1>
+ </div>
+ <div class="clear">
+ &#160;
+ </div>
+ </div>
+ <div class="headerNavigation">
+ <div class="CssMenu">
+ <div class="AspNet-Menu-Horizontal">
+ <ul class="AspNet-Menu">
+ <li class="AspNet-Menu-Leaf <?php if ($action == 'list') { echo 'AspNet-Menu-Selected'; } ?>">
+ <a href="<?php echo getUrl('list'); ?>" class="AspNet-Menu-Link">My Web Groups</a>
+ </li>
+ <li class="AspNet-Menu-Leaf <?php if ($action == 'list_web') { echo 'AspNet-Menu-Selected'; } ?>">
+ <a href="<?php echo getUrl('list_web'); ?>" class="AspNet-Menu-Link">All Web Groups</a>
+ </li>
+ <li class="AspNet-Menu-Leaf <?php if ($action == 'list_all') { echo 'AspNet-Menu-Selected'; } ?>">
+ <a href="<?php echo getUrl('list_all'); ?>" class="AspNet-Menu-Link">All Groups</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ <div class="clear">&#160;</div>
+ </div>
+ <div class="content">

0 comments on commit 60d866c

Please sign in to comment.