/* Decoded by unphp.net */ include("./includes/header.php"); include("./includes/connection.php"); if(!isset($_SESSION['userinfo'])){ @session_destroy(); header("Location: ../index.php?InvalidPrivilege=yes"); } if(isset($_SESSION['userinfo'])){ if(isset($_SESSION['userinfo']['Setup_And_Configuration'])){ if($_SESSION['userinfo']['Setup_And_Configuration'] != 'yes'){ header("Location: ./index.php?InvalidPrivilege=yes"); } }else{ header("Location: ./index.php?InvalidPrivilege=yes"); } }else{ @session_destroy(); header("Location: ../index.php?InvalidPrivilege=yes"); } ;echo ' '; if(isset($_SESSION['userinfo'])){ if($_SESSION['userinfo']['Setup_And_Configuration'] == 'yes'){ ;echo ' NEW LAUNDRY CATEGORY ITEM ';}};echo ' '; if(isset($_SESSION['userinfo'])){ if($_SESSION['userinfo']['Setup_And_Configuration'] == 'yes'){ ;echo ' NEW LAUNDRY TYPE ';}};echo ' '; if(isset($_SESSION['userinfo'])){ if($_SESSION['userinfo']['Setup_And_Configuration'] == 'yes'){ ;echo ' NEW LAUNDRY LOCATION ';}};echo ' '; if(isset($_SESSION['userinfo'])){ if($_SESSION['userinfo']['Setup_And_Configuration'] == 'yes'){ ;echo ' NEW LAUNDRY ';}};echo ' '; if(isset($_SESSION['userinfo'])){ if($_SESSION['userinfo']['Reception_Works'] == 'yes'){ ;echo ' BACK ';}};echo '




'; if(isset($_POST['submittedAddNewItemForm'])){ $Itemtype = mysqli_real_escape_string($conn,$_POST['Itemtype']); $Number_Item = mysqli_real_escape_string($conn,$_POST['Number_Item']); $Product_Name = mysqli_real_escape_string($conn,$_POST['Product_Name']); $Item_Category = mysqli_real_escape_string($conn,$_POST['Item_Category']); $Item_Status = mysqli_real_escape_string($conn,$_POST['Item_Status']); $Insert_Item = "INSERT INTO tbl_laundry(Itemtype,Number_Item,Product_Name,Item_Category,Item_Status ) VALUES ('$Itemtype','$Number_Item','$Product_Name','$Item_Category','$Item_Status')"; if(!mysqli_query($conn,$Insert_Item)){ $error = '1062yes'; if(mysql_errno()."yes"== $error){ ;echo ' '; } } else { echo ''; } } ;echo '
NEW ITEM
Item Type
Product Name
Item Category
Number
Status

'; include("./includes/footer.php");