GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/contact-help.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? include "includes/header_top.php";?> <!--<script> $(document).ready(function () { $("input#submit").click(function(){ $.ajax({ type: "POST", url: "process.php", // data: $('form.contact').serialize(), success: function(msg){ $("#thanks").html(msg) $("#form-content").modal('hide'); }, error: function(){ alert("failure"); } }); }); }); </script>--> <? if($_POST) { $name=$_POST['name']; $email=$_POST['email']; $details=addslashes($_POST['message']); $sql_approveemail="SELECT * FROM approval_email"; $res_approveemail=execute_query($sql_approveemail); $row_approveemail=mysql_fetch_array($res_approveemail); $to = $row_approveemail['emailid']; //$to = "subhrajyoti.mca11@gmail.com"; $subject="User query from Escortservice"; $body="<html> <head> <title>User Query in Escortservice.org</title> </head> <body> <table style='padding:10px; color:#000;'> <tr><th>there is a new Query In escortservice.org</th></tr> <tr><td><br/></td></tr> <tr> <td>Below You will find Query details</td> </tr> <tr> <td>Username:".$name."</td> </tr> <tr> <td>Email:".$email."</td> </tr> <tr> <td>Query Details:".$details."</td> </tr> </table> </body> </html>"; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: escortservice <support@escortservice.org>' . "\r\n"; mail($to, $subject, $body, $headers); ?> <script language="javascript"> alert('Your message has been sent successfully.'); location.href="contact-help.php"; </script> <? } ?> <body> <? include "includes/header.php";?> <div class="main_bg"> <div style="height:32px; width:1000px;"> </div> <div style="width:1000px; margin:0 auto;"> <div class="statedetails"> <div class="stdtls_header"> Contact & Help </div> <div class="stdtls_midder"> <div style=" width:990px; margin:0 auto;"> <div class="helpleft"> <div class="helplefttop"> <h1 class="helpheader">How can we help you?</h1> <table border="0" cellpadding="0" cellspacing="0" style="margin-left:10px;"> <tr height="10"></tr> <tr> <td><input type="text" name="helptext" class="main_input" style="height:35px !important; width:500px !important;" /></td> <td width="10"></td> <td><img src="images/srch.png" /></td> </tr> </table> </div> <br/> <div class="helpleftbottom"> <div class="hlpbtleft"> <h1 class="findans">Find Answers by topic</h1> <? $ii=1; $sql_category="SELECT * FROM section_category"; $res_category=execute_query($sql_category); while($row_category=mysql_fetch_array($res_category)) { ?> <div class="categoryfield"> <h1><?=$row_category['catname']?></h1> <table border="0" cellpadding="0" cellspacing="0"> <tr height="5"></tr> <? $sql_subcat="select * from section_category_sub where cat_id='".$row_category['id']."'"; $res_subcat=execute_query($sql_subcat); while($row_subcat=mysql_fetch_array($res_subcat)) { ?> <tr> <td class="helptextcolor"><a href="helpcontact-details.php?subid=<?=$row_subcat['id']?>"><?=$row_subcat['sub_catname']?></a></td> </tr> <tr height="3"></tr> <? } ?> </table> </div> <? if($ii%2==0) { ?> <br class="spacer" /> <div style="height:10px; width:100%;"> <br class="spacer" /></div> <? } $ii++; } ?> <!--<div class="categoryfield"> <h1>Paypal Basics</h1> <table border="0" cellpadding="0" cellspacing="0"> <tr height="5"></tr> <tr> <td class="helptextcolor">Account Type</td> </tr> <tr height="3"></tr> <tr> <td class="helptextcolor">Account Type</td> </tr> </table> </div>--> <br class="spacer" /> </div> <div class="hlpbtright"> <? $sql_section="SELECT * FROM sections"; $res_section=execute_query($sql_section); $row_section=mysql_fetch_array($res_section); ?> <h1 class="findans"><?=$row_section['sec_name']?></h1> <div class="popsolution"> <table border="0" cellpadding="0" cellspacing="0"> <tr height="5"></tr> <? $sql_sectionlink="SELECT * FROM sections"; $res_sectionlink=execute_query($sql_sectionlink); while($row_sectionlink=mysql_fetch_array($res_sectionlink)) { ?> <tr> <td class="helptextcolor"><a href="helpcontact-details.php?secid=<?=$row_sectionlink['id']?>"><?=$row_sectionlink['sec_link']?></a></td> </tr> <tr height="3"></tr> <? } ?> </table> </div> <br/> </div> <br class="spacer" /> </div> </div> <div class="helpright"> <h1>Contact</h1> <table border="0" cellpadding="0" cellspacing="0" style="width:240px; margin:0 auto;"> <tr height="10"></tr> <tr> <td style="vertical-align:text-top; padding-top:5px;"><img src="images/phoneicon.png" /></td> <td width="10"></td> <td><span class="callustext"><a href="#">Call Us</a></span><br/><span>our customer support team is ready to help</span></td> </tr> <tr height="15"></tr> <tr> <td style="vertical-align:text-top; padding-top:5px;"><img src="images/msgboxicon.png" /></td> <td width="10"></td> <td><span class="callustext"><a data-toggle="modal" href="#form-content" >Email Us</a></span><br/><span>We'll do our best to responce with in 24 hours</span></td> </tr> </table> <div id="form-content" class="modal hide fade in" style="display: none;"> <div class="modal-header"> <a class="close" data-dismiss="modal">×</a> <h3>Send me a message</h3> </div> <div class="modal-body"> <form class="contact" name="contact" action="<?=$_SERVER['PHP_SELF']?>" method="post"> <input name="submit_form" value="1" type="hidden"> <label class="label" for="name">Your Name</label><br> <input type="text" name="name" class="input-xlarge"><br> <label class="label" for="email">Your E-mail</label><br> <input type="email" name="email" class="input-xlarge"><br> <label class="label" for="message">Enter a Message</label><br> <textarea name="message" class="input-xlarge"></textarea> <br/><br/> <input src="images/submit.png" type="image" style="margin-left:20px;"/> <a href="#" class="btn" data-dismiss="modal">Nah.</a> </form> </div> <div class="modal-footer"> </div> </div> </div> <br class="spacer" /> </div> </div> <div class="stdtls_footer"></div> </div> </div> </div> <? include "includes/footer.php";?>