GIF89a;
Direktori : /home/serb/public_html/admin/ |
Current File : /home/serb/public_html/admin/upgrade_featuredad.php |
<? include("sessionout.php"); include("../lib/globals.php"); include("../lib/common.php"); include("../lib/functions.php"); $id=$_POST["id"]; $sb=$_POST["Submit"]; if($sb=="Process") { if($_POST['featadPrice']==15) { $adprice1='15.99'; } else { $adprice1='29.99'; } $daay=$_POST['featadPrice']; $ftadstatus='Yes'; $expiry = date("Y-m-d", time() + $daay*24*60*60 ); $insert_sql="update escort_details set ft_ad_day='$daay',ft_ad_price='$adprice1',ft_ad_expair='$expiry',ft_ad_status='$ftadstatus' WHERE id='".$_POST['ad_id']."'"; execute_query($insert_sql); ?> <script> alert('You have successfully upgrade featured ad'); window.location.href="list_post_ad.php"; </script> <? } $sel="select * from escort_details where id='".$_GET['id']."'"; $res=execute_query($sel); $row=mysql_fetch_array($res); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Escortservice</title> <link href="../style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="../validator/frm_validator.js"></script> <script> function validate4() { if(frmValidate('f1','country','country','YES','')== false) { return false; } if(frmValidate('f1','state','state','YES','')== false) { return false; } } </script> </head> <body> <table width="790" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top"><table width="790" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top" class="td1"><table width="790" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="343" align="left" valign="top"> </td> <td width="447" align="left" valign="top"> </td> </tr> <tr> <td height="38" align="right" valign="middle" class="topnav"><p style="margin-left:23px;"><img src="img/logo.png" alt="" /></p></td> <td align="center" valign="middle" class="footer-link">Administrator Control Panel</td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" class="td2"> </td> </tr> </table></td> </tr> <tr> <td align="center" valign="top" class="td3"><table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="5"></td> </tr> <tr> <td align="center" valign="top" class="td4"><table width="768" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="6"></td> </tr> <tr> <td align="center" valign="top" class="td5"> </td> </tr> <tr> <td align="center" valign="top" class="td9"><table width="751" border="0" align="center" class="bordermain"> <tr> <td><? include("menu.php");?></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"> <form action="<? print $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data" name="f1" > <table width="735" border="0" align="center" cellspacing="1" class="Table4"> <tr> <td colspan="2" align="center" class="tblHeader2">Upgrade Featured Ad</td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> <tr class="mouseOver"> <td width="33%" align="center" colspan="2" ><strong>Featured Listing: </strong></td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> <tr class="mouseOver"> <td width="57%" align="right" ><strong> <input type="radio" name="featadPrice" value="15">$15.99 for 15 days <br/> <input type="radio" name="featadPrice" value="30">$29.99 for 30 days </td> <td width="33%" align="left"></td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> <tr class="mouseOver"> <td align="right"> <input type="hidden" name="ad_id" value="<?=$_GET['id'] ?>" /> <input type="hidden" name="ad_img1" value="<?=$row['image1']?>" /> <!--<input type="hidden" name="ad_img2" value="<?=$row['user_image2']?>" /> <input type="hidden" name="ad_img3" value="<?=$row['user_image3']?>" /> <input type="hidden" name="ad_img4" value="<?=$row['user_image4']?>" />--> <input name="Submit" type="submit" class="butn3" value="Process" /> </td> <td align="left" > <input name="Submit2" type="reset" class="butn3" value="Reset" /></td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> <tr> <td width="232" align="center" valign="top" class="td5"> </td> </tr> <tr> <td height="6"></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="center" valign="top" class="td3"><table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top" class="footer-bac"> <p style="text-align:center; padding:35px 0 5px 0px;"><a href="main.php" class="footer-link">Administrator Control Panel </a></p> <p class="footer-text1" style="text-align:center;">Escortseries</p> </td> </tr> </table></td> </tr> </table> </body> </html>