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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
<?php $formid = "Order"; require_once "inc/configure.php";
$refid = (int)setDefaultReqVar("refid", ''); $barcode = setDefaultReqVar("barcode", ''); if($barcode){ $refid = (int)parseJCBarcode($barcode); }
$dept = setDefaultReqVar("dept", ''); if(empty($dept)){ myerror(INVALID.WS.REQUEST); exit; }
$opr_param['opr_code'] = $dept ; $opr_param['createby'] = filter_var($_SESSION['user'], FILTER_SANITIZE_STRING); $opr_param['lastupby'] = filter_var($_SESSION['user'], FILTER_SANITIZE_STRING);
if($refid){ $deptcheckin_info = oprReadyForDeptCheckin($refid, $opr_param, $status);
if( isvalidJC($refid)===false ){ $_REQUEST['error'] = INVALID.WS.JOB_CARD; } elseif($status == "OK"){ $deptcheckin_time = ord_deptcheckin($refid, $deptcheckin_info['refid'], $opr_param); $deptcheckin_msg = generateJCbarcode($refid).": ".DEPARTMENT.WS.CHECKIN_SUCCESSFUL." @".$deptcheckin_time.HTML_EOL; ord_oprctrl_releaseJC($refid); } else{ $_REQUEST['error'] = $msg; //Already (Department) Checkin at }
}
//vdump($status); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?=$system_var['COMPANY_NAME']?></title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <?php require_once "inc/jsheader.php"; ?> <script>
$(document).ready(function() { $(".focus").focus();
});
function localbind(){
}
function confirmCheckin(){ return confirm("Are you sure you want to (department) checkin now?"); }
</script> </head> <body> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <!--<td valign="top" class="top"><?php //require"mod_webhead.php"; ?></td>--> </tr> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <!--<td valign="top" class="menu_bg"><?php //require"mod_menu.php"; ?></td>--> <td valign="top" class="padding1">
<form action="<?=realbasename($_SERVER['REQUEST_URI'])?>" name="myform" id="myform" method="post" enctype="multipart/form-data"> <input type="hidden" name="dept" value="<?=$dept?>" /> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr></tr> <tr> <td class="c3_bg"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr>
<td class="separator stext1"><?=$dept?> - <span> <?=DEPARTMENT?><?=WS?><?=CHECKIN?> </span></td> <!--<td class="separator etext1"><?=ord_htmllink_jobcard($row['refid'], '', 'class="fbox"');?> - <span> <?=ord_htmllink_invproduct($row['itemno'], '', 'class="ctip fbox" ctip="ajax_thumb_inv_product.php?itemno='.$row['itemno'].'&formid='.$formid.'"')?> </span></td>--> <td width="200" align="right" class="separator etext2"></td> <td width="80" align="right" class="separator etext2"><a href="#" onclick="return fbox_close();" class="closebtn"><?=CLOSE?></a></td> </tr> </table></td> </tr> <tr> <td class="c2_bg" style="height:auto"> <!--main form--> <?=$deptcheckin_msg?><br/> <?=JOB_CARD?>: <input type="text" name="barcode" class="focus shortfield" /> <input type="submit" name="S" value="<?=DEPARTMENT?><?=WS?><?=CHECKIN?>" class="uibutton" /> <!-- end of mainform--></td> <td valign="top"></td> </tr> </table> </form> </td> </tr> </table></td> </tr> </table>
</body> </html>
|