本文整理匯總了PHP中HtmlPage::setTitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlPage::setTitle方法的具體用法?PHP HtmlPage::setTitle怎麽用?PHP HtmlPage::setTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HtmlPage
的用法示例。
在下文中一共展示了HtmlPage::setTitle方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: HtmlTable
// set font
$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));
}