UNL Colleges
- Agricultural Sciences & Natural Resources
- Architecture
- Arts & Sciences
- Business Administration
- College of Dentistry
- Education and Human Sciences
- Engineering
- Fine & Performing Arts
- General Studies
- Graduate Studies
- Journalism & Mass Communications
- Law
- Nursing
View Source+
<?php
require_once 'UNL/Templates.php';
require_once 'UNL/Common/Building.php';
require_once 'UNL/Common/Colleges.php';
require_once 'UNL/Geography/SpatialData/Campus.php';
require_once 'HTML/Table.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/functions.php';
$page = UNL_Templates::factory('fixed');
$page->doctitle = '<title>UNL | ucommbieber.unl.edu | Common Information</title>';
$page->titlegraphic = '<h1>Common Information</h1>';
$page->navlinks = navlinks();
$page->head .= '<style type="text/css">table#codes tr:hover, table#codes tr:hover td {background-color:#FFFFC7;}</style>';
$page->leftRandomPromo = '';
$sd = new UNL_Geography_SpatialData_Campus();
$bldgs = new UNL_Common_Building();
$table = new HTML_Table(array('id'=>'codes'));
$table->addRow(array('Abbreviation','Building Name'),NULL,'TH');
foreach ($bldgs->codes as $abbr=>$building) {
$table->addRow(array('<a href="'.$sd->getMapURL($abbr).'">'.htmlentities($abbr).'</a>',
'<a href="'.$sd->getMapURL($abbr).'">'.htmlentities($building).'</a>'));
}
$page->maincontentarea = '<h1 class="sec_header">UNL Building Codes:</h1>'.$table->toHtml();
$colleges = new UNL_Common_Colleges();
$ul = '<ul>';
foreach ($colleges->colleges as $college) {
$ul .= '<li>'.htmlentities($college).'</li>';
}
$ul .= '</ul>';
$page->maincontentarea .= '<h1 class="sec_main">UNL Colleges</h1>'.$ul;
$page->maincontentarea .= '<script type="text/javascript">stripe(\'codes\');</script>';
$page->maincontentarea .= viewSourceLink();
echo $page->toHtml();