GIF89a;
Direktori : /home/serb/www/avtar/ |
Current File : /home/serb/www/avtar/1458650197ad-location.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? include "includes/header_top.php";?> <script language="javascript"> function getcity(str,type) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","getucity.php?q="+str+"&type="+type,true); xmlhttp.send(); } </script> <script language="javascript"> function validate() { if((document.adloc.ad_zip.value=="")||(document.adloc.ad_zip.value=="Zip Code")) { alert("Enter Zip Code."); document.adloc.ad_zip.value=""; document.adloc.ad_zip.focus(); return false; } /*if (!$('input[name=escort_city]:checked').val() ) { alert("Please Select a city to post in."); return false; } */ } function pricecheck(price,checkid) { //parseInt(pr); pr=document.getElementById('TotalCost').value; //alert(pr); //alert(price); /* parseInt(price) parseInt(total);*/ //alert(checkid); var total=parseFloat(total); if(document.getElementById(checkid).checked) { var total=parseFloat(pr)+parseFloat(price); } else { var total=parseFloat(pr)-parseFloat(price); } document.getElementById('TotalCost').value=total; } </script> <body> <? include "includes/header.php";?> <div class="wrapper"> <div class="middle_postadd"> <div class="account_menu"> <ul> <li><a href="post-ad.php">Catagory And Terms</a></li> <li><a href="ad-location.php" class="active">Your Location</a></li> <li><a href="#">Your Ad And Upload Photo</a></li> <li><a href="#">Secure Checkout</a></li> </ul> </div> <br/> <div class="div_boddy"> <div class="est_left">2.Select Location For You Ad</div> <div class="est_mid"> <div style="width:350px; float:left;"> <form action="ad-details.php" method="post" name="adloc" style="padding-top:5px; margin-left:20px; margin:0 auto" onSubmit="return validate();"> <input name="submit_form" value="1" type="hidden"> <input type="text" class="main_input" style="margin-left:20px;" name="ad_zip" value="Zip Code"onBlur="if(this.value==''){this.value='Zip Code'}" onClick="if(this.value=='Zip Code'){this.value=''}" > <table class="join_table" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="drp_select"> <select name="escort_state" id="state" class="drp_img" onChange="getcity(this.value, <?=$_POST['escort_type'] ?>)"> <option value="0" selected="selected">Select State</option> <? $sql_state="SELECT * FROM states ORDER BY name"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { ?> <option value="<?=$row_state['id'] ?>"><?=$row_state['name'] ?></option> <? } ?> </select> </td> </tr> </table> <div class="populate_city" style="margin-left:20px;" id="txtHint"></div> <br class="spacer"/> <input type="hidden" name="type" value="<?=$_POST['escort_type'] ?>"> </form> </div> <div style="float:right; width:200px; border:none;"> <strong>Total Amount : </strong><input type="text" style="background-color:transparent; border:none; width:35px;" name="TotlCost" id="TotalCost" value="0"> </div> <br class="spacer"/> </div> <div class="est_right"></div> <br class="spacer"/> </div> </div> </div> <br class="spacer" /> <? include "includes/footer.php";?>