Beispiel #1
0
            ?>
 "> NEXT </a> <?php 
            $qs = build_url(build_qs(null, 'offset', $numpages));
            ?>
 // <a href="<?php 
            echo $qs;
            ?>
 "> LAST </a> <?php 
        }
        echo "</div>\n";
    }
} else {
    echo browsingMenu($dbconn, $index);
    echo "<h3> Browse by Functional Team </h3>\n";
    echo "<div class=teamlist><ul>\n";
    while ($row = pg_fetch_array($result, null, PGSQL_ASSOC)) {
        echo "<li>" . hierlink('team', $row['account_collection_id'], $row['account_collection_name']) . "</li>\n";
    }
    echo "</ul>\n";
    echo "</div>\n";
}
echo build_footer();
// Free resultset
pg_free_result($result);
// Closing connection
pg_close($dbconn);
?>
</div>
</body>
</html>
Beispiel #2
0
echo "<div class=directorypic>" . img($row['person_id'], $row['person_image_id'], 'contact') . "</div>";
echo "<div class=\"description\">";
echo "<h1> {$name} </h1>";
if (isset($row['nickname']) && strtolower($row['nickname']) != strtolower($row['first_name'])) {
    echo "AKA ", $row['nickname'], " </br>\n";
}
echo "<table id=\"contact\">\n";
if (isset($row['num_reports']) && $row['num_reports'] > 0) {
    $title = "{$title} (" . hierlink('reports', $row['person_id'], "team") . ")";
}
if (isset($title)) {
    echo build_tr("Title", $title);
}
if (isset($row['account_collection_id'])) {
    /* Was $teamc at the end, which includes the company */
    echo build_tr("Functional Team", hierlink('team', $row['account_collection_id'], $row['account_collection_name']));
} else {
    echo build_tr("Functional Team", 'NONE');
}
$email = get_email($dbconn, $row['person_id']);
if (isset($email) || isset($row['login'])) {
    if ($email == null) {
        $email = $row['login'] . "@" . get_default_domain($dbconn);
    }
} else {
    $email = "<b> NONE </b>";
}
echo build_tr("Email", $email);
if (isset($manager)) {
    echo build_tr("Manager", personlink($row['manager_person_id'], $manager));
}