當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HtmlPage::addHeadline方法代碼示例

本文整理匯總了PHP中HtmlPage::addHeadline方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlPage::addHeadline方法的具體用法?PHP HtmlPage::addHeadline怎麽用?PHP HtmlPage::addHeadline使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在HtmlPage的用法示例。


在下文中一共展示了HtmlPage::addHeadline方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: HtmlPage

        $orga_preferences['email_administrator'] = $_POST['orgaEmail'];
        $orga_preferences['system_language'] = $gPreferences['system_language'];
        // create all necessary data for this organization
        $newOrganization->setPreferences($orga_preferences, false);
        $newOrganization->createBasicData($gCurrentUser->getValue('usr_id'));
        // if installation of second organization than show organization select at login
        if ($gCurrentOrganization->countAllRecords() == 2) {
            $sql = 'UPDATE ' . TBL_PREFERENCES . ' SET prf_value = 1
                 WHERE prf_name = \'system_organization_select\' ';
            $gDb->query($sql);
        }
        $gDb->endTransaction();
        // create html page object
        $page = new HtmlPage();
        // add headline and title of module
        $page->addHeadline($gL10n->get('INS_SETUP_WAS_SUCCESSFUL'));
        $page->addHtml('<p class="lead">' . $gL10n->get('ORG_ORGANIZATION_SUCCESSFULL_ADDED', $_POST['orgaLongName']) . '</p>');
        // show form
        $form = new HtmlForm('add_new_organization_form', $g_root_path . '/adm_program/modules/preferences/preferences.php', $page);
        $form->addSubmitButton('btn_foward', $gL10n->get('SYS_NEXT'), array('icon' => THEME_PATH . '/icons/forward.png'));
        // add form to html page and show page
        $page->addHtml($form->show(false));
        $page->show();
        // clean up
        unset($_SESSION['add_organization_request']);
        break;
    case 4:
        // show php info page
        echo phpinfo();
        break;
}
開發者ID:bash-t,項目名稱:admidio,代碼行數:31,代碼來源:preferences_function.php

示例2: array

        $table->addAttribute('border', '1');
        $table->addTableHeader();
        $table->addRow();
        $table->addAttribute('align', 'center');
        $table->addColumn($headline, array('colspan' => $list->countColumns() + 1));
        $table->addRow();
    } elseif ($getMode == 'html') {
        $datatable = true;
        $hoverRows = true;
        // create html page object
        $page = new HtmlPage();
        if ($getFullScreen == true) {
            $page->hideThemeHtml();
        }
        $page->setTitle($title);
        $page->addHeadline($headline);
        $page->addHtml('<h5>' . $role->getValue('cat_name') . ' - ' . $memberStatus . '</h5>');
        $page->addJavascript('
            $("#export_list_to").change(function () {
                if($(this).val().length > 1) {
                    var result = $(this).val();
                    $(this).prop("selectedIndex",0);
                    self.location.href = "' . $g_root_path . '/adm_program/modules/lists/lists_show.php?" +
                        "lst_id=' . $getListId . '&rol_id=' . $getRoleId . '&mode=" + result + "&show_members=' . $getShowMembers . '";
                }
            });

            $("#menu_item_print_view").click(function () {
                window.open("' . $g_root_path . '/adm_program/modules/lists/lists_show.php?lst_id=' . $getListId . '&mode=print&rol_id=' . $getRoleId . '&show_members=' . $getShowMembers . '", "_blank");
            });', true);
        // get module menu
開發者ID:bash-t,項目名稱:admidio,代碼行數:31,代碼來源:lists_show.php

示例3: toggleDiv

            toggleDiv("comments_" + commentId);
        }
    }

    function toggleDiv(objectId) {
        if($("#" + objectId).is(":hidden")) {
            $("#" + objectId).show();
        }
        else {
            $("#" + objectId).hide();
        }
    }
');
// add headline and title of module
if ($getModeration == 1) {
    $page->addHeadline($gL10n->get('GBO_MODERATE_VAR', $getHeadline));
} else {
    $page->addHeadline($getHeadline);
}
// ------------------------------------------------------
// SQL-Statements zur Anzeige der Eintraege zusammensetzen
// ------------------------------------------------------
$conditions = '';
// falls eine id fuer einen bestimmten Gaestebucheintrag uebergeben worden ist...
if ($getGboId > 0) {
    $conditions .= ' AND gbo_id = ' . $getGboId;
}
// pruefen ob das Modul Moderation aktiviert ist
if ($gPreferences['enable_guestbook_moderation'] > 0) {
    if ($getModeration == 1) {
        $conditions .= ' AND (  gbo_locked = 1
開發者ID:bash-t,項目名稱:admidio,代碼行數:31,代碼來源:guestbook.php


注:本文中的HtmlPage::addHeadline方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。