GIF89a;
Direktori : /home/serb/public_html/ |
Current File : /home/serb/public_html/my-ad.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); $page="my_ad"; ?> <? include "includes/header_top.php";?> <? $sql="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'"; $res=execute_query($sql); $row=mysql_fetch_array($res); $num=mysql_num_rows($res); ?> <body> <? include "includes/header.php";?> <? include "includes/sub-menu.php";?> <br/> <div class="div_boddy"> <div class="est_left">1.My Ad List</div> <div class="est_mid"> <? $k=1; $date=date('Y-m-d'); $sql_event="SELECT * FROM post_ad WHERE userid='".$_SESSION['userid']."' AND status='a' ORDER BY id DESC"; $res_event=execute_query($sql_event); $num=mysql_num_rows($res_event); if($num>0) { while($row_event=mysql_fetch_array($res_event)) { $sql_user="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'"; $res_user=execute_query($sql_user); $row_user=mysql_fetch_array($res_user); ?> <div class="postad_mid" <? if($num!=$k){ ?> style="margin-bottom:12px;" <? } ?>> <div style="float:left; width:100%; padding:10px 0 15px 0;"> <p style="padding:0; margin:0; float:left; width:20%;"> <img src="avtar/<?=$row_event['picture'] ?>" style="width:auto; height:80px; border:1px solid #666; margin-left:15px;" /> </p> <p style="padding:0; margin:0 0 0 0px; float:left; font-size:16px; font-weight:bold; font-family: 'Roboto Condensed', sans-serif; width:60%; color:#4e0063;"> <?=$row_event['ad_name'] ?> <br class="spacer"/> <span style="color:#666; font-size:12px; float:left; font-weight:normal;">Category :</span> <span style="color:<?=$row_color['color_main2'] ?>; font-size:14px; float:left; margin-left:5px; font-weight:normal;"><?=$row_event['ad_catagory']; ?></span> <br class="spacer"/> <span style="color:#666; font-size:12px; float:left; font-weight:normal;">Posted By :</span> <span style=" font-size:14px; float:left; margin-left:5px; font-weight:normal;"><?=$row_user['username']; ?></span> <br class="spacer"/> <span style="color:#666; font-size:12px; float:left; font-weight:normal;">Date :</span> <? $date=explode('-',$row_event['createdate']); ?> <span style="font-size:14px; float:left; margin-left:5px; font-weight:normal;"><? echo $date[1].'/'.$date[2].'/'.$date[0] ?></span> </p> <p style="float:right; width:15%; padding-top:30px;"><a href="ad-viewdetails.php?postad_id=<?=$row_event['id']?>"><img src="images/manage-ad.png"></a></p> </div> <!--<div style="float:right; width:130px; margin-top:4px; margin-bottom:4px;"> <p style="background-color:#93C; height:50px; width:100px; color:#fff; margin:0px; padding:0 5px; text-align:center; line-height:50px;"><a href="edit-ad.php">Edit Ad</a></p> </div>--> <br/><br/> <br class="spacer"/> </div> <br class="spacer"/> <? $k++; } } ?> </div> <div class="est_right"></div> <br class="spacer"/> </div> </div> </div> <br class="spacer" /> <? include "includes/footer.php";?>