$status_label['6'] = 'Moved to Graphic'; $status_label['7'] = 'Moved to Details'; $status_label['8'] = 'Moved to Finalize'; $status_label['9'] = 'Finalized'; $status_label['10'] = 'Moved to New Elements (NE)'; $status_label['10-0'] = 'Moved to NE Sourcing'; $status_label['10-1'] = 'Moved to NE Create'; $status_label['10-2'] = 'Moved to NE Wax'; $status_label['10-3'] = 'Moved to NE Master'; $status_label['10-4'] = 'Moved to NE Rubber'; $status_label['10-5'] = 'Moved to NE Casting'; $status_label['10-6'] = 'Moved to NE Photo'; $status_label['10-7'] = 'Moved to NE Finalize'; $status_label['11'] = 'Moved to Pull Rack'; $status_label['12'] = 'Moved to Product QC'; $statuses = $design->retrieveStatusHistory(); $content .= '<div style="margin-top:20px;" class="pointer blue" id="btn-show-status-history" title="show Status History"><h3>View Status History »</h3></div>'; $content .= '<div style="margin-top:20px;display:none;">'; $content .= '<h3 id="area-status-history" class="pointer" title="hide Status History">Status History</h3>'; $content .= '<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 H:i:s', $s['status_time']) . '</td><td>by ' . $s['status_by'] . '</td></tr>'; } $content .= '</table>'; $content .= '</div>'; $content .= '</div>'; //RIGHT Part close //FOLLOWERS $content .= $design->followers->drawFollowersWithContainer('Design Followers'); // $button_upload = '<input type=\'button\' class=\'btnupload\' value=\'New\' />';