<?php include "../controllers/sub_sub_item.php"; $sub_sub_item = new sub_sub_items(); session_start(); $username = $_SESSION['username']; $stat = $_SESSION['stat']; $admin = $_SESSION['admin']; $pic = $_SESSION['pic']; if ($admin == "") { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } elseif ($stat == 0 || $stat == "") { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Inactive Admin"; } elseif ($admin == 1 || $admin == 2 || $admin == 3) { echo " "; } else { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } include 'layouts/header.php'; include 'layouts/sidebar_layout.php'; ?> <div class="main_body"> <div class="headline"><h1>All Of Your Good's</h1> </div> <div class="information_body"> <div class="table_head"> <div class="title col-sm-3">Category</div>
<?php include "../controllers/sub_sub_item.php"; $sub = new sub_sub_items(); session_start(); $username = $_SESSION['username']; $stat = $_SESSION['stat']; $admin = $_SESSION['admin']; $pic = $_SESSION['pic']; @($msg = $_SESSION['msg']); if ($admin == 3 || $admin == "") { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } elseif ($stat == 0 || $stat == "") { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Inactive Admin"; } elseif ($admin == 1 || $admin == 2) { echo " "; } else { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } if (isset($_GET['edit'])) { if (isset($_POST['update'])) { $edit = $_GET['edit']; $id = $_GET['id']; $mid = $_GET['mid']; $cid = $_GET['cid']; extract($_POST); $update = $sub->update_goods($edit, $quantity, $tk, $details, $date, $time, $mid, $cid); if ($update) {