Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate_coding.php
More file actions
Latest commit
63 lines (56 loc) · 1.4 KB
/
Copy pathvalidate_coding.php
File metadata and controls
63 lines (56 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
include_once("funcs.php");
session_start();
$coderName = $_SESSION['coder_name'];
$coderID = $_SESSION['coder_id'];
layout_header("Validate Codings");
if(is_loggedin()){
layout_menu();
if(is_admin($coderID)) {
$stage = $_GET['stage'];
$vars = get_validation_variables($stage);
?>
<br />
<span class='Qsub'>Validate Coding For Stage: <?echo$stage; ?></span><br /><br />
<strong>available variables/values</strong><br />
<table>
<?
foreach($varsas$v) {
echo"<tr><td>";
foreach($vas$k=>$i) {
if($k != 0) {
echo$i."<br />";
}
}
echo"</td><td>";
$vals = get_item_values($v[0],$stage);
foreach($valsas$val){
echo$val['value']." : ";
echo$val['desc']."<br />";
}
echo"</td></tr>";
}
?>
</table>
<br />
<form action="admin_action.php" method="GET">
<input type="hidden" name="action" value="validate_coding" />
<input type="hidden" name="stage" value="<?echo$stage; ?>" />
<strong>validation scheme</strong><br />
<textarea rows="10" cols="50" name="validation_scheme" id="validation_scheme"></textarea>
<br />
write/paste validation code (in psudo-PHP)<br />
<br />
<input type="submit" value="Validate" />
</form>
<?
}
else {
echo"<br><b>You're not an admin! Don't try to trick me! I'm on to you!</b>";
}
}
else {
echo"<br><b>Could not find coder Id. Try logging in again.</b>";
echo"<script> self.location='login.php'; </script>";
}
?>