-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1_by_1.php
executable file
·62 lines (45 loc) · 1.1 KB
/
1_by_1.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
<?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')
{
$sample_id=$_POST['sample_id'];
}
}
else
{
$sample_id=1;
}
echo '<form method=post name=\'1_by_1.php\'>';
echo '<td><input type=hidden name=sample_id value=\''.$sample_id.'\'></td>';
echo '<tr><td><input type=submit value=prev name=submit ></td></tr>';
echo '<tr><td><input type=submit value=next name=submit ></td></tr>';
echo '</form>';
echo '<form method=post name=\'1_by_1.php\'>';
echo '<td><input type=text name=sample_id value=\''.$sample_id.'\'></td>';
echo '<tr><td><input type=submit value=OK name=submit ></td></tr>';
echo '</form>';
print_sample_worklist($sample_id);
?>