<?php require $DOCUMENT_ROOT . '/news/news_utils.php'; require 'features_boxes.php'; require 'cache.php'; //we already know $foundry is set up from the master page $HTML->header(array('title' => group_getname($group_id) . ' - Foundry', 'group' => $group_id)); echo '<h2>Foundry: ' . group_getname($group_id) . '<h2> '; echo ' <table cellspacing="0" cellpadding="5" border="0" width="100%"> <tr> <td align="left" valign="top"> '; echo html_dbimage($foundry->getLogoImageID()); echo '<p> '; echo $foundry->getFreeformHTML1(); echo '<p> '; /* News that was selected for display by the portal News items are chosen froma list of news in subprojects */ $HTML->box1_top('Foundry News', '#f4f5f7'); echo news_foundry_latest($group_id); $HTML->box1_bottom(); /* Message Forums */ echo '<P> ';
function menu_foundry_guides($grp) { global $HTML, $Language; /* Show list of projects in this portal */ $foundry =& group_get_object($grp); if (!$foundry) { return 'Foundry Error'; } $HTML->menuhtml_top('Foundry Guides'); echo html_dbimage($foundry->getGuideImageID()); $sql = "SELECT users.realname,users.user_id,users.user_name " . "FROM users,user_group " . "WHERE users.user_id=user_group.user_id " . "AND user_group.admin_flags='A' " . "AND user_group.group_id='{$grp}'"; $result = db_query($sql); $rows = db_numrows($result); if (!$result || $rows < 1) { echo 'No Projects'; echo db_error(); } else { for ($i = 0; $i < $rows; $i++) { $HTML->menu_entry('/users/' . db_result($result, $i, 'user_name') . '/', db_result($result, $i, 'realname')); } } $HTML->menuhtml_bottom(); }