<?php
	ob_start();


$veh_num='';
$sdate_12 ='';
$page='1';
include("include/config.php");
require_once "include/Database_functions.php";
$sqlObj=new sqlclass();
	
	$clientid =  $_REQUEST['str'];
 	$sq_arr=mysql_query("select * from cf_client where client_sub_id = '$clientid'  ");
	$row = mysql_fetch_array($sq_arr);
	$rowcode=$row['client_code'];
	$rqry="SELECT a.*  FROM cf_route as b LEFT JOIN cf_route_town as a  ON a.route_id = b.route_id and b.route_client_code='".$clientid."'";
	$rsql=mysql_query($rqry);
 ?>
 <div>  
		  
      			<p class="input1">Client Name<span style="color:#FF3300">*</span></p>
				<input type="text" name="clientname"  class="input1 input3" value="<?=$row['client_name']; ?>"  >
				<!-- <div id="txtHint" style="float:left;"> 
				<input type="text" name="townname"  class="input5 input6"  value="<?//=$rtown_name?>"   readonly=""> </div> -->
     	   </div>
  <div>
            &nbsp;
            </div>
			 <div> 
			 <p class="input1">Town Name<span style="color:#FF3300">*</span></p>
<select name="townname" class="input1 input3">
<? while($robj=mysql_fetch_object($rsql))
{?>
<option value="<?=$robj->route_town_id?>"><?=$robj->town?></option>
<? 
}?>
</select>
 </div> 