%PDF- %PDF-
Direktori : /home/eirtvhdf/asbatechs.ie/ |
Current File : //home/eirtvhdf/asbatechs.ie/order_step2.php |
<?php session_start(); require("database.php"); $retval = $_GET['retval']; if( $retval == true ){ if(isset($_POST['activate'])){ $logo_name = htmlspecialchars($_POST['logo_name']); $logo_style = $_POST['logo_style']; $add_comments = htmlspecialchars($_POST['add_comments']); $slogan = htmlspecialchars($_POST['slogan']); $look_and_feel = $_POST['look_and_feel']; $material = htmlspecialchars($_POST['material']); $industry = htmlspecialchars($_POST['industry']); $target = htmlspecialchars($_POST['target']); $desc = htmlspecialchars($_POST['desc']); $logo_style = implode(', ',$logo_style); $look_and_feel = implode(', ',$look_and_feel); $last_id = $_SESSION['last_id']; $a_name = $_SESSION['a_name']; $a_email = $_SESSION['a_email']; $a_phone = $_SESSION['a_phone']; $a_message = $_SESSION['a_message']; $package = $_SESSION['a_package']; $amount = $_SESSION['a_amount']; $path = basename($_FILES['material']['name']); if(empty($path)){ $material = ""; } else{ $dir = "reference_material/"; $piclocation = $dir . basename($_FILES['material']['name']); $picextension = pathinfo($piclocation,PATHINFO_EXTENSION); $move = move_uploaded_file($_FILES['material']['tmp_name'],$piclocation); $material = "https://asbatechs.ie/".$piclocation; } $body = " <table class='table table-bordered'> <tr> <th>Client Name:</th> <td>".$a_name."</td> </tr> <tr> <th>Email:</th> <td>".$a_email."</td> </tr> <tr> <th>Phone:</th> <td>".$a_phone."</td> </tr> <tr> <th>Message:</th> <td>".$a_message."</td> </tr> <tr> <th>Package:</th> <td>".$package."</td> </tr> <tr> <th>Amount:</th> <td>".$amount."</td> </tr> <br> <tr> <th> </th> <td> </td> </tr> <br> <tr> <th>logo Name:</th> <td>".$logo_name."</td> </tr> <tr> <th>Logo Style:</th> <td>".$logo_style."</td> </tr> <tr> <th>Additional Comments:</th> <td>".$add_comments."</td> </tr> <tr> <th>Slogan:</th> <td>".$slogan."</td> </tr> <tr> <th>Look And Feel:</th> <td>".$look_and_feel."</td> </tr> <tr> <th>Reference Material:</th> <td><a href=".$material.">".$material."</a></td> </tr> <tr> <th>Industry:</th> <td>".$industry."</td> </tr> <tr> <th>Target Audience:</th> <td>".$target."</td> </tr> <tr> <th>BRIEF DESCRIPTION ABOUT BUSINESS:</th> <td>".$desc."</td> </tr> </table> "; $mail_content = stripslashes($body); $to = "fahad.ansari@alogodaddy.com"; $subject = "Step2 Order Quote | ASBATECHS"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //$headers .= "From: ". strip_tags($_POST['email']) . "\r\n"; $headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n"; $url = "https://www.google.com/recaptcha/api/siteverify"; $data = [ 'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y", 'response' => $_POST['token99'], // 'remoteip' => $_SERVER['REMOTE_ADDR'] ]; $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $res = json_decode($response, true); if($res['success'] == true) { $mysqli = mysqli_query($dbh,"insert into step2_order_quote values('$last_id','$logo_name','$logo_style','$add_comments','$slogan','$look_and_feel','$material','$industry','$target','$desc')"); $retval = mail ($to,$subject,$mail_content,$headers); if( $retval == true ) { echo '<script type="text/javascript"> window.location = "https://asbatechs.ie/payment.php" </script>'; } else{ echo 'Mail not sent'; } } else{ echo '<script type="text/javascript"> window.location = "https://asbatechs.ie/error.php" </script>'; } } ?> <!doctype html> <html lang="en"> <!-- Mirrored from www.logoknox.com/about-us/ by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 19 Jun 2021 18:10:54 GMT --> <!-- Added by HTTrack --> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack --> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="stylesheet" href="../use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> <link rel="shortcut icon" type="image/x-icon" href="assets/images/logo.png"> <link rel="stylesheet" type="text/css" href="assets/css/style.css"> <link rel="stylesheet" type="text/css" href="assets/css/style-web.css"> <link rel="stylesheet" type="text/css" href="assets/css/responsive.css"> <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <link href="../fonts.googleapis.com/css35c2.css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap" rel="stylesheet"> <link rel="stylesheet" href="path/to/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"> <link href="order-assets/style2.css" rel="stylesheet"> <link href="order-assets/style-web.css" rel="stylesheet"> <link href="order-assets/order-css-new.css" rel="stylesheet"> <title>ASBATECHS: Best Custom Logo Design Company in San Francisco</title> <meta name="description" content="ASBATECHS offers market-competitive rates in logo designing, website development, digital marketing services, brochure design and production of animated videos"> </head> <body> <div class="top-head"> <div class="container"> <div class="row"> <div class="col-sm-6"> <p>ONE-STOP SOLUTION BRANDING & DESIGNING SOLUTION</p> </div> <div class="col-sm-6"> <ul> <li> <i class="fa fa-envelope"></i> <a href="#">info@asbatechs.ie</a> </li> <li> <i class="fa fa-phone"></i> <a href="tel:1-234-567-8909">1-234-567-8909</a> </li> <li> <i class="fa fa-comments"></i> <a href="javascript:$zopim.livechat.window.show();" class="chat">LIVE CHAT</a> </li> </ul> </div> </div> </div> </div> <?php include("header.php"); ?> <section class="packages"> <div class="container"> <div class="step2-title"> <h1 ><i>Step 2 </i></h1> </div> <!-- <div class="step-fln"><img src="images/stepfl-n.png" ></div> --> </div> </section> <section class="order-new-style"> <div class=" step2 step2 step2-new container"> <form method="post" enctype="multipart/form-data" class="form2-validate" id="form2-validate"> <div class=" step-top-area"> <div class="step-form-area logostepform " id="pf_top"> <h1><span>PROVIDE MORE INFORMATION ABOUT YOUR CUSTOM LOGO DESIGN, WHICH WILL HELP OUR EXPERT DESIGNERS TO PROVIDE YOUR INITIAL CONCEPTS WITHIN 24 hrs.</span></h1> <h3 class="step-section-title-n border-none"><span>DESIGN SPECIFICATIONS</span></h3> <div class="col-md-6"> <ul> <li> <label>Exact name to appear on logo <span>*</span></label> <input type="text" required class="required" value="" name="logo_name" id="logo_name_exact" > </li> <li> <label>Preferred style of logo <span>*</span></label> <div class="preferred-message"></div> <ul class="checkbox-label preferred-box "> <li><label><input type="checkbox" name="logo_style[]" value="Modern"> <i></i>Modern</label></li> <li><label><input type="checkbox" name="logo_style[]" value="Hi-Tec"> <i></i>Hi-Tec</label></li> <li><label><input type="checkbox" name="logo_style[]" value="Contemporary"> <i></i>Contemporary</label></li> <li><label><input type="checkbox" name="logo_style[]" value="Funny"> <i></i>Funny</label></li> <li><label><input type="checkbox" name="logo_style[]" value="Antique"> <i></i>Antique</label></li> <li><label><input type="checkbox" name="logo_style[]" value="Corporate"> <i></i>Corporate</label></li> <li><label><input type="checkbox" name="logo_style[]" value="Other"> <i></i>Other</label></li> </ul> </li> <li> <label>Additional comments</label> <textarea name="add_comments" id="logo_additional_comments"></textarea> </li> </ul> </div> <div class="col-md-6 padtop"> <ul> <li> <label>Slogan (if any)</label> <input type="text" name="slogan" value="" id="slogan_logo" > </li> <li> <label>Look and feel <span>*</span></label> <div class="look-message"></div> <ul class="checkbox-label look_box "> <li><label><input type="checkbox" name="look_and_feel[]" value="Sophisticated"> <i></i>Sophisticated</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Minimal"> <i></i>Minimal</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Fun"> <i></i>Fun</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Corporate"> <i></i>Corporate</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Artistic"> <i></i>Artistic</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Web 2.0"> <i></i>Web 2.0</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Feminine"> <i></i>Feminine</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Masculine"> <i></i>Masculine</label></li> <li><label><input type="checkbox" name="look_and_feel[]" value="Traditional"> <i></i>Traditional</label></li> </ul> </li> <li> <label>Upload reference material</label> <input type="file" name="material" id="upload_reference_logo" > </li> </ul> </div> <div class="clear"></div> <h3 class="step-section-title-n padminus"><span>BUSINESS DETAILS</span></h3> <div class="col-md-4"> <ul> <li><label>Industry <span>*</span></label> <input type="text" name="industry" id="industry_logo" required value=""> </li> </ul> </div> <div class="col-md-4 padtop padminus"> <ul> <li> <label>Your target audience</label> <input type="text" name="target" id="your_target_audience" value="" > </li> </ul> </div> <div class="col-md-4"> <ul> <li> <label>A brief description about your business</label> <textarea type="text" name="desc" id="logo_business_desc" ></textarea> </li> </ul> </div> <div class="col-md-12"> <ul> <li> <input type="submit" name="activate" value="Proceed" class="btn-step2"> <input type="hidden" id="token99" name="token99" > <!-- <input type="hidden" id="price" name="price" value="99"> <input type="hidden" id="save" name="save" value="99"> <input type="hidden" name="id" value="344045"> <input type="hidden" name="vid" value=""> <input type="hidden" name="name" value=""> <input type="hidden" name="ip2loc_country" value=""> <input type="hidden" id="email" name="email" value=""> --> </li> </ul> </div> </div> </div> </form> </div> </section> <?php include("footer.php"); ?> <script type="text/javascript" src="order-assets/js/lib.js"></script> <script type="text/javascript" src="order-assets/js/functions.js"></script> <script type="text/javascript" src="assets/js/lib.js"></script> <script type="text/javascript" src="assets/js/functions.js"></script> <script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=04dcdbfa-0679-44a3-81e6-8a6b9b99aee2"> </script> <!-- End of Zendesk Widget script --> <script src="https://www.google.com/recaptcha/api.js?render=6LealFgbAAAAADzuCKYhujlEawaxSxdVrvIq-kVF"></script> <script> grecaptcha.ready(function() { grecaptcha.execute('6LealFgbAAAAADzuCKYhujlEawaxSxdVrvIq-kVF', {action: 'homepage'}).then(function(token99) { // console.log(token); document.getElementById("token99").value = token99; }); }); </script> <script> $(document).ready(function() { $('.preferred-box input[type=checkbox]').click(function() { if(this.checked == true) { $(this).parent().parent().addClass('selected'); $(".preferred-message.preferred-style").fadeOut(300); } else { $(this).parent().parent().removeClass('selected'); $(".preferred-message.preferred-style").show(); } }); $('.look_box input[type=checkbox]').click(function() { if(this.checked == true) { $(this).parent().parent().addClass('selected'); $(".look-message.look-style").fadeOut(300); } else { $(this).parent().parent().removeClass('selected'); $(".look-message.look-style").show(); } }); $(".form2-validate").validate({ }); $(".form2-validate").submit(function(e) { var ck = $("form .preferred-box input:checked").length; var b = $("input:submit"); var checkboxes = $(".preferred-box input[type='checkbox']"), submitButt = $("input[type='submit']"); if (ck === 0) { console.log('invalid'); $('.preferred-message').text("Please select at least one preferred style of logo").addClass("preferred-style").css({"color": "red"}); } else { $('.preferred-error').removeClass().text(""); document.getElementById("form_stp2").submit(); } e.preventDefault(); var ck3 = $("form .look_box input:checked").length; var b3 = $("input:submit"); var checkboxes3 = $(" .look_box input[type='checkbox']"), submitButt3 = $("input[type='submit']"); if (ck3 === 0) { console.log('invalid'); $('.look-message').text("Please select at least one look & feel option").addClass("look-style").css({"color": "red"}); } else { $('.look-error').removeClass().text(""); document.getElementById("form_stp2").submit(); } e.preventDefault(); }); $('a.rd-lnk').click(function(){ $('.pckg-body').slideToggle(); $('.captionpckgs .pckg-btn').slideToggle(); }); $('.mobile-pckgbtn').click(function(){ $('.pckgs-main').slideToggle(); }); $('.pckg').click(function(){ $('.pckg').removeClass('active'); $(this).addClass('active'); }); $('a.gt-start').click(function(){ var amount = jQuery(this).data("amount"); $('input[name=amount]').val(amount); $('#price').val(amount); $('html, body').animate({ scrollTop: $('.step2').offset().top }, 'slow'); }); }); $('.pckg').click(function(){ var amount = jQuery(this).data("amount"); $('input[name=amount]').val(amount); $('#price').val(amount); }); $("#top").fadeIn('slow',function(){ $(this).animate({'top': '-=30px'},'slow'); }); </script> <!-- Facebook Pixel Code --> <!-- End Facebook Pixel Code --> </body> </html> <?php } else{ header('Location: https://asbatechs.ie/'); } ?>