Exemplo n.º 1
0
function guiLogin(&$session, $message)
{
    guiStandardHeader($session, "Anmeldung für den InfoBasar", Th_LoginHeader, Th_LoginBodyStart);
    guiStartForm($session);
    if (!empty($message)) {
        $message = preg_replace('/^\\+/', '+++ Fehler: ', $message);
        guiParagraph($session, $message, false);
    }
    outDivision($session);
    if (!isset($_POST['login_user'])) {
        $_POST['login_user'] = $session->fUserName;
        $_POST['login_email'] = '';
    }
    outTableAndRecord();
    outTableTextField($session, 'Benutzername:', 'login_user', null, 32, 32);
    outTableRecordDelim();
    outTablePasswordField($session, 'Passwort:', 'login_code', '', 32, 32);
    outTableRecordDelim();
    outTableButton($session, ' ', 'but_login', 'Anmelden');
    outTableAndRecordEnd();
    guiLine($session, 2);
    guiParagraph($session, 'Passwort vergessen?', false);
    outTableAndRecord();
    outTableTextField($session, 'EMail-Adresse:', 'login_email', null, 32, 0);
    outTableRecordDelim();
    outTableButton($session, ' ', 'but_forget', 'Passwort ändern');
    outTableAndRecordEnd();
    echo '(Das neue Passwort wird dann zugeschickt.)';
    outNewline();
    outStrong('Achtung:');
    echo 'Benutzername muss ausgefüllt sein!';
    outDivisionEnd($session);
    guiFinishForm($session, $session);
    guiStandardBodyEnd($session, Th_LoginBodyEnd);
    return 1;
}
Exemplo n.º 2
0
function baseForumSearch(&$session, $message)
{
    $session->trace(TC_Gui1, 'baseForumSearch');
    getUserParam($session, U_MaxHits, $maxhits);
    guiStandardHeader($session, 'Forumsuche', Th_SearchHeader, Th_SearchBodyStart);
    if (!empty($message)) {
        guiParagraph($session, $message, false);
    }
    guiParagraph($session, 'Hinweis: vorläufig nur ein Suchbegriff möglich', false);
    guiStartForm($session);
    outTableAndRecord();
    outTableTextFieldButton($session, 'Im Titel:', 'forum_titletext', null, 32, 64, ' ', 'forum_title', 'Suchen');
    outTableRecordDelim();
    outTableTextFieldButton($session, 'Im Beitrag:', 'forum_bodytext', null, 32, 64, ' ', 'forum_body', 'Suchen');
    outTableRecordDelim();
    outTableTextField($session, 'Maximale Trefferzahl:', U_MaxHits, $maxhits, 10, 10);
    outTableAndRecordEnd();
    guiFinishForm($session, $session);
    guiStandardBodyEnd($session, Th_SearchBodyEnd);
}
Exemplo n.º 3
0
function baseSearch(&$session, $message)
{
    $session->trace(TC_Gui1, 'baseSearch');
    if (!isset($_POST['search_bodytext']) && isset($_POST['search_titletext'])) {
        $_POST['search_bodytext'] = $_POST['search_titletext'];
    }
    getUserParam($session, U_MaxHits, $_POST['search_maxhits']);
    guiStandardHeader($session, 'Suchen auf den Wiki-Seiten', Th_SearchHeader, Th_SearchBodyStart);
    if (isset($_POST['search_title']) || isset($_POST['search_body'])) {
        baseSearchResults($session);
    }
    guiStartForm($session);
    outTableAndRecord();
    outTableCell('Titel:');
    outTableDelim();
    outTextField($session, 'search_titletext', null, 32, 64);
    echo " ";
    outButton($session, 'search_title', "Suchen");
    outTableDelimAndRecordEnd();
    outTableRecord();
    outTableCell('Beitrag:');
    outTableDelim();
    outTextField($session, 'search_bodytext', null, 32, 64);
    echo " ";
    outButton($session, 'search_body', 'Suchen');
    outTableDelimAndRecordEnd();
    outTableTextField($session, 'Maximale Trefferzahl:', 'search_maxhits', null, 10, 10);
    outTableAndRecordEnd();
    guiFinishForm($session, $session);
    outParagraph($session);
    outStrong('Hinweis:');
    outNewline();
    echo 'Vorläufig nur ein Suchbegriff möglich.';
    outNewline();
    echo 'Joker (Wildcards) sind % (beliebig) und _ (1 Zeichen).';
    outNewline();
    outStrong('Bsp:');
    outNewline();
    outQuotation('a_t ');
    echo ' findet "Kin';
    outStrong('ast');
    echo '" und "';
    outStrong('Amt');
    echo 'sperson", aber nicht "h';
    outStrong('a');
    echo 's';
    outStrong('st');
    echo '"';
    outNewline();
    outQuotation('Hilfe%format');
    echo ' findet ';
    outStrong('Hilfe');
    echo 'Bei';
    outStrong('Format');
    echo 'ierung und "';
    outStrong('Hilfe');
    echo ' für ein Datei';
    outStrong('format');
    echo '".', outParagraphEnd($session);
    guiStandardBodyEnd($session, Th_SearchBodyEnd);
}
Exemplo n.º 4
0
function admOptions(&$session, $message)
{
    $session->trace(TC_Gui1, 'admOptions');
    admStandardHeader($session, 'Allgemeine Einstellungen');
    if (!empty($message)) {
        guiParagraph($session, $message, false);
    }
    guiHeadline($session, 2, 'Texte:');
    if (empty($_POST['opt_basarname'])) {
        $_POST['opt_basarname'] = $session->getMacro(TM_BasarName);
    }
    if (empty($_POST['opt_webmaster'])) {
        $_POST['opt_webmaster'] = $session->getMacro(TM_Webmaster);
    }
    if (empty($_POST['opt_css'])) {
        $_POST['opt_css'] = dbGetText($session, Th_CSSFile);
    }
    guiStartForm($session);
    outDivision($session);
    outTableAndRecord();
    outTableTextField($session, 'Basarname:', 'opt_basarname', null, 32, 128);
    outTableRecordDelim();
    outTableTextField($session, 'Webmaster:', 'opt_webmaster', null, 32, 128);
    outTableRecordDelim();
    outTableButton($session, ' ', 'opt_save', 'Ändern');
    outTableAndRecordEnd();
    outDivisionEnd($session);
    guiFinishForm($session);
    guiHeadline($session, 2, 'Dateien:');
    guiUploadFile($session, 'Logo:', 'opt_upload', 50000);
    $dir_name = $session->fullPath('pic') . PATH_DELIM;
    admShowDir($session, $dir_name, null, '/logo/');
    admFinishBody($session);
}