} if ($team_id == 1) { $kpi_table = array(); $row = array(); $row['id'] = 'No'; $row['s3 date'] = 'MIMS Status'; $row['desc'] = 'MIMS Name'; $row['s4 date'] = 'PIC'; $kpi_table[] = $row; $m_internal_counter = 0; foreach ($mims_internal[$team_id] as $status => $mint) { foreach ($mint as $mid => $m) { $m_internal_counter++; $row = array(); $row['id'] = $m_internal_counter; $row['s3 date'] = improvement::getImprovementStatus($status); $row['desc'] = '<a href="?open=improvement&id=' . $mid . '&hidemenu=true" class="view_webpage">' . $m['name'] . '</a>'; $row['s4 date'] = $m['pic']; $kpi_table[] = $row; } } //echo "<pre>";var_dump($mims_internal[1]); $result .= '<h3 style="margin-top:20px;">Internal MIMS</h3>'; $result .= tep_draw_table('', $kpi_table); } $result .= '</div>'; //#kpi-mims } elseif ($_GET['week-sum'] == 'MWALL') { $wall = new wall('0'); $result .= '<div style="float:left;padding:20px 0;">'; $result .= $wall->draw(5, 'width:650px;');
$content .= '<tr><td width="150"' . ($is_createnew ? ' class="' . ($lk == 7 ? 'notice' : 'red') . '"' : '') . '>' . $lv . '</td><td>' . $field[$lk] . '</td></tr>'; } if (!$is_createnew) { //STATUS HISTORY $status_label = array(); $status_label['1'] = 'Added to Idea'; $status_label['2'] = 'Moved to Request'; $status_label['3'] = 'Moved to In Progress'; $status_label['4'] = 'Moved to Testings'; $status_label['5'] = 'Moved to Checkings'; $status_label['6'] = 'Set as Done'; $status_label['7'] = 'Moved to Pullrack'; $status_label['8'] = 'Set as Released'; $status_label['9'] = 'Closed'; $statuses = $improvement->retrieveStatusHistory(); $content .= '<tr><td>MIMS Status</td><td>' . '<span>' . improvement::getImprovementStatus($improvement->status) . '</span> <span class="smallText pointer blue" id="link-stahis"' . ' title="Click to Show Status History">» view status history »</span>' . '<span class="smallText pointer blue stahis" title="Hide Status History"' . ' style="display:none;">« hide status history «</span>' . '</td></tr>' . '<tr class="stahis" style="display:none;"><td> </td><td>' . '<table class="nopad" border="0" cellpadding="0"' . ' cellspacing="0">'; foreach ($statuses as $key => $s) { $label = $key > 0 && $s['status'] == '1' ? 'Moved Back to Idea' : $status_label[$s['status']]; $content .= '<tr><td>⋅</td><td>' . $label . '</td><td>on ' . date('d. M Y', $s['status_time']) . '</td><td>by ' . $s['status_by'] . '</td></tr>'; } $content .= '</table></td></tr>'; } $content .= '<tr><td> </td><td>' . $action_btn . '</td></tr>'; $content .= '</table></div>'; if (!$is_createnew) { //LIKES $content .= $improvement->likes->drawLikes('margin-top:20px;width:655px;'); //ADDITIONAL DETAILS TO BE MANAGED PIC $content .= '<div id="picdata" style="padding-top:40px;">' . '<div style="border-top:4px dotted #ccc;padding-top:20px;">'; $label = array(); $field = array();
} else { $data[] = new pie_value(0, $text." (0)"); } } */ //BAR CHART DATA $data = array(); $dataraw = array(); while ($row = tep_db_fetch_array($r)) { $dataraw[$row['status']] = $row['status_total']; } $statuslist = array('1', '2', '7', '3', '4', '5', '6'); $statuscolor = array('1' => '#bababa', '2' => '#ababab', '7' => '#838383', '3' => '#900000', '4' => '#ffd200', '5' => '#0066CC', '6' => '#066303'); $statustext = array(); foreach ($statuslist as $status) { $text = ($status == '1' ? 'New ' : 'Moved to ') . improvement::getImprovementStatus($status); $statustext[$status] = $text; $bar = new bar_value(intval($dataraw[$status])); $bar->set_colour($statuscolor[$status]); $data[$status] = $bar; } $title = new title('MIMS ' . $time_lookback_date . '-' . $time_lookuntil_date . ' (' . array_sum($dataraw) . ')'); $title->set_style("{font-size:13px;font-weight:bold;margin:5px 0 20px 0;}"); $chart = new open_flash_chart(); $chart->set_title($title); /* // PIE CHART $pie = new pie(); $pie->set_alpha(0.6); $pie->set_start_angle(-90); $pie->add_animation( new pie_fade() );
$filter_teamcat = !isset($_SESSION['vars']['filter_deptcat']) ? '0' : $_SESSION['vars']['filter_deptcat']; $filter_pic = !isset($_SESSION['vars']['filter_pic']) ? '0' : $_SESSION['vars']['filter_pic']; use_class('improvement'); $textNoDatas = "<h3 class='red'>No Improvements found in database</h3>"; if ($filter_team > '0') { //Status when using Team Filter (DEFAULT) if ($filter_team == '1') { //IT Development Team $tabs = improvement::getImprovementStatus(array('1', '2', '7', '3', '4', '6', '8')); } else { //Other Teams $tabs = improvement::getImprovementStatus(array('1', '2', '7', '3', '4', '5')); } } else { //Filter by owner (show mims for mixed Teams $tabs = improvement::getImprovementStatus(array('1', '2', '7', '3', '4', '5', '6', '8')); } function getDesCol($status = '') { global $filter_type; $descol = array(); //td classname => colummn header text //$descol['id'] = 'ID'; $descol['id'] = 'Sort'; if ($status == '1' || $status == '5') { $descol['date'] = $status == '5' ? 'Check Date' : 'Create Date'; } if ($filter_type == '1') { $descol['login'] = '******'; } $descol['w550'] = 'Details';