本文整理汇总了PHP中project_crumbs函数的典型用法代码示例。如果您正苦于以下问题:PHP project_crumbs函数的具体用法?PHP project_crumbs怎么用?PHP project_crumbs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了project_crumbs函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: set_page_title
<?php
set_page_title(lang('settings'));
project_tabbed_navigation('settings');
project_crumbs(lang('settings'));
?>
<div id="configuration">
<?php
if (logged_user()->isAdministrator() || active_project()->canEdit(logged_user())) {
?>
<h2><a href="<?php
echo $project->getEditUrl();
?>
"><?php
echo lang('edit project');
?>
</a></h2>
<?php
}
// if
if (logged_user()->isAdministrator() || active_project()->canChangePermissions(logged_user())) {
?>
<h2><a href="<?php
echo get_url('project_settings', 'users');
?>
"><?php
echo lang('users');
?>
</a></h2>
<?php
}
示例2: 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">
示例3: 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()) {
?>
示例4: trace
<?php
trace(__FILE__, ':begin');
set_page_title(lang('move message'));
dashboard_tabbed_navigation('messages');
trace(__FILE__, ':crumbs');
project_crumbs(lang('move message'));
trace(__FILE__, ':build page');
?>
<form action="<?php
echo $message->getMoveUrl();
?>
" method="post">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div><?php
echo lang('about to move');
?>
<?php
echo lc(lang('message'));
?>
<b><?php
echo clean($message->getTitle());
?>
</b></div>
<div>
<?php
示例5: 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>
示例6: set_page_title
<?php
set_page_title(lang('forms'));
project_tabbed_navigation(PROJECT_TAB_FORMS);
project_crumbs(lang('forms'));
if (ProjectForm::canAdd(logged_user(), active_project())) {
add_page_action(lang('add form'), get_url('form', 'add'));
}
// if
if (isset($forms) && is_array($forms) && count($forms)) {
?>
<div id="projectForms">
<?php
foreach ($forms as $form) {
?>
<div class="block">
<div class="header"><?php
echo clean($form->getName());
?>
</div>
<div class="content">
<?php
if (trim($form->getDescription())) {
?>
<div class="description"><?php
echo do_textile($form->getDescription());
?>
</div>
<?php
}
// if
示例7: 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
示例8: set_page_title
<?php
set_page_title($milestone->isNew() ? lang('add milestone') : lang('edit milestone'));
project_tabbed_navigation('milestones');
project_crumbs(array(array(lang('milestones'), get_url('milestone')), array($milestone->isNew() ? lang('add milestone') : lang('edit milestone'))));
if ($milestone->isNew()) {
?>
<form action="<?php
echo get_url('milestone', 'add');
?>
" method="post">
<?php
} else {
?>
<form action="<?php
echo $milestone->getEditUrl();
?>
" method="post">
<?php
}
// if
?>
<?php
tpl_display(get_template_path('form_errors'));
?>
<div>
<?php
echo label_tag(lang('name'), 'milestoneFormName', true);
?>
示例9: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('add ticket'));
project_tabbed_navigation(PROJECT_TAB_TICKETS);
project_crumbs(array(array(lang('tickets'), get_url('tickets')), array(lang('add ticket'))));
add_stylesheet_to_page('project/tickets.css');
?>
<h2><?php
echo lang('ticket #', $ticket->getId());
?>
</h2>
<form action="<?php
echo get_url('tickets', 'add_ticket');
?>
" method="post" enctype="multipart/form-data">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div>
<?php
echo label_tag(lang('summary'), 'ticketFormSummary', true);
?>
<?php
echo text_field('ticket[summary]', array_var($ticket_data, 'summary'), array('id' => 'ticketFormSummary', 'class' => 'title'));
?>
</div>
示例10: set_page_title
<?php
set_page_title(lang('reorder tasks'));
project_tabbed_navigation(PROJECT_TAB_TASKS);
project_crumbs(array(array(lang('tasks'), get_url('task')), array($task_list->getName(), $task_list->getViewUrl()), array(lang('reorder tasks'))));
add_stylesheet_to_page('project/reorder_tasks.css');
?>
<div id="reorderTasks">
<form action="<?php
echo $task_list->getReorderTasksUrl($back_to_list);
?>
" method="post">
<table class="blank">
<tr>
<th><?php
echo lang('order');
?>
</th>
<th><?php
echo lang('task');
?>
</th>
</tr>
<?php
foreach ($tasks as $task) {
?>
<tr>
<td><?php
echo text_field('task_' . $task->getId(), $task->getOrder(), array('class' => 'short'));
?>
</td>
示例11: set_page_title
<?php
set_page_title(lang('projects logo edit'));
project_tabbed_navigation();
project_crumbs(lang('projects logo edit'));
$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());
?>
示例12: set_page_title
<?php
set_page_title($comment->isNew() ? lang('add comment') : lang('edit comment'));
project_tabbed_navigation(PROJECT_TAB_OVERVIEW);
project_crumbs(array($comment->isNew() ? lang('add comment') : lang('edit comment')));
// project_crumbs
if ($comment->isNew()) {
?>
<form action="<?php
echo Comment::getAddUrl($comment_form_object);
?>
" method="post">
<?php
} else {
?>
<form action="<?php
echo $comment->getEditUrl();
?>
" method="post">
<?php
}
// if
?>
<?php
tpl_display(get_template_path('form_errors'));
?>
<?php
if ($comment_form_object->columnExists('comments_enabled') && !$comment_form_object->getCommentsEnabled() && logged_user()->isAdministrator()) {
?>
示例13: trace
<?php
trace(__FILE__, ':begin');
set_page_title(lang('copy project'));
dashboard_tabbed_navigation();
trace(__FILE__, ':crumbs');
project_crumbs(lang('copy project'));
trace(__FILE__, ':build page');
?>
<form action="<?php
echo get_url('project', 'copy');
?>
" method="post">
<?php
tpl_display(get_template_path('form_errors'));
?>
<div>
<?php
echo label_tag(lang('projects copy source'), 'projectSource', true);
?>
<?php
echo select_project('project[source]', '', array_var($project_data, 'copy_source'), array('id' => 'projectFormSource'));
?>
</div>
<div>
<?php
echo label_tag(lang('projects shift dates'), 'projectFormShiftDates');
?>
示例14: lang
require_javascript('slimey/slimey.js');
require_javascript('slimey/functions.js');
require_javascript('slimey/stack.js');
require_javascript('slimey/editor.js');
require_javascript('slimey/navigation.js');
require_javascript('slimey/actions.js');
require_javascript('slimey/tools.js');
require_javascript('slimey/toolbar.js');
require_javascript('slimey/integration.js');
require_javascript('og/ImageChooser.js');
set_page_title($file->isNew() ? lang('new presentation') : lang('edit presentation'). ' - ' . $file->getFilename());
project_tabbed_navigation(PROJECT_TAB_FILES);
project_crumbs(array(
array(lang('files'), get_url('files')),
array($file->isNew() ? lang('add presentation') : lang('edit presentation'))
));
?>
<?php
if (!$file->isNew()) {
$url = str_replace("&", "&", get_url('files', 'save_presentation', array(
'id' => $file->getId())));
$filename = $file->getFilename();
$slimContent = escapeSLIM(remove_css_and_scripts($file->getFileContent()));
} else {
$url = str_replace("&", "&", get_url('files', 'save_presentation'));
$filename = '';
$slimContent = escapeSLIM('<div class="slide"><div style="font-size: 200%; font-weight: bold; font-family: sans-serif; position: absolute; left: 5%; top: 0%; width: 90%; height: 10%; text-align: center;">'.lang("new presentation").'</div></div>');
}
$id = gen_id();
示例15: set_page_title
<?php
set_page_title(lang('milestones'));
project_tabbed_navigation(PROJECT_TAB_MILESTONES);
project_crumbs(lang('milestones'));
if(ProjectMilestone::canAdd(logged_user(), active_context())) {
add_page_action(lang('add milestone'), get_url('milestone', 'add'), 'ico-milestone');
} // if
?>
<?php if($late_milestones || $today_milestones || $upcoming_milestones) { ?>
<div id="milestones">
<?php if(is_array($late_milestones) && count($late_milestones)) { ?>
<div id="lateMilestones">
<h2><?php echo lang('late milestones') ?></h2>
<?php
foreach($late_milestones as $milestone) {
$this->assign('milestone', $milestone);
$this->includeTemplate(get_template_path('view_milestone', 'milestone'));
} // foreach
?>
</div>
<?php } // if ?>
<?php if(is_array($today_milestones) && count($today_milestones)) { ?>
<div id="todayMilestones">
<h2><?php echo lang('today milestones') ?></h2>
<?php
foreach($today_milestones as $milestone) {
$this->assign('milestone', $milestone);
$this->includeTemplate(get_template_path('view_milestone', 'milestone'));