GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/remove-ad.php

<?
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 include("includes/header.php");
 ?>
 <script language="javascript">
 function del_record(id)
   {
	 var msg="Sure to delete this ad? ";
	 var choice=confirm(msg);
	 if(choice)
	 {
	   var target="delete_ad.php?id="+id;
	   //alert(target);
	   window.location.href=target;
	 }
   }
  function del_record1(id)
   {
	 var msg="Sure to delete this banner ad? ";
	 var choice=confirm(msg);
	 if(choice)
	 {
	   var target="delete_banner.php?id="+id;
	   //alert(target);
	   window.location.href=target;
	 }
   }
 </script>
 	<br class="spacer" />
    
    
    <div style="width:1000px; margin:0 auto;">
     <div style="width:232px; float:left; margin-right:10px; margin-top:15px;">
      <? include("includes/menu.php"); ?>
     </div>
     <div style="float:left; width:752px;">
      <div class="home" style="padding-bottom:30px; width:752px;">
      	<h1>Dashboard</h1>
        <br/>
       
       <table border="0" cellpadding="0" cellspacing="0">
                            	<tr>
                                	
                                			<td class="updatehdrstyle23"><a href="myaccount.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="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"><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?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="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>
                                   
                                                 	<td class="updatehdrstyle23"><a href="#"><img src="images/premium.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Premium</a></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="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"><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-ad.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> <br/>
       <br class="spacer" />
       <div class="home" style="padding-bottom:10px; width:752px;">
    	<h1>Remove Own Ads</h1>
        <br/>
        <table class="table">
            	<tr>
                	<td class="table-head">Name</td>
                    <td class="table-head">State</td>
                    <td class="table-head">City</td>
                    <td class="table-head2">Views</td>
                                      
                    <td class="table-head2">Delete</td>
                    <td class="table-head2">Date</td>
                </tr>
                <? 
				$sql="SELECT * FROM escorts WHERE user_id='".$_SESSION['user']."'";
				$res=execute_query($sql);
				while($row=mysql_fetch_array($res))
				{
				?>
                <tr>
                	<td class="table-cell"><?=$row['esc_name']?></td>
                    <td class="table-cell">
						<? 
							$sql_state="SELECT * FROM state WHERE state_id='".$row['esc_state']."'";	
							$res_state=execute_query($sql_state);
							$row_state=mysql_fetch_array($res_state);
							echo $row_state['state_name'];
						?>
                    </td>
                    <td class="table-cell">
                    	<? 
							$sql_city="SELECT * FROM city WHERE id='".$row['esc_city']."'";	
							$res_city=execute_query($sql_city);
							$row_city=mysql_fetch_array($res_city);
							echo $row_city['city_name'];
						?>
                    </td>
                    <td class="table-cell2"><a href="escort-details.php?esc_id=<?=$row['esc_id']?>"><img src="images/view.png" /></a></td> 
                     <?php /*?><td class="table-cell2"><a href="edit-details.php?esc_id=<?=$row['esc_id']?>"><img src="images/bEdit.png" /></a></td><?php */?>                   
                    <td class="table-cell2"><a href="#" onclick="del_record('<?=$row['esc_id']?>');"><img src="images/delete.gif" /></a></td>
                    <? $date=explode('-',$row['esc_post_time']); ?>
                    <td class="table-cell"><? echo $date[1].'/'.$date[2].'/'.$date[0] ?></td>
                    
                </tr>
                <?
				}
				?>
            </table>
    </div>
    <br/>
    <br class="spacer" />
    <div class="home" style="padding-bottom:10px; width:752px;">
    	<h1>My Banners</h1>
        <br/>
        <table class="table">
            	<tr>
                	<td class="table-head">Sl No</td>
                    <td class="table-head">State</td>
                    <td class="table-head">City</td>
                    <td class="table-head">Link</td>
                    <td class="table-head">Delete</td>
                </tr>
                <? 
				$i=1;
				$sql="SELECT * FROM banners WHERE user_id='".$_SESSION['user']."'";
				$res=execute_query($sql);
				while($row=mysql_fetch_array($res))
				{
				?>
                <tr>
                	<td class="table-cell"><?=$i?></td>
                    <td class="table-cell">
						<? 
							$sql_state="SELECT * FROM state WHERE state_id='".$row['banner_state']."'";	
							$res_state=execute_query($sql_state);
							$row_state=mysql_fetch_array($res_state);
							echo $row_state['state_name'];
						?>
                    </td>
                    <td class="table-cell">
                    	<? 
							$sql_city="SELECT * FROM city WHERE id='".$row['banner_city']."'";	
							$res_city=execute_query($sql_city);
							$row_city=mysql_fetch_array($res_city);
							echo $row_city['city_name'];
						?>
                    </td>
                    <td class="table-cell"><?=$row['banner_url'] ?></td>
                    <td class="table-cell"><a href="#" onclick="del_record1('<?=$row['banner_id']?>');"><img src="images/delete.gif" /></a></td>
                </tr>
                <?
				$i++;
				}
				?>
            </table>
    </div>
      
     </div>
    
</div> 	
 		
		<br class="spacer" />
   
<? 
include("includes/copyright.php");
?>

./BlackJoker Mini Shell 1.0