forked from AndersonGroupPHInternal/HROnline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examresultserverside.php
59 lines (55 loc) · 1.98 KB
/
examresultserverside.php
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
<html>
<head>
<script type="text/javascript" src="js/angular.js"></script>
</head>
<script type="text/javascript">
var list = [
{ refcode: "XYZ123ASD", position: "Senior Intern", fullname: "Raiven Kenn Lopez",datetaken: "01/10/16" ,examtaken:[{examtype: "Written", total: 100, score: 69},{examtype: "Logic", total: 101, score: 69}], },
];
var llength = list.length;
for(var x = 0; x < llength ; x++){
var referenceCode= list[x].refcode;
var position= list[x].position;
var fullname= list[x].fullname;
var datetaken= list[x].datetaken;
var examtakenlength= list[x].examtaken.length;
for(var y= 0; y < examtakenlength; y++){
var examtype = list[x].examtaken[y].examtype;
var examtotal = list[x].examtaken[y].total;
var scoretotal = list[x].examtaken[y].score;
}
$.ajax ({
type: "POST",
url: "address.php",
data: { ivalid : IpAddress },
success: function( result ) {
}
});
}
</script>
<body>
<?php
$referenceCode = "<script type='text/javascript'>document.write(referenceCode);</script>";
$position = "<script type='text/javascript'>document.write(position);</script>";
$fullname = "<script type='text/javascript'>document.write(fullname);</script>";
$datetaken = "<script type='text/javascript'>document.write(datetaken);</script>";
$examtype = "<script type='text/javascript'>document.write(examtype);</script>";
$examtotal = "<script type='text/javascript'>document.write(examtotal);</script>";
$scoretotal = "<script type='text/javascript'>document.write(scoretotal);</script>";
$examtakenlength = "<script type='text/javascript'>document.write(examtakenlength);</script>";
$examcount = $examtakenlength;
$ex = intval($examcount);
echo $ex;
for($x = 0; $x < $examcount; $x++){
echo "asdga";
}
// echo $referenceCode;
// echo $position;
// echo $fullname;
// echo $datetaken;
// echo $examtype;
// echo $examtotal;
// echo $scoretotal;
?>
</body>
</html>