Example #1
0
?>

<!-- plugins -->
<script type="text/javascript" src="js/plugins/jquery.autosize.min.js"></script>
<!-- scripts -->
<link rel="stylesheet" href="../view/template/css/table-panel.css">
<script type="text/javascript" src="js/purchaseScript.js"></script>
<script type="text/javascript" src="js/purchaseScript_extension01.js"></script>
<script type="text/javascript" src="js/descrGenScript.js"></script>
<?php 
include_once '../view/sections/purchase_nav.php';
include 'sections/modals/purchase-modals.php';
if ($_POST) {
    include_once dirname(__FILE__) . "/../model/purchase.php";
    $purchase = new Purchase("{$_POST['factoryName']}");
    $purchase->makePurchase();
    echo '<span id="success"></span>';
    //factoryr against ae purchase and purchase memo banabe
    //and inventory barabe
}
?>

 


<!-- panel start -->
<hr>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-primary">
            <div class="panel-heading">