GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/msgparlor-viewdetails.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); $page="my_massageparlor"; ?> <? include "includes/header_top.php";?> <script language="javascript"> function validate() { if((document.f23.email.value.indexOf('@',0)<1)||(document.f23.email.value.indexOf('.',0)<1)) { alert("Enter any valid email address"); document.f23.email.focus(); return false; } if(document.f23.Men.checked!=true && document.f23.Women.checked!=true && document.f23.Couples.checked!=true) { alert("You need to check atleast one checkbox for Available."); return false; } if(document.f23.Incall.checked!=true && document.f23.Incall.checked!=true) { alert("You need to check atleast one checkbox between Incall and Outcall."); return false; } if(document.f23.ageDtls.value=="") { alert("Enter your Age"); document.f23.ageDtls.focus(); return false; } if(document.f23.nameAd.value=="") { alert("Enter your Ad Name"); document.f23.nameAd.focus(); return false; } if(document.f23.introDuction.value=="") { alert("Enter your Ad Introduction"); document.f23.introDuction.focus(); return false; } if(document.f23.adText.value=="") { alert("Enter your Ad Details"); document.f23.adText.focus(); return false; } if(document.f23.phoneNumber.value=="") { alert("Email not match."); document.f23.phoneNumber.focus(); return false; } if(document.f23.sex[0].value==false || document.f23.sex[1].value==false) { alert("You need to choose your sex."); return false; } } </script> <? if($_POST) { if($_FILES['avt_image']['tmp_name']) { $manu_imagename1=time().$_FILES['avt_image']['name']; move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1); } else { $manu_imagename1=$_POST['img1']; } /*$sql="INSERT INTO post_ad( id,ad_name,ad_catagory,state_id,city_id,available,incall,outcall,visiting,address,gfexp,fetish,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid) VALUES ('', '".$_POST['nameAd']."','$catagory','$state','$city','$avl','".$_POST['Incall']."','".$_POST['Outcall']."','".$_POST['visiting']."','".$_POST['locDtls']."','".$_POST['GFE']."','$fetish','".$_POST['ageDtls']."','".$_POST['ethniCity']."','".$_POST['lanGuage']."','$higt','".$_POST['weiGht']."','".$_POST['eyeColor']."','".$_POST['hairColor']."','".$_POST['build']."','','".$_POST['cupSize']."','".$_POST['kitty']."','".$_POST['pornStar']."','".$_POST['pregNant']."','".$_POST['introDuction']."','$desc','".$_POST['emailAddress']."','".$_POST['rcvEmail']."','".$_POST['phoneNumber']."','".$_POST['webSite']."','".$_POST['creditcard']."','$manu_imagename1','$date','u','".$_SESSION['userid']."')";*/ $sql="UPDATE massageparlor SET street='".$_POST['prlAddress']."',zipCode='".$_POST['zipCode']."', phoneNumber='".$_POST['parlPhone']."', Website='".$_POST['webUrl']."', email='".$_POST['email']."', majorStreets ='".$_POST['mrStreet']."', semiTruckParking ='".$_POST['truckParking']."', privateparking ='".$_POST['pvtParking']."', tableShower='".$_POST['tblShower']."', sauna='".$_POST['sauna']."', jacuzzi='".$_POST['jacuzzi']."', privacyForShower='".$_POST['pvforShower']."', fourhdmsg='".$_POST['frhandmsg']."', noneroticmsg='".$_POST['nonEroticmsg']."', thirtyMinute='".$_POST['thirtMint']."', fortyFive='".$_POST['fortMint']."', sixty='".$_POST['sixtyMint']."', ninetyMinute ='".$_POST['nintyMint']."',pic='$manu_imagename1' WHERE id='".$_GET['postad_id']."'"; execute_query($sql); ?> <script language="javascript"> alert('Your Profile Updated Successfully'); location.href="my-massageparlor.php"; </script> <? }?> <body> <? include "includes/header.php";?> <? include "includes/sub-menu.php";?> <br/> <div class="div_boddy"> <? $sqlData="SELECT * FROM massageparlor WHERE id='".$_GET['postad_id']."'"; $res_event=execute_query($sqlData); $row_event=mysql_fetch_array($res_event); ?> <div class="est_left">View And Edit Your Ad</div> <div class="est_mid"> <form action="<?=$_SERVER['PHP_SELF']?>?postad_id=<?=$_GET['postad_id']?>" enctype="multipart/form-data" method="post" name="f23" style="padding: 5px;" onSubmit="return validate();" > <input name="submit_form" value="1" type="hidden"> <table class="join_table2" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="name_align">Name :</td> <td><?=$row_event['name']?><br/> </td> <td></td> <td></td> <td></td> </tr> <tr> <td class="name_align">State:</td> <? $sql_state="SELECT * FROM states where id='".$row_event['state_id']."' ORDER BY name"; $res_state=execute_query($sql_state); $row_state=mysql_fetch_array($res_state); ?> <td> <?=$row_state['name']?> </td> <td ></td> <td class="name_align">City</td> <? $sql_city="SELECT * FROM citys where id='".$row_event['city_id']."' ORDER BY name"; $res_city=execute_query($sql_city); $row_city=mysql_fetch_array($res_city); ?> <td> <?=$row_city['name']?> </td> </tr> <tr> <td class="name_align">Address :</td> <td><input name="prlAddress" id="address" class="main_input" value="<?=$row_event['street']?>" type="text"></td> <td></td> <td class="name_align">Zipcode :</td> <td><input name="zipCode" id="zipcode" class="main_input" value="<?=$row_event['zipCode']?>" type="text"></td> </tr> <tr> <td class="name_align">Parlor Phone :</td> <td><input name="parlPhone" id="phoneno" class="main_input" value="<?=$row_event['phoneNumber']?>" type="text"></td> <td></td> <td class="name_align">Website Url :</td> <td><input name="webUrl" id="weburl" class="main_input" value="<?=$row_event['Website']?>" type="text"></td> </tr> <tr> <td class="name_align">Email :</td> <td><input name="email" id="email" class="main_input" value="<?=$row_event['email']?>" type="text"></td> <td></td> <td class="name_align">Major Street :</td> <td><input name="mrStreet" id="mjstreet" class="main_input" value="<?=$row_event['majorStreets']?>" type="text"></td> </tr> <tr> <td class="name_align"> SemiTruckParking :</td> <td> <select name="truckParking" id="truckParking" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['semiTruckParking']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['semiTruckParking']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> <td></td> <td class="name_align"> Private Prking :</td> <td> <select name="pvtParking" id="pvtparking" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['privateparking']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['privateparking']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> </tr> <tr> <td class="name_align"> Table Shower :</td> <td> <select name="tblShower" id="tblShower" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['tableShower']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['tableShower']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> <td></td> <td class="name_align"> Sauna :</td> <td> <select name="sauna" id="sauna" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['sauna']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['sauna']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> </tr> <tr> <td class="name_align"> Jacuzzi :</td> <td> <select name="jacuzzi" id="jacuzzi" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['jacuzzi']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['jacuzzi']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> <td></td> <td class="name_align"> PrivacyForShower :</td> <td> <select name="pvforShower" id="pvforShower" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['privacyForShower']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['privacyForShower']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> </tr> <tr> <td class="name_align"> 4 Hand Massage Available :</td> <td> <select name="frhandmsg" id="frhandmsg" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['fourhdmsg']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['fourhdmsg']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> <td></td> <td class="name_align"> Non-EroticMassage? :</td> <td> <select name="nonEroticmsg" id="nonEroticmsg" class="drp_img2"> <option selected="selected">Select</option> <option value="1" <? if($row_event['noneroticmsg']=='1'){ ?> selected="selected" <? } ?>>Yes</option> <option value="0" <? if($row_event['noneroticmsg']=='0'){ ?> selected="selected" <? } ?>>No</option> </select> </td> </tr> <tr> <td class="name_align">30 Minute :</td> <td><input name="thirtMint" id="thirtMint" class="main_input" value="<?=$row_event['thirtyMinute']?>" type="text"> </td> <td></td> <td class="name_align">45 Minute :</td> <td><input name="fortMint" id="fortMint" class="main_input" value="<?=$row_event['fortyFive']?>" type="text"></td> <td></td> </tr> <tr> <td class="name_align">60 Minute :</td> <td><input name="sixtyMint" id="sixtyMint" class="main_input" value="<?=$row_event['sixty']?>" type="text"> </td> <td></td> <td class="name_align">90 Minute :</td> <td><input name="nintyMint" id="nintyMint" class="main_input" value="<?=$row_event['ninetyMinute']?>" type="text"> </td> </tr> <tr> <td colspan="3" class="text_fnt">Upload Your Photo</td> </tr> <tr> <td class="name_align"></td> <td><img src="avtar/<?=$row_event['pic'] ?>" style="width:130px; height:100px; border:1px solid #666;" /></td> <td></td> <td></td> </tr> <tr> <td class="name_align">Change Picture :</td> <td><input type="file" name="avt_image" style="border:1px solid #999; width:200px; margin-bottom:5px; background-color:#fff;" /></td> <td><input type="hidden" name="img1" value="<?=$row_event['pic'] ?>" /></td> <td></td> </tr> <tr> <td></td> <td> </td> <td></td> <td><input src="images/agree_btn.png" type="image" style="margin-left:0px;"/></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> </form> </div> <div class="est_right"></div> <br class="spacer"/> </div> </div> </div> <br class="spacer" /> <? include "includes/footer.php";?>