当前位置: 首页>>代码示例>>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;未经允许,请勿转载。