*/
function directory_printheader($title) {
global $color;
print '
'. $title . '';
print '
';
}
function directory_print_all_sections_start() {
echo '';
}
function directory_print_section_start($title) {
global $color;
print ''.$title.' | ';
print '';
}
function directory_print_section_end() {
global $color;
echo " | \n";
echo " | \n";
}
function directory_print_all_sections_end() {
echo " ";
}
function directory_printfooter() {
print ' | ';
print ' |
';
}
/**
* Return the navigation bar for the various Directory Services options.
* @return string
*/
function directory_navbar() {
global $PHP_SELF, $ldq_standalone, $mode, $popup, $formname, $inputname,
$ldq_support_eduperson;
$opts_arr = array();
if(isset($popup) && $popup == 1) {
$opts_arr[] = 'popup=1';
}
if(!empty($formname)) {
$opts_arr[] = 'formname='.urlencode($formname);
}
if(!empty($inputname)) {
$opts_arr[] = 'inputname='.urlencode($inputname);
}
if($opts_arr) {
$opts = implode('&', $opts_arr);
} else {
$opts = '';
}
$out = '';
if($ldq_support_eduperson) {
/* Browse mode is available only when eduPerson / eduOrg are used. */
$out .= _("Display Mode:") . ' ';
if(strstr($PHP_SELF, 'browse.php')) {
$out .= ''. _("Browse") .'';
} else {
$out .= ''. _("Browse") .'';
}
$out .= ' | ';
if(strstr($PHP_SELF, 'directory.php')) {
$out .= ''. _("Search") .'';
} else {
$out .= ''. _("Search") .'';
}
$out .= ' - ';
}
if(basename($PHP_SELF) == 'directory.php') {
$out .= _("Operation Mode:") . ' ';
if($mode == DIR_SIMPLE) {
$out .= ''. _("Simple") .'';
} else {
$out .= ''. _("Simple") .'';
}
$out .= ' | ';
if($mode == DIR_ADVANCED) {
$out .= ''. _("Advanced") .'';
} else {
$out .= ''. _("Advanced") .'';
}
}
return $out;
}
?>