<?php include '../controllers/bank_and_customer.php'; $bank = new bankandcustomer(); session_start(); $username = $_SESSION['username']; $stat = $_SESSION['stat']; $admin = $_SESSION['admin']; $pic = $_SESSION['pic']; @($msg = $_SESSION['msg']); if ($admin == 2 || $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) { echo " "; } else { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } if (isset($_POST['submit'])) { extract($_POST); $bid = $_GET['id']; $bankinfo = $bank->add_bank_info($bid, $acname, $acnumber, $deposit, $withdrawal, $details, $date, $time); if ($bankinfo) { header("bank_details.php?id={$bid}"); $msg = "Bank Information Create Successful"; } else { $msg = "Bank Information Create Fail";
<?php include '../controllers/bank_and_customer.php'; $client = new bankandcustomer(); session_start(); $username = $_SESSION['username']; $stat = $_SESSION['stat']; $admin = $_SESSION['admin']; $pic = $_SESSION['pic']; @($msg = $_SESSION['msg']); if ($admin == 2 || $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) { echo " "; } else { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } if (isset($_GET['edit'])) { if (isset($_POST['update'])) { $edit = $_GET['edit']; extract($_POST); $update = $client->update_client_list($edit, $name, $details, $date, $time); if ($update) { header("Location:client.php"); $_SESSION['msg'] = "Client Name Update Successful"; } else {
<?php include '../controllers/bank_and_customer.php'; $client = new bankandcustomer(); session_start(); $username = $_SESSION['username']; $stat = $_SESSION['stat']; $admin = $_SESSION['admin']; $pic = $_SESSION['pic']; @($msg = $_SESSION['msg']); if ($admin == 2 || $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) { echo " "; } else { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } if (isset($_POST['submit'])) { extract($_POST); $cid = $_GET['id']; $clientinfo = $client->create_client_info_list($cid, $item, $quantity, $ttk, $paytk, $bank_info, $details, $date, $time); if ($clientinfo) { header("client_details.php?id={$cid}"); $msg = "Client Information Create Successful"; } else { $msg = "Client Information Create Fail";
<?php include '../controllers/bank_and_customer.php'; $bank = new bankandcustomer(); session_start(); $username = $_SESSION['username']; $stat = $_SESSION['stat']; $admin = $_SESSION['admin']; $pic = $_SESSION['pic']; @($msg = $_SESSION['msg']); if ($admin == 2 || $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) { echo " "; } else { header("Location:http://localhost/gobs/"); $_SESSION['msg'] = "You Are Not Authorized "; } if (isset($_GET['edit'])) { if (isset($_POST['update'])) { $edit = $_GET['edit']; extract($_POST); $update = $bank->update_bank_list($edit, $name, $actype, $details, $time, $date); if ($update) { header("Location:bank.php"); $_SESSION['msg'] = "Update Successful"; } else {