| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/rsdgroup/ajax/ |
Upload File : |
<?php
include_once("../conf/settings.php");
include_once("../conf/func.php");
$Brand_Id = $_REQUEST['Brand_Id'];
$State_Id = $_REQUEST['State_Id'];
$City_Id = $_REQUEST['City_Id'];
if(($Brand_Id!="") && ($State_Id=='no' && $City_Id=='no'))
{
$stateList = getAllStateListByLocator($Brand_Id);
//echo "<pre>";print_r($stateList);die;
$sss = '<option value="">-- Select State --</option>';
foreach($stateList as $state)
{
$sss .= "<option value='".$state['id']."'>".$state['state_name']."</option>";
}
echo $sss;
}
if(($State_Id!='no' && $Brand_Id!="") && ($City_Id=='no'))
{
$cityList = getAllCityListByLocator($State_Id, $Brand_Id);
//echo "<pre>";print_r($cityList);die;
$ss = '<option value="">-- Select City --</option>';
foreach($cityList as $city)
{
$ss .= "<option value='".$city['id']."'>".$city['city_name']."</option>";
}
echo $ss;
}
if($City_Id!='no' && $State_Id!='no' && $Brand_Id!="")
{
$locatorList = getAllLocatorListByCityId($City_Id, $Brand_Id);
//echo "<pre>";print_r($cityList);die;
$ss = '<option value="">-- Select Location --</option>';
foreach($locatorList as $locator)
{
$ss .= "<option value='".$locator['id']."'>".$locator['location']."</option>";
}
echo $ss;
}
?>