D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
G:
/
PleskVhosts
/
jhalakdembla.com
/
akkonlineservices.com
/
Admin
/
Filename :
AddProduct.php
back
Copy
<?php include('layout/header.php'); require('Coding/db.php'); $query = "SELECT * FROM `productcategory` order by Title"; $result = mysqli_query($conn,$query); ?> <section style="padding: 62px;"> <div class="row"> <div class="col-12 col-xl-6 mx-auto"> <div class="card"> <div class="card-header"> <h5 class="card-title">Add Product</h5> <!-- <h6 class="card-subtitle text-muted">Default Bootstrap form layout.</h6> --> </div> <div class="card-body"> <form action="Coding/ControllerProduct.php" method="post" enctype="multipart/form-data"> <div class="mb-3"> <label class="form-label">Select Category</label> <select class="form-control mb-3" name="ctg"> <!-- <option value="0" selected>All</option> --> <?php while($row = mysqli_fetch_assoc($result)){ ?> <option value="<?php echo $row['id'];?>" ><?php echo $row['Title'];?></option> <?php }?> </select> </div> <div class="mb-3"> <label class="form-label">Product Title</label> <input type="text" class="form-control" name="Prdtitle" placeholder="Title"> </div> <div class="mb-3"> <label class="form-label">MRP</label> <input type="text" class="form-control" name="mrp" placeholder="MRP"> </div> <div class="mb-3"> <label class="form-label">Price</label> <input type="text" class="form-control" name="price" placeholder="Price"> </div> <div class="row"> <div class="mb-3 col-6"> <label class="form-label w-100">Image 1</label> <input type="file" name="imgone" /> <!-- <small class="form-text d-block text-muted">Example block-level help text here.</small> --> </div> <div class="mb-3 col-6"> <label class="form-label w-100">Image 2</label> <input type="file" name="imgtwo" /> <!-- <small class="form-text d-block text-muted">Example block-level help text here.</small> --> </div> <div class="mb-3 col-6"> <label class="form-label w-100">Image 3</label> <input type="file" name="imgthree" /> <!-- <small class="form-text d-block text-muted">Example block-level help text here.</small> --> </div> <div class="mb-3 col-6"> <label class="form-label w-100">Image 4</label> <input type="file" name="imgfour" /> <!-- <small class="form-text d-block text-muted">Example block-level help text here.</small> --> </div> </div> <div class="mb-3"> <label class="form-label w-100">Description</label> <textarea id="editors" name="description" style="height: 300px;" required></textarea> </div> <button name="submit" class="btn btn-primary">Submit</button> </form> </div> </div> </div> </div> </section> <script src="//cdn.ckeditor.com/4.19.1/standard/ckeditor.js"></script> <script> CKEDITOR.replace( 'editors' ); </script> <?php include('layout/footer.php'); ?>