Файловый менеджер - Редактировать - /var/www/zerocorporation/Contact.php
Назад
<?php include("App_Core/Core.php");?> <!doctype html> <!--[if IEMobile 7 ]> <html class="no-js iem7" lang="en"> <![endif]--> <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <title><?php echo Setting('WebsiteTitle');?> | Contact Us</title> <meta name="description" content="Get in contact with Zero Corporation easily, by giving us a call on <?php echo Setting('Phone');?>, or shoting us an email to <?php echo Setting('Email');?>."> <!-- The script prevents links from opening in mobile safari. https://gist.github.com/1042026 --> <!-- <script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script> --> <!-- Main Stylesheet --> <link rel="stylesheet" href="App_Theme/css/superfish.css" media="screen" /> <link rel="stylesheet" href="App_Theme/style.css"> <link rel="stylesheet" href="App_Theme/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" /> <link rel="stylesheet" href="App_Theme/css/custom-rebuild.css" media="screen" /> <link href='http://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'> <script src="App_Theme/js/libs/modernizr-2.0.6.min.js"></script> <!-- for google map --> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function initialize() { var myLatlng = new google.maps.LatLng(<?php echo Setting('GoogleMap');?>); var myOptions = { zoom: 15, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("google_map"), myOptions); var contentString = '<div id="content">'+ '<div id="siteNotice">'+ '</div>'+ '<h3 id="firstHeading" class="firstHeading">Zero Corporation</h3>'+ '<div id="bodyContent">'+ '<p>(Head Office)<br />Suite 16, Enterprise Drive<br />Bundoora, Melbourne ' + '</div>'+ '</div>'; var infowindow = new google.maps.InfoWindow({ content: contentString }); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: 'Zero Corporation (Head Office)' }); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); } </script> <?php // Form Validation: error_reporting(E_ALL ^ E_NOTICE); // hide all basic notices from PHP //If the form is submitted if(isset($_POST['submitted'])) { if(isset($_POST['name']) && $_POST['name'] == ''){ }else{ $nameError = 'Hmmm... something went wrong'; $hasError = true; } // require a name from user if(trim($_POST['contactName']) === '') { $nameError = 'Forgot your name!'; $hasError = true; } else { $name = trim($_POST['contactName']); } // need valid email if(trim($_POST['email']) === '') { $emailError = 'Forgot to enter in your e-mail address.'; $hasError = true; } else if (!preg_match("/^[[:alnum:]][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$/i", trim($_POST['email']))) { $emailError = 'You entered an invalid email address.'; $hasError = true; } else { $email = trim($_POST['email']); } // we need at least some content if(trim($_POST['comments']) === '') { $commentError = 'You forgot to enter a message!'; $hasError = true; } else { if(function_exists('stripslashes')) { $comments = stripslashes(trim($_POST['comments'])); } else { $comments = trim($_POST['comments']); } } // upon no failure errors let's email if(!isset($hasError)) { $emailTo = Setting('Email'); $subject = 'Submitted message from '.$name; $sendCopy = trim($_POST['sendCopy']); $body = "Name: $name \n\nEmail: $email \n\nComments: $comments"; $headers = 'From: ' .' <website@zerocorporation.com>' . "\r\n" . 'Reply-To: ' . $email . "\r\n". 'BCC: <daniel132@live.com.au>'; mail($emailTo, $subject, $body, $headers); $emailSent = true; } } ?> <?php echo Setting('Analytics');?> </head> <body onLoad="initialize()"> <div id="container"> <?php include("App_Includes/Header.php");?> <?php include("App_Includes/Menu.php");?> <section id="content-container"> <section class="content_container_fix"> <section class="page_title"> <h1>Contact Us</h1> <h2>We'd love to hear from you</h2> </section> <!-- /.page_title --> <section class="full_width no_margin"> <div id="google_map"></div> <section class="divider_line"></section> <section class="three_fourth content-left" id="contact"> <?php if(isset($emailSent) && $emailSent == true) { ?> <div class="message-box green"> <p>Thank you! Your email has been delivered. We will contact with you shortly.</p> </div> <?php } else { ?> <h2>Please fill the form below or just call us now</h2> <div id="contact-form"> <?php if(isset($hasError) || isset($captchaError) ) { ?> <p class="alert">Error submitting the form</p> <?php } ?> <form id="contact-us" action="" method="post"> <div class="formblock"> <label class="screen-reader-text">Your Name (required)</label> <input type="text" name="contactName" id="contactName" value="<?php if(isset($_POST['contactName'])) echo $_POST['contactName'];?>" class="txt requiredField" placeholder="Name:" /> <?php if($nameError != '') { ?> <br /> <span class="error"><?php echo $nameError;?></span> <?php } ?> </div> <div class="formblock"> <label class="screen-reader-text">Your Email (required)</label> <input type="text" name="email" id="email" value="<?php if(isset($_POST['email'])) echo $_POST['email'];?>" class="txt requiredField email" placeholder="Email:" /> <?php if($emailError != '') { ?> <br /> <span class="error"><?php echo $emailError;?></span> <?php } ?> </div> <div class="formblock"> <label class="screen-reader-text">Message (required)</label> <textarea name="comments" id="commentsText" class="txtarea requiredField" placeholder="Message:"><?php if(isset($_POST['comments'])) { if(function_exists('stripslashes')) { echo stripslashes($_POST['comments']); } else { echo $_POST['comments']; } } ?> </textarea> <?php if($commentError != '') { ?> <br /> <span class="error"><?php echo $commentError;?></span> <?php } ?> </div> <input name="submit" type="submit" id="contact-submit" value="Send Email" /> <input type="hidden" name="submitted" id="submitted" value="true" /> <div style="display:none"> <input type="text" name="name" id="name" value="" /> </div> </form> </div> <?php } ?> <p><hr></p> <table WIDTH="689"> <tr> <td WIDTH="338"><h2>Melbourne Office</h2> <p>Zero Corporation.Com Pty Ltd (Australia) <br>13/19 Enterprise Drive, <br>Graduate Park – Q, University Hill <br>Bundoora, VICTORIA, 3083 <br>AUSTRALIA <br> <br>T: +61394683600 <br>F: +61394678006</p></td> <td WIDTH="339"><h2>India Office</h2> <p>Zero.Com India Pvt.Ltd <br>7-1-414/44/A, <br>Srinivasa Nagar East, <br>S.R.Nagar, <br>Opp.Sri Gayatri Junior College <br>India- 500016 <br> <br>T: +9140 40264853 </td> </tr> </table> </section> <!-- /.three_fourth content--> <section class="one_fourth last"> <?php include("App_Includes/ContactPanel.php");?> </section> <!-- /.one_fourth --> </section> <!-- /.full_width --> <section class="clear_full"></section> <!-- /.clear_full --> </section> <!-- /.content_container_fix --> </section> <!-- /#content-container --> <?php include("App_Includes/Footer.php");?> <!-- /footer --> </div> <!-- /#container --> <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script> <script type="text/javascript"> /*------------------------------- * jQuery Plugin: Super Fish Menu -------------------------------*/ jQuery(document).ready(function($){ $("ul.main-menu").supersubs({ minWidth: 12, // minimum width of sub-menus in em units maxWidth: 150, // maximum width of sub-menus in em units extraWidth: 1 // extra width can ensure lines don't sometimes turn over // due to slight rounding differences and font-family }).superfish({ delay: 300, // one second delay on mouseout animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation speed: 'normal', // faster animation speed autoArrows: false, // disable generation of arrow mark-up dropShadows: true // disable drop shadows }); // call supersubs first, then superfish, so that subs are // not display:none when measuring. Call before initialising // containing tabs for same reason. }); </script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- $(document).ready(function() { $('form#contact-us').submit(function() { $('form#contact-us .error').remove(); var hasError = false; $('.requiredField').each(function() { if($.trim($(this).val()) == '') { var labelText = $(this).prev('label').text(); $(this).parent().append('<span class="error">Your forgot to enter your '+labelText+'.</span>'); $(this).addClass('inputError'); hasError = true; } else if($(this).hasClass('email')) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; if(!emailReg.test($.trim($(this).val()))) { var labelText = $(this).prev('label').text(); $(this).parent().append('<span class="error">Sorry! You\'ve entered an invalid '+labelText+'.</span>'); $(this).addClass('inputError'); hasError = true; } } }); if(!hasError) { var formInput = $(this).serialize(); $.post($(this).attr('action'),formInput, function(data){ $('form#contact-us').slideUp("fast", function() { $(this).before('<div class="message-box green"><p>Thank you! Your email has been delivered. We will contact with you shortly.</p></div>'); }); }); } return false; }); }); //-->!]]> </script> <script src="App_Theme/js/libs/ui/jquery.ui.core.js"></script> <script src="App_Theme/js/libs/ui/jquery.ui.widget.js"></script> <script src="App_Theme/js/libs/ui/jquery.ui.accordion.js"></script> <script src="App_Theme/js/libs/ui/jquery.ui.tabs.js"></script> <script src="App_Theme/js/libs/superfish/hoverIntent.js"></script> <script src="App_Theme/js/libs/superfish/superfish.js"></script> <script src="App_Theme/js/libs/superfish/supersubs.js"></script> <script src="App_Theme/js/libs/jquery.flexslider-min.js"></script> <script type="text/javascript" src="App_Theme/js/libs/jquery.easing.1.3.js"></script> <script src="App_Theme/js/libs/slides.min.jquery.js"></script> <script src="App_Theme/js/libs/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script> <script src="App_Theme/js/scripts.js"></script> <!-- scripts concatenated and minified via ant build script--> <script src="App_Theme/js/helper.js"></script> <!-- end scripts--> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33-0ubuntu0.16.04.16 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка