|
@@ -125,14 +125,37 @@ $pass_image = $test->pass ? "pass.png" : "fail.png";
|
|
|
<strong>ID Request</strong>
|
|
<strong>ID Request</strong>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+
|
|
|
|
|
+ $pass_colour = $test->pass ? "green" : "red";
|
|
|
|
|
+
|
|
|
|
|
+ switch($test->challenge_stage) {
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ $challenge_colour = "green";
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ case 3:
|
|
|
|
|
+ $challenge_colour = "orange";
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 4:
|
|
|
|
|
+ case 5:
|
|
|
|
|
+ $challenge_colour = "red";
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
+
|
|
|
<div class="bl">
|
|
<div class="bl">
|
|
|
<div class="field">Result:</div>
|
|
<div class="field">Result:</div>
|
|
|
- <div class="value"><?=htmlspecialchars($test->getPassText())?></div>
|
|
|
|
|
|
|
+ <div class="value" style="color: <?=$pass_colour?>">
|
|
|
|
|
+ <strong><?=htmlspecialchars($test->getPassText())?></strong>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
<div>
|
|
|
<div class="field">ID Stage:</div>
|
|
<div class="field">ID Stage:</div>
|
|
|
- <div class="value"><?=htmlspecialchars($test->challenge_stage . " - " . $test->getChallengeStageText())?></div>
|
|
|
|
|
|
|
+ <div class="value" style="color: <?=$challenge_colour?>">
|
|
|
|
|
+ <strong><?=htmlspecialchars($test->challenge_stage . " - " . $test->getChallengeStageText())?></strong>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<br />
|
|
<br />
|