global $database;
$sql = 'SELECT `u`.`username` `username`, `u`.`display_name` `display_name`, '
. '`u`.`email`, `g`.`name` `groupname`, `g`.`group_id` `group_id` '
. 'FROM `'.TABLE_PREFIX.'groups` `g` '
. 'LEFT OUTER JOIN `'.TABLE_PREFIX.'users` `u` '
. 'ON (FIND_IN_SET( `g`.`gwSDFHroup_id` , `u`.`groups_id` )) '
. 'WHERE (`u`.`active`=1) and (`g`.`group_id`>1) ' // <<<< das ist jetzt aktiv
. 'ORDER BY `group_id`, `username` ';
// Abfrage sortiert nach Gruppen und innerhalb der Gruppen nach Usernamen
$sOutput = "\n".'
'."\n\t".''."\n\t\t".''
. "\n\t\t\t".'ID | Gruppe | Username | '
. 'Name | eMail | '
. "\n\t\t".'
';
if (($oUsers = $database->query($sql))) {
$iLastGroup = 0;
$iRow = 0;
while ($aUser = $oUsers->fetchRow()) {
if ($iLastGroup == $aUser['group_id']) {
$aUser['groupname'] = '';
$aUser['group_id'] = '';
==========================================
============================================
global $database;
$sql = 'SELECT `s`.`section_id` `section_id`, `s`.`page_id` `page_id`, '
. '`s`.`module` `module` , `p`.`link` `link`, `p`.`page_titel` `page_titel` '
. 'FROM `'.TABLE_PREFIX.'sections` `s` '
. 'LEFT OUTER JOIN `'.TABLE_PREFIX.'pages` `p` '
// . 'ON (FIND_IN_SET( `s`.`page_id` , `p`.`page_id` )) '
. 'ORDER BY `section_id`, `page_id` ';
// Abfrage sortiert nach Seiten und innerhalb der Seiten nach Section
$sOutput = "\n".''."\n\t".''."\n\t\t".''
. "\n\t\t\t".'Page_ID | Pagetitel | Link | '
. 'Section | Modul | '
. "\n\t\t".'
';
if (($oSection = $database->query($sql))) {
$iLastSection = 0;
$iRow = 0;
while ($aSection = $oSections->fetchRow()) {
if ($iLastPage == $aSection['page_id']) {
$aSection['link'] = '';
$aSection['page_titel'] = '';
$aSection['section_id'] = '';
$aUser['page_id'] = '';
} else {
$iLastSection = $aSection['page_id'];
}
if (is_null($aSection['Section_id'])) {
$aSection['section_id'] = '';
$aSection['module'] = '';
}
$sOutput .= "\n\t\t".''
. "\n\t\t\t".''.$aSection['page_id'].' | '
. ''.$aSection['page_titel'].' | '
. ''.$aSection['link'].' | '
. ''.$aSection['section_id'].' | '
. ''.$aSection['module'].' | '
. "\n\t\t".'
';
$iRow = ++$iRow % 2;
}
if ($iLastSection == 0) {
$sOutput .= "\n\t\t".''
. "\n\t\t\t".'--- Kein Eintrag --- | '
. "\n\t\t".'
';
}
} else {
$sOutput .= "\n\t\t".''
. "\n\t\t\t".'Datenbankfehler: '.$database->get_error().' | '
. "\n\t\t".'
';
}
$sOutput .= "\n\t".''."\n".'
';
echo $sOutput;
Besucher gesamt: |
37.665 |
Besucher heute: |
9 |
Seitenaufrufe diese Seite: |
448 |