set_page_title(lang('messages')); project_tabbed_navigation('messages'); project_crumbs(array(array(lang('messages'), get_url('message', 'index')), array(lang('index')))); if (ProjectMessage::canAdd(logged_user(), active_project())) { add_page_action(lang('add message'), get_url('message', 'add')); } // if $view_image = $view_type == "list" ? "list_on.png" : "list_off.png"; add_view_option(lang('list'), get_image_url("icons/{$view_image}"), get_url('message', 'index', array('view' => 'list', 'page' => $messages_pagination->getCurrentPage()))); $view_image = $view_type == "card" ? "excerpt_on.png" : "excerpt_off.png"; add_view_option(lang('card'), get_image_url("icons/{$view_image}"), get_url('message', 'index', array('view' => 'card', 'page' => $messages_pagination->getCurrentPage()))); $period_image = $period_type == "fresh" ? "till7_on.png" : "till7_off.png"; add_view_option(lang('period'), get_image_url("icons/{$period_image}"), get_url('message', 'index', array('period' => 'fresh', 'page' => $messages_pagination->getCurrentPage()))); $period_image = $period_type == "archive" ? "after7_on.png" : "after7_off.png"; add_view_option(lang('period'), get_image_url("icons/{$period_image}"), get_url('message', 'index', array('period' => 'archive', 'page' => $messages_pagination->getCurrentPage()))); if (isset($messages) && is_array($messages) && count($messages)) { ?> <div id="messages"> <div id="messagesPaginationTop"><?php echo advanced_pagination($messages_pagination, get_url('message', 'index', array('page' => '#PAGE#'))); ?> </div> <?php if ($view_type == 'list') { ?> <table id="short_messages" class="table table-striped"> <tr class="message short"><th></th><th><?php echo lang('date'); ?> </th><th><?php
<?php set_page_title(lang('milestones')); project_tabbed_navigation('milestones'); project_crumbs(array(array(lang('milestones'), get_url('milestone', 'index')), array(lang('view calendar')))); if (ProjectMilestone::canAdd(logged_user(), active_project())) { add_page_action(lang('add milestone'), get_url('milestone', 'add')); } // if add_stylesheet_to_page('project/calendar.css'); $view_image = $view_type == "list" ? "icons/list_on.png" : "icons/list_off.png"; add_view_option(lang('list'), get_image_url($view_image), get_url('milestone', 'index', array("view" => "list"))); $view_image = $view_type == "card" ? "icons/excerpt_on.png" : "icons/excerpt_off.png"; add_view_option(lang('card'), get_image_url($view_image), get_url('milestone', 'index', array("view" => "details"))); add_view_option(lang('calendar'), get_image_url("icons/calendar_off.png"), get_url('milestone', 'calendar')); ?> <div class="calendar"> <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?> </h2> <?php $calendar = array(); if (is_array($milestones) && count($milestones)) { foreach ($milestones as $milestone) { $due = $milestone->getDueDate(); if ($due->getYear() != $year or $due->getMonth() != $month) { continue;