/* Decoded by unphp.net */ @session_start(); include("./includes/connection.php"); $temp = 1; if(!isset($_SESSION['userinfo'])){ @session_destroy();header("Location: ../index.php?InvalidPrivilege=yes"); } if(isset($_SESSION['userinfo'])){ if(isset($_SESSION['userinfo']['Storage_And_Supply_Work'])){ if($_SESSION['userinfo']['Storage_And_Supply_Work'] != 'yes'){ header("Location: ./index.php?InvalidPrivilege=yes"); }else{ @session_start(); if(!isset($_SESSION['Storage_Supervisor'])){ header("Location: ./storagesupervisorauthentication.php?InvalidSupervisorAuthentication=yes"); } } }else{ header("Location: ./index.php?InvalidPrivilege=yes"); } }else{ @session_destroy(); header("Location: ../index.php?InvalidPrivilege=yes"); } if(isset($_SESSION['General_Outward_ID'])){ $Outward_ID = $_SESSION['General_Outward_ID']; }else{ $Outward_ID = 0; } if(isset($_SESSION['userinfo']['Employee_ID'])){ $Employee_ID = $_SESSION['userinfo']['Employee_ID']; }else{ $Employee_ID = 0; } $select = mysqli_query($conn,"select Outward_ID from tbl_return_outward where Outward_ID = '$Outward_ID' and Employee_ID = '$Employee_ID' and Outward_Status = 'pending'") or die(mysqli_error($conn)); $num = mysqli_num_rows($select); if($num >0){ $delete_items = mysqli_query($conn,"delete from tbl_return_outward_items where Outward_ID = '$Outward_ID'") or die(mysqli_error($conn)); if($delete_items){ $delete = mysqli_query($conn,"delete from tbl_return_outward where Outward_ID = '$Outward_ID'") or die(mysqli_error($conn)); if($delete){ unset($_SESSION['General_Outward_ID']); } } } echo '
Sn | Item Name | UoM | Qty Returned | Remark | Remove |
"; echo " | "; echo " | "; echo " | "; echo " | "; ;echo ' | '; echo " |