Exemple #1
0
                         $s .= "  {$link}";
                         $s .= "</p>";
                     }
                 }
             }
             // Covering notes..
             if ($assignment_covernotes != "") {
                 $s .= "<p><b>Specific Notes:</b><br>";
                 $s .= $assignment_covernotes . "</p>";
             }
             // WRMS access to step work request..
             $s .= "<p>The Work Request associated with this step is:<br>";
             $href = $URL_PREFIX . "/wr.php?request_id={$qastep->request_id}";
             $wrlink = "<a href=\"{$href}\">{$href}</a>";
             $s .= "&nbsp;&nbsp;" . $wrlink . "</p>";
             $project->QAMSNotifyEmail("QAMS Assignment", $s, $subject, $recipients);
             // Other emails to let everyone know what's going on..
             $recipients = $project->GetRecipients();
             if (isset($recipients[$assignee_email])) {
                 unset($recipients[$assignee_email]);
             }
             $s = "<p>{$assignee_fullname} has been assigned to the Quality Assurance Step ";
             $s .= "'{$qastep->qa_step_desc}' on this project. The summary link for the step ";
             $s .= "itself is provided here:<br>";
             $href = $URL_PREFIX . "/qams-step-detail.php?project_id={$qastep->project_id}&step_id={$qastep->qa_step_id}";
             $stlink = "<a href=\"{$href}\">{$href}</a>";
             $s .= "&nbsp;&nbsp;" . $stlink . "</p>";
             $project->QAMSNotifyEmail("QAMS Activity Notice", $s, $subject, $recipients);
         }
     }
 }
         // Covering notes..
         if ($approval_covernotes != "") {
             $s .= "<p><b>Specific Notes:</b><br>";
             $s .= $approval_covernotes . "</p>";
         }
         // Approval link..
         $s .= "<p><b>STEP 2: Approval</b> <br>";
         $s .= "To post an approval decision on this step, please use the following link to access QAMS:<br>";
         $href = $URL_PREFIX . "/qams-step-approve.php";
         $href .= "?project_id={$project->request_id}";
         $href .= "&step_id={$qastep->qa_step_id}";
         $href .= "&ap_type_id={$approval_type}";
         $applink = "<a href=\"{$href}\">{$href}</a>";
         $s .= "&nbsp;&nbsp;" . $applink . "</p>";
         $s .= "<p>Thank you for participating in Catalyst Quality Assurance.</p>";
         $project->QAMSNotifyEmail("Request for QA approval", $s, $subject, $recipients);
         // Other emails to let everyone know what's going on..
         $recipients = $project->GetRecipients();
         if (isset($recipients[$approver_email])) {
             unset($recipients[$approver_email]);
         }
         $s = "<p>A request has been sent to {$approver_fullname} to review and ";
         $s .= "approve the Quality Assurance Step '{$qastep->qa_step_desc}' on this project. ";
         $s .= "The summary link for this step is provided here:<br>";
         $href = $URL_PREFIX . "/qams-step-detail.php?project_id={$qastep->project_id}&step_id={$qastep->qa_step_id}";
         $stlink = "<a href=\"{$href}\">{$href}</a>";
         $s .= "&nbsp;&nbsp;" . $stlink . "</p>";
         $project->QAMSNotifyEmail("QAMS Activity Notice", $s, $subject, $recipients);
     }
     // got approver email
 }
Exemple #3
0
    case "reapprove":
        if (isset($project->qa_process->qa_steps[$step_id])) {
            $qastep = $project->qa_process->qa_steps[$step_id];
            $qastep->reapprove();
            if ($qastep->overall_approval_status() == "") {
                // Let everyone know what's going on..
                $href = $URL_PREFIX . "/qams-step-detail.php";
                $href .= "?project_id={$project->request_id}";
                $href .= "&step_id={$qastep->qa_step_id}";
                $link = "<a href=\"{$href}\">{$href}</a>";
                $subject = "QAMS Re-Approval: {$qastep->qa_step_desc} [{$project->system_id}/{$session->username}]";
                $s = "<p>The QA Step '{$qastep->qa_step_desc}' has now been 'Unapproved' so that it can ";
                $s .= "go through the approval process once again.</p>";
                $s .= "<p>The summary link for this step is provided here:<br>";
                $s .= "&nbsp;&nbsp;" . $link . "</p>";
                $project->QAMSNotifyEmail("QAMS Activity Notice", $s, $subject);
            }
        }
        // drop thru to view QA plan..
    // drop thru to view QA plan..
    case "qaplan":
        $content = $project->RenderQAPlan();
        break;
    default:
        $content = $project->project_details($edit);
}
// switch
// -----------------------------------------------------------------------------------------------
// DELIVER..
echo $content;
include "page-footer.php";
Exemple #4
0
         $s .= "</p>";
         if ($qastep->approval_overridden($ap_type_id)) {
             $s .= "<p>NB: the approval was overridden. " . $qastep->approvals[$ap_type_id]->assigned_fullname;
             $s .= " was originally assigned to approve this.</p>";
         }
         // Summary link for step..
         $s .= "<p>The summary link for this step is provided here:<br>";
         $href = $URL_PREFIX . "/qams-step-detail.php?project_id={$qastep->project_id}&step_id={$qastep->qa_step_id}";
         $stlink = "<a href=\"{$href}\">{$href}</a>";
         $s .= "&nbsp;&nbsp;" . $stlink . "</p>";
         // Covering notes..
         if ($approval_covernotes != "") {
             $s .= "<p><b>The approver also noted:</b><br>";
             $s .= $approval_covernotes . "</p>";
         }
         $project->QAMSNotifyEmail("Approval Post Advice", $s, $subject);
         // Now re-direct them where they can see the project summary..
         header("Location: /qams-project.php?request_id={$project->request_id}");
         exit;
     }
 }
 // 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}");