本文整理汇总了PHP中dashboard_crumbs函数的典型用法代码示例。如果您正苦于以下问题:PHP dashboard_crumbs函数的具体用法?PHP dashboard_crumbs怎么用?PHP dashboard_crumbs使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dashboard_crumbs函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('search results for', $search_term));
dashboard_tabbed_navigation(DASHBOARD_TAB_CONTACTS);
dashboard_crumbs(array(array(lang('contacts'), get_url('dashboard', 'contacts')), lang('search results')));
if (logged_user()->isAdministrator(owner_company())) {
add_page_action(lang('add company'), get_url('company', 'add_client'));
add_page_action(lang('add contact'), get_url('contacts', 'add'));
}
add_stylesheet_to_page('dashboard/contact_list.css');
if (is_array($contacts) && count($contacts)) {
?>
<div id="contactsList">
<div id="contactsPaginationTop"><?php
echo advanced_pagination($contacts_pagination, get_url('dashboard', 'search_contacts', array('search_for' => $search_term, 'page' => '#PAGE#')));
?>
</div>
<?php
$counter = 0;
if (is_array($contacts)) {
foreach ($contacts as $contact) {
$counter++;
$company = $contact->getCompany();
?>
<div class="listedContact <?php
echo $counter % 2 ? 'even' : 'odd';
?>
">
<div class="contactAvatar"><img src="<?php
示例2: 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');
?>
示例3: 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'));
示例4: 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">
示例5: set_page_title
<?php
set_page_title(lang('my projects'));
dashboard_tabbed_navigation(DASHBOARD_TAB_MY_PROJECTS);
dashboard_crumbs(lang('my projects'));
add_stylesheet_to_page('dashboard/my_projects.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('order by name'), get_url('dashboard', 'my_projects_by_name'));
add_page_action(lang('order by priority'), get_url('dashboard', 'my_projects_by_priority'));
add_page_action(lang('order by milestone'), get_url('dashboard', 'my_projects_by_milestone'));
if (isset($active_projects) && is_array($active_projects) && count($active_projects)) {
$show_icon = config_option('files_show_icons', '1') == '1';
foreach ($active_projects as $project) {
?>
<div class="expand-container-all block">
<div class="header">
<?php
if ($show_icon) {
if ($project->hasLogo()) {
?>
<div class="projectLogo"><img src="<?php
echo $project->getLogoUrl();
?>
" alt="<?php
echo $project->getName();
?>
" /></div>
示例6: trace
<?php
trace(__FILE__, ':begin');
// Set page title and set crumbs to index
set_page_title(lang('dashboard'));
dashboard_tabbed_navigation();
dashboard_crumbs(lang('overview'));
if (logged_user()->canManageProjects()) {
//if (Project::canAdd(logged_user())) {
add_page_action(lang('add project'), get_url('project', 'add'));
add_page_action(lang('copy project'), get_url('project', 'copy'));
}
// if
add_stylesheet_to_page('project/project_log.css');
$lc_in = lc(lang('in'));
if (isset($today_milestones) && is_array($today_milestones) && count($today_milestones) || isset($late_milestones) && is_array($late_milestones) && count($late_milestones)) {
?>
<div id="lateOrTodayMilestones" class="important">
<?php
if (isset($late_milestones) && is_array($late_milestones) && count($late_milestones)) {
?>
<div class="header"><?php
echo lang('late milestones');
?>
</div>
<ul>
<?php
foreach ($late_milestones as $milestone) {
if ($milestone->getAssignedTo() instanceof ApplicationDataObject) {
?>
<li><?php
示例7: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('user card of', $user->getDisplayName()));
dashboard_tabbed_navigation();
dashboard_crumbs($user->getDisplayName());
if ($user->canUpdateProfile(logged_user())) {
add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl(), lang('update avatar') => $user->getUpdateAvatarUrl()));
}
// if
if ($user->canUpdatePermissions(logged_user())) {
add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl()));
}
// if
$this->includeTemplate(get_template_path('user_card', 'user'));
示例8: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title($contact->getDisplayName());
dashboard_tabbed_navigation(DASHBOARD_TAB_CONTACTS);
if (logged_user()->isMemberOfOwnerCompany()) {
dashboard_crumbs(array(array(lang('contacts'), get_url('dashboard', 'contacts')), array($contact->getCompany()->getName(), $contact->getCompany()->getCardUrl()), array($contact->getDisplayName())));
} else {
dashboard_crumbs(array(array($contact->getCompany()->getName(), $contact->getCompany()->getCardUrl()), array($contact->getDisplayName())));
}
// if
if ($contact->canUpdateProfile(logged_user())) {
add_page_action(array(lang('update profile') => $contact->getEditUrl()));
}
// if
if (logged_user()->isAdministrator() && logged_user()->getId() != $contact->getUserId()) {
if ($contact->hasUserAccount()) {
add_page_action(array(lang('edit user account') => $contact->getEditUserAccountUrl()));
add_page_action(array(lang('delete user account') => $contact->getDeleteUserAccountUrl()));
} else {
add_page_action(array(lang('add user account') => $contact->getAddUserAccountUrl()));
}
} elseif (logged_user()->getContact()->getId() == $contact->getId()) {
add_page_action(array(lang('edit user account') => $contact->getEditUserAccountUrl()));
}
// if
add_stylesheet_to_page('admin/contact_list.css');
$this->includeTemplate(get_template_path('contact_card', 'contacts'));
示例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();
if (logged_user()->isMemberOfOwnerCompany()) {
dashboard_crumbs(array(array(lang('contacts'), get_url('dashboard', 'contacts')), array($company->getName())));
} else {
dashboard_crumbs(array(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 (Contact::canAdd(logged_user(), $company)) {
add_page_action(lang('add contact'), $company->getAddContactUrl());
}
// if
add_stylesheet_to_page('dashboard/company_list.css');
$this->includeTemplate(get_template_path('company_card', 'company'));
示例10: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('my tickets'));
dashboard_tabbed_navigation(DASHBOARD_TAB_MY_TICKETS);
dashboard_crumbs(lang('my tickets'));
add_stylesheet_to_page('project/tickets.css');
// If user have any assigned task or milestone this variable will be changed to TRUE
// else it will remain false
$has_assigned_tickets = false;
if (isset($active_projects) && is_array($active_projects) && count($active_projects)) {
?>
<div id="tickets">
<?php
foreach ($active_projects as $active_project) {
$tickets = $active_project->getUsersTickets(logged_user());
$project_url = $active_project->getOverviewUrl();
if (is_array($tickets) && count($tickets)) {
$has_assigned_tickets = true;
?>
<div class="block">
<div class="header"><h2><a href="<?php
echo $project_url;
?>
"><?php
echo clean($active_project->getName());
?>
</a></h2></div>
<div class="content">
<p><a href="<?php
echo $active_project->getTicketsUrl();
示例11: set_page_title
<?php
// Set page title and set crumbs to index
set_page_title(lang('contacts'));
dashboard_tabbed_navigation(DASHBOARD_TAB_CONTACTS);
dashboard_crumbs(lang('contacts'));
if (logged_user()->isAdministrator(owner_company())) {
add_page_action(lang('add company'), get_url('company', 'add_client'));
add_page_action(lang('add contact'), get_url('contacts', 'add'));
}
add_stylesheet_to_page('admin/contact_list.css');
?>
<div id="viewToggle">
<a href="<?php
echo get_url('dashboard', 'contacts', array('view' => 'list', 'page' => $contacts_pagination->getCurrentPage()));
?>
"><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');
?>
" alt="<?php
echo lang('list view');
?>
"/></a>
<a href="<?php