-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautoverify.php
executable file
·86 lines (66 loc) · 1.74 KB
/
autoverify.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
session_start();
echo '<html>';
echo '<head>';
echo '</head>';
echo '<body>';
//echo '<pre>';
//print_r($GLOBALS);
//echo '</pre>';
include 'common.php';
if(!login_varify())
{
exit();
}
main_menu();
if(isset($_POST['submit']) && isset($_POST['sample_id']))
{
if($_POST['submit']=='next')
{
$sample_id=$_POST['sample_id']+1;
}
if($_POST['submit']=='prev')
{
$sample_id=$_POST['sample_id']-1;
}
if($_POST['submit']=='OK' || $_POST['submit']=='refresh')
{
$sample_id=$_POST['sample_id'];
}
}
else
{
$sample_id=1;
}
echo '<form method=post>';
echo '<table bgcolor=lightpink>';
echo '<tr><th colspan=10>Autoverification</th><th>press refresh button once before proceeding to next sample</th></tr>';
echo '<tr><input type=hidden name=sample_id value=\''.$sample_id.'\'>';
echo '<td><input type=submit value=prev name=submit >';
echo '<input type=submit value=next name=submit >';
echo '<input type=submit value=refresh name=submit ></td></tr>';
echo '<tr><td><input type=text name=sample_id value=\''.$sample_id.'\'></td>';
echo '<td><input type=submit value=OK name=submit ></td></tr>';
echo '</form>';
echo '</table>';
echo '<table>
<tr>
<td valign=top>';
echo '<table>
<tr><td>';
autoverify($sample_id,'autoverify_action.php','no');
autoverify($sample_id,'autoverify_action.php','yes');
echo '</td></tr>';
echo '<tr><td>';
print_chronology_of_a_sample($sample_id);
echo '</td></tr>';
echo '</table>';
echo '</td>';
echo '<td valign=top>';
print_sample($sample_id,'','');
echo '</td></tr>';
//echo '<td valign=top>';
//print_examinations_tt($sample_id);
//echo '</td>';
echo '</tr></table>';
?>