Esempio n. 1
0
foreach ($label as $lk => $lv) {
    $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> &nbsp; <span class="smallText pointer blue" id="link-stahis"' . ' title="Click to Show Status History">&raquo; view status history &raquo;</span>' . '<span class="smallText pointer blue stahis" title="Hide Status History"' . ' style="display:none;">&laquo; hide status history &laquo;</span>' . '</td></tr>' . '<tr class="stahis" style="display:none;"><td>&nbsp;</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>&sdot;</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>&nbsp;</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();