\n"); echo("\n"); echo("  "); if ($page != 1) { echo("<=\n"); } else { echo("<="); } echo(" "); if ($page < ($count / $max_page_entries)) { echo("=>\n"); } else { echo("=>"); } echo(""); echo" "; printf($text, $count); echo(""); echo(""); for ($i = 0; $i < ($count / $max_page_entries); $i++) { if ($i == $page - 1) { echo(" " . ($i + 1)); } else { echo(" " . ($i + 1) . "\n"); } } echo("\n"); } /** * Prints the attribute and filter row at the account table head * * @param string $scope account type (user, group, host) * @param string $searchFilter search filter for hyperlinks * @param array $desc_array list of attribute descriptions * @param array $attr_array list of attribute names * @param array $_POST HTTP-POST values * @param string $sort sort attribute */ function listPrintTableHeader($scope, $searchFilter, $desc_array, $attr_array, $_POST, $sort) { // print table header echo "\n"; echo "\n\n\n"; // table header for ($k = 0; $k < sizeof($desc_array); $k++) { if (strtolower($attr_array[$k]) == $sort) { echo "\n"; } else echo "\n"; } echo "\n"; // print filter row echo "\n\n\n"; // print input boxes for filters for ($k = 0; $k < sizeof ($desc_array); $k++) { echo "\n"; } echo "\n"; } /** * Returns the LDAP attribute names and their description for the user list * * @return array list of LDAP attributes and descriptions */ function listGetAttributeUserArray() { return array ( "uid" => _("User ID"), "uidnumber" => _("UID number"), "gidnumber" => _("GID number"), "cn" => _("Username"), "host" => _("Allowed hosts"), "givenname" => _("First name"), "sn" => _("Last name"), "homedirectory" => _("Home directory"), "loginshell" => _("Login shell"), "mail" => _("E-Mail"), "gecos" => _("Description") ); } /** * Returns the LDAP attribute names and their description for the group list * * @return array list of LDAP attributes and descriptions */ function listGetAttributeGroupArray() { return array ( "cn" => _("Group name"), "gidnumber" => _("GID number"), "memberuid" => _("Group members"), "member" => _("Group member DNs"), "description" => _("Group description") ); } /** * Returns the LDAP attribute names and their description for the host list * * @return array list of LDAP attributes and descriptions */ function listGetAttributeHostArray() { return array ( "uid" => _("Host username"), "cn" => _("Host name"), "rid" => _("RID (Windows UID)"), "description" => _("Host description"), "uidnumber" => _("UID number"), "gidnumber" => _("GID number") ); } ?>
" . $desc_array[$k] . "" . $desc_array[$k] . "
"; echo ""; echo ""; echo (""); echo "