本文整理汇总了PHP中set_page_title函数的典型用法代码示例。如果您正苦于以下问题:PHP set_page_title函数的具体用法?PHP set_page_title怎么用?PHP set_page_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_page_title函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:moiseh,项目名称:metapages,代码行数:8,代码来源:core.php
示例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);
}
开发者ID:moiseh,项目名称:metapages,代码行数:15,代码来源:Page.php
示例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>
开发者ID:abhinay100,项目名称:feng_app,代码行数:31,代码来源:index.php
示例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()) {
?>
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:file_details.php
示例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');
?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:weekly_schedule.php
示例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();
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:edit_logo.php
示例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">
开发者ID:noxstyle,项目名称:Project-Pier,代码行数:31,代码来源:overview.php
示例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>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:load_values.php
示例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'));
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:7,代码来源:card.php
示例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
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:search.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>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:assign_to_project.php
示例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;
}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:print_view.php
示例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
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:tool_mass_mailer.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>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:view_company.php
示例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());
?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:update_category.php
示例16: set_page_title
<?php
set_page_title($task_list->getName());
project_tabbed_navigation(PROJECT_TAB_TASKS);
project_crumbs(array(array(lang('tasks'), get_url('task')), array($task_list->getName())));
if (ProjectTaskList::canAdd(logged_user(), active_project())) {
add_page_action(lang('add task list'), get_url('task', 'add_list'));
}
// if
?>
<script type="text/javascript" src="<?php
echo get_javascript_url('modules/addTaskForm.js');
?>
"></script>
<?php
$this->assign('on_list_page', true);
$this->includeTemplate(get_template_path('task/task_list'));
?>
<script type="text/javascript">
App.modules.addTaskForm.hideAllAddTaskForms();
</script>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:21,代码来源:view_list.php
示例17: trace
<?php
trace(__FILE__, 'begin');
// Set page title and set crumbs to index
set_page_title(lang('my tasks'));
dashboard_tabbed_navigation(DASHBOARD_TAB_MY_TASKS);
dashboard_crumbs(lang('my tasks'));
add_stylesheet_to_page('dashboard/my_tasks.css');
if (logged_user()->canManageProjects()) {
add_page_action(lang('add project'), get_url('project', 'add'));
add_page_action(lang('copy project'), get_url('project', 'copy'));
}
// if
add_page_action(lang('group by project'), get_url('dashboard', 'my_tasks'));
add_page_action(lang('order by name'), get_url('dashboard', 'my_tasks_by_name'));
add_page_action(lang('order by priority'), get_url('dashboard', 'my_tasks_by_priority'));
add_page_action(lang('order by milestone'), get_url('dashboard', 'my_tasks_by_milestone'));
// If user have any assigned task or milestone this variable will be changed to TRUE
// else it will remain false
$has_assigned_tasks = false;
if (isset($active_projects) && is_array($active_projects) && count($active_projects)) {
?>
<div id="myTasks">
<?php
foreach ($active_projects as $active_project) {
$assigned_milestones = $active_project->getUsersMilestones(logged_user());
$assigned_tasks = $active_project->getUsersTasks(logged_user());
if (is_array($assigned_milestones) && count($assigned_milestones) || is_array($assigned_tasks) && count($assigned_tasks)) {
$has_assigned_tasks = true;
?>
<div class="block">
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:my_tasks.php
示例18: set_page_title
<?php
set_page_title(lang('update permissions'));
administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array(lang('update permissions'))));
if (isset($projects) && is_array($projects) && count($projects)) {
?>
<div id="companyPermissions">
<div class="hint">
<div class="header"><?php
echo lang('hint');
?>
</div>
<div class="content"><?php
echo lang('update company permissions hint');
?>
</div>
</div>
<form action="<?php
echo $company->getUpdatePermissionsUrl();
?>
" method="post">
<table class="blank">
<?php
foreach ($projects as $project) {
?>
<tr>
<td><?php
echo checkbox_field('project_' . $project->getId(), $company->isProjectCompany($project), array('id' => 'projectPermissionsCheckbox' . $project->getId(), 'disabled' => !logged_user()->isProjectUser($project)));
?>
</td>
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:update_permissions.php
示例19: set_page_title
<?php
set_page_title(lang('edit logo'));
project_crumbs(lang('edit logo'));
$this->includeTemplate(get_template_path('project/pageactions'));
?>
<form action="<?php
echo $project->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 ($project->hasLogo()) {
?>
<img src="<?php
echo $project->getLogoUrl();
?>
" alt="<?php
echo clean($project->getName());
?>
logo" />
开发者ID:federosky,项目名称:ProjectPier-Core,代码行数:31,代码来源:edit_logo.php
示例20: set_page_title
<?php
set_page_title('Error');
?>
We are sorry, but ProjectPier failed to connect to the database. Error report has been sent to the administrator so problem should be resolved soon.
开发者ID:bklein01,项目名称:Project-Pier,代码行数:5,代码来源:db_connect.php
注:本文中的set_page_title函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论