ok
Direktori : /proc/self/root/home2/selectio/www/wedding-info-new/admin/ |
Current File : //proc/self/root/home2/selectio/www/wedding-info-new/admin/wedding-matching-upload.php |
<?php include 'header.php';?> <div class="page-wrapper"> <div class="page-content"> <div class=" card card-body"> <div class="row"> <center> <h6 class="app_theme"><i class="fadeIn animated bx bx-upload"></i> Bulk Insert & Update Rasi Star Matching via CSV</h6> </center> <div class="col-md-6"> <center><img src="assets/fa-icons/download.svg" style="width: 20px;margin-top: -5px;"> <a href="api/csv/wedding-matching-upload-data.php" download>Download Existing Data CSV File</a> </center><br> <b style="font-size:17px;"><img src="assets/fa-icons/info.png" style="width: 20px;margin-top: -5px;"> Bulk Insert & Update Rasi Star Matching via CSV</b><br> <div style="padding-left:25px;"> <b > 1.Rasi & Star(Female) - <span style="color:red;">* Required</span><br> 2.Rasi & Star(Male) - <span style="color:red;">* Required</span><br> 3.SUITABILITY - <span style="color:green;"> Optional</span><br> 4.Total Count - <span style="color:red;">Only Number Allowed,* Required</span><br> 5.Dina Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 6.Dina Porutham Description - <span style="color:green;"> Optional</span><br> 7.Gana Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 8.Gana Porutham Description - <span style="color:green;"> Optional</span><br> 9.Mahendra Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 10.Mahendra Porutham Description - <span style="color:green;"> Optional</span><br> 11.Stree Deergha - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 12.Stree Deergha Description - <span style="color:green;"> Optional</span><br> 13.Yoni Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 14.Yoni Porutham Description - <span style="color:green;"> Optional</span><br> 15.Rasi Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 16.Rasi Porutham Description - <span style="color:green;"> Optional</span><br> 17.Rasiyathipathi Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 18.Rasiyathipathi Porutham Description - <span style="color:green;"> Optional</span><br> 19.Vasya Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 20.Vasya Porutham Description - <span style="color:green;"> Optional</span><br> 21.Rajju Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 22.Rajju Porutham Description - <span style="color:green;"> Optional</span><br> 23.Veda Porutham - <span style="color:red;">Only Number Allowed,0 or 1 only Allowed ,* Required</span><br> 24.Veda Porutham Description - <span style="color:green;"> Optional</span><br> </b> </div> </div> <div class="col-md-6"> <form id="bulk_upload_form" method="post" enctype="multipart/form-data"> <div class="row"> <div class="col-12 col-lg-8"> <label for="Company Name" class="form-label required">Upload Updated CSV File</label> <input type="file" name="upload_file" class="form-control" accept=".csv" placeholder="Upload Logo"> </div> <div class="col-8 text-right"> <br> <button class="btn btn-sm btn-success" type="submit" name="upload_submit"><i class="fadeIn animated bx bx-upload"></i> Upload Data</button> </div> </div> </form> </div> </div> </div> </div> </div> <script> $(document).ready(function(){ $( "#bulk_upload_form" ).validate( { rules: { upload_file: { required: true, }, }, messages: { upload_file: { required: "<img src='assets/fa-icons/error.png' style='width: 20px;margin-top: 5px;'> Browse CSV File is Required", }, }, submitHandler: function(form) { $('#loader').show(); var formData = new FormData(form); $.ajax({ url: 'api/bulk-upload/wedding-matching-upload-api.php', type: 'post', method: 'POST', cache: false, contentType: false, processData: false, cache: false, dataType: 'json', enctype: 'multipart/form-data', data: formData, success: function (response) { if(response['error']==false){ success(response['message']); }else{ warning(response['message']); }; console.log(response); $('#loader').hide(); } }); } }); }); </script> <?php include 'footer.php'; ?>