-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_wise_worklist.php
executable file
·57 lines (48 loc) · 1.17 KB
/
sample_wise_worklist.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
<?php
session_start();
echo '<html>';
echo '<head>';
echo '</head>';
echo '<body>';
/*
echo '<pre>';
print_r($GLOBALS);
echo '</pre>';
*/
include 'common.php';
function select_sample_for_worklist($filename)
{
echo '<table border=1 id=\'id\' bgcolor=lightgrey CELLPADDING=0 CELLSPACING=0>';
echo '<form method=post action=\''.$filename.'\'>';
echo ' <tr>
<td>from_sample_id:<input type=text name=from_sample_id></td>
<td>to_sample_id:<input type=text name=to_sample_id></td>
<td><input type=submit value=print_sample_wise_worklist></td>';
echo '</form></table>';
}
if(!login_varify())
{
exit();
}
main_menu();
echo '<h2 style="page-break-before: always;"></h2>';
if(isset($_POST['from_sample_id']) && isset($_POST['to_sample_id']))
{
echo '<table border=1>';
$counter=1;
for($sample_id=$_POST['from_sample_id'];$sample_id<=$_POST['to_sample_id'];$sample_id++)
{
if($counter%4==1){echo '<tr>';}
echo '<td valign=top>';
print_sample_worklist($sample_id);
echo '</td>';
if($counter%4==0){echo '<tr>';}
$counter++;
}
echo '</table>';
}
else
{
select_sample_for_worklist('sample_wise_worklist.php');
}
?>