-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_id_range_for_cup_barcode.php
52 lines (42 loc) · 1.56 KB
/
get_id_range_for_cup_barcode.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
<?php
//$GLOBALS['nojunk']='';
require_once 'project_common.php';
require_once 'base/verify_login.php';
////////User code below/////////////////////
echo ' <link rel="stylesheet" href="project_common.css">
<script src="project_common.js"></script>';
$link=get_link($GLOBALS['main_user'],$GLOBALS['main_pass']);
/////Note////
//it is not by mrd
//it is by databaase ID
main_menu($link);
echo '<div id=response></div>';
if($_POST['action']=='cup_barcode_range')
{
get_dbid($link);
}
//elseif($_POST['action']=='view_dbid')
//{
////echo_class_button($link,'Haemogram');
//view_sample($link,$_POST['sample_id']);
//}
//////////////user code ends////////////////
tail();
//echo '<pre>';print_r($_POST);echo '</pre>';
//////////////Functions///////////////////////
function get_dbid()
{
echo '<form method=post action=print_cup_barcode.php target=_blank>';
echo '<h3>Cup Barcode</h3>';
echo '<div class="basic_form">';
echo ' <label class="my_label text-danger" for="from">From Sample ID</label>
<input type=text size=13 id=from name=from class="form-control text-danger" required="required" \>
<p class="help"><span class=text-danger>Must be</span> number</p>';
echo ' <label class="my_label text-danger" for="to">To Sample ID</label>
<input type=text size=13 id=from name=to class="form-control text-danger" required="required" \>';
echo '</div>';
echo '<button type=submit class="btn btn-primary form-control" name=action value=view_dbid>Print small barcode</button>';
echo '<input type=hidden name=session_name value=\''.session_name().'\'>';
echo '</form>';
}
?>