korsygfhrfggfhfgfffgffg6655665dtggggggzangaiide
Elehhjhjjkjkfpf6df56fd65ffff
/
home2
/
apcagkk2
/
public_html
/
Upload FileeE
HOME
<?php include 'includes/config.php'; ob_start(); if(!isset($_GET['enquiry_no'])) { header ("Location: ./"); exit(); } $enquiry_no = $_GET['enquiry_no']; $check_query = "SELECT * FROM srvc_dtls WHERE enquiry_no='$enquiry_no' AND is_completed='0' "; $result4 = mysqli_query($conn, $check_query); if (mysqli_num_rows($result4) !== 1) { header ("Location: ./"); exit(); } if(isset($_POST['p_submit1'])) { // $doc_file = $_FILES['doc_file']['name']; $long_desc = $_POST['long_desc']; date_default_timezone_set('Asia/Kolkata'); $date_time = date('d-m-Y h:i:s A', time()); $content1 = base64_encode($long_desc); // $sfddql = "UPDATE srvc_dtls SET // doc_file='$doc_file', // long_desc = '$long_desc', // is_completed = '1', // status = 'S', // posted_on = '$date_time' $sfddql = "UPDATE srvc_dtls SET long_desc = '$long_desc', is_completed = '1', status = 'S', posted_on = '$date_time' WHERE enquiry_no='$enquiry_no' AND is_completed='0' "; $result2 = mysqli_query($conn, $sfddql); // $fileNames = array_filter($_FILES['doc_file']['name']); if(isset($_FILES['doc_file'])) { $fileCount = count($_FILES['doc_file']['name']); $imageNames = array(); for($i = 0; $i < $fileCount; $i++) { $fileName = $_FILES['doc_file']['name'][$i]; $image = "uploads/" . $fileName; move_uploaded_file($_FILES['doc_file']['tmp_name'][$i], $image); // Store the image filenames in an array $imageNames[] = $fileName; } // Convert the array of image filenames to a comma-separated string $imageNamesString = implode(",", $imageNames); // print_r($imageNamesString);exit; $query2 = "INSERT INTO `documents`(`enq_id`, `img_path`, `date`) VALUES ('$enquiry_no','$imageNamesString','$date_time')"; $connection2 = mysqli_query($conn, $query2); } if($result2 == 1) { // move_uploaded_file($_FILES['doc_file']['tmp_name'],"uploads/$doc_file"); // move_uploaded_file($_FILES['doc_file']['tmp_name'][$key],"uploads/$image"); $sql45 ="SELECT * from `srvc_dtls` WHERE `enquiry_no` = '$enquiry_no' AND is_completed='1' "; $quer656y = mysqli_query($conn,$sql45); while($res5654 = mysqli_fetch_array($quer656y)) { $full_nm = $res5654['full_nm']; $email_id = $res5654['email_id']; $regd_no = $res5654['regd_no']; $full_nmd = $res5654['full_nm']; $regd_nofd = $res5654['regd_no']; } // use PHPMailer\PHPMailer\PHPMailer; // use PHPMailer\PHPMailer\Exception; include 'PHPMailer-master/PHPMailerAutoload.php'; // require '/home/admin_user/PHPMailer/src/Exception.php'; // require '/home/admin_user/PHPMailer/src/PHPMailer.php'; // require '/home/admin_user/PHPMailer/src/SMTP.php'; $mail = new PHPMailer(true); // Passing `true` enables exceptions try { //Server settings //$mail->SMTPDebug = true; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'digambar.theuniqueculture@gmail.com'; // SMTP username $mail->Password = 'wilfmpqzkyeycvbk'; $mail->SMTPSecure = 'ssl'; // Enable SSL encryption, TLS also accepted with port 465 $mail->Port = 465; // TCP port to connect to //Recipients $mail->setFrom('digambar.theuniqueculture@gmail.com', 'APC Agencies & consultancy pvt. ltd'); //This is the email your form sends From $mail->addAddress($email_id, $full_nm); // Add a recipient address //$mail->addAddress('contact@example.com'); // Name is optional //$mail->addReplyTo('info@example.com', 'Information'); $mail->addBCC('digambarbai97@gmail.com'); // $mail->addBCC('bcc@example.com'); //Attachments //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name //Content $mail->isHTML(true); // Set email format to HTML $mail->Subject = 'Registered successfully ID - '.$regd_no.' | APC Agencies & consultancy pvt. ltd'; $mail->Body = '<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="x-apple-disable-message-reformatting"> <title></title> <!--[if mso]> <noscript> <xml> <o:OfficeDocumentSettings> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> </noscript> <![endif]--> <style> table, td, div, h1, p {font-family: Arial, sans-serif;} </style> </head> <body style="margin:0;padding:0;"> <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="x-apple-disable-message-reformatting"> <title></title> <!--[if mso]> <noscript> <xml> <o:OfficeDocumentSettings> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> </noscript> <![endif]--> <style> table, td, div, h1, p {font-family: Arial, sans-serif;} </style> </head> <body style="margin:0;padding:0;"> <table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;background:#ffffff;"> <tr> <td align="center" style="padding:0;"> <table role="presentation" style="width:602px;border-collapse:collapse;border:1px solid #cccccc;border-spacing:0;text-align:left;border-top: solid 10px #48b5dd;"> <tr> <td style="padding:30px;background: white;"> <table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;font-size:9px;font-family:Arial,sans-serif;"> <tr> <td style="padding:0;width: 40%;" align="center"> <img src="https://thihomehealthcare.com/apc_site/assets/img/logo/apc_logo.png" style="height: 80px;width:150px;"/> <br> <br> </td> </tr> </table> </td> </tr> <tr> <td style="padding: 1px 30px 42px 30px;"> <table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;"> <tr> <td style="padding:0 0 36px 0;color:#000 !important;"> <br> <p style="margin:0 0 12px 0;font-size:14px;line-height:24px;font-family:Arial,sans-serif;text-align: justify;"> <p style="font-size: 16px;color: #141b2f;">Hi <b>'.$full_nm.' ,</b> </p> <p style="font-size: 20px;color: #48b5dd;">Congratulation!</p> <p style="padding-top: 0px;font-size: 16px;color: #141b2f;">You have successfully registered !</p> <p style="padding-top: 0px;font-size: 16px;color: #141b2f;"> Please use your Registration No <b>'.$regd_no.' ,</b> for further tracking of your application status. <br> We will proceed your application in shortly. </p> </p> <br><br><br><br><br><br> <p style="margin:0 0 2px 0;line-height:24px;font-family:Arial,sans-serif;text-align: justify;color: #57575c !important;font-size: 14px;"> Thanks <br> With Warm Regards, <br> <b>APC Agencies & consultancy pvt. ltd</b> </p> </td> </tr> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>'; //$mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $mail->send(); //echo 'Message has been sent'; } catch (Exception $e) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } // SMS Template date_default_timezone_set('Asia/Kolkata'); $dates_time = date('d-m-Y h:i:s A', time()); $full_nm = $full_nmd; $regd_no = $regd_nofd; $time_var = $dates_time; //Your authentication key $authKey = "399452AC1zT7kFLJz649552d6P1"; //Sender ID,While using route4 sender id should be 6 characters long. $senderId = "APCIND"; //Multiple mobiles numbers separated by comma $mobileNumber = "918456069333"; //Your message to send, Add URL encoding here. $message = urlencode("Dear Admin, $full_nm as registered the requirement vide $regd_no on dated $time_var. Thanks APC"); //Define route $route = 4; $TemplateID = 1207168734644736147; //Prepare you post parameters $postData = array( 'authkey' => $authKey, 'mobiles' => $mobileNumber, 'message' => $message, 'sender' => $senderId, 'route' => $route, 'DLT_TE_ID'=> $TemplateID ); //API URL $url = "http://api.msg91.com/api/v2/sendsms"; // init the resource $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => "$url", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POST => true, CURLOPT_POSTFIELDS => $postData, CURLOPT_HTTPHEADER => array( "authkey: " . $authKey, "content-type: multipart/form-data" ), //,CURLOPT_FOLLOWLOCATION => true )); //Ignore SSL certificate verification curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); //get response $response = curl_exec($ch); $err = curl_error($ch); curl_close($ch); // echo $response; header ("Location: register_success.php?enquiry_no=$enquiry_no"); } else { $eror_msg = "<i class=\"fa fa-exclamation-triangle\" style=\"color: red;\"></i> Please try after sometime !!"; header( "refresh: 2;url=./" ); } // } $sql45 ="SELECT * from `srvc_dtls` WHERE `enquiry_no` = '$enquiry_no' AND is_completed='0' "; $quer656y = mysqli_query($conn,$sql45); while($res5654 = mysqli_fetch_array($quer656y)) { $pregd_no = $res5654['pregd_no']; } if(empty($pregd_no)) { $sqrfl45 ="SELECT * from `srvc_dtls` WHERE `enquiry_no` = '$enquiry_no' "; $qudeer656y = mysqli_query($conn,$sqrfl45); while($res56s54 = mysqli_fetch_array($qudeer656y)) { // $doc_file = $res56s54['doc_file']; $long_desc = $res56s54['long_desc']; } } else { $sqrfl45 ="SELECT * from `srvc_dtls` WHERE `pregd_no` = '$pregd_no' AND is_completed='1' "; $qudeer656y = mysqli_query($conn,$sqrfl45); while($res56s54 = mysqli_fetch_array($qudeer656y)) { // $doc_file = $res56s54['doc_file']; $long_desc = $res56s54['long_desc']; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="keywords" content="APC Agencies & consultancy pvt. ltd" /> <meta name="description" content="APC Agencies & consultancy pvt. ltd" /> <meta name="author" content="APC Agencies & consultancy pvt. ltd" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>APC - Registration Form Details</title> <!-- Custom CSS --> <link href="assets/css/styles.css" rel="stylesheet"> <link rel="icon" href="assets/img/logo/apc_logo.png" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.css" rel="stylesheet"/> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.full.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"></script> <script src="ckeditor/ckeditor.js" ></script> <style> .form-group .form-control { border: 1px solid #48b5dd; } .frm_submit_block .select2-container--default .select2-selection--single { border: 1px solid #48b5dd; } .select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid #48b5dd; } .select2-results { display: block; border: 1px solid #48b5dd; } .select2-container--open .select2-dropdown--below { border: 1px solid #48b5dd; } .call_action_wrap-wrap { padding: 30px 0; } /*[data-overlay]:before {*/ /* position: absolute;*/ /* content: '';*/ /* background: #112848;*/ /* width: 100%;*/ /* height: 70%;*/ /* top: 0;*/ /* left: 0;*/ /* z-index: 1;*/ /*}*/ /*.page-title {*/ /* width: 100%;*/ /* min-height: 200px;*/ /*}*/ /*progressbar*/ .form-card { text-align: left; color: #000; font-weight: bold; } /*Next Buttons*/ #msform .action-button { width: 100px; background: #48b5dd; font-weight: bold; color: white; border: 0 none; border-radius: 0px; cursor: pointer; padding: 10px 5px; margin: 10px 0px 10px 5px; float: right; } #msform .action-button:hover, #msform .action-button:focus { background-color: #311B92; } /*Previous Buttons*/ #msform .action-button-previous { width: 100px; background: #616161; font-weight: bold; color: white; border: 0 none; border-radius: 0px; cursor: pointer; padding: 10px 5px; margin: 10px 5px 10px 0px; float: right; } #msform .action-button-previous:hover, #msform .action-button-previous:focus { background-color: #000000; } /*The background card*/ .card { z-index: 0; border: none; position: relative; } .purple-text { color: #48b5dd; font-weight: normal; } /*Step Count*/ .steps { font-size: 15px; color: gray; margin-bottom: 10px; font-weight: normal; text-align: right; } /*Field names*/ .fieldlabels { color: gray; text-align: left; } /*Icon progressbar*/ #progressbar { margin-bottom: 30px; overflow: hidden; color: lightgrey; } #progressbar .active { color: #48b5dd; } #progressbar li { list-style-type: none; font-size: 15px; width: 25%; float: left; position: relative; font-weight: 400; } /*Icons in the ProgressBar*/ #progressbar #account:before { font-family: FontAwesome; content: "\f13e"; } #progressbar #personal:before { font-family: FontAwesome; content: "\f007"; } #progressbar #payment:before { font-family: FontAwesome; content: "\f030"; } #progressbar #confirm:before { font-family: FontAwesome; content: "\f09d"; } /*Icon ProgressBar before any progress*/ #progressbar li:before { width: 50px; height: 50px; line-height: 45px; display: block; font-size: 20px; color: #ffffff; background: lightgray; border-radius: 50%; margin: 0 auto 10px auto; padding: 2px; } /*ProgressBar connectors*/ #progressbar li:after { content: ''; width: 100%; height: 2px; background: lightgray; position: absolute; left: 0; top: 25px; z-index: -1; } /*Color number of the step and the connector before it*/ #progressbar li.active:before, #progressbar li.active:after { background: #48b5dd; } /*Animated Progress Bar*/ .progress { height: 15px; } .progress-bar { background-color: #48b5dd; } /*Fit image in bootstrap div*/ .fit-image{ width: 100%; object-fit: cover; } @media (max-width: 767px) { #progressbar li { list-style-type: none; font-size: 10px; width: 25%; float: left; position: relative; } } /*Select2*/ .select2-selection__rendered { line-height: 40px !important; } .select2-container .select2-selection--single { height: 45px !important; border-radius: 40px; border: 1px solid #f1993f; width: 100% !important; } .select2-selection__arrow { height: 34px !important; } .select2-search__field { height: 40px; outline: none; width: 100% !important; } @media screen and (max-width: 767px) { /*.select2 */ /*{*/ /* width: 100% !important;*/ /*}*/ } .select2-results__option { padding-left: 20px; } .select2-container .select2-selection--single .select2-selection__rendered { padding-left: 5px; } /*Previous Buttons*/ #msform .action-button-previous { width: 32%; background: #616161; font-weight: bold; color: white; border: 0 none; border-radius: 50px; cursor: pointer; padding: 10px 5px; margin: 10px 5px; } #msform .action-button-previous:hover, #msform .action-button-previous:focus { box-shadow: 0 0 0 2px white, 0 0 0 3px #616161; } .fr-infos-deatil .btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; margin: 0 5px; border-radius: 4px; background: #232c3d; font-weight: 600; color: #ffffff; } .form-control { height: 40px; } [type="radio"]:checked+label:after, [type="radio"]:not(:checked)+label:after { content: ''; width: 12px; height: 12px; background: green; } label { color: #000; } [type="radio"]:checked+label:before, [type="radio"]:not(:checked)+label:before { border: 1px solid #000; } #form_alert { background-color: #FFCCCB; margin-left: 10px; margin-right: 10px; padding: 10px; } </style> </head> <body class="yellow-skin"> <!-- ============================================================== --> <!-- Preloader - style you can find in spinners.css --> <!-- ============================================================== --> <div class="preloader"></div> <!-- ============================================================== --> <!-- Main wrapper - style you can find in pages.scss --> <!-- ============================================================== --> <div id="main-wrapper"> <!-- ============================================================== --> <!-- Top header --> <!-- ============================================================== --> <?php include 'includes/header.php'; ?> <!-- ============================================================== --> <!-- Top header --> <!-- ============================================================== --> <!-- ============================ Page Title Start================================== --> <div class="page-title" style="background:#f4f4f4 url(assets/img/bg.jpg);" data-overlay="5" > <div class="container" > <div class="row"> <div class="col-lg-12 col-md-12"> <div class="breadcrumbs-wrap"> <h2 class="breadcrumb-title" style="text-align: center;">Registration Form</h2> </div> </div> </div> </div> </div> <!-- ============================ Page Title End ================================== --> <!-- ============================ Submit Property Start ================================== --> <section style="padding: 30px 0 80px;"> <div class="container"> <div class="row"> <!-- Submit Form --> <div class="col-lg-12 col-md-12 col-md-12"> <div class="submit-page p-0"> <!-- Basic Information --> <div class="frm_submit_block"> <br> <h3 style="font-weight: bold;font-size: 40px; font-weight: 600; font-family: Recoleta; line-height: 1.2; color: rgb(66, 66, 66);">REGISTRATION <span style="color: #48b5dd;">DETAILS</span></h3> <!--Step Progress details--> <br> <br> <!-- progressbar --> <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 text-center p-0 mt-1 mb-2"> <div class="card px-0 pt-1 pb-0 mt-0 mb-0"> <form id="add_visitor_form" name="myForm" onsubmit="return validateForm()" class="ui form add-user" method="post" accept-charset="utf-8" enctype="multipart/form-data" > <!-- progressbar --> <ul id="progressbar" style="padding: 0px !important;" > <li class="active" id="account"><strong>Service Details</strong></li> <li class="active" id="personal"><strong>Vendor Details</strong></li> <li class="active" class="active" id="payment"><strong>Document Details</strong></li> <li class="active" id="confirm"><strong>Upload Documents</strong></li> </ul> <div class="progress"> <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 100%" aria-valuemin="20" aria-valuemax="100"></div> </div> <br> <!-- fieldsets --> <fieldset> <div class="form-card"> <div class="row"> <div class="col-7"> <h2 class="fs-title">Check Documents</h2> </div> <div class="col-5"> <h2 class="steps">Step 4 - 4</h2> </div> </div> <div class="alert alert-danger alert-dismissible fade show" id="form_alert" style="display:none;"> </div> <?php if( isset($eror_msg) && $eror_msg != '' ) { ?> <div class="alert alert-danger alert-dismissible fade show" id="form_alert"> <?php echo $eror_msg; ?>. </div> <?php } ?> <div class="frm_submit_wrap mt-3"> <div class="form-row"> <div class="form-group col-md-12 mt-2"> <label>Uploading of Documents</label> <!-- <input type="file" class="form-control" name="doc_file[]" value="<?php echo $doc_file; ?>" multiple > --> <input type="file" class="form-control" name="doc_file[]" multiple > <span style="color: red;padding-top: 30px;font-size: 12px;">* Uploads multiple documents from your Gallery</span> </div> <div class="form-group col-md-12 mt-2"> <label>Type Documents <span style="color: red;">*</span></label> <textarea class="form-control h-150px" id='long_desc' name="long_desc" rows="6" placeholder="Enter Type Documents" ><?php echo $long_desc; ?></textarea> </div> <script> var $select2 = $('select.select2').select2() $select2.data('select2').$container.addClass("wrap"); </script> </div> </div> </div> <br><br> <div class="container-fluid"> <div class="row"> <div class="col-6"> <a href="check_document.php?enquiry_no=<?php echo $enquiry_no; ?>" tabindex="-1" style="padding: 10px 20px 10px 20px;float: left;color: #232c3d;"> <i class="fa fa-long-arrow-left"></i> Back </a> </div> <div class="col-6"> <button class="btn btn-theme" name="p_submit1" type="submit" class="btn agent-btn theme-bg" tabindex="-1" style="padding: 10px 30px 10px 30px;float: right"> Proceed & Submit <i class="fa fa-long-arrow-right"></i> </button> </div> </div> </div> </fieldset> </form> </div> </div> </div> <script type="text/javascript"> CKEDITOR.replace('long_desc',{ width: "100%", height: "200px" }); </script> </div> <script> function validateForm() { var x = document.forms["myForm"]["doc_file"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please upload Documents !"; document.myForm.doc_file.focus(); document.getElementById('form_alert').style.display = "block"; return false; } } </script> </div> </div> </div> </div> </div> </section> <!-- ============================ Submit Property End ================================== --> <!-- ============================ Call To Action ================================== --> <section class="theme-bg call_action_wrap-wrap"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="call_action_wrap"> <div class="call_action_wrap-head"> <h3>Do You Have Questions ?</h3> <span>We'll help you to grow your career and growth.</span> </div> <a href="#" class="btn btn-call_action_wrap">Contact Us Today</a> </div> </div> </div> </div> </section> <!-- ============================ Call To Action End ================================== --> <!-- ============================ Footer Start ================================== --> <?php include 'includes/footer.php'; ?> <!-- ============================ Footer End ================================== --> <a id="back2Top" class="top-scroll" title="Back to top" href="#"><i class="ti-arrow-up"></i></a> </div> <!-- ============================================================== --> <!-- End Wrapper --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- All Jquery --> <!-- ============================================================== --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/popper.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/ion.rangeSlider.min.js"></script> <script src="assets/js/select2.min.js"></script> <script src="assets/js/jquery.magnific-popup.min.js"></script> <script src="assets/js/slick.js"></script> <script src="assets/js/slider-bg.js"></script> <script src="assets/js/lightbox.js"></script> <script src="assets/js/imagesloaded.js"></script> <script src="assets/js/daterangepicker.js"></script> <script src="assets/js/custom.js"></script> <script src="assets/js/dropzone.js"></script> <!-- ============================================================== --> <!-- This page plugins --> <!-- ============================================================== --> </body> </html>