function overview(&$session) { $session->trace(TC_Gui3, 'forum.overview'); outTableRecord(); outTableCell(' '); outTableCellStrong(tagNewline() . 'Modul Foren'); outTableRecordEnd(); outTableRecordInternLink($session, 'Auflistung der existierenden Foren.', 'forumhome', 'Forenübersicht', 'forum'); outTableRecordInternLink($session, 'Suche in den Foren.', 'forumsearch', 'Forensuche', 'forum'); }
function overview(&$session) { $session->trace(TC_Gui3, 'address.overview'); outTableRecord(); outTableCell(' '); outTableCellStrong(tagNewline() . 'Modul Adressen'); outTableRecordEnd(); outTableRecordInternLink($session, 'Adressbuch erstellen oder ändern.', 'editbook', 'Adressbücher', 'address'); outTableRecordInternLink($session, 'Adresse erstellen oder ändern.', 'editcard', 'Adresskarte', 'address'); outTableRecordInternLink($session, 'Adressen suchen, exportieren.', 'showcards', 'Suchen', 'address'); }
function dbPrintTable(&$session, $query, $headers, $max_lines) { $session->trace(TC_Db1, "dbPrintTable"); $result = mysql_query($query, $session->fDbInfo); if (!$result) { protoc(mysql_error()); } else { $first = true; $no = 0; if ($max_lines <= 0) { $max_lines = 1000; } while ($row = mysql_fetch_row($result)) { if ($first) { outTable(1); outTableRecord(); foreach ($headers as $key => $value) { outTableCellStrong($value); } outTableRecordEnd(); $first = false; } if (++$no > $max_lines) { break; } outTableRecord(); foreach ($row as $key => $value) { outTableCell($value); } outTableRecordEnd(); } if ($first) { echo "Die Anfrage ergab keine Ergebnisse<br>\n"; } else { outTableEnd(); if ($no > $max_lines) { guiParagraph($session, "Es gibt noch weitere Ergebnisse!", false); } } mysql_free_result($result); } }
function baseInfo(&$session) { guiStandardHeader($session, 'Infobasar-Info', Th_InfoHeader, null); guiParagraph($session, '(C) Hamatoma AT berlios DOT de 2004-2005', 0); outTable(); outTableRecord(); outTableCellStrong('Gegenstand'); outTableCellStrong('Version'); outTableRecordDelim(); outTableCell('Basismodul:'); outTableCell(PHP_ModuleVersion); outTableRecordDelim(); outTableCell('PHP-Klassen:'); outTableCell(PHP_ClassVersion); outTableRecordDelim(); outTableCell('DB-Schema:'); outTableCell(htmlentities($session->getMacro(TM_DBSchemeVersion))); outTableRecordDelim(); outTableCell('DB-Basisinhalt:'); outTableCell(htmlentities($session->getMacro(TM_DBBaseContentVersion))); outTableRecordDelim(); outTableCell('DB-Erweiterungen:'); $macro = $session->getMacro(TM_DBExtensions); outTableCell(htmlentities(str_replace(';', ' | ', substr($macro, 1, strlen($macro) - 2)))); outTableRecordEnd(); outTableEnd(); guiStandardBodyEnd($session, Th_InfoBodyEnd); }
function addressPrintTable(&$session, $query, $max_lines) { $result = mysql_query($query, $session->fDbInfo); if (!$result) { protoc(mysql_error()); } else { guiHeadline($session, 2, 'Suchergebnis:'); $first = true; $no = 0; if ($max_lines <= 0) { $max_lines = 1000; } outTable(1); while ($row = mysql_fetch_row($result)) { if ($first) { addressPrintTableHeader($session); $first = false; } if (++$no > $max_lines) { break; } outTableRecord(); addressPrintRow($session, $row); outTableRecordEnd(); } if ($first) { echo "Die Anfrage ergab keine Ergebnisse"; outNewline(); } else { outTableEnd(); if ($no > $max_lines) { guiParagraph($session, "Es gibt noch weitere Ergebnisse!", false); } } mysql_free_result($result); } }
function admShowDir(&$session, $path, $headline = null, $pattern = null, $button_text = null, $button_prefix = null, $file_prefix = null, $with_form = true) { $session->trace(TC_Init, 'admShowDir'); $dir = opendir($path); if ($headline != '') { guiHeadline($session, 2, $headline == null ? "Verzeichnis {$path} auf dem Server" : $headline); } if ($button_text != null && $with_form) { guiStartForm($session); } outTableAndRecord(1); outTableCellStrong('Name'); outTableCellStrong('Größe'); outTableCellStrong('Geändert am'); if ($button_text != null) { outTableCellStrong('Aktion'); } outTableRecordEnd(); $no = 0; while ($file = readdir($dir)) { if ($file != '.' && $file != '..' && ($pattern == null || preg_match($pattern, $file))) { $name = $path . $file; outTableRecord(); outTableCell(htmlentities($file)); outTableCell(is_dir($name) ? 'Verzeichnis' : filesize($name), AL_Right); outTableCell(date("Y.m.d H:i:s", filemtime($name))); if ($button_text != null) { $no++; outTableDelim(); outHiddenField($session, $file_prefix . $no, $path . $file); outButton($session, $button_prefix . $no, $button_text); outTableDelimEnd(); } outTableRecordEnd(); } } outTableEnd(); closedir($dir); if ($button_text != null && $with_form) { guiFinishForm($session); } }