GIF89a;
Direktori : /home/serb/www/admin/ |
Current File : /home/serb/www/admin/add_city-mapping.php |
<? include("sessionout.php"); include("../lib/globals.php"); include("../lib/common.php"); include("../lib/functions.php"); function encodeHTML($sHTML) { $sHTML=ereg_replace("&","&",$sHTML); $sHTML=ereg_replace("<","<",$sHTML); $sHTML=ereg_replace(">",">",$sHTML); return $sHTML; } $id=$_POST["id"]; $sb=$_POST["Submit"]; if($sb=="Process") { $convert_from=addslashes($_POST["convert_from"]); $convert_to=addslashes($_POST["convert_to"]); $insert_sql="insert into city_mapping set convert_from='$convert_from', convert_to='$convert_to', createdon=now()"; execute_query($insert_sql); ?> <script> window.location.href="city-mapping-list.php"; </script> <? } ?> <!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 | Admin ::</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; } if(frmValidate('f1','city','City','YES','')== false) { return false; } } </script> <script type="text/javascript"> function selectCity(country_id){ if(country_id!="-1"){ loadData('state',country_id); $("#city_dropdown").html("<option value='-1'>Select city</option>"); }else{ $("#state_dropdown").html("<option value='-1'>Select state</option>"); $("#city_dropdown").html("<option value='-1'>Select city</option>"); } } function selectState(state_id){ if(state_id!="-1"){ loadData('city',state_id); }else{ $("#city_dropdown").html("<option value='-1'>Select city</option>"); } } function loadData(loadType,loadId){ var dataString = 'loadType='+ loadType +'&loadId='+ loadId; $("#"+loadType+"_loader").show(); $("#"+loadType+"_loader").fadeIn(400).html('Please wait...'); $.ajax({ type: "POST", url: "../loadData.php", data: dataString, cache: false, success: function(result){ $("#"+loadType+"_loader").hide(); $("#"+loadType+"_dropdown").html("<option value='-1'>Select "+loadType+"</option>"); $("#"+loadType+"_dropdown").append(result); } }); } </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="../images/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" onSubmit="return validate4()" > <table width="735" border="0" align="center" cellspacing="1" class="Table4"> <tr> <td colspan="2" align="center" class="tblHeader2">Add New City Mapping</td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> <tr class="mouseOver"> <td width="41%" align="right"><strong>Convert From: </strong></td> <td width="59%" align="left"><input name="convert_from" type="text" class="content" id="convert_from" size="50" /></td> </tr> <tr class="mouseOver"> <td width="41%" align="right"><strong>Convert To: </strong></td> <td width="59%" align="left"><input name="convert_to" type="text" id="convert_to" class="content" size="50" /></td> </tr> <tr class="mouseOver"> <td align="right"> </td> <td align="left" > </td> </tr> <tr class="mouseOver"> <td align="right"><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;">LocalSex.net</p> </td> </tr> </table></td> </tr> </table> </body> </html>