<?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 
Exemplo n.º 2
0
<?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');
    ?>
Exemplo n.º 3
0
<?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">
Exemplo n.º 4
0
<?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 
Exemplo n.º 5
0
<?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'));
Exemplo n.º 6
0
<?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>
Exemplo n.º 7
0
<?php

trace(__FILE__, ':begin');
set_page_title(lang('move task list'));
dashboard_tabbed_navigation('tasks');
trace(__FILE__, ':crumbs');
project_crumbs(lang('move task list'));
trace(__FILE__, ':build page');
?>
<form action="<?php 
echo $task_list->getMoveUrl();
?>
" method="post">

<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div><?php 
echo lang('about to move');
?>
 <?php 
echo lc(lang('task list'));
?>
 <b><?php 
echo clean($task_list->getName());
?>
</b></div>

  <div>
    <?php