D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
add_more_inventory.php
back
Copy
<?php ob_start(); session_start(); include 'config.php'; $login = $_SESSION['login_email']; if($login == ''){ echo '<script>location.replace("index.php")</script>'; } $id = $_GET['id']; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Invoice Management | Invoice</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" /> <meta content="Coderthemes" name="author" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- Font Awsome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- App favicon --> <link rel="shortcut icon" href="assets/images/favicon.png"> <!-- Pie Chart Css --> <link href="assets/pie charts/style.css" rel="stylesheet" type="text/css" /> <!-- App css --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.css" rel="stylesheet" type="text/css" /> <link href="assets/css/metismenu.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/style.css" rel="stylesheet" type="text/css" /> <script src="assets/js/modernizr.min.js"></script> </head> <body> <!-- Begin page --> <div id="wrapper"> <!-- Top Bar Start --> <?php include 'top-header.php'; ?> <!-- Top Bar End --> <!-- ========== Left Sidebar Start ========== --> <?php include 'left-sidebar.php'; ?> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="content-page"> <!-- Start content --> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="page-title-box"> <h4 class="page-title float-left">Add Inventory</h4> <ol class="breadcrumb float-right"> <li class="breadcrumb-item ">Inventory Manager</li> <li class="breadcrumb-item ">View Inventory</li> <li class="breadcrumb-item active">Add More Inventory</li> </ol> <div class="clearfix"></div> </div> </div> </div> <!-- end row --> <?php $sql = "SELECT * FROM inventory_manager where id = '$id'"; $result = mysqli_query($conn,$sql); while( $row = mysqli_fetch_array($result)){ ?><div class="text-right py-2"> <a href="edit_new_item.php?id=<?php echo $row['id'] ?>" class="btn btn-primary waves-effect waves-light">Edit</a> </div> <div class="row card-box"> <div class="col-md-12"> <form action="update_more_inventory.php" method="post" role="form"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="exampleInputEmail1">Category</label> <input class="form-control" name="category" value="<?php echo $row['category'] ?>" readonly> </div> </div> <input id="tax" type="hidden" class="form-control" name="tax" placeholder="Enter tax "> <?php $path = $_SERVER['REQUEST_URI']; $file1 = basename($path); ?> <input type="hidden" name="url" value="<?php echo $file1 ?>" > </div> </div> <!-- end col --> </div> <!-- end row --> <div class="row card-box"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Item Id</label> <input type="text" class="form-control" name="item_id" placeholder="Enter item name" value="<?php echo $row['item_id'] ?>" readonly> </div> </div> <input type="hidden" class="form-control" name="tax" placeholder="Enter item name" value="<?php echo $row['tax'] ?>" readonly> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Item Name</label> <input type="text" class="form-control" name="item_name" placeholder="Enter item name" value="<?php echo $row['item_name'] ?>" readonly> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputPassword1">Selling Price</label> <input type="text" class="form-control" name="selling_price" placeholder="Enter swlling price" value="<?php echo $row['selling_price'] ?>" readonly> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputPassword1">Quantity</label> <input type="text" class="form-control" name="quantity" placeholder="Enter quantity" > </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputPassword1">Discount Applied</label> <input type="text" class="form-control" name="discount" placeholder="Enter discount applies" value="<?php echo $row['discount_applied'] ?>" readonly> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputPassword1">Discount Category</label> <input class="form-control" name="discount_category" value="<?php echo $row['discount_category'] ?>" readonly> </div> </div> </div> <button type="submit" class="btn btn-purple waves-effect waves-light">Submit</button> </form> </div> <!-- end col --> </div> <?php } ?> </div> <!-- container --> </div> <!-- content --> <?php include 'copyrignt.php' ?> </div> <!-- ============================================================== --> <!-- End Right content here --> <!-- ============================================================== --> </div> <!-- END wrapper --> <!-- Chart Js --> <script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.3/Chart.js'></script> <!-- jQuery --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/popper.min.js"></script><!-- Popper for Bootstrap --> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/metisMenu.min.js"></script> <script src="assets/js/waves.js"></script> <script src="assets/js/jquery.slimscroll.js"></script> <!-- Dashboard init --> <script src="assets/pages/jquery.dashboard.js"></script> <!-- App js --> <script src="assets/js/jquery.core.js"></script> <script src="assets/js/jquery.app.js"></script> <!-- Chart Js --> <!-- <script src="assets/pie charts/script.js"></script> --> </body> </html>