本文整理匯總了PHP中HtmlPage::setHeadline方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlPage::setHeadline方法的具體用法?PHP HtmlPage::setHeadline怎麽用?PHP HtmlPage::setHeadline使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HtmlPage
的用法示例。
在下文中一共展示了HtmlPage::setHeadline方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: HtmlTable
$pdf->SetFont('times', '', 10);
// add a page
$pdf->AddPage();
// Create table object for display
$table = new HtmlTable('adm_lists_table', $pdf, $hoverRows, $datatable, $classTable);
$table->addAttribute('border', '1');
} elseif ($getMode === 'html') {
$datatable = true;
$hoverRows = true;
// create html page object
$page = new HtmlPage();
if ($getFullScreen) {
$page->hideThemeHtml();
}
$page->setTitle($title);
$page->setHeadline($headline);
// Only for active members of a role
if ($getShowMembers === 0) {
// create filter menu with elements for start-/enddate
$filterNavbar = new HtmlNavbar('menu_list_filter', null, null, 'filter');
$form = new HtmlForm('navbar_filter_form', $g_root_path . '/adm_program/modules/lists/lists_show.php', $page, array('type' => 'navbar', 'setFocus' => false));
$form->addInput('date_from', $gL10n->get('LST_ROLE_MEMBERSHIP_IN_PERIOD'), $dateFrom, array('type' => 'date', 'maxLength' => 10));
$form->addInput('date_to', $gL10n->get('LST_ROLE_MEMBERSHIP_TO'), $dateTo, array('type' => 'date', 'maxLength' => 10));
$form->addInput('lst_id', '', $getListId, array('property' => FIELD_HIDDEN));
$form->addInput('rol_ids', '', $getRoleIds, array('property' => FIELD_HIDDEN));
$form->addInput('show_members', '', $getShowMembers, array('property' => FIELD_HIDDEN));
$form->addSubmitButton('btn_send', $gL10n->get('SYS_OK'));
$filterNavbar->addForm($form->show(false));
$page->addHtml($filterNavbar->show(false));
}
$page->addHtml('<h5>' . $htmlSubHeadline . '</h5>');
示例2: toggleDiv
} else {
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->setHeadline($gL10n->get('GBO_MODERATE_VAR', $getHeadline));
} else {
$page->setHeadline($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