本文整理汇总了PHP中set_page_title函数的典型用法代码示例。如果您正苦于以下问题:PHP set_page_title函数的具体用法?PHP set_page_title怎么用?PHP set_page_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_page_title函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page_404_not_found
function page_404_not_found()
{
header("HTTP/1.0 404 Not Found");
// include 'pages/' . PAGE_404 . '.php';
set_page_title(t('Error 404'));
echo render('page-layout.php', array('content' => '<h3>Sorry! Page not found...</h3>'));
exit;
}
示例2: render
public function render()
{
if (!$this->isUserAllowed()) {
return self::renderDenied();
}
// quando pag. for do tipo FRAME ou estar em modo preview, deve exibir de forma diferenciada
$isFrame = isset($_GET['preview']) || $this->pageType == 'frame';
// fix encoding problems
// header('Content-Type: text/html; charset=UTF-8');
if (!page_title()) {
set_page_title($this->label);
}
$vars = array('content' => $this->renderObjects(), 'isFrame' => $isFrame);
return self::renderLayout($vars);
}
示例3: set_page_title
<?php
set_page_title(lang('billing categories'));
$isBillingEnabled = can_manage_billing(logged_user()) && isset($billing_categories) && is_array($billing_categories) && count($billing_categories);
?>
<div class="adminBilling" style="height:100%;background-color:white">
<div class="coInputHeader">
<div class="coInputHeaderUpperRow">
<div class="coInputTitle">
<?php
echo lang('billing categories');
?>
</div>
</div>
</div>
<div class="coInputMainBlock adminMainBlock">
<?php
if ($isBillingEnabled) {
echo lang('billing support is enabled');
?>
<br/>
<table style="min-width:400px;margin-top:10px;border:1px solid #DDD">
<tr>
<th><?php
echo lang('name');
?>
</th>
示例4: set_page_title
<?php
set_page_title($file->getObjectName());
project_tabbed_navigation(PROJECT_TAB_FILES);
$files_crumbs = array(0 => array(lang('files'), get_url('files')));
// array
if ($folder instanceof ProjectFolder) {
$files_crumbs[] = array($folder->getName(), $folder->getBrowseUrl());
}
// if
$files_crumbs[] = lang('file details');
project_crumbs($files_crumbs);
if (ProjectFile::canAdd(logged_user(), active_project())) {
if ($folder instanceof ProjectFolder) {
add_page_action(lang('add file'), $folder->getAddFileUrl());
} else {
add_page_action(lang('add file'), get_url('files', 'add_file'));
}
// if
}
// if
if (ProjectFolder::canAdd(logged_user(), active_project())) {
add_page_action(lang('add folder'), get_url('files', 'add_folder'));
}
// if
add_stylesheet_to_page('project/files.css');
?>
<div id="fileDetails" class="block">
<?php
if ($file->isPrivate()) {
?>
示例5: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('weekly schedule'));
dashboard_tabbed_navigation('weekly_schedule');
dashboard_crumbs(lang('weekly schedule'));
add_stylesheet_to_page('dashboard/weekly_schedule.css');
add_stylesheet_to_page('project/calendar.css');
add_stylesheet_to_page('project/tickets.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/calendar.js');
?>
"></script>
<?php
if (isset($upcoming_milestones) && is_array($upcoming_milestones) && count($upcoming_milestones) || isset($upcoming_tickets) && is_array($upcoming_tickets) && count($upcoming_tickets) || isset($late_milestones) && is_array($late_milestones) && count($late_milestones) || isset($late_tickets) && is_array($late_tickets) && count($late_tickets)) {
?>
<div id="viewToggle">
<a href="<?php
echo get_url('dashboard', 'weekly_schedule', array('view' => 'list'));
?>
"><img src="<?php
if ($view_type == "list") {
echo get_image_url("icons/list_on.png");
} else {
echo get_image_url("icons/list_off.png");
}
?>
" title="<?php
echo lang('list view');
?>
示例6: set_page_title
<?php
set_page_title(lang('edit company logo'));
if ($company->isOwner()) {
administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
administration_crumbs(array(array(lang('company'), get_url('administration', 'company')), array(lang('edit company logo'))));
} else {
administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array(lang('edit company logo'))));
}
// if
?>
<form action="<?php
echo $company->getEditLogoUrl();
?>
" method="post" enctype="multipart/form-data">
<?php
tpl_display(get_template_path('form_errors'));
?>
<fieldset>
<legend><?php
echo lang('current logo');
?>
</legend>
<?php
if ($company->hasLogo()) {
?>
<img src="<?php
echo $company->getLogoUrl();
示例7: trace
<?php
trace(__FILE__, "set_page_title(lang('overview')");
set_page_title(lang('overview'));
trace(__FILE__, "project_crumbs(lang('overview'))");
project_crumbs(lang('overview'));
add_stylesheet_to_page('project/project_log.css');
trace(__FILE__, 'stylesheet added');
$this->includeTemplate(get_template_path('project/pageactions'));
if (active_project()->getParent()) {
?>
<div class="block">
<div class="header parent">
<?php
echo lang('parent project');
?>
: <a href="<?php
echo active_project()->getParent()->getOverviewUrl();
?>
"><?php
echo clean(active_project()->getParent()->getName());
?>
</a>
</div>
</div>
<?php
}
// if
if (trim(active_project()->getDescription()) && active_project()->getShowDescriptionInOverview()) {
?>
<div id="project">
示例8: set_page_title
<?php
set_page_title(lang('load values'));
administration_tabbed_navigation('i18n');
administration_crumbs(lang('i18n'), get_url('i18n'));
add_page_action(lang('add locale'), get_url('i18n', 'add_locale', array('status' => '0')));
add_stylesheet_to_page('i18n.css');
$locale = $load_data['locale'];
?>
<h2><?php
echo lang('locale') . ': ' . $locale->getName();
?>
</h2>
<form action="<?php
echo $locale->getLoadValuesUrl();
?>
" method="post">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div>
<?php
echo label_tag(lang('replace'), 'loadFormReplace', false);
?>
<?php
echo yes_no_widget('load[replace]', 'loadFormReplace', array_var($load_data, 'replace'), lang('yes'), lang('no'));
?>
</div>
<div>
示例9: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('company card of', $company->getName()));
dashboard_tabbed_navigation();
dashboard_crumbs($company->getName());
$this->includeTemplate(get_template_path('company_card', 'company'));
示例10: set_page_title
<?php
set_page_title(lang('search results'));
project_tabbed_navigation();
project_crumbs(lang('search results'));
add_stylesheet_to_page('project/search_results.css');
?>
<div id="searchForm">
<form action="<?php
echo active_project()->getSearchUrl();
?>
" method="get">
<?php
echo input_field('search_for', array_var($_GET, 'search_for'));
?>
<input type="hidden" name="c" value="project" />
<input type="hidden" name="a" value="search" />
<input type="hidden" name="active_project" value="<?php
echo active_project()->getId();
?>
" />
<?php
echo submit_button(lang('search'));
?>
<?php
echo lang('search hint');
?>
</form>
</div>
<?php
示例11: set_page_title
<?php
set_page_title(lang('assign to project'));
$genid = gen_id();
?>
<form style='height:100%;background-color:white' class="internalForm" action="<?php
echo $contact->getAssignToProjectUrl($contact->getCardUrl());
?>
" method="post" enctype="multipart/form-data">
<div style="display: none">
<?php
$selected = array();
foreach ($projects as $project) {
if (array_var($contact_data, 'pid_' . $project->getId())) {
$selected[] = $project;
echo checkbox_field("contact[pid_" . $project->getId() . "]", true, array("id" => "{$genid}" . "_" . $project->getId(), 'tabindex' => '10'));
} else {
echo checkbox_field("contact[pid_" . $project->getId() . "]", false, array("id" => "{$genid}" . "_" . $project->getId(), 'tabindex' => '10'));
}
}
?>
</div>
<div class="assignToProject">
<div class="coInputSeparator"></div>
<div class="coInputMainBlock adminMainBlock">
<div class="coInputTitle"><?php
echo clean($contact->getDisplayName());
?>
</div>
示例12: set_page_title
<?php
set_page_title($message->getObjectName());
?>
<style>
body {
font-family: sans-serif;
}
.header {
border-bottom: 1px solid black;
padding: 10px;
}
h1 {
font-size: 150%;
margin: 15px 0;
}
h2 {
font-size: 120%;
margin: 15px 0;
}
.body {
margin-left: 20px;
padding: 10px;
}
.comments {
border-top: 1px solid black;
}
.comment {
margin-left: 20px;
}
示例13: set_page_title
<?php
set_page_title($tool->getDisplayName());
administration_tabbed_navigation(ADMINISTRATION_TAB_TOOLS);
administration_crumbs(array(array(lang('administration tools'), get_url('administration', 'tools')), array($tool->getDisplayName())));
add_stylesheet_to_page('admin/massmailer.css');
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/massmailerForm.js');
?>
"></script>
<div id="massMailer">
<form action="<?php
echo $tool->getToolUrl();
?>
" method="post">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div>
<?php
echo label_tag(lang('massmailer subject'), 'massmailerFormRecipient', true);
?>
<?php
echo text_field('massmailer[subject]', array_var($massmailer_data, 'subject'), array('id' => 'massmailerFormRecipient', 'class' => 'title'));
?>
</div>
<div>
<?php
示例14: set_page_title
<?php
set_page_title($company->getName());
if ($company->isOwner()) {
administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
administration_crumbs(lang('company'));
} else {
administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName())));
}
// if
if ($company->canEdit(logged_user())) {
add_page_action(lang('edit company'), $company->getEditUrl());
add_page_action(lang('edit company logo'), $company->getEditLogoUrl());
if (!$company->isOwner()) {
add_page_action(lang('update permissions'), $company->getUpdatePermissionsUrl());
}
// if
}
// if
if (User::canAdd(logged_user(), $company)) {
add_page_action(lang('add user'), $company->getAddUserUrl());
}
// if
$this->includeTemplate(get_template_path('company_card', 'company'));
?>
<h2><?php
echo lang('users');
?>
</h2>
示例15: set_page_title
<?php
set_page_title($category->getDisplayName());
administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION);
administration_crumbs(array(array(lang('configuration'), get_url('administration', 'configuration')), array($category->getDisplayName())));
add_stylesheet_to_page('admin/config.css');
if (isset($options) && is_array($options) && count($options)) {
?>
<form action="<?php
echo $category->getUpdateUrl();
?>
" method="post" onreset="return confirm('<?php
echo lang('confirm reset form');
?>
')">
<div id="configCategoryOptions">
<?php
$counter = 0;
foreach ($options as $option) {
$counter++;
?>
<div class="configCategoryOption <?php
echo $counter % 2 ? 'odd' : 'even';
?>
" id="configCategoryOption_<?php
echo $option->getName();
?>
">
<div class="configOptionLabel"><label><?php
echo clean($option->getDisplayName());
?>