<style>
.style1 {border-top: solid 1px;border-top-color: #CCCCCC;}
.style21 {border-bottom: solid 1px;border-bottom-color: #CCCCCC;}
.style5 {border-left: solid 1px;border-left-color: #CCCCCC;}
.style3{ border-right: solid 1px;border-right-color: #CCCCCC; }
.style4 {border-bottom: solid 1px;border-bottom-color: #CCCCCC;}
.text{ font-family: Verdana; font-size:13px;}
#tot_amt::-webkit-input-placeholder { color:#666; }
</style>
<?php error_reporting(0);
/***************************** PREVIOUS NEXT CODING ****************************************/
 include("../../include/db.php");
  function get_place_name($branch_places)
{
    $sql_user="select * from  place_creation where id='$branch_places'";
	$rs_user=mysql_query($sql_user);
	while($rsdata_user=mysql_fetch_object($rs_user))
	{ 
	$location=$rsdata_user->location;
	}
	return $location;
}
 ?>

 <div style="height:200px; width:98%;padding-left:0px;  overflow-x:hidden;overflow-y:scroll;white-space:nowrap;" class="style3">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #ffffff;"  >
  <tr  bgcolor="#f7f7f7">
    <td width="46" height="25" class="txt style5 style1 style21"><strong>&nbsp;S.No&nbsp;</strong></td>
    <td colspan="6" class="txt style1 style5 style21"><strong>&nbsp;Place</strong><strong></strong></td>
      <td width="96" class="txt style1 style5 style3 style21" align="center"><strong>Action</strong></td>
 </tr>
   <?php
   $branch_no=$_GET['branch_no'];
    $branch_no1=$_POST['branch_no'];
  
    $sql="select * from  branch_sublist where branch_no='$branch_no' or branch_no='$branch_no1'";
    $rs=mysql_query($sql);
	$sno=0;
   		while($rsdata=mysql_fetch_array($rs))
  			{ 
   				$sno=$sno+1;
   				$id=$rsdata['id'];
				$branch_no=$rsdata['branch_no'];
				$branch_name=$rsdata['branch_name'];
   				$branch_address=$rsdata['branch_address'];
				$branch_places=$rsdata['branch_places'];
				$get_place_name=get_place_name($branch_places);

				$row=$row+1;
								  $row1=$row%2;
								  if($row1==0)
								  {
								  $class='style="background-color:#f6faff;border-bottom:solid 1px;border-color:#E2E2E2"';
								  }
								  else
								  {
								  $class='style="background-color:#f3f3ff;border-bottom:solid 1px;border-color:#E2E2E2"';
								  }
  ?>
<tr bgcolor="#f7f7f7" >
   <td width="46"  align="center" class="style4 style3 style5 style1  style6 style7"><?php echo $sno; ?>&nbsp;&nbsp;</td>
   <td colspan="6" align="left" class="style4 style3 style5  style6 style7" style="padding-left:2px;"><span style="color:#F00;"><?php echo $get_place_name;?></span></td>
      <td colspan="2"  align="center" class="style5 style4" ><img src="../../img/delete.png"  title="Delete" onClick="del_branch_sub('<?php echo $id;?>','<?php echo $branch_no; ?>',this.value)" width="13px" height="12px"></td>
  </tr>
<?php 
}
?>
  
 <tr height="30px">
    <td width="46"  align="center" class="style4 style3 style5" ><div align="center"><?php echo $sno+1; ?></div></td>
      <td colspan="6" align="left" class="style5 style4"><select id="booking_place" name="booking_place" tabindex="9" style="width:100%; height:105%;" class="types_class" onChange="enterevent(event,'add','booking_place')" >
       <?php
			$sql1="select * from place_creation ";
            $rs1=mysql_query($sql1);
            while($rsdata1=mysql_fetch_array($rs1))
            {
			  $location=$rsdata1['location'];
	          $place_id=$rsdata1['id'];
			?>
            <option value="<?php echo $place_id;?>" <?php if($place_id== $book_place){ echo "Selected"; } ?>><?php echo $location;?></option>
         <?php } ?> 
  </select></td>
      <td align="center" class="style5 style4 txt"><input type="button" name="add" id="add" value="<?php  echo "ADD";  ?>" tabindex="10" style="width:100%; height:120%;" onClick="brach_place_list(branch_no.value,branch_name.value,branch_address.value,booking_place.value,'<?php echo "ADD_place"; ?>'),enterevent(event,'action','add')"></td>
 </tr>
 <tr><td></td><td width="543"><div id="pur_order_item_name_validation_div" style="color:#FF0000; font-size:14px"></div></td>
      <td width="145"></td>
      <td width="145"><div id="pur_order_qty_validation_div" style="color:#FF0000;font-size:14px"></div></td><td width="101"></td><td width="103"></td><td width="104"></td><td></td> </tr>

 <tr height="140px">
   <td colspan="8"  align="center" class="style4  style5" ></td>
   </tr>
    </table>
</div>
<table width="98%" border="0" cellpadding="0" cellspacing="0">

</table>
 