} // Main content.. $s = ""; $ef = new EntryForm($RESPONSE->requested, $project, $have_admin ? 1 : 0); $ef->NoHelp(); if ($ef->editmode) { $s .= $ef->StartForm(); $s .= $ef->HiddenField("qa_action", "{$qa_action}"); if ($project->request_id > 0) { $s .= $ef->HiddenField("project_id", $project->request_id); $s .= $ef->HiddenField("step_id", "{$qastep->qa_step_id}"); } } // Start main table.. $s .= "<table width=\"100%\" class=\"data\" cellspacing=\"0\" cellpadding=\"0\">\n"; $s .= $ef->BreakLine("Quality Assurance Step"); $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; if ($this->project_manager_fullname != "") { $href = "/user.php?user_no={$this->project_manager}"; $link = "<a href=\"{$href}\">" . $this->project_manager_fullname . "</a>"; $s .= "<tr><td colspan=\"2\"><b>Project Manager:</b> " . $link . "</td></tr>"; } if ($this->qa_mentor_fullname != "") { $href = "/user.php?user_no={$this->qa_mentor}"; $link = "<a href=\"{$href}\">" . $this->qa_mentor_fullname . "</a>"; $s .= "<tr><td colspan=\"2\"><b>QA Mentor:</b> " . $link . "</td></tr>"; } $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "<tr><td colspan=\"2\">" . ContentForm($project, $qastep, $view_history) . "</td></tr>"; $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "</table>\n";
// got approver email } } // Main content.. $s = ""; $ef = new EntryForm($REQUEST_URI, $project, $have_admin ? 1 : 0); $ef->NoHelp(); $s .= $ef->StartForm(); $s .= $ef->HiddenField("qa_action", "{$qa_action}"); if ($project->request_id > 0) { $s .= $ef->HiddenField("project_id", $project->request_id); $s .= $ef->HiddenField("step_id", "{$qastep->qa_step_id}"); } // Start main table.. $s .= "<table width=\"100%\" class=\"data\" cellspacing=\"0\" cellpadding=\"0\">\n"; $s .= $ef->BreakLine("Quality Assurance Approval Request"); $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "<tr><td colspan=\"2\">" . ContentForm($project, $qastep) . "</td></tr>"; $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "</table>\n"; $s .= $ef->SubmitButton("submit", "Request Approval"); $s .= $ef->EndForm(); } // isset qastep // ----------------------------------------------------------------------------- // ASSEMBLE CONTENT if ($s == "") { $content = "<p>Nothing known about that QA step.</p>"; } else { $content = $s; }
/** * Return project QA Plan. If editable return as form fields with * the form tags, encapsulated in a nice table with all of the fields we * need to edit a project's QA plan. * @param integer $edit Flag, if 1 then editable fields in a form */ function RenderQAPlan($edit = 1) { global $qa_action; $s = ""; $ef = new EntryForm($REQUEST_URI, $this, $edit); $ef->NoHelp(); if ($ef->editmode) { $s .= $ef->StartForm(); if ($this->request_id > 0) { $s .= $ef->HiddenField("request_id", $this->request_id); $s .= $ef->HiddenField("post_action", "config_update"); $s .= $ef->HiddenField("qa_action", "qaplan"); $s .= $ef->HiddenField("edit", "1"); } } // Just the things we want created/updated in QAMS.. $s .= "<table width=\"100%\" class=\"data\" cellspacing=\"0\" cellpadding=\"0\">\n"; if (isset($this->qa_process)) { $s .= $ef->BreakLine("Quality Assurance Plan"); $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>\n"; // Project info.. $s .= "<tr><td colspan=\"2\"><b>Project:</b> " . $this->brief . "</td></tr>\n"; if ($this->project_manager_fullname != "") { $pmlink = "<a href=\"/user.php?user_no={$this->project_manager}\">"; $pmlink .= $this->project_manager_fullname; $pmlink .= "</a>"; $s .= "<tr><td colspan=\"2\"><b>Project Manager:</b> " . $pmlink . "</td></tr>"; } if ($this->qa_mentor_fullname != "") { $qalink = "<a href=\"/user.php?user_no={$this->qa_mentor}\">"; $qalink .= $this->qa_mentor_fullname; $qalink .= "</a>"; $s .= "<tr><td colspan=\"2\"><b>QA Mentor:</b> " . $qalink . "</td></tr>"; } $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "<tr><td colspan=\"2\">" . $this->qa_process->QAPlan() . "</td></tr>"; } $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "</table>\n"; $qaplan_status = $this->qa_process->overall_approval_status(STEP_ID_QAPLAN); if ($ef->editmode && $qaplan_status != "y" && $qaplan_status != "p") { $s .= $ef->SubmitButton("submit", "Update"); $s .= $ef->EndForm(); } return $s; }
} } // Main content.. $s = ""; $ef = new EntryForm($REQUEST_URI, $project, $have_admin ? 1 : 0); $ef->NoHelp(); $s .= $ef->StartForm(); $s .= $ef->HiddenField("qa_action", "{$qa_action}"); if ($project->request_id > 0) { $s .= $ef->HiddenField("project_id", $project->request_id); $s .= $ef->HiddenField("step_id", "{$qastep->qa_step_id}"); $s .= $ef->HiddenField("ap_type_id", "{$ap_type_id}"); } // Start main table.. $s .= "<table width=\"100%\" class=\"data\" cellspacing=\"0\" cellpadding=\"0\">\n"; $s .= $ef->BreakLine("Quality Assurance Approval"); $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "<tr><td colspan=\"2\">" . ContentForm($project, $qastep, $ap_type_id) . "</td></tr>"; $s .= "<tr><td height=\"15\" colspan=\"2\"> </td></tr>"; $s .= "</table>\n"; $s .= $ef->SubmitButton("submit", "Post Decision"); $s .= $ef->EndForm(); } // isset qastep // ----------------------------------------------------------------------------- // ASSEMBLE CONTENT if ($s == "") { $content = "<p>Nothing known about that QA step.</p>"; } else { $content = $s; }