GIF89a;
| Direktori : /home/serb/public_html/m/ |
| Current File : /home/serb/public_html/m/birthdaymsg.php |
<?
session_start();
//include("config.php");
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
/*$sql="SELECT * FROM page_content WHERE id='45'";
$res=execute_query($sql);
$row=mysql_fetch_array($res);*/
$page='join';
?>
<?
if($_POST)
{
//$pro_emailid='ataylor4600@gmail.com';
//$pro_emailid='subhrajyoti.mca11@gmail.com';
$contant=addslashes($_POST['urQuery']);
$sql_email="select * from escort_details where id='".$_POST['estid']."'";
$res_email=execute_query($sql_email);
$row_email=mysql_fetch_array($res_email);
$emailid=$row_email['email'];
$to=$emailid;
$subject="You Have A Birthday Message From a Escortservice User";
$body="<html>
<head>
<title>BirthDay Message </title>
</head>
<body>
<table style='padding:10px; color:#000;'>
<tr><th>You Have A Birthday Message From a Escortservice User</th></tr>
<tr><td><br/></td></tr>
<tr>
<td>Message:".$contant."</td>
</tr>
<tr>
<td>From:</td>
</tr>
<tr>
<td>Name:".$_POST['userName']."</td>
</tr>
<tr>
<td>Email:".$_POST['emailAddrs']."</td>
</tr>
<tr>
<td>Phone:".$_POST['phNumber']."</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);
$loc="birthdaymsg.php?msg=1";
?>
<script language="javascript">
location.href="<?=$loc?>";
</script>
<?
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>Escort Service | Female Escorts,Models,Call Girls,GEF,Companions</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="themes/escserve.css" />
<link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="jMobile.css" />
<script src="jquery.min.js"></script>
<script src="jqueryMobile.js"></script>
<script>
$('#frm').validate({
rules: {
userName: {
required: true
},
emailAddrs: {
required: true
}
},
messages: {
userName: {
required: "Please enter your first name."
},
emailAddrs: {
required: "Please enter your email."
}
},
errorPlacement: function (error, element) {
error.appendTo(element.parent().prev());
},
submitHandler: function (form) {
$(':mobile-pagecontainer').pagecontainer('change', '#success', {
reload: false
});
return false;
}
});
</script>
<script language="javascript">
function validate()
{
if (document.f1.userName.value=="" )
{
alert("Enter You Full Name");
document.f1.userName.focus();
return false;
}
if (document.f1.emailAddrs.value=="" )
{
alert("Enter You Email address");
document.f1.emailAddrs.focus();
return false;
}
if((document.f1.emailAddrs.value.indexOf('@',0)<1)||(document.f1.emailAddrs.value.indexOf('.',0)<1))
{
alert("Enter any valid email address");
document.f1.email.focus();
return false;
}
if(document.f1.phNumber.value.match(/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/))
{
}
else
{
alert("Not a valid Phone Number");
document.f1.phNumber.focus();
return false;
}
if (document.f1.phNumber.value=="" )
{
alert("Enter You 10 Degit Phone NUmber");
document.f1.phnumber.focus();
return false;
}
if (document.f1.urQuery.value=="" )
{
alert("Enter Your query");
document.f1.urQuery.focus();
return false;
}
/*if(document.adpost.veri_image.value=="")
{
alert("Select Your Verification Image");
document.adpost.veri_image.focus();
return false;
}*/
}
</script>
</head>
<body>
<div data-role="page" id="page" data-theme="d" data-transition="flip">
<div id="headerTop"></div>
<? include "includes/header.php";?>
<div data-role="content" id="searchboxx">
<span style="float:left !important; margin-top:-5px !important;"><a style="float:left;" href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-home ui-btn-icon-notext" data-iconpos="right" title="Go Home">Home</a></span>
<span style="float:right !important; margin-top:-5px !important;"><a style="float:right;" href="birthdaylist.php" class="ui-btn ui-shadow ui-corner-all ui-icon-back ui-btn-icon-notext" data-iconpos="right" title="Birthdaylist">back</a></span>
</div>
<div data-role="content">
<h2 id="loginheadertext">Birthday Message....</h2>
<? if($_GET['msg']=='1'){ ?>
<p id="alsignup">Birthday Message has been sent successfully.</p>
<? } ?>
<!--<h2 id="loginheadertext">Escortservice Registration</h2>-->
<!--<p id="alsignup">Do you have a promo code? <a href="#" data-transition="flip" id="loginnow">Redeem it now, before you register!</a></p>-->
<!-- <p id="loginalertmsg">
Please use your EscortService username and password to login bellow.
</p>
<p id="loginalertmsg">
Need to Register? <a href="join.html" id="jointextcolor" data-transition="flip" data-prefetch>Get Started Now!</a>
</p>-->
<form action="<?=$_SERVER['PHP_SELF']?>" method="post" name="f1" id="frm" data-ajax="false" onSubmit="return validate();">
<input name="submit_form" value="1" type="hidden">
<label for="txt-username">Name:<span id="starcolor">*</span></label>
<input type="text" name="userName" id="txt-username" value="">
<label for="txt-email">Email:<span id="starcolor">*</span></label>
<input type="email" name="emailAddrs" id="txt-email" value="">
<label for="txt-password">Phone:<span id="starcolor">*</span></label>
<input type="text" name="phNumber" id="txt-password" value="">[Ex:111-222-3333]
<br/>
<label for="txt-cfpassword">Birthday Message:<span id="starcolor">*</span></label>
<textarea cols="40" rows="8" name="urQuery" id="txt-cfpassword"></textarea>
<input type="image" src="continue.png" style="height:35px; margin-top:10px;">
</form>
<!--<a href="#dlg-invalid-credentials" data-rel="popup" data-transition="pop" data-position-to="window" id="btn-submit" ><img src="continue.png" style="height:35px; margin-top:10px;"></a>-->
<div data-role="popup" id="dlg-invalid-credentials" data-dismissible="false" style="max-width:400px;">
<div role="main" class="ui-content">
<h3 class="mc-text-danger">Login Failed</h3>
<p>Did you enter the right credentials?</p>
<div class="mc-text-center"><a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-b mc-top-margin-1-5">OK</a></div>
</div>
</div>
</div>
<div data-role="panel" data-display="push" data-position="right" data-theme="d" id="navMenu">
<? include "includes/right-menubar.php";?>
</div><!-- /panel -->
<div data-role="footer" >
<div id="footerTop">
<? include "includes/footer.php";?>
</div>
<div id="footerBottom"><p>Copyright 2015 ESCORTSERVICE.ORG | All Rights reserved.</p></div>
</div>
</div>
</body>
</html>